From 857ea079a9d28689c8b03727f5dbf4ad9dbc070d Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 5 Jul 2024 20:14:00 -0400 Subject: [PATCH 01/35] flutter_rust_bridge_codegen updated to 2.0.0 --- example/lib/bdk_library.dart | 13 +- example/lib/simple_wallet.dart | 25 +- example/pubspec.lock | 26 +- flutter_rust_bridge.yaml | 8 +- lib/src/root.dart | 24 - makefile | 2 +- pubspec.lock | 12 +- pubspec.yaml | 8 +- rust/Cargo.lock | 1092 +++----------------------------- rust/Cargo.toml | 10 +- 10 files changed, 121 insertions(+), 1099 deletions(-) diff --git a/example/lib/bdk_library.dart b/example/lib/bdk_library.dart index b7a50b12..9722dba8 100644 --- a/example/lib/bdk_library.dart +++ b/example/lib/bdk_library.dart @@ -20,7 +20,10 @@ class BdkLibrary { } Future initializeBlockchain() async { - return Blockchain.createMutinynet(); + return await Blockchain.create( + config: const BlockchainConfig.esplora( + config: EsploraConfig( + baseUrl: 'https://mutinynet.com/api', stopGap: 10))); } Future restoreWallet(Descriptor descriptor) async { @@ -92,11 +95,7 @@ class BdkLibrary { } sendBitcoin( - Blockchain blockchain, - Wallet aliceWallet, - String addressStr, - int amountSat, - ) async { + Blockchain blockchain, Wallet aliceWallet, String addressStr) async { try { final txBuilder = TxBuilder(); final address = await Address.fromString( @@ -105,7 +104,7 @@ class BdkLibrary { final script = await address.scriptPubkey(); final feeRate = await estimateFeeRate(25, blockchain); final (psbt, _) = await txBuilder - .addRecipient(script, amountSat) + .addRecipient(script, 750) .feeRate(feeRate.satPerVb) .finish(aliceWallet); final isFinalized = await aliceWallet.sign(psbt: psbt); diff --git a/example/lib/simple_wallet.dart b/example/lib/simple_wallet.dart index 42027761..9c8544d0 100644 --- a/example/lib/simple_wallet.dart +++ b/example/lib/simple_wallet.dart @@ -25,12 +25,11 @@ class _SimpleWalletState extends State { generateMnemonicKeys() async { final res = await lib.createMnemonic(); - final mnemonic = await res.asString(); setState(() { - displayText = mnemonic; + displayText = res.toString(); }); if (kDebugMode) { - print(mnemonic); + print(await res.asString()); } } @@ -50,13 +49,11 @@ class _SimpleWalletState extends State { } getNewAddress() async { - final addressInfo = await lib.getAddress(aliceWallet); - final address = await addressInfo.address.asString(); - - debugPrint(address); + final res = (await (await lib.getAddress(aliceWallet)).address.asString()); + debugPrint(res); setState(() { - displayText = "Address: $address \n Index: ${addressInfo.index}"; + displayText = "Address: $res"; }); } @@ -155,13 +152,9 @@ class _SimpleWalletState extends State { } } - sendBit(int amountSat) async { + sendBit() async { await lib.sendBitcoin( - blockchain!, - aliceWallet, - "tb1qyhssajdx5vfxuatt082m9tsfmxrxludgqwe52f", - amountSat, - ); + blockchain!, aliceWallet, "tb1qyhssajdx5vfxuatt082m9tsfmxrxludgqwe52f"); } @override @@ -293,9 +286,9 @@ class _SimpleWalletState extends State { fontWeight: FontWeight.w800), )), TextButton( - onPressed: () => sendBit(100000), + onPressed: () => sendBit(), child: const Text( - 'Press to send 100k sats', + 'Press to send 1200 satoshi', style: TextStyle( color: Colors.indigoAccent, fontSize: 12, diff --git a/example/pubspec.lock b/example/pubspec.lock index b754aae5..95961b46 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -193,10 +193,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 @@ -206,10 +206,10 @@ packages: dependency: transitive description: name: freezed_annotation - sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d + sha256: f54946fdb1fa7b01f780841937b1a80783a20b393485f3f6cdf336fd6f4705f2 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" glob: dependency: transitive description: @@ -218,14 +218,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.2" - js: - dependency: transitive - description: - name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" json_annotation: dependency: transitive description: @@ -439,6 +431,14 @@ 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" yaml: dependency: transitive description: @@ -448,5 +448,5 @@ packages: source: hosted version: "3.1.2" 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/flutter_rust_bridge.yaml b/flutter_rust_bridge.yaml index b7fadedc..0a112455 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/ full_dep: true +web: false +dart3: true +enable_lifetime: true c_output: ios/Classes/frb_generated.h duplicated_c_output: [macos/Classes/frb_generated.h] -dart_entrypoint_class_name: CApi \ No newline at end of file +dart_entrypoint_class_name: core \ No newline at end of file diff --git a/lib/src/root.dart b/lib/src/root.dart index 74f57818..f5012528 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -61,30 +61,6 @@ class Blockchain extends BdkBlockchain { } } - static Future createMutinynet({ - int stopGap = 20, - }) async { - final config = BlockchainConfig.esplora( - config: EsploraConfig( - baseUrl: 'https://mutinynet.ltbl.io/api', - stopGap: stopGap, - ), - ); - return create(config: config); - } - - static Future createTestnet({ - int stopGap = 20, - }) async { - final config = BlockchainConfig.esplora( - config: EsploraConfig( - baseUrl: 'https://testnet.ltbl.io/api', - stopGap: stopGap, - ), - ); - return create(config: config); - } - ///Estimate the fee rate required to confirm a transaction in a given target of blocks @override Future estimateFee({required int target, hint}) async { diff --git a/makefile b/makefile index 5a42da96..a003e3c9 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 diff --git a/pubspec.lock b/pubspec.lock index b958e084..b05e769c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -205,10 +205,10 @@ packages: dependency: "direct dev" description: name: ffigen - sha256: "3a80687577e7e51ba915114742f389a128e8aa241c52ce69a0f70aecb8e14365" + sha256: "3e12e80ccb6539bb3917217bb6f32709220efb737de0d0fa8736da0b7cb507da" url: "https://pub.dev" source: hosted - version: "9.0.1" + version: "12.0.0" file: dependency: transitive description: @@ -234,10 +234,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 @@ -255,10 +255,10 @@ packages: dependency: "direct main" description: name: freezed_annotation - sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d + sha256: f54946fdb1fa7b01f780841937b1a80783a20b393485f3f6cdf336fd6f4705f2 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" frontend_server_client: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 71c5ea2b..4696d76d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - flutter_rust_bridge: ">2.0.0-dev.30 <= 2.0.0-dev.31" + flutter_rust_bridge: "2.0.0" ffi: ^2.0.1 freezed_annotation: ^2.2.0 mockito: ^5.4.0 @@ -21,9 +21,9 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - ffigen: ^9.0.1 - freezed: ^2.3.5 - build_runner: ^2.4.4 + ffigen: ^12.0.0 + freezed: ^2.5.2 + build_runner: ^2.4.8 lints: ^4.0.0 flutter: diff --git a/rust/Cargo.lock b/rust/Cargo.lock index b76d2a3a..5cb8d99e 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -66,12 +66,6 @@ version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - [[package]] name = "android_log-sys" version = "0.3.1" @@ -90,71 +84,11 @@ dependencies = [ "once_cell", ] -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - -[[package]] -name = "anstream" -version = "0.6.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "utf8parse", -] - -[[package]] -name = "anstyle" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" - -[[package]] -name = "anstyle-parse" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" -dependencies = [ - "windows-sys 0.52.0", -] - -[[package]] -name = "anstyle-wincon" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" -dependencies = [ - "anstyle", - "windows-sys 0.52.0", -] - [[package]] name = "anyhow" version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" -dependencies = [ - "backtrace", -] [[package]] name = "assert_matches" @@ -179,17 +113,6 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c59bdb34bc650a32731b31bd8f0829cc15d24a708ee31559e0bb34f2bc320cba" -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi", -] - [[package]] name = "autocfg" version = "1.2.0" @@ -268,7 +191,6 @@ dependencies = [ "assert_matches", "bdk", "flutter_rust_bridge", - "flutter_rust_bridge_codegen", "rand", "serde", "serde_json", @@ -341,10 +263,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] -name = "bitflags" -version = "2.5.0" +name = "block-buffer" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] [[package]] name = "build-target" @@ -370,65 +295,6 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" -[[package]] -name = "camino" -version = "1.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo-platform" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo_metadata" -version = "0.14.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" -dependencies = [ - "camino", - "cargo-platform", - "semver", - "serde", - "serde_json", -] - -[[package]] -name = "cargo_toml" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "802b755090e39835a4b0440fb0bbee0df7495a8b337f63db21e616f7821c7e8c" -dependencies = [ - "serde", - "toml 0.8.12", -] - -[[package]] -name = "cbindgen" -version = "0.24.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b922faaf31122819ec80c4047cc684c6979a087366c069611e33649bf98e18d" -dependencies = [ - "heck 0.4.1", - "indexmap 1.9.3", - "log", - "proc-macro2", - "quote", - "serde", - "serde_json", - "syn 1.0.109", - "tempfile", - "toml 0.5.11", -] - [[package]] name = "cc" version = "1.0.94" @@ -441,90 +307,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chrono" -version = "0.4.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "js-sys", - "num-traits", - "wasm-bindgen", - "windows-targets 0.52.5", -] - -[[package]] -name = "clap" -version = "4.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" -dependencies = [ - "clap_builder", - "clap_derive", -] - -[[package]] -name = "clap_builder" -version = "4.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" -dependencies = [ - "anstream", - "anstyle", - "clap_lex", - "strsim", -] - -[[package]] -name = "clap_derive" -version = "4.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64" -dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "syn 2.0.59", -] - -[[package]] -name = "clap_lex" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" - -[[package]] -name = "colorchoice" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" - -[[package]] -name = "colored" -version = "1.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a5f741c91823341bebf717d4c71bda820630ce065443b58bd1b7451af008355" -dependencies = [ - "is-terminal", - "lazy_static", - "winapi", -] - -[[package]] -name = "console" -version = "0.15.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" -dependencies = [ - "encode_unicode", - "lazy_static", - "libc", - "unicode-width", - "windows-sys 0.52.0", -] - [[package]] name = "console_error_panic_hook" version = "0.1.7" @@ -535,18 +317,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "convert_case" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4a24b1aaf0fd0ce8b45161144d6f42cd91677fd5940fd431183eb023b3a2b8" - -[[package]] -name = "core-foundation-sys" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" - [[package]] name = "core-rpc" version = "0.17.0" @@ -582,15 +352,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossbeam-channel" -version = "0.5.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95" -dependencies = [ - "crossbeam-utils", -] - [[package]] name = "crossbeam-epoch" version = "0.9.18" @@ -606,6 +367,16 @@ version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + [[package]] name = "dart-sys-fork" version = "4.1.1" @@ -625,19 +396,6 @@ dependencies = [ "num_cpus", ] -[[package]] -name = "dashmap" -version = "5.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" -dependencies = [ - "cfg-if", - "hashbrown 0.14.3", - "lock_api", - "once_cell", - "parking_lot_core 0.9.9", -] - [[package]] name = "delegate-attr" version = "0.3.0" @@ -650,22 +408,15 @@ dependencies = [ ] [[package]] -name = "derivative" -version = "2.2.0" +name = "digest" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "block-buffer", + "crypto-common", ] -[[package]] -name = "either" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" - [[package]] name = "electrum-client" version = "0.18.0" @@ -685,44 +436,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "encode_unicode" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" - -[[package]] -name = "enum-iterator" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fd242f399be1da0a5354aa462d57b4ab2b4ee0683cc552f7c007d2d12d36e94" -dependencies = [ - "enum-iterator-derive", -] - -[[package]] -name = "enum-iterator-derive" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03cdc46ec28bd728e67540c528013c6a10eb69a02eb31078a1bda695438cbfb8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.59", -] - -[[package]] -name = "enum_dispatch" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" -dependencies = [ - "once_cell", - "proc-macro2", - "quote", - "syn 2.0.59", -] - [[package]] name = "env_logger" version = "0.10.2" @@ -733,22 +446,6 @@ dependencies = [ "regex", ] -[[package]] -name = "equivalent" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" - -[[package]] -name = "errno" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - [[package]] name = "esplora-client" version = "0.6.0" @@ -774,35 +471,6 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" -[[package]] -name = "fastrand" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" - -[[package]] -name = "fern" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9f0c14694cbd524c8720dd69b0e3179344f04ebb5f90f2e4a440c6ea3b2f1ee" -dependencies = [ - "chrono", - "colored", - "log", -] - -[[package]] -name = "filetime" -version = "0.2.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.4.1", - "windows-sys 0.52.0", -] - [[package]] name = "flate2" version = "1.0.28" @@ -815,9 +483,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", @@ -840,58 +508,15 @@ dependencies = [ "web-sys", ] -[[package]] -name = "flutter_rust_bridge_codegen" -version = "2.0.0-dev.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb089f0e86a6873eb9538ee5dea459e9bb029feeb6777ecf1f996c805451a507" -dependencies = [ - "anyhow", - "atty", - "cargo_metadata", - "cargo_toml", - "cbindgen", - "chrono", - "clap", - "convert_case", - "derivative", - "enum-iterator", - "enum_dispatch", - "fern", - "glob", - "hex", - "include_dir", - "indicatif", - "indicatif-log-bridge", - "itertools", - "lazy_static", - "log", - "notify", - "notify-debouncer-mini", - "paste", - "pathdiff", - "proc-macro2", - "quote", - "regex", - "serde", - "serde_json", - "serde_yaml", - "serial_test", - "strum", - "strum_macros", - "syn 2.0.59", - "tempfile", - "toml 0.5.11", - "topological-sort", -] - [[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.59", ] @@ -915,15 +540,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "fsevent-sys" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" -dependencies = [ - "libc", -] - [[package]] name = "futures" version = "0.3.30" @@ -1022,6 +638,16 @@ dependencies = [ "byteorder", ] +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + [[package]] name = "getrandom" version = "0.2.14" @@ -1039,18 +665,6 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - [[package]] name = "hashbrown" version = "0.14.3" @@ -1067,28 +681,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" dependencies = [ - "hashbrown 0.14.3", -] - -[[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" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" - -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", + "hashbrown", ] [[package]] @@ -1109,29 +702,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3011d1213f159867b13cfd6ac92d2cd5f1345762c63be3554e84092d85a50bbd" -[[package]] -name = "iana-time-zone" -version = "0.1.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows-core", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - [[package]] name = "idna" version = "0.5.0" @@ -1142,88 +712,6 @@ dependencies = [ "unicode-normalization", ] -[[package]] -name = "include_dir" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18762faeff7122e89e0857b02f7ce6fcc0d101d5e9ad2ad7846cc01d61b7f19e" -dependencies = [ - "include_dir_macros", -] - -[[package]] -name = "include_dir_macros" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b139284b5cf57ecfa712bcc66950bb635b31aff41c188e8a4cfc758eca374a3f" -dependencies = [ - "proc-macro2", - "quote", -] - -[[package]] -name = "indexmap" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" -dependencies = [ - "autocfg", - "hashbrown 0.12.3", -] - -[[package]] -name = "indexmap" -version = "2.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" -dependencies = [ - "equivalent", - "hashbrown 0.14.3", -] - -[[package]] -name = "indicatif" -version = "0.17.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" -dependencies = [ - "console", - "instant", - "number_prefix", - "portable-atomic", - "unicode-width", -] - -[[package]] -name = "indicatif-log-bridge" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2963046f28a204e3e3fd7e754fd90a6235da05b5378f24707ff0ec9513725ce3" -dependencies = [ - "indicatif", - "log", -] - -[[package]] -name = "inotify" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" -dependencies = [ - "bitflags 1.3.2", - "inotify-sys", - "libc", -] - -[[package]] -name = "inotify-sys" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" -dependencies = [ - "libc", -] - [[package]] name = "instant" version = "0.1.12" @@ -1233,26 +721,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "is-terminal" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" -dependencies = [ - "hermit-abi 0.3.9", - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - [[package]] name = "itoa" version = "1.0.11" @@ -1270,33 +738,13 @@ dependencies = [ [[package]] name = "jsonrpc" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd8d6b3f301ba426b30feca834a2a18d48d5b54e5065496b5c1b05537bee3639" -dependencies = [ - "base64 0.13.1", - "serde", - "serde_json", -] - -[[package]] -name = "kqueue" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" -dependencies = [ - "kqueue-sys", - "libc", -] - -[[package]] -name = "kqueue-sys" -version = "1.0.4" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" +checksum = "fd8d6b3f301ba426b30feca834a2a18d48d5b54e5065496b5c1b05537bee3639" dependencies = [ - "bitflags 1.3.2", - "libc", + "base64 0.13.1", + "serde", + "serde_json", ] [[package]] @@ -1322,18 +770,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "linked-hash-map" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" - -[[package]] -name = "linux-raw-sys" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" - [[package]] name = "lock_api" version = "0.4.11" @@ -1350,6 +786,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", +] + [[package]] name = "memchr" version = "2.7.2" @@ -1376,73 +822,16 @@ dependencies = [ "adler", ] -[[package]] -name = "mio" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" -dependencies = [ - "libc", - "log", - "wasi", - "windows-sys 0.48.0", -] - -[[package]] -name = "notify" -version = "6.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" -dependencies = [ - "bitflags 2.5.0", - "crossbeam-channel", - "filetime", - "fsevent-sys", - "inotify", - "kqueue", - "libc", - "log", - "mio", - "walkdir", - "windows-sys 0.48.0", -] - -[[package]] -name = "notify-debouncer-mini" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d40b221972a1fc5ef4d858a2f671fb34c75983eb385463dff3780eeff6a9d43" -dependencies = [ - "crossbeam-channel", - "log", - "notify", -] - -[[package]] -name = "num-traits" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" -dependencies = [ - "autocfg", -] - [[package]] name = "num_cpus" version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.3.9", + "hermit-abi", "libc", ] -[[package]] -name = "number_prefix" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" - [[package]] name = "object" version = "0.32.2" @@ -1465,7 +854,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8343ce955f18e7e68c0207dd0ea776ec453035685395ababd2ea651c569728b3" dependencies = [ "cc", - "dashmap 4.0.2", + "dashmap", "log", ] @@ -1477,17 +866,7 @@ checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" dependencies = [ "instant", "lock_api", - "parking_lot_core 0.8.6", -] - -[[package]] -name = "parking_lot" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" -dependencies = [ - "lock_api", - "parking_lot_core 0.9.9", + "parking_lot_core", ] [[package]] @@ -1499,36 +878,11 @@ dependencies = [ "cfg-if", "instant", "libc", - "redox_syscall 0.2.16", + "redox_syscall", "smallvec", "winapi", ] -[[package]] -name = "parking_lot_core" -version = "0.9.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.4.1", - "smallvec", - "windows-targets 0.48.5", -] - -[[package]] -name = "paste" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" - -[[package]] -name = "pathdiff" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" - [[package]] name = "percent-encoding" version = "2.3.1" @@ -1553,12 +907,6 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" -[[package]] -name = "portable-atomic" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" - [[package]] name = "ppv-lite86" version = "0.2.17" @@ -1619,16 +967,7 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ - "bitflags 1.3.2", -] - -[[package]] -name = "redox_syscall" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" -dependencies = [ - "bitflags 1.3.2", + "bitflags", ] [[package]] @@ -1672,7 +1011,7 @@ dependencies = [ "libc", "spin", "untrusted", - "windows-sys 0.52.0", + "windows-sys", ] [[package]] @@ -1681,7 +1020,7 @@ version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01e213bc3ecb39ac32e81e51ebe31fd888a940515173e3a18a35f8c6e896422a" dependencies = [ - "bitflags 1.3.2", + "bitflags", "fallible-iterator", "fallible-streaming-iterator", "hashlink", @@ -1695,19 +1034,6 @@ version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" -[[package]] -name = "rustix" -version = "0.38.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" -dependencies = [ - "bitflags 2.5.0", - "errno", - "libc", - "linux-raw-sys", - "windows-sys 0.52.0", -] - [[package]] name = "rustls" version = "0.21.10" @@ -1761,27 +1087,12 @@ dependencies = [ "untrusted", ] -[[package]] -name = "rustversion" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" - [[package]] name = "ryu" version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - [[package]] name = "scopeguard" version = "1.2.0" @@ -1819,15 +1130,6 @@ dependencies = [ "cc", ] -[[package]] -name = "semver" -version = "1.0.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" -dependencies = [ - "serde", -] - [[package]] name = "serde" version = "1.0.197" @@ -1859,52 +1161,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_spanned" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_yaml" -version = "0.8.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b" -dependencies = [ - "indexmap 1.9.3", - "ryu", - "serde", - "yaml-rust", -] - -[[package]] -name = "serial_test" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e56dd856803e253c8f298af3f4d7eb0ae5e23a737252cd90bb4f3b435033b2d" -dependencies = [ - "dashmap 5.5.3", - "futures", - "lazy_static", - "log", - "parking_lot 0.12.1", - "serial_test_derive", -] - -[[package]] -name = "serial_test_derive" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.59", -] - [[package]] name = "slab" version = "0.4.9" @@ -1927,7 +1183,7 @@ dependencies = [ "fxhash", "libc", "log", - "parking_lot 0.11.2", + "parking_lot", ] [[package]] @@ -1953,31 +1209,6 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "strum" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" - -[[package]] -name = "strum_macros" -version = "0.24.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" -dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "rustversion", - "syn 1.0.109", -] - [[package]] name = "subtle" version = "2.5.0" @@ -2006,18 +1237,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "tempfile" -version = "3.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" -dependencies = [ - "cfg-if", - "fastrand", - "rustix", - "windows-sys 0.52.0", -] - [[package]] name = "threadpool" version = "1.8.1" @@ -2066,53 +1285,10 @@ dependencies = [ ] [[package]] -name = "toml" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" -dependencies = [ - "serde", -] - -[[package]] -name = "toml" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit", -] - -[[package]] -name = "toml_datetime" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" -dependencies = [ - "serde", -] - -[[package]] -name = "toml_edit" -version = "0.22.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" -dependencies = [ - "indexmap 2.2.6", - "serde", - "serde_spanned", - "toml_datetime", - "winnow", -] - -[[package]] -name = "topological-sort" -version = "0.2.2" +name = "typenum" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea68304e134ecd095ac6c3574494fc62b909f416c4fca77e440530221e549d3d" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-bidi" @@ -2135,12 +1311,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-width" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" - [[package]] name = "untrusted" version = "0.9.0" @@ -2178,12 +1348,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "utf8parse" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" - [[package]] name = "vcpkg" version = "0.2.15" @@ -2196,16 +1360,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "walkdir" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" -dependencies = [ - "same-file", - "winapi-util", -] - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -2332,61 +1486,19 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" -[[package]] -name = "winapi-util" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" -dependencies = [ - "winapi", -] - [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows-core" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" -dependencies = [ - "windows-targets 0.52.5", -] - -[[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 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", + "windows-targets", ] [[package]] @@ -2395,46 +1507,28 @@ version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", "windows_i686_gnullvm", - "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", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] -[[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" @@ -2447,72 +1541,30 @@ 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 = "winnow" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0c976aaaa0e1f90dbb21e9587cdaf1d9679a1cde8875c0d6bd83ab96a208352" -dependencies = [ - "memchr", -] - -[[package]] -name = "yaml-rust" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" -dependencies = [ - "linked-hash-map", -] - [[package]] name = "zerocopy" version = "0.7.32" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 12f86f3a..de7a175e 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -7,22 +7,20 @@ edition = "2021" crate-type = ["staticlib", "cdylib"] [dev-dependencies] assert_matches = "1.5" - -[build-dependencies] -flutter_rust_bridge_codegen = { version = "= 2.0.0-dev.31" } anyhow = "1.0.68" [dependencies] -flutter_rust_bridge = "=2.0.0-dev.31" +flutter_rust_bridge = "=2.0.0" rand = "0.8" bdk = { version = "0.29.0", features = ["all-keys", "use-esplora-ureq", "sqlite-bundled", "rpc"] } -# bitcoinconsensus = {version = "0.106.0+26.0"} serde = "1.0.89" serde_json = "1.0.96" anyhow = "1.0.68" [profile.release] strip = true -opt-level = "z" +opt-level = 3 lto = true codegen-units = 1 panic = "abort" + + From df3e3086f9229d823f2658be01c4d39bde42787d Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 5 Jul 2024 20:21:00 -0400 Subject: [PATCH 02/35] refactor(ScriptBuf & Address): made as_string synchronous --- lib/src/generated/api/types.dart | 213 ++++++++++++++++--------------- rust/src/api/types.rs | 28 ++-- 2 files changed, 125 insertions(+), 116 deletions(-) diff --git a/lib/src/generated/api/types.dart b/lib/src/generated/api/types.dart index 380a2283..d4aaf99c 100644 --- a/lib/src/generated/api/types.dart +++ b/lib/src/generated/api/types.dart @@ -1,33 +1,16 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:freezed_annotation/freezed_annotation.dart' hide protected; part 'types.freezed.dart'; -// Rust type: RustOpaqueNom -@sealed -class BdkBitcoinAddress extends RustOpaque { - BdkBitcoinAddress.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - BdkBitcoinAddress.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_BdkBitcoinAddress, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddress, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddressPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `default`, `default`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `hash`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from` @freezed sealed class AddressIndex with _$AddressIndex { @@ -62,22 +45,22 @@ sealed class AddressIndex with _$AddressIndex { /// Local Wallet's Balance class Balance { - final int immature; + final BigInt immature; /// Unconfirmed UTXOs generated by a wallet tx - final int trustedPending; + final BigInt trustedPending; /// Unconfirmed UTXOs received from an external wallet - final int untrustedPending; + final BigInt untrustedPending; /// Confirmed and immediately spendable balance - final int confirmed; + final BigInt confirmed; /// Get sum of trusted_pending and confirmed coins - final int spendable; + final BigInt spendable; /// Get the whole balance visible to the wallet - final int total; + final BigInt total; const Balance({ required this.immature, @@ -111,44 +94,44 @@ class Balance { } class BdkAddress { - final BdkBitcoinAddress ptr; + final Address ptr; const BdkAddress({ required this.ptr, }); - Future asString({dynamic hint}) => - CApi.instance.api.bdkAddressAsString(that: this, hint: hint); + String asString() => core.instance.api.crateApiTypesBdkAddressAsString( + that: this, + ); static Future fromScript( - {required BdkScriptBuf script, - required Network network, - dynamic hint}) => - CApi.instance.api - .bdkAddressFromScript(script: script, network: network, hint: hint); + {required BdkScriptBuf script, required Network network}) => + core.instance.api + .crateApiTypesBdkAddressFromScript(script: script, network: network); static Future fromString( - {required String address, required Network network, dynamic hint}) => - CApi.instance.api - .bdkAddressFromString(address: address, network: network, hint: hint); + {required String address, required Network network}) => + core.instance.api.crateApiTypesBdkAddressFromString( + address: address, network: network); - Future isValidForNetwork({required Network network, dynamic hint}) => - CApi.instance.api.bdkAddressIsValidForNetwork( - that: this, network: network, hint: hint); + Future isValidForNetwork({required Network network}) => core + .instance.api + .crateApiTypesBdkAddressIsValidForNetwork(that: this, network: network); - ///The network on which this address is usable. - Future network({dynamic hint}) => - CApi.instance.api.bdkAddressNetwork(that: this, hint: hint); + Future network() => core.instance.api.crateApiTypesBdkAddressNetwork( + that: this, + ); - Future payload({dynamic hint}) => - CApi.instance.api.bdkAddressPayload(that: this, hint: hint); + Future payload() => core.instance.api.crateApiTypesBdkAddressPayload( + that: this, + ); - static Future script({required BdkAddress ptr, dynamic hint}) => - CApi.instance.api.bdkAddressScript(ptr: ptr, hint: hint); + static Future script({required BdkAddress ptr}) => + core.instance.api.crateApiTypesBdkAddressScript(ptr: ptr); - ///Creates a URI string bitcoin:address optimized to be encoded in QR codes. - Future toQrUri({dynamic hint}) => - CApi.instance.api.bdkAddressToQrUri(that: this, hint: hint); + String toQrUri() => core.instance.api.crateApiTypesBdkAddressToQrUri( + that: this, + ); @override int get hashCode => ptr.hashCode; @@ -168,18 +151,21 @@ class BdkScriptBuf { required this.bytes, }); + String asString() => core.instance.api.crateApiTypesBdkScriptBufAsString( + that: this, + ); + ///Creates a new empty script. - static Future empty({dynamic hint}) => - CApi.instance.api.bdkScriptBufEmpty(hint: hint); + static Future empty() => + core.instance.api.crateApiTypesBdkScriptBufEmpty(); - static Future fromHex({required String s, dynamic hint}) => - CApi.instance.api.bdkScriptBufFromHex(s: s, hint: hint); + static Future fromHex({required String s}) => + core.instance.api.crateApiTypesBdkScriptBufFromHex(s: s); ///Creates a new empty script with pre-allocated capacity. - static Future withCapacity( - {required int capacity, dynamic hint}) => - CApi.instance.api - .bdkScriptBufWithCapacity(capacity: capacity, hint: hint); + static Future withCapacity({required BigInt capacity}) => + core.instance.api + .crateApiTypesBdkScriptBufWithCapacity(capacity: capacity); @override int get hashCode => bytes.hashCode; @@ -193,91 +179,106 @@ class BdkScriptBuf { } class BdkTransaction { - final String inner; + final String s; const BdkTransaction({ - required this.inner, + required this.s, }); static Future fromBytes( - {required List transactionBytes, dynamic hint}) => - CApi.instance.api.bdkTransactionFromBytes( - transactionBytes: transactionBytes, hint: hint); + {required List transactionBytes}) => + core.instance.api.crateApiTypesBdkTransactionFromBytes( + transactionBytes: transactionBytes); ///List of transaction inputs. - Future> input({dynamic hint}) => - CApi.instance.api.bdkTransactionInput(that: this, hint: hint); + Future> input() => + core.instance.api.crateApiTypesBdkTransactionInput( + that: this, + ); ///Is this a coin base transaction? - Future isCoinBase({dynamic hint}) => - CApi.instance.api.bdkTransactionIsCoinBase(that: this, hint: hint); + Future isCoinBase() => + core.instance.api.crateApiTypesBdkTransactionIsCoinBase( + that: this, + ); ///Returns true if the transaction itself opted in to be BIP-125-replaceable (RBF). /// This does not cover the case where a transaction becomes replaceable due to ancestors being RBF. - Future isExplicitlyRbf({dynamic hint}) => - CApi.instance.api.bdkTransactionIsExplicitlyRbf(that: this, hint: hint); + Future isExplicitlyRbf() => + core.instance.api.crateApiTypesBdkTransactionIsExplicitlyRbf( + that: this, + ); ///Returns true if this transactions nLockTime is enabled (BIP-65 ). - Future isLockTimeEnabled({dynamic hint}) => - CApi.instance.api.bdkTransactionIsLockTimeEnabled(that: this, hint: hint); + Future isLockTimeEnabled() => + core.instance.api.crateApiTypesBdkTransactionIsLockTimeEnabled( + that: this, + ); ///Block height or timestamp. Transaction cannot be included in a block until this height/time. - Future lockTime({dynamic hint}) => - CApi.instance.api.bdkTransactionLockTime(that: this, hint: hint); + Future lockTime() => + core.instance.api.crateApiTypesBdkTransactionLockTime( + that: this, + ); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. static Future newInstance( {required int version, required LockTime lockTime, required List input, - required List output, - dynamic hint}) => - CApi.instance.api.bdkTransactionNew( - version: version, - lockTime: lockTime, - input: input, - output: output, - hint: hint); + required List output}) => + core.instance.api.crateApiTypesBdkTransactionNew( + version: version, lockTime: lockTime, input: input, output: output); ///List of transaction outputs. - Future> output({dynamic hint}) => - CApi.instance.api.bdkTransactionOutput(that: this, hint: hint); + Future> output() => + core.instance.api.crateApiTypesBdkTransactionOutput( + that: this, + ); ///Encodes an object into a vector. - Future serialize({dynamic hint}) => - CApi.instance.api.bdkTransactionSerialize(that: this, hint: hint); + Future serialize() => + core.instance.api.crateApiTypesBdkTransactionSerialize( + that: this, + ); ///Returns the regular byte-wise consensus-serialized size of this transaction. - Future size({dynamic hint}) => - CApi.instance.api.bdkTransactionSize(that: this, hint: hint); + Future size() => core.instance.api.crateApiTypesBdkTransactionSize( + that: this, + ); ///Computes the txid. For non-segwit transactions this will be identical to the output of wtxid(), /// but for segwit transactions, this will give the correct txid (not including witnesses) while wtxid will also hash witnesses. - Future txid({dynamic hint}) => - CApi.instance.api.bdkTransactionTxid(that: this, hint: hint); + Future txid() => core.instance.api.crateApiTypesBdkTransactionTxid( + that: this, + ); ///The protocol version, is currently expected to be 1 or 2 (BIP 68). - Future version({dynamic hint}) => - CApi.instance.api.bdkTransactionVersion(that: this, hint: hint); + Future version() => core.instance.api.crateApiTypesBdkTransactionVersion( + that: this, + ); ///Returns the “virtual size” (vsize) of this transaction. /// - Future vsize({dynamic hint}) => - CApi.instance.api.bdkTransactionVsize(that: this, hint: hint); + Future vsize() => core.instance.api.crateApiTypesBdkTransactionVsize( + that: this, + ); ///Returns the regular byte-wise consensus-serialized size of this transaction. - Future weight({dynamic hint}) => - CApi.instance.api.bdkTransactionWeight(that: this, hint: hint); + Future weight() => + core.instance.api.crateApiTypesBdkTransactionWeight( + that: this, + ); @override - int get hashCode => inner.hashCode; + int get hashCode => s.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is BdkTransaction && runtimeType == other.runtimeType && - inner == other.inner; + s == other.s; } ///Block height and timestamp of a block @@ -286,7 +287,7 @@ class BlockTime { final int height; ///Confirmation block timestamp - final int timestamp; + final BigInt timestamp; const BlockTime({ required this.height, @@ -309,6 +310,7 @@ enum ChangeSpendPolicy { changeAllowed, onlyChange, changeForbidden, + ; } @freezed @@ -369,6 +371,7 @@ enum KeychainKind { ///Internal, usually used for change outputs internalChain, + ; } ///Unspent outputs of this wallet @@ -425,6 +428,7 @@ enum Network { ///Bitcoin’s signet signet, + ; } /// A reference to a transaction output. @@ -507,7 +511,7 @@ sealed class RbfValue with _$RbfValue { /// A output script and an amount of satoshis. class ScriptAmount { final BdkScriptBuf script; - final int amount; + final BigInt amount; const ScriptAmount({ required this.script, @@ -667,17 +671,17 @@ class TransactionDetails { /// Received value (sats) /// Sum of owned outputs of this transaction. - final int received; + final BigInt received; /// Sent value (sats) /// Sum of owned inputs of this transaction. - final int sent; + final BigInt sent; /// Fee value (sats) if confirmed. /// The availability of the fee depends on the backend. It's never None with an Electrum /// Server backend, but it could be None with a Bitcoin RPC node without txindex that receive /// funds while offline. - final int? fee; + final BigInt? fee; /// If the transaction is confirmed, contains height and timestamp of the block containing the /// transaction, unconfirmed transaction contains `None`. @@ -748,7 +752,7 @@ class TxIn { ///A transaction output, which defines new coins to be created from old ones. class TxOut { /// The value of the output, in satoshis. - final int value; + final BigInt value; /// The address of the output. final BdkScriptBuf scriptPubkey; @@ -773,6 +777,7 @@ class TxOut { enum Variant { bech32, bech32M, + ; } enum WitnessVersion { @@ -826,6 +831,7 @@ enum WitnessVersion { /// Future (unsupported) version of witness program. v16, + ; } ///Type describing entropy length (aka word count) in the mnemonic @@ -838,4 +844,5 @@ enum WordCount { ///24 words mnemonic (256 bits entropy) words24, + ; } diff --git a/rust/src/api/types.rs b/rust/src/api/types.rs index b067a719..a5fcd599 100644 --- a/rust/src/api/types.rs +++ b/rust/src/api/types.rs @@ -3,6 +3,7 @@ use crate::frb_generated::RustOpaque; use bdk::bitcoin::consensus::{serialize, Decodable}; use bdk::bitcoin::hashes::hex::Error; use bdk::database::AnyDatabaseConfig; +use flutter_rust_bridge::frb; use serde::{Deserialize, Serialize}; use std::io::Cursor; use std::str::FromStr; @@ -136,6 +137,11 @@ impl BdkScriptBuf { Error::InvalidLength(e, f) => BdkError::Hex(HexError::InvalidLength(e, f)), }) } + #[frb(sync)] + pub fn as_string(&self) -> String { + let script: bdk::bitcoin::ScriptBuf = self.to_owned().into(); + script.to_string() + } } pub struct PsbtSigHashType { pub inner: u32, @@ -491,16 +497,11 @@ impl BdkAddress { } } - ///Creates a URI string bitcoin:address optimized to be encoded in QR codes. - // If the address is bech32, both the schema and the address become uppercase. If the address is base58, the schema is lowercase and the address is left mixed case. - // Quoting BIP 173 "inside QR codes uppercase SHOULD be used, as those permit the use of alphanumeric mode, which is 45% more compact than the normal byte mode." - // Note however that despite BIP21 explicitly stating that the bitcoin: prefix should be parsed as case-insensitive many wallets got this wrong and don't parse correctly. See compatibility table. - // If you want to avoid allocation you can use alternate display instead: - // write!(writer, "{:#}", address)?; + #[frb(sync)] pub fn to_qr_uri(&self) -> String { self.ptr.to_qr_uri() } - ///The network on which this address is usable. + pub fn network(&self) -> Network { self.ptr.network.into() } @@ -510,8 +511,9 @@ impl BdkAddress { } pub fn is_valid_for_network(&self, network: Network) -> bool { - let address_str = self.ptr.to_string(); - if let Ok(unchecked_address) = address_str + if let Ok(unchecked_address) = self + .ptr + .to_string() .parse::>() { unchecked_address.is_valid_for_network(network.into()) @@ -519,7 +521,7 @@ impl BdkAddress { false } } - + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } @@ -578,7 +580,7 @@ impl From for LockTime { #[derive(Debug, Clone, PartialEq, Eq)] pub struct BdkTransaction { - pub inner: String, + pub s: String, } impl BdkTransaction { pub fn new( @@ -680,7 +682,7 @@ impl TryFrom for BdkTransaction { type Error = BdkError; fn try_from(tx: bdk::bitcoin::Transaction) -> Result { Ok(BdkTransaction { - inner: serde_json::to_string(&tx) + s: serde_json::to_string(&tx) .map_err(|e| BdkError::InvalidTransaction(e.to_string()))?, }) } @@ -688,7 +690,7 @@ impl TryFrom for BdkTransaction { impl TryFrom<&BdkTransaction> for bdk::bitcoin::Transaction { type Error = BdkError; fn try_from(tx: &BdkTransaction) -> Result { - serde_json::from_str(&tx.inner).map_err(|e| BdkError::InvalidTransaction(e.to_string())) + serde_json::from_str(&tx.s).map_err(|e| BdkError::InvalidTransaction(e.to_string())) } } ///Configuration type for a SqliteDatabase database From 048e4d79ee02d78601af726a5284fc54ab46be64 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 5 Jul 2024 20:21:00 -0400 Subject: [PATCH 03/35] code cleanup --- lib/src/utils/utils.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/utils/utils.dart b/lib/src/utils/utils.dart index 08e25d0e..45294f8f 100644 --- a/lib/src/utils/utils.dart +++ b/lib/src/utils/utils.dart @@ -5,8 +5,8 @@ export 'exceptions.dart'; class Api { static Future initialize() async { try { - if (!CApi.instance.initialized) { - await CApi.init(); + if (!core.instance.initialized) { + await core.init(); } } catch (e) { throw Exception("Failed to initialize bdk-flutter"); From 456d790ed36308115a61323a123abc9cfa302964 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 5 Jul 2024 20:23:00 -0400 Subject: [PATCH 04/35] fix(Psbt): changed serialize to return raw binary data --- lib/src/generated/api/psbt.dart | 75 ++++++++++++++++----------------- rust/src/api/psbt.rs | 30 +++++++++---- 2 files changed, 57 insertions(+), 48 deletions(-) diff --git a/lib/src/generated/api/psbt.dart b/lib/src/generated/api/psbt.dart index 67a75d30..3598518d 100644 --- a/lib/src/generated/api/psbt.dart +++ b/lib/src/generated/api/psbt.dart @@ -1,32 +1,15 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'types.dart'; -// Rust type: RustOpaqueNom> -@sealed -class MutexPartiallySignedTransaction extends RustOpaque { - MutexPartiallySignedTransaction.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - MutexPartiallySignedTransaction.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi.instance.api - .rust_arc_increment_strong_count_MutexPartiallySignedTransaction, - rustArcDecrementStrongCount: CApi.instance.api - .rust_arc_decrement_strong_count_MutexPartiallySignedTransaction, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt`, `from` class BdkPsbt { final MutexPartiallySignedTransaction ptr; @@ -35,42 +18,56 @@ class BdkPsbt { required this.ptr, }); + String asString() => core.instance.api.crateApiPsbtBdkPsbtAsString( + that: this, + ); + /// Combines this PartiallySignedTransaction with other PSBT as described by BIP 174. /// /// In accordance with BIP 174 this function is commutative i.e., `A.combine(B) == B.combine(A)` static Future combine( - {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}) => - CApi.instance.api.bdkPsbtCombine(ptr: ptr, other: other, hint: hint); + {required BdkPsbt ptr, required BdkPsbt other}) => + core.instance.api.crateApiPsbtBdkPsbtCombine(ptr: ptr, other: other); /// Return the transaction. - static Future extractTx( - {required BdkPsbt ptr, dynamic hint}) => - CApi.instance.api.bdkPsbtExtractTx(ptr: ptr, hint: hint); + static Future extractTx({required BdkPsbt ptr}) => + core.instance.api.crateApiPsbtBdkPsbtExtractTx(ptr: ptr); /// The total transaction fee amount, sum of input amounts minus sum of output amounts, in Sats. /// If the PSBT is missing a TxOut for an input returns None. - Future feeAmount({dynamic hint}) => - CApi.instance.api.bdkPsbtFeeAmount(that: this, hint: hint); + Future feeAmount() => core.instance.api.crateApiPsbtBdkPsbtFeeAmount( + that: this, + ); /// The transaction's fee rate. This value will only be accurate if calculated AFTER the /// `PartiallySignedTransaction` is finalized and all witness/signature data is added to the /// transaction. /// If the PSBT is missing a TxOut for an input returns None. - Future feeRate({dynamic hint}) => - CApi.instance.api.bdkPsbtFeeRate(that: this, hint: hint); + Future feeRate() => core.instance.api.crateApiPsbtBdkPsbtFeeRate( + that: this, + ); - static Future fromStr({required String psbtBase64, dynamic hint}) => - CApi.instance.api.bdkPsbtFromStr(psbtBase64: psbtBase64, hint: hint); + static Future fromStr({required String psbtBase64}) => + core.instance.api.crateApiPsbtBdkPsbtFromStr(psbtBase64: psbtBase64); /// Serialize the PSBT data structure as a String of JSON. - Future jsonSerialize({dynamic hint}) => - CApi.instance.api.bdkPsbtJsonSerialize(that: this, hint: hint); - - Future serialize({dynamic hint}) => - CApi.instance.api.bdkPsbtSerialize(that: this, hint: hint); - - Future txid({dynamic hint}) => - CApi.instance.api.bdkPsbtTxid(that: this, hint: hint); + Future jsonSerialize() => + core.instance.api.crateApiPsbtBdkPsbtJsonSerialize( + that: this, + ); + + ///Serialize as raw binary data + Future serialize() => + core.instance.api.crateApiPsbtBdkPsbtSerialize( + that: this, + ); + + ///Computes the `Txid`. + /// Hashes the transaction excluding the segwit data (i. e. the marker, flag bytes, and the witness fields themselves). + /// For non-segwit transactions which do not have any segwit data, this will be equal to transaction.wtxid(). + Future txid() => core.instance.api.crateApiPsbtBdkPsbtTxid( + that: this, + ); @override int get hashCode => ptr.hashCode; diff --git a/rust/src/api/psbt.rs b/rust/src/api/psbt.rs index 713a1af2..d5fa9a6a 100644 --- a/rust/src/api/psbt.rs +++ b/rust/src/api/psbt.rs @@ -1,34 +1,41 @@ use crate::api::error::BdkError; use crate::api::types::{BdkTransaction, FeeRate}; use crate::frb_generated::RustOpaque; -pub use bdk::bitcoin::psbt::PartiallySignedTransaction; + use bdk::psbt::PsbtUtils; use std::ops::Deref; use std::str::FromStr; -use std::sync::Mutex; -#[derive(Debug, Clone)] +use flutter_rust_bridge::frb; + +#[derive(Debug)] pub struct BdkPsbt { - pub ptr: RustOpaque>, + pub ptr: RustOpaque>, } -impl From for BdkPsbt { - fn from(value: PartiallySignedTransaction) -> Self { +impl From for BdkPsbt { + fn from(value: bdk::bitcoin::psbt::PartiallySignedTransaction) -> Self { Self { - ptr: RustOpaque::new(Mutex::new(value)), + ptr: RustOpaque::new(std::sync::Mutex::new(value)), } } } impl BdkPsbt { pub fn from_str(psbt_base64: String) -> Result { - let psbt: PartiallySignedTransaction = PartiallySignedTransaction::from_str(&psbt_base64)?; + let psbt: bdk::bitcoin::psbt::PartiallySignedTransaction = + bdk::bitcoin::psbt::PartiallySignedTransaction::from_str(&psbt_base64)?; Ok(psbt.into()) } - pub fn serialize(&self) -> String { + + #[frb(sync)] + pub fn as_string(&self) -> String { let psbt = self.ptr.lock().unwrap().clone(); psbt.to_string() } + ///Computes the `Txid`. + /// Hashes the transaction excluding the segwit data (i. e. the marker, flag bytes, and the witness fields themselves). + /// For non-segwit transactions which do not have any segwit data, this will be equal to transaction.wtxid(). pub fn txid(&self) -> String { let tx = self.ptr.lock().unwrap().clone().extract_tx(); let txid = tx.txid(); @@ -65,6 +72,11 @@ impl BdkPsbt { self.ptr.lock().unwrap().fee_rate().map(|e| e.into()) } + ///Serialize as raw binary data + pub fn serialize(&self) -> Vec { + let psbt = self.ptr.lock().unwrap().clone(); + psbt.serialize() + } /// Serialize the PSBT data structure as a String of JSON. pub fn json_serialize(&self) -> String { let psbt = self.ptr.lock().unwrap(); From bfa314da09243cd4b36804bed8fc2a3cd5aefbf3 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 6 Jul 2024 20:23:00 -0400 Subject: [PATCH 05/35] code cleanup --- lib/src/generated/api/blockchain.dart | 82 ++++++++------------------- rust/src/api/blockchain.rs | 39 +++++++------ 2 files changed, 44 insertions(+), 77 deletions(-) diff --git a/lib/src/generated/api/blockchain.dart b/lib/src/generated/api/blockchain.dart index d66bd784..f4be0008 100644 --- a/lib/src/generated/api/blockchain.dart +++ b/lib/src/generated/api/blockchain.dart @@ -1,34 +1,18 @@ // 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 'error.dart'; -import 'package:collection/collection.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:freezed_annotation/freezed_annotation.dart' hide protected; import 'types.dart'; part 'blockchain.freezed.dart'; -// Rust type: RustOpaqueNom -@sealed -class AnyBlockchain extends RustOpaque { - AnyBlockchain.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - AnyBlockchain.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_AnyBlockchain, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_AnyBlockchain, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_AnyBlockchainPtr, - ); -} +// These functions are ignored because they are not marked as `pub`: `get_blockchain` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `from`, `from`, `from` @freezed sealed class Auth with _$Auth { @@ -60,27 +44,25 @@ class BdkBlockchain { required this.ptr, }); - Future broadcast( - {required BdkTransaction transaction, dynamic hint}) => - CApi.instance.api.bdkBlockchainBroadcast( - that: this, transaction: transaction, hint: hint); + Future broadcast({required BdkTransaction transaction}) => + core.instance.api.crateApiBlockchainBdkBlockchainBroadcast( + that: this, transaction: transaction); - Future estimateFee({required int target, dynamic hint}) => - CApi.instance.api - .bdkBlockchainEstimateFee(that: this, target: target, hint: hint); + static Future create( + {required BlockchainConfig blockchainConfig}) => + core.instance.api.crateApiBlockchainBdkBlockchainCreate( + blockchainConfig: blockchainConfig); - Future getBlockHash({required int height, dynamic hint}) => - CApi.instance.api - .bdkBlockchainGetBlockHash(that: this, height: height, hint: hint); + Future estimateFee({required BigInt target}) => core.instance.api + .crateApiBlockchainBdkBlockchainEstimateFee(that: this, target: target); - Future getHeight({dynamic hint}) => - CApi.instance.api.bdkBlockchainGetHeight(that: this, hint: hint); + Future getBlockHash({required int height}) => core.instance.api + .crateApiBlockchainBdkBlockchainGetBlockHash(that: this, height: height); - // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. - static Future newInstance( - {required BlockchainConfig blockchainConfig, dynamic hint}) => - CApi.instance.api - .bdkBlockchainNew(blockchainConfig: blockchainConfig, hint: hint); + Future getHeight() => + core.instance.api.crateApiBlockchainBdkBlockchainGetHeight( + that: this, + ); @override int get hashCode => ptr.hashCode; @@ -129,7 +111,7 @@ class ElectrumConfig { final int? timeout; /// Stop searching addresses for transactions after finding an unused gap of this length - final int stopGap; + final BigInt stopGap; /// Validate the domain when using SSL final bool validateDomain; @@ -184,10 +166,10 @@ class EsploraConfig { final int? concurrency; /// Stop searching addresses for transactions after finding an unused gap of this length. - final int stopGap; + final BigInt stopGap; /// Socket timeout. - final int? timeout; + final BigInt? timeout; const EsploraConfig({ required this.baseUrl, @@ -269,16 +251,16 @@ class RpcConfig { /// how the `importdescriptors` RPC calls are to be made. class RpcSyncParams { /// The minimum number of scripts to scan for on initial sync. - final int startScriptCount; + final BigInt startScriptCount; /// Time in unix seconds in which initial sync will start scanning from (0 to start from genesis). - final int startTime; + final BigInt startTime; /// Forces every sync to use `start_time` as import timestamp. final bool forceStartTime; /// RPC poll rate (in seconds) to get state updates. - final int pollRateSec; + final BigInt pollRateSec; const RpcSyncParams({ required this.startScriptCount, @@ -304,17 +286,3 @@ class RpcSyncParams { forceStartTime == other.forceStartTime && pollRateSec == other.pollRateSec; } - -class U8Array4 extends NonGrowableListView { - static const arraySize = 4; - - @internal - Uint8List get inner => _inner; - final Uint8List _inner; - - U8Array4(this._inner) - : assert(_inner.length == arraySize), - super(_inner); - - U8Array4.init() : this(Uint8List(arraySize)); -} diff --git a/rust/src/api/blockchain.rs b/rust/src/api/blockchain.rs index 13499f73..c80362e1 100644 --- a/rust/src/api/blockchain.rs +++ b/rust/src/api/blockchain.rs @@ -3,29 +3,29 @@ use crate::api::types::{BdkTransaction, FeeRate, Network}; use crate::api::error::BdkError; use crate::frb_generated::RustOpaque; use bdk::bitcoin::Transaction; -use bdk::blockchain; + use bdk::blockchain::esplora::EsploraBlockchainConfig; pub use bdk::blockchain::{ - rpc, AnyBlockchain, AnyBlockchainConfig, Blockchain, ConfigurableBlockchain, - ElectrumBlockchainConfig, GetBlockHash, GetHeight, + AnyBlockchainConfig, Blockchain, ConfigurableBlockchain, ElectrumBlockchainConfig, + GetBlockHash, GetHeight, }; + use std::path::PathBuf; -#[derive(Clone)] pub struct BdkBlockchain { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } -impl From for BdkBlockchain { - fn from(value: AnyBlockchain) -> Self { +impl From for BdkBlockchain { + fn from(value: bdk::blockchain::AnyBlockchain) -> Self { Self { ptr: RustOpaque::new(value), } } } impl BdkBlockchain { - pub fn new(blockchain_config: BlockchainConfig) -> Result { + pub fn create(blockchain_config: BlockchainConfig) -> Result { let any_blockchain_config = match blockchain_config { BlockchainConfig::Electrum { config } => { AnyBlockchainConfig::Electrum(ElectrumBlockchainConfig { @@ -47,7 +47,7 @@ impl BdkBlockchain { }) } BlockchainConfig::Rpc { config } => { - AnyBlockchainConfig::Rpc(blockchain::rpc::RpcConfig { + AnyBlockchainConfig::Rpc(bdk::blockchain::rpc::RpcConfig { url: config.url, auth: config.auth.into(), network: config.network.into(), @@ -56,15 +56,14 @@ impl BdkBlockchain { }) } }; - let blockchain = AnyBlockchain::from_config(&any_blockchain_config)?; + let blockchain = bdk::blockchain::AnyBlockchain::from_config(&any_blockchain_config)?; Ok(blockchain.into()) } - pub(crate) fn get_blockchain(&self) -> RustOpaque { + pub(crate) fn get_blockchain(&self) -> RustOpaque { self.ptr.clone() } - - pub fn broadcast(&self, transaction: BdkTransaction) -> Result { - let tx: Transaction = (&transaction).try_into()?; + pub fn broadcast(&self, transaction: &BdkTransaction) -> Result { + let tx: Transaction = transaction.try_into()?; self.get_blockchain().broadcast(&tx)?; Ok(tx.txid().to_string()) } @@ -142,14 +141,14 @@ pub enum Auth { }, } -impl From for rpc::Auth { +impl From for bdk::blockchain::rpc::Auth { fn from(auth: Auth) -> Self { match auth { - Auth::None => blockchain::rpc::Auth::None, + Auth::None => bdk::blockchain::rpc::Auth::None, Auth::UserPass { username, password } => { - blockchain::rpc::Auth::UserPass { username, password } + bdk::blockchain::rpc::Auth::UserPass { username, password } } - Auth::Cookie { file } => blockchain::rpc::Auth::Cookie { + Auth::Cookie { file } => bdk::blockchain::rpc::Auth::Cookie { file: PathBuf::from(file), }, } @@ -172,9 +171,9 @@ pub struct RpcSyncParams { pub poll_rate_sec: u64, } -impl From for blockchain::rpc::RpcSyncParams { +impl From for bdk::blockchain::rpc::RpcSyncParams { fn from(params: RpcSyncParams) -> Self { - blockchain::rpc::RpcSyncParams { + bdk::blockchain::rpc::RpcSyncParams { start_script_count: params.start_script_count as usize, start_time: params.start_time, force_start_time: params.force_start_time, From 18d3cd22e671b74923b621e81c01ad156965d91a Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 6 Jul 2024 20:24:00 -0400 Subject: [PATCH 06/35] refactor(Descriptor): made as_string synchronous --- lib/src/generated/api/descriptor.dart | 182 +++++++------------------- rust/src/api/descriptor.rs | 29 ++-- 2 files changed, 60 insertions(+), 151 deletions(-) diff --git a/lib/src/generated/api/descriptor.dart b/lib/src/generated/api/descriptor.dart index 4691f4dc..fe14e5ab 100644 --- a/lib/src/generated/api/descriptor.dart +++ b/lib/src/generated/api/descriptor.dart @@ -1,212 +1,118 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'error.dart'; import 'key.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'types.dart'; -// Rust type: RustOpaqueNom -@sealed -class ExtendedDescriptor extends RustOpaque { - ExtendedDescriptor.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ExtendedDescriptor.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_ExtendedDescriptor, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptor, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptorPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysDescriptorPublicKey extends RustOpaque { - KeysDescriptorPublicKey.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysDescriptorPublicKey.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi - .instance.api.rust_arc_increment_strong_count_KeysDescriptorPublicKey, - rustArcDecrementStrongCount: CApi - .instance.api.rust_arc_decrement_strong_count_KeysDescriptorPublicKey, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysDescriptorSecretKey extends RustOpaque { - KeysDescriptorSecretKey.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysDescriptorSecretKey.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi - .instance.api.rust_arc_increment_strong_count_KeysDescriptorSecretKey, - rustArcDecrementStrongCount: CApi - .instance.api.rust_arc_decrement_strong_count_KeysDescriptorSecretKey, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysKeyMap extends RustOpaque { - KeysKeyMap.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysKeyMap.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_KeysKeyMap, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_KeysKeyMap, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_KeysKeyMapPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt` class BdkDescriptor { final ExtendedDescriptor extendedDescriptor; - final KeysKeyMap keyMap; + final KeyMap keyMap; const BdkDescriptor({ required this.extendedDescriptor, required this.keyMap, }); - Future asString({dynamic hint}) => - CApi.instance.api.bdkDescriptorAsString(that: this, hint: hint); + String asString() => + core.instance.api.crateApiDescriptorBdkDescriptorAsString( + that: this, + ); - Future asStringPrivate({dynamic hint}) => - CApi.instance.api.bdkDescriptorAsStringPrivate(that: this, hint: hint); - - Future maxSatisfactionWeight({dynamic hint}) => CApi.instance.api - .bdkDescriptorMaxSatisfactionWeight(that: this, hint: hint); + Future maxSatisfactionWeight() => + core.instance.api.crateApiDescriptorBdkDescriptorMaxSatisfactionWeight( + that: this, + ); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. static Future newInstance( - {required String descriptor, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNew( - descriptor: descriptor, network: network, hint: hint); + {required String descriptor, required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNew( + descriptor: descriptor, network: network); static Future newBip44( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip44( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip44( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip44Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip44Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip44Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); static Future newBip49( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip49( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip49( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip49Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip49Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip49Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); static Future newBip84( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip84( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip84( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip84Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip84Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip84Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); static Future newBip86( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip86( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip86( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip86Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip86Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip86Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); + + String toStringPrivate() => + core.instance.api.crateApiDescriptorBdkDescriptorToStringPrivate( + that: this, + ); @override int get hashCode => extendedDescriptor.hashCode ^ keyMap.hashCode; diff --git a/rust/src/api/descriptor.rs b/rust/src/api/descriptor.rs index 9947278d..9066216b 100644 --- a/rust/src/api/descriptor.rs +++ b/rust/src/api/descriptor.rs @@ -4,18 +4,19 @@ use crate::api::types::{KeychainKind, Network}; use crate::frb_generated::RustOpaque; use bdk::bitcoin::bip32::Fingerprint; use bdk::bitcoin::key::Secp256k1; -pub use bdk::descriptor::{ExtendedDescriptor, IntoWalletDescriptor}; +pub use bdk::descriptor::IntoWalletDescriptor; pub use bdk::keys; use bdk::template::{ Bip44, Bip44Public, Bip49, Bip49Public, Bip84, Bip84Public, Bip86, Bip86Public, DescriptorTemplate, }; +use flutter_rust_bridge::frb; use std::str::FromStr; #[derive(Debug)] pub struct BdkDescriptor { - pub extended_descriptor: RustOpaque, - pub key_map: RustOpaque, + pub extended_descriptor: RustOpaque, + pub key_map: RustOpaque, } impl BdkDescriptor { @@ -34,7 +35,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -62,7 +63,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -89,7 +90,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -117,7 +118,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { @@ -145,7 +146,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -173,7 +174,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { @@ -201,7 +202,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { @@ -230,7 +231,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { @@ -253,12 +254,14 @@ impl BdkDescriptor { } } - pub fn as_string_private(&self) -> String { + #[frb(sync)] + pub fn to_string_private(&self) -> String { let descriptor = &self.extended_descriptor; - let key_map = &(*self.key_map); + let key_map = &*self.key_map; descriptor.to_string_with_secret(key_map) } + #[frb(sync)] pub fn as_string(&self) -> String { self.extended_descriptor.to_string() } From 2a32b1ee81965f16b55b1e76d1ef5642de39034f Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 6 Jul 2024 20:25:00 -0400 Subject: [PATCH 07/35] replaced int with BigInt --- lib/src/generated/api/error.dart | 32 +- lib/src/generated/api/error.freezed.dart | 1682 +++++++++++----------- 2 files changed, 896 insertions(+), 818 deletions(-) diff --git a/lib/src/generated/api/error.dart b/lib/src/generated/api/error.dart index 6b61d216..c02c6f53 100644 --- a/lib/src/generated/api/error.dart +++ b/lib/src/generated/api/error.dart @@ -1,15 +1,17 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:freezed_annotation/freezed_annotation.dart' hide protected; import 'types.dart'; part 'error.freezed.dart'; +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from` + @freezed sealed class AddressError with _$AddressError { const AddressError._(); @@ -35,10 +37,10 @@ sealed class AddressError with _$AddressError { const factory AddressError.malformedWitnessVersion() = AddressError_MalformedWitnessVersion; const factory AddressError.invalidWitnessProgramLength( - int field0, + BigInt field0, ) = AddressError_InvalidWitnessProgramLength; const factory AddressError.invalidSegwitV0ProgramLength( - int field0, + BigInt field0, ) = AddressError_InvalidSegwitV0ProgramLength; const factory AddressError.uncompressedPubkey() = AddressError_UncompressedPubkey; @@ -105,16 +107,16 @@ sealed class BdkError with _$BdkError implements FrbException { /// Output created is under the dust limit, 546 satoshis const factory BdkError.outputBelowDustLimit( - int field0, + BigInt field0, ) = BdkError_OutputBelowDustLimit; /// Wallet's UTXO set is not enough to cover recipient's requested plus fee const factory BdkError.insufficientFunds({ /// Sats needed for some transaction - required int needed, + required BigInt needed, /// Sats available for spending - required int available, + required BigInt available, }) = BdkError_InsufficientFunds; /// Branch and bound coin selection possible attempts with sufficiently big UTXO set could grow @@ -148,7 +150,7 @@ sealed class BdkError with _$BdkError implements FrbException { /// When bumping a tx the absolute fee requested is lower than replaced tx absolute fee const factory BdkError.feeTooLow({ /// Required fee absolute value (satoshi) - required int needed, + required BigInt needed, }) = BdkError_FeeTooLow; /// Node doesn't have data to estimate a fee rate @@ -242,8 +244,8 @@ sealed class BdkError with _$BdkError implements FrbException { /// sync attempt failed due to missing scripts in cache which /// are needed to satisfy `stop_gap`. const factory BdkError.missingCachedScripts( - int field0, - int field1, + BigInt field0, + BigInt field1, ) = BdkError_MissingCachedScripts; /// Electrum client error @@ -289,8 +291,8 @@ sealed class ConsensusError with _$ConsensusError { String field0, ) = ConsensusError_Io; const factory ConsensusError.oversizedVectorAllocation({ - required int requested, - required int max, + required BigInt requested, + required BigInt max, }) = ConsensusError_OversizedVectorAllocation; const factory ConsensusError.invalidChecksum({ required U8Array4 expected, @@ -351,10 +353,10 @@ sealed class HexError with _$HexError { int field0, ) = HexError_InvalidChar; const factory HexError.oddLengthString( - int field0, + BigInt field0, ) = HexError_OddLengthString; const factory HexError.invalidLength( - int field0, - int field1, + BigInt field0, + BigInt field1, ) = HexError_InvalidLength; } diff --git a/lib/src/generated/api/error.freezed.dart b/lib/src/generated/api/error.freezed.dart index d6360231..72d8139e 100644 --- a/lib/src/generated/api/error.freezed.dart +++ b/lib/src/generated/api/error.freezed.dart @@ -26,8 +26,8 @@ mixin _$AddressError { required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -46,8 +46,8 @@ mixin _$AddressError { TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -66,8 +66,8 @@ mixin _$AddressError { TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -256,8 +256,8 @@ class _$AddressError_Base58Impl extends AddressError_Base58 { required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -279,8 +279,8 @@ class _$AddressError_Base58Impl extends AddressError_Base58 { TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -302,8 +302,8 @@ class _$AddressError_Base58Impl extends AddressError_Base58 { TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -501,8 +501,8 @@ class _$AddressError_Bech32Impl extends AddressError_Bech32 { required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -524,8 +524,8 @@ class _$AddressError_Bech32Impl extends AddressError_Bech32 { TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -547,8 +547,8 @@ class _$AddressError_Bech32Impl extends AddressError_Bech32 { TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -724,8 +724,8 @@ class _$AddressError_EmptyBech32PayloadImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -747,8 +747,8 @@ class _$AddressError_EmptyBech32PayloadImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -770,8 +770,8 @@ class _$AddressError_EmptyBech32PayloadImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -980,8 +980,8 @@ class _$AddressError_InvalidBech32VariantImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1003,8 +1003,8 @@ class _$AddressError_InvalidBech32VariantImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1026,8 +1026,8 @@ class _$AddressError_InvalidBech32VariantImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1233,8 +1233,8 @@ class _$AddressError_InvalidWitnessVersionImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1256,8 +1256,8 @@ class _$AddressError_InvalidWitnessVersionImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1279,8 +1279,8 @@ class _$AddressError_InvalidWitnessVersionImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1484,8 +1484,8 @@ class _$AddressError_UnparsableWitnessVersionImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1507,8 +1507,8 @@ class _$AddressError_UnparsableWitnessVersionImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1530,8 +1530,8 @@ class _$AddressError_UnparsableWitnessVersionImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1708,8 +1708,8 @@ class _$AddressError_MalformedWitnessVersionImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1731,8 +1731,8 @@ class _$AddressError_MalformedWitnessVersionImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1754,8 +1754,8 @@ class _$AddressError_MalformedWitnessVersionImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1882,7 +1882,7 @@ abstract class _$$AddressError_InvalidWitnessProgramLengthImplCopyWith<$Res> { $Res Function(_$AddressError_InvalidWitnessProgramLengthImpl) then) = __$$AddressError_InvalidWitnessProgramLengthImplCopyWithImpl<$Res>; @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -1904,7 +1904,7 @@ class __$$AddressError_InvalidWitnessProgramLengthImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -1916,7 +1916,7 @@ class _$AddressError_InvalidWitnessProgramLengthImpl const _$AddressError_InvalidWitnessProgramLengthImpl(this.field0) : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -1954,8 +1954,8 @@ class _$AddressError_InvalidWitnessProgramLengthImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1977,8 +1977,8 @@ class _$AddressError_InvalidWitnessProgramLengthImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2000,8 +2000,8 @@ class _$AddressError_InvalidWitnessProgramLengthImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2116,11 +2116,11 @@ class _$AddressError_InvalidWitnessProgramLengthImpl } abstract class AddressError_InvalidWitnessProgramLength extends AddressError { - const factory AddressError_InvalidWitnessProgramLength(final int field0) = + const factory AddressError_InvalidWitnessProgramLength(final BigInt field0) = _$AddressError_InvalidWitnessProgramLengthImpl; const AddressError_InvalidWitnessProgramLength._() : super._(); - int get field0; + BigInt get field0; @JsonKey(ignore: true) _$$AddressError_InvalidWitnessProgramLengthImplCopyWith< _$AddressError_InvalidWitnessProgramLengthImpl> @@ -2134,7 +2134,7 @@ abstract class _$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWith<$Res> { $Res Function(_$AddressError_InvalidSegwitV0ProgramLengthImpl) then) = __$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWithImpl<$Res>; @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -2156,7 +2156,7 @@ class __$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -2169,7 +2169,7 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -2208,8 +2208,8 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2231,8 +2231,8 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2254,8 +2254,8 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2370,11 +2370,11 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl } abstract class AddressError_InvalidSegwitV0ProgramLength extends AddressError { - const factory AddressError_InvalidSegwitV0ProgramLength(final int field0) = + const factory AddressError_InvalidSegwitV0ProgramLength(final BigInt field0) = _$AddressError_InvalidSegwitV0ProgramLengthImpl; const AddressError_InvalidSegwitV0ProgramLength._() : super._(); - int get field0; + BigInt get field0; @JsonKey(ignore: true) _$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWith< _$AddressError_InvalidSegwitV0ProgramLengthImpl> @@ -2432,8 +2432,8 @@ class _$AddressError_UncompressedPubkeyImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2455,8 +2455,8 @@ class _$AddressError_UncompressedPubkeyImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2478,8 +2478,8 @@ class _$AddressError_UncompressedPubkeyImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2650,8 +2650,8 @@ class _$AddressError_ExcessiveScriptSizeImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2673,8 +2673,8 @@ class _$AddressError_ExcessiveScriptSizeImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2696,8 +2696,8 @@ class _$AddressError_ExcessiveScriptSizeImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2868,8 +2868,8 @@ class _$AddressError_UnrecognizedScriptImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2891,8 +2891,8 @@ class _$AddressError_UnrecognizedScriptImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2914,8 +2914,8 @@ class _$AddressError_UnrecognizedScriptImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -3113,8 +3113,8 @@ class _$AddressError_UnknownAddressTypeImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -3136,8 +3136,8 @@ class _$AddressError_UnknownAddressTypeImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -3159,8 +3159,8 @@ class _$AddressError_UnknownAddressTypeImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -3387,8 +3387,8 @@ class _$AddressError_NetworkValidationImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -3410,8 +3410,8 @@ class _$AddressError_NetworkValidationImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -3433,8 +3433,8 @@ class _$AddressError_NetworkValidationImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -3578,8 +3578,9 @@ mixin _$BdkError { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -3587,7 +3588,7 @@ mixin _$BdkError { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -3606,7 +3607,8 @@ mixin _$BdkError { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -3629,8 +3631,8 @@ mixin _$BdkError { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -3638,7 +3640,7 @@ mixin _$BdkError { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -3657,7 +3659,7 @@ mixin _$BdkError { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -3680,8 +3682,8 @@ mixin _$BdkError { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -3689,7 +3691,7 @@ mixin _$BdkError { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -3708,7 +3710,7 @@ mixin _$BdkError { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -4003,8 +4005,9 @@ class _$BdkError_HexImpl extends BdkError_Hex { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -4012,7 +4015,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -4031,7 +4034,8 @@ class _$BdkError_HexImpl extends BdkError_Hex { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -4057,8 +4061,8 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -4066,7 +4070,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -4085,7 +4089,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -4111,8 +4115,8 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -4120,7 +4124,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -4139,7 +4143,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -4444,8 +4448,9 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -4453,7 +4458,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -4472,7 +4477,8 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -4498,8 +4504,8 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -4507,7 +4513,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -4526,7 +4532,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -4552,8 +4558,8 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -4561,7 +4567,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -4580,7 +4586,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -4878,8 +4884,9 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -4887,7 +4894,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -4906,7 +4913,8 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -4932,8 +4940,8 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -4941,7 +4949,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -4960,7 +4968,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -4986,8 +4994,8 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -4995,7 +5003,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -5014,7 +5022,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -5320,8 +5328,9 @@ class _$BdkError_AddressImpl extends BdkError_Address { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -5329,7 +5338,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -5348,7 +5357,8 @@ class _$BdkError_AddressImpl extends BdkError_Address { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -5374,8 +5384,8 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -5383,7 +5393,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -5402,7 +5412,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -5428,8 +5438,8 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -5437,7 +5447,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -5456,7 +5466,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -5762,8 +5772,9 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -5771,7 +5782,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -5790,7 +5801,8 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -5816,8 +5828,8 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -5825,7 +5837,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -5844,7 +5856,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -5870,8 +5882,8 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -5879,7 +5891,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -5898,7 +5910,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -6197,8 +6209,9 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -6206,7 +6219,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -6225,7 +6238,8 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -6251,8 +6265,8 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -6260,7 +6274,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -6279,7 +6293,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -6305,8 +6319,8 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -6314,7 +6328,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -6333,7 +6347,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -6629,8 +6643,9 @@ class _$BdkError_GenericImpl extends BdkError_Generic { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -6638,7 +6653,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -6657,7 +6672,8 @@ class _$BdkError_GenericImpl extends BdkError_Generic { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -6683,8 +6699,8 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -6692,7 +6708,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -6711,7 +6727,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -6737,8 +6753,8 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -6746,7 +6762,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -6765,7 +6781,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -7038,8 +7054,9 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -7047,7 +7064,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -7066,7 +7083,8 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -7092,8 +7110,8 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -7101,7 +7119,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -7120,7 +7138,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -7146,8 +7164,8 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -7155,7 +7173,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -7174,7 +7192,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -7440,8 +7458,9 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -7449,7 +7468,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -7468,7 +7487,8 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -7494,8 +7514,8 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -7503,7 +7523,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -7522,7 +7542,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -7548,8 +7568,8 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -7557,7 +7577,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -7576,7 +7596,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -7842,8 +7862,9 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -7851,7 +7872,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -7870,7 +7891,8 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -7896,8 +7918,8 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -7905,7 +7927,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -7924,7 +7946,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -7950,8 +7972,8 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -7959,7 +7981,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -7978,7 +8000,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -8200,7 +8222,7 @@ abstract class _$$BdkError_OutputBelowDustLimitImplCopyWith<$Res> { $Res Function(_$BdkError_OutputBelowDustLimitImpl) then) = __$$BdkError_OutputBelowDustLimitImplCopyWithImpl<$Res>; @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -8221,7 +8243,7 @@ class __$$BdkError_OutputBelowDustLimitImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -8233,7 +8255,7 @@ class _$BdkError_OutputBelowDustLimitImpl const _$BdkError_OutputBelowDustLimitImpl(this.field0) : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -8272,8 +8294,9 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -8281,7 +8304,7 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -8300,7 +8323,8 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -8326,8 +8350,8 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -8335,7 +8359,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -8354,7 +8378,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -8380,8 +8404,8 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -8389,7 +8413,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -8408,7 +8432,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -8619,11 +8643,11 @@ class _$BdkError_OutputBelowDustLimitImpl } abstract class BdkError_OutputBelowDustLimit extends BdkError { - const factory BdkError_OutputBelowDustLimit(final int field0) = + const factory BdkError_OutputBelowDustLimit(final BigInt field0) = _$BdkError_OutputBelowDustLimitImpl; const BdkError_OutputBelowDustLimit._() : super._(); - int get field0; + BigInt get field0; @JsonKey(ignore: true) _$$BdkError_OutputBelowDustLimitImplCopyWith< _$BdkError_OutputBelowDustLimitImpl> @@ -8637,7 +8661,7 @@ abstract class _$$BdkError_InsufficientFundsImplCopyWith<$Res> { $Res Function(_$BdkError_InsufficientFundsImpl) then) = __$$BdkError_InsufficientFundsImplCopyWithImpl<$Res>; @useResult - $Res call({int needed, int available}); + $Res call({BigInt needed, BigInt available}); } /// @nodoc @@ -8659,11 +8683,11 @@ class __$$BdkError_InsufficientFundsImplCopyWithImpl<$Res> needed: null == needed ? _value.needed : needed // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, available: null == available ? _value.available : available // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -8677,11 +8701,11 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { /// Sats needed for some transaction @override - final int needed; + final BigInt needed; /// Sats available for spending @override - final int available; + final BigInt available; @override String toString() { @@ -8721,8 +8745,9 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -8730,7 +8755,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -8749,7 +8774,8 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -8775,8 +8801,8 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -8784,7 +8810,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -8803,7 +8829,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -8829,8 +8855,8 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -8838,7 +8864,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -8857,7 +8883,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -9069,15 +9095,15 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { abstract class BdkError_InsufficientFunds extends BdkError { const factory BdkError_InsufficientFunds( - {required final int needed, - required final int available}) = _$BdkError_InsufficientFundsImpl; + {required final BigInt needed, + required final BigInt available}) = _$BdkError_InsufficientFundsImpl; const BdkError_InsufficientFunds._() : super._(); /// Sats needed for some transaction - int get needed; + BigInt get needed; /// Sats available for spending - int get available; + BigInt get available; @JsonKey(ignore: true) _$$BdkError_InsufficientFundsImplCopyWith<_$BdkError_InsufficientFundsImpl> get copyWith => throw _privateConstructorUsedError; @@ -9135,8 +9161,9 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -9144,7 +9171,7 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -9163,7 +9190,8 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -9189,8 +9217,8 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -9198,7 +9226,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -9217,7 +9245,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -9243,8 +9271,8 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -9252,7 +9280,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -9271,7 +9299,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -9538,8 +9566,9 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -9547,7 +9576,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -9566,7 +9595,8 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -9592,8 +9622,8 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -9601,7 +9631,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -9620,7 +9650,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -9646,8 +9676,8 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -9655,7 +9685,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -9674,7 +9704,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -9938,8 +9968,9 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -9947,7 +9978,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -9966,7 +9997,8 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -9992,8 +10024,8 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -10001,7 +10033,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -10020,7 +10052,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -10046,8 +10078,8 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -10055,7 +10087,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -10074,7 +10106,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -10340,8 +10372,9 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -10349,7 +10382,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -10368,7 +10401,8 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -10394,8 +10428,8 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -10403,7 +10437,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -10422,7 +10456,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -10448,8 +10482,8 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -10457,7 +10491,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -10476,7 +10510,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -10744,8 +10778,9 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -10753,7 +10788,7 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -10772,7 +10807,8 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -10798,8 +10834,8 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -10807,7 +10843,7 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -10826,7 +10862,7 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -10852,8 +10888,8 @@ class _$BdkError_TransactionConfirmedImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -10861,7 +10897,7 @@ class _$BdkError_TransactionConfirmedImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -10880,7 +10916,7 @@ class _$BdkError_TransactionConfirmedImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -11149,8 +11185,9 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -11158,7 +11195,7 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -11177,7 +11214,8 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -11203,8 +11241,8 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -11212,7 +11250,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -11231,7 +11269,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -11257,8 +11295,8 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -11266,7 +11304,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -11285,7 +11323,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -11579,8 +11617,9 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -11588,7 +11627,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -11607,7 +11646,8 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -11633,8 +11673,8 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -11642,7 +11682,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -11661,7 +11701,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -11687,8 +11727,8 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -11696,7 +11736,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -11715,7 +11755,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -11943,7 +11983,7 @@ abstract class _$$BdkError_FeeTooLowImplCopyWith<$Res> { $Res Function(_$BdkError_FeeTooLowImpl) then) = __$$BdkError_FeeTooLowImplCopyWithImpl<$Res>; @useResult - $Res call({int needed}); + $Res call({BigInt needed}); } /// @nodoc @@ -11963,7 +12003,7 @@ class __$$BdkError_FeeTooLowImplCopyWithImpl<$Res> needed: null == needed ? _value.needed : needed // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -11975,7 +12015,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { /// Required fee absolute value (satoshi) @override - final int needed; + final BigInt needed; @override String toString() { @@ -12013,8 +12053,9 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -12022,7 +12063,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -12041,7 +12082,8 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -12067,8 +12109,8 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -12076,7 +12118,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -12095,7 +12137,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -12121,8 +12163,8 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -12130,7 +12172,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -12149,7 +12191,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -12360,12 +12402,12 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { } abstract class BdkError_FeeTooLow extends BdkError { - const factory BdkError_FeeTooLow({required final int needed}) = + const factory BdkError_FeeTooLow({required final BigInt needed}) = _$BdkError_FeeTooLowImpl; const BdkError_FeeTooLow._() : super._(); /// Required fee absolute value (satoshi) - int get needed; + BigInt get needed; @JsonKey(ignore: true) _$$BdkError_FeeTooLowImplCopyWith<_$BdkError_FeeTooLowImpl> get copyWith => throw _privateConstructorUsedError; @@ -12422,8 +12464,9 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -12431,7 +12474,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -12450,7 +12493,8 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -12476,8 +12520,8 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -12485,7 +12529,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -12504,7 +12548,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -12530,8 +12574,8 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -12539,7 +12583,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -12558,7 +12602,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -12851,8 +12895,9 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -12860,7 +12905,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -12879,7 +12924,8 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -12905,8 +12951,8 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -12914,7 +12960,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -12933,7 +12979,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -12959,8 +13005,8 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -12968,7 +13014,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -12987,7 +13033,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -13282,8 +13328,9 @@ class _$BdkError_KeyImpl extends BdkError_Key { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -13291,7 +13338,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -13310,7 +13357,8 @@ class _$BdkError_KeyImpl extends BdkError_Key { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -13336,8 +13384,8 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -13345,7 +13393,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -13364,7 +13412,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -13390,8 +13438,8 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -13399,7 +13447,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -13418,7 +13466,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -13689,8 +13737,9 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -13698,7 +13747,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -13717,7 +13766,8 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -13743,8 +13793,8 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -13752,7 +13802,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -13771,7 +13821,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -13797,8 +13847,8 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -13806,7 +13856,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -13825,7 +13875,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -14119,8 +14169,9 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -14128,7 +14179,7 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -14147,7 +14198,8 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -14173,8 +14225,8 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -14182,7 +14234,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -14201,7 +14253,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -14227,8 +14279,8 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -14236,7 +14288,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -14255,7 +14307,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -14556,8 +14608,9 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -14565,7 +14618,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -14584,7 +14637,8 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -14610,8 +14664,8 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -14619,7 +14673,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -14638,7 +14692,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -14664,8 +14718,8 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -14673,7 +14727,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -14692,7 +14746,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -14989,8 +15043,9 @@ class _$BdkError_SignerImpl extends BdkError_Signer { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -14998,7 +15053,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -15017,7 +15072,8 @@ class _$BdkError_SignerImpl extends BdkError_Signer { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -15043,8 +15099,8 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -15052,7 +15108,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -15071,7 +15127,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -15097,8 +15153,8 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -15106,7 +15162,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -15125,7 +15181,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -15436,8 +15492,9 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -15445,7 +15502,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -15464,7 +15521,8 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -15490,8 +15548,8 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -15499,7 +15557,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -15518,7 +15576,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -15544,8 +15602,8 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -15553,7 +15611,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -15572,7 +15630,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -15875,8 +15933,9 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -15884,7 +15943,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -15903,7 +15962,8 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -15929,8 +15989,8 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -15938,7 +15998,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -15957,7 +16017,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -15983,8 +16043,8 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -15992,7 +16052,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -16011,7 +16071,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -16307,8 +16367,9 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -16316,7 +16377,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -16335,7 +16396,8 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -16361,8 +16423,8 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -16370,7 +16432,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -16389,7 +16451,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -16415,8 +16477,8 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -16424,7 +16486,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -16443,7 +16505,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -16738,8 +16800,9 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -16747,7 +16810,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -16766,7 +16829,8 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -16792,8 +16856,8 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -16801,7 +16865,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -16820,7 +16884,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -16846,8 +16910,8 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -16855,7 +16919,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -16874,7 +16938,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -17172,8 +17236,9 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -17181,7 +17246,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -17200,7 +17265,8 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -17226,8 +17292,8 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -17235,7 +17301,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -17254,7 +17320,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -17280,8 +17346,8 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -17289,7 +17355,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -17308,7 +17374,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -17604,8 +17670,9 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -17613,7 +17680,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -17632,7 +17699,8 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -17658,8 +17726,8 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -17667,7 +17735,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -17686,7 +17754,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -17712,8 +17780,8 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -17721,7 +17789,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -17740,7 +17808,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -18035,8 +18103,9 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -18044,7 +18113,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -18063,7 +18132,8 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -18089,8 +18159,8 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -18098,7 +18168,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -18117,7 +18187,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -18143,8 +18213,8 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -18152,7 +18222,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -18171,7 +18241,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -18466,8 +18536,9 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -18475,7 +18546,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -18494,7 +18565,8 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -18520,8 +18592,8 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -18529,7 +18601,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -18548,7 +18620,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -18574,8 +18646,8 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -18583,7 +18655,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -18602,7 +18674,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -18897,8 +18969,9 @@ class _$BdkError_JsonImpl extends BdkError_Json { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -18906,7 +18979,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -18925,7 +18998,8 @@ class _$BdkError_JsonImpl extends BdkError_Json { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -18951,8 +19025,8 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -18960,7 +19034,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -18979,7 +19053,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -19005,8 +19079,8 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -19014,7 +19088,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -19033,7 +19107,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -19327,8 +19401,9 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -19336,7 +19411,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -19355,7 +19430,8 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -19381,8 +19457,8 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -19390,7 +19466,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -19409,7 +19485,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -19435,8 +19511,8 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -19444,7 +19520,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -19463,7 +19539,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -19758,8 +19834,9 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -19767,7 +19844,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -19786,7 +19863,8 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -19812,8 +19890,8 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -19821,7 +19899,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -19840,7 +19918,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -19866,8 +19944,8 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -19875,7 +19953,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -19894,7 +19972,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -20122,7 +20200,7 @@ abstract class _$$BdkError_MissingCachedScriptsImplCopyWith<$Res> { $Res Function(_$BdkError_MissingCachedScriptsImpl) then) = __$$BdkError_MissingCachedScriptsImplCopyWithImpl<$Res>; @useResult - $Res call({int field0, int field1}); + $Res call({BigInt field0, BigInt field1}); } /// @nodoc @@ -20144,11 +20222,11 @@ class __$$BdkError_MissingCachedScriptsImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, null == field1 ? _value.field1 : field1 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -20161,9 +20239,9 @@ class _$BdkError_MissingCachedScriptsImpl : super._(); @override - final int field0; + final BigInt field0; @override - final int field1; + final BigInt field1; @override String toString() { @@ -20203,8 +20281,9 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -20212,7 +20291,7 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -20231,7 +20310,8 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -20257,8 +20337,8 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -20266,7 +20346,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -20285,7 +20365,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -20311,8 +20391,8 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -20320,7 +20400,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -20339,7 +20419,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -20551,11 +20631,12 @@ class _$BdkError_MissingCachedScriptsImpl abstract class BdkError_MissingCachedScripts extends BdkError { const factory BdkError_MissingCachedScripts( - final int field0, final int field1) = _$BdkError_MissingCachedScriptsImpl; + final BigInt field0, final BigInt field1) = + _$BdkError_MissingCachedScriptsImpl; const BdkError_MissingCachedScripts._() : super._(); - int get field0; - int get field1; + BigInt get field0; + BigInt get field1; @JsonKey(ignore: true) _$$BdkError_MissingCachedScriptsImplCopyWith< _$BdkError_MissingCachedScriptsImpl> @@ -20637,8 +20718,9 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -20646,7 +20728,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -20665,7 +20747,8 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -20691,8 +20774,8 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -20700,7 +20783,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -20719,7 +20802,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -20745,8 +20828,8 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -20754,7 +20837,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -20773,7 +20856,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -21069,8 +21152,9 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -21078,7 +21162,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -21097,7 +21181,8 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -21123,8 +21208,8 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -21132,7 +21217,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -21151,7 +21236,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -21177,8 +21262,8 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -21186,7 +21271,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -21205,7 +21290,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -21499,8 +21584,9 @@ class _$BdkError_SledImpl extends BdkError_Sled { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -21508,7 +21594,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -21527,7 +21613,8 @@ class _$BdkError_SledImpl extends BdkError_Sled { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -21553,8 +21640,8 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -21562,7 +21649,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -21581,7 +21668,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -21607,8 +21694,8 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -21616,7 +21703,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -21635,7 +21722,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -21929,8 +22016,9 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -21938,7 +22026,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -21957,7 +22045,8 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -21983,8 +22072,8 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -21992,7 +22081,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -22011,7 +22100,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -22037,8 +22126,8 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -22046,7 +22135,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -22065,7 +22154,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -22360,8 +22449,9 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -22369,7 +22459,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -22388,7 +22478,8 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -22414,8 +22505,8 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -22423,7 +22514,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -22442,7 +22533,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -22468,8 +22559,8 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -22477,7 +22568,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -22496,7 +22587,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -22793,8 +22884,9 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -22802,7 +22894,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -22821,7 +22913,8 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -22847,8 +22940,8 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -22856,7 +22949,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -22875,7 +22968,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -22901,8 +22994,8 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -22910,7 +23003,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -22929,7 +23022,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -23227,8 +23320,9 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -23236,7 +23330,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -23255,7 +23349,8 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -23281,8 +23376,8 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -23290,7 +23385,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -23309,7 +23404,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -23335,8 +23430,8 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -23344,7 +23439,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -23363,7 +23458,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -23661,8 +23756,9 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -23670,7 +23766,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -23689,7 +23785,8 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -23715,8 +23812,8 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -23724,7 +23821,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -23743,7 +23840,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -23769,8 +23866,8 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -23778,7 +23875,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -23797,7 +23894,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -24023,7 +24120,8 @@ mixin _$ConsensusError { @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24034,7 +24132,7 @@ mixin _$ConsensusError { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24044,7 +24142,7 @@ mixin _$ConsensusError { @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24177,7 +24275,8 @@ class _$ConsensusError_IoImpl extends ConsensusError_Io { @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24191,7 +24290,7 @@ class _$ConsensusError_IoImpl extends ConsensusError_Io { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24204,7 +24303,7 @@ class _$ConsensusError_IoImpl extends ConsensusError_Io { @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24287,7 +24386,7 @@ abstract class _$$ConsensusError_OversizedVectorAllocationImplCopyWith<$Res> { $Res Function(_$ConsensusError_OversizedVectorAllocationImpl) then) = __$$ConsensusError_OversizedVectorAllocationImplCopyWithImpl<$Res>; @useResult - $Res call({int requested, int max}); + $Res call({BigInt requested, BigInt max}); } /// @nodoc @@ -24310,11 +24409,11 @@ class __$$ConsensusError_OversizedVectorAllocationImplCopyWithImpl<$Res> requested: null == requested ? _value.requested : requested // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, max: null == max ? _value.max : max // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -24328,9 +24427,9 @@ class _$ConsensusError_OversizedVectorAllocationImpl : super._(); @override - final int requested; + final BigInt requested; @override - final int max; + final BigInt max; @override String toString() { @@ -24363,7 +24462,8 @@ class _$ConsensusError_OversizedVectorAllocationImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24377,7 +24477,7 @@ class _$ConsensusError_OversizedVectorAllocationImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24390,7 +24490,7 @@ class _$ConsensusError_OversizedVectorAllocationImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24457,12 +24557,12 @@ class _$ConsensusError_OversizedVectorAllocationImpl abstract class ConsensusError_OversizedVectorAllocation extends ConsensusError { const factory ConsensusError_OversizedVectorAllocation( - {required final int requested, - required final int max}) = _$ConsensusError_OversizedVectorAllocationImpl; + {required final BigInt requested, required final BigInt max}) = + _$ConsensusError_OversizedVectorAllocationImpl; const ConsensusError_OversizedVectorAllocation._() : super._(); - int get requested; - int get max; + BigInt get requested; + BigInt get max; @JsonKey(ignore: true) _$$ConsensusError_OversizedVectorAllocationImplCopyWith< _$ConsensusError_OversizedVectorAllocationImpl> @@ -24553,7 +24653,8 @@ class _$ConsensusError_InvalidChecksumImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24567,7 +24668,7 @@ class _$ConsensusError_InvalidChecksumImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24580,7 +24681,7 @@ class _$ConsensusError_InvalidChecksumImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24703,7 +24804,8 @@ class _$ConsensusError_NonMinimalVarIntImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24717,7 +24819,7 @@ class _$ConsensusError_NonMinimalVarIntImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24730,7 +24832,7 @@ class _$ConsensusError_NonMinimalVarIntImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24869,7 +24971,8 @@ class _$ConsensusError_ParseFailedImpl extends ConsensusError_ParseFailed { @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24883,7 +24986,7 @@ class _$ConsensusError_ParseFailedImpl extends ConsensusError_ParseFailed { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24896,7 +24999,7 @@ class _$ConsensusError_ParseFailedImpl extends ConsensusError_ParseFailed { @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -25043,7 +25146,8 @@ class _$ConsensusError_UnsupportedSegwitFlagImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -25057,7 +25161,7 @@ class _$ConsensusError_UnsupportedSegwitFlagImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -25070,7 +25174,7 @@ class _$ConsensusError_UnsupportedSegwitFlagImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -27660,26 +27764,26 @@ abstract class DescriptorError_Hex extends DescriptorError { /// @nodoc mixin _$HexError { - int get field0 => throw _privateConstructorUsedError; + Object get field0 => throw _privateConstructorUsedError; @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -27705,18 +27809,12 @@ mixin _$HexError { required TResult orElse(), }) => throw _privateConstructorUsedError; - - @JsonKey(ignore: true) - $HexErrorCopyWith get copyWith => - throw _privateConstructorUsedError; } /// @nodoc abstract class $HexErrorCopyWith<$Res> { factory $HexErrorCopyWith(HexError value, $Res Function(HexError) then) = _$HexErrorCopyWithImpl<$Res, HexError>; - @useResult - $Res call({int field0}); } /// @nodoc @@ -27728,28 +27826,13 @@ class _$HexErrorCopyWithImpl<$Res, $Val extends HexError> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? field0 = null, - }) { - return _then(_value.copyWith( - field0: null == field0 - ? _value.field0 - : field0 // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } } /// @nodoc -abstract class _$$HexError_InvalidCharImplCopyWith<$Res> - implements $HexErrorCopyWith<$Res> { +abstract class _$$HexError_InvalidCharImplCopyWith<$Res> { factory _$$HexError_InvalidCharImplCopyWith(_$HexError_InvalidCharImpl value, $Res Function(_$HexError_InvalidCharImpl) then) = __$$HexError_InvalidCharImplCopyWithImpl<$Res>; - @override @useResult $Res call({int field0}); } @@ -27812,8 +27895,8 @@ class _$HexError_InvalidCharImpl extends HexError_InvalidChar { @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) { return invalidChar(field0); } @@ -27822,8 +27905,8 @@ class _$HexError_InvalidCharImpl extends HexError_InvalidChar { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) { return invalidChar?.call(field0); } @@ -27832,8 +27915,8 @@ class _$HexError_InvalidCharImpl extends HexError_InvalidChar { @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) { if (invalidChar != null) { @@ -27884,22 +27967,19 @@ abstract class HexError_InvalidChar extends HexError { @override int get field0; - @override @JsonKey(ignore: true) _$$HexError_InvalidCharImplCopyWith<_$HexError_InvalidCharImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$HexError_OddLengthStringImplCopyWith<$Res> - implements $HexErrorCopyWith<$Res> { +abstract class _$$HexError_OddLengthStringImplCopyWith<$Res> { factory _$$HexError_OddLengthStringImplCopyWith( _$HexError_OddLengthStringImpl value, $Res Function(_$HexError_OddLengthStringImpl) then) = __$$HexError_OddLengthStringImplCopyWithImpl<$Res>; - @override @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -27920,7 +28000,7 @@ class __$$HexError_OddLengthStringImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -27931,7 +28011,7 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { const _$HexError_OddLengthStringImpl(this.field0) : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -27960,8 +28040,8 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) { return oddLengthString(field0); } @@ -27970,8 +28050,8 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) { return oddLengthString?.call(field0); } @@ -27980,8 +28060,8 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) { if (oddLengthString != null) { @@ -28026,28 +28106,25 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { } abstract class HexError_OddLengthString extends HexError { - const factory HexError_OddLengthString(final int field0) = + const factory HexError_OddLengthString(final BigInt field0) = _$HexError_OddLengthStringImpl; const HexError_OddLengthString._() : super._(); @override - int get field0; - @override + BigInt get field0; @JsonKey(ignore: true) _$$HexError_OddLengthStringImplCopyWith<_$HexError_OddLengthStringImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$HexError_InvalidLengthImplCopyWith<$Res> - implements $HexErrorCopyWith<$Res> { +abstract class _$$HexError_InvalidLengthImplCopyWith<$Res> { factory _$$HexError_InvalidLengthImplCopyWith( _$HexError_InvalidLengthImpl value, $Res Function(_$HexError_InvalidLengthImpl) then) = __$$HexError_InvalidLengthImplCopyWithImpl<$Res>; - @override @useResult - $Res call({int field0, int field1}); + $Res call({BigInt field0, BigInt field1}); } /// @nodoc @@ -28069,11 +28146,11 @@ class __$$HexError_InvalidLengthImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, null == field1 ? _value.field1 : field1 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -28084,9 +28161,9 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { const _$HexError_InvalidLengthImpl(this.field0, this.field1) : super._(); @override - final int field0; + final BigInt field0; @override - final int field1; + final BigInt field1; @override String toString() { @@ -28116,8 +28193,8 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) { return invalidLength(field0, field1); } @@ -28126,8 +28203,8 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) { return invalidLength?.call(field0, field1); } @@ -28136,8 +28213,8 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) { if (invalidLength != null) { @@ -28182,14 +28259,13 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { } abstract class HexError_InvalidLength extends HexError { - const factory HexError_InvalidLength(final int field0, final int field1) = - _$HexError_InvalidLengthImpl; + const factory HexError_InvalidLength( + final BigInt field0, final BigInt field1) = _$HexError_InvalidLengthImpl; const HexError_InvalidLength._() : super._(); @override - int get field0; - int get field1; - @override + BigInt get field0; + BigInt get field1; @JsonKey(ignore: true) _$$HexError_InvalidLengthImplCopyWith<_$HexError_InvalidLengthImpl> get copyWith => throw _privateConstructorUsedError; From 3635b85f0d49180e7cf73835a9ae74c448199c65 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 6 Jul 2024 20:25:00 -0400 Subject: [PATCH 08/35] refactor: made all as_string() synchronous --- lib/src/generated/api/key.dart | 150 +++++++++++++-------------------- rust/src/api/key.rs | 20 +++-- 2 files changed, 71 insertions(+), 99 deletions(-) diff --git a/lib/src/generated/api/key.dart b/lib/src/generated/api/key.dart index 41cd51f9..5b402d2c 100644 --- a/lib/src/generated/api/key.dart +++ b/lib/src/generated/api/key.dart @@ -1,63 +1,29 @@ // 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 'blockchain.dart'; -import 'descriptor.dart'; +import '../lib.dart'; import 'error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'types.dart'; -// Rust type: RustOpaqueNom -@sealed -class BitcoinBip32DerivationPath extends RustOpaque { - BitcoinBip32DerivationPath.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - BitcoinBip32DerivationPath.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi.instance.api - .rust_arc_increment_strong_count_BitcoinBip32DerivationPath, - rustArcDecrementStrongCount: CApi.instance.api - .rust_arc_decrement_strong_count_BitcoinBip32DerivationPath, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysBip39Mnemonic extends RustOpaque { - KeysBip39Mnemonic.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysBip39Mnemonic.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_KeysBip39Mnemonic, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_KeysBip39Mnemonic, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_KeysBip39MnemonicPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt`, `fmt`, `from`, `from`, `from`, `from` class BdkDerivationPath { - final BitcoinBip32DerivationPath ptr; + final DerivationPath ptr; const BdkDerivationPath({ required this.ptr, }); - static Future fromString( - {required String path, dynamic hint}) => - CApi.instance.api.bdkDerivationPathFromString(path: path, hint: hint); + String asString() => core.instance.api.crateApiKeyBdkDerivationPathAsString( + that: this, + ); + + static Future fromString({required String path}) => + core.instance.api.crateApiKeyBdkDerivationPathFromString(path: path); @override int get hashCode => ptr.hashCode; @@ -71,33 +37,33 @@ class BdkDerivationPath { } class BdkDescriptorPublicKey { - final KeysDescriptorPublicKey ptr; + final DescriptorPublicKey ptr; const BdkDescriptorPublicKey({ required this.ptr, }); - Future asString({dynamic hint}) => - CApi.instance.api.bdkDescriptorPublicKeyAsString(that: this, hint: hint); + String asString() => + core.instance.api.crateApiKeyBdkDescriptorPublicKeyAsString( + that: this, + ); static Future derive( {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorPublicKeyDerive(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorPublicKeyDerive(ptr: ptr, path: path); static Future extend( {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorPublicKeyExtend(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorPublicKeyExtend(ptr: ptr, path: path); static Future fromString( - {required String publicKey, dynamic hint}) => - CApi.instance.api - .bdkDescriptorPublicKeyFromString(publicKey: publicKey, hint: hint); + {required String publicKey}) => + core.instance.api + .crateApiKeyBdkDescriptorPublicKeyFromString(publicKey: publicKey); @override int get hashCode => ptr.hashCode; @@ -111,49 +77,50 @@ class BdkDescriptorPublicKey { } class BdkDescriptorSecretKey { - final KeysDescriptorSecretKey ptr; + final DescriptorSecretKey ptr; const BdkDescriptorSecretKey({ required this.ptr, }); static Future asPublic( - {required BdkDescriptorSecretKey ptr, dynamic hint}) => - CApi.instance.api.bdkDescriptorSecretKeyAsPublic(ptr: ptr, hint: hint); + {required BdkDescriptorSecretKey ptr}) => + core.instance.api.crateApiKeyBdkDescriptorSecretKeyAsPublic(ptr: ptr); - Future asString({dynamic hint}) => - CApi.instance.api.bdkDescriptorSecretKeyAsString(that: this, hint: hint); + String asString() => + core.instance.api.crateApiKeyBdkDescriptorSecretKeyAsString( + that: this, + ); static Future create( {required Network network, required BdkMnemonic mnemonic, - String? password, - dynamic hint}) => - CApi.instance.api.bdkDescriptorSecretKeyCreate( - network: network, mnemonic: mnemonic, password: password, hint: hint); + String? password}) => + core.instance.api.crateApiKeyBdkDescriptorSecretKeyCreate( + network: network, mnemonic: mnemonic, password: password); static Future derive( {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorSecretKeyDerive(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorSecretKeyDerive(ptr: ptr, path: path); static Future extend( {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorSecretKeyExtend(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorSecretKeyExtend(ptr: ptr, path: path); static Future fromString( - {required String secretKey, dynamic hint}) => - CApi.instance.api - .bdkDescriptorSecretKeyFromString(secretKey: secretKey, hint: hint); + {required String secretKey}) => + core.instance.api + .crateApiKeyBdkDescriptorSecretKeyFromString(secretKey: secretKey); /// Get the private key as bytes. - Future secretBytes({dynamic hint}) => CApi.instance.api - .bdkDescriptorSecretKeySecretBytes(that: this, hint: hint); + Future secretBytes() => + core.instance.api.crateApiKeyBdkDescriptorSecretKeySecretBytes( + that: this, + ); @override int get hashCode => ptr.hashCode; @@ -167,32 +134,29 @@ class BdkDescriptorSecretKey { } class BdkMnemonic { - final KeysBip39Mnemonic ptr; + final Mnemonic ptr; const BdkMnemonic({ required this.ptr, }); - /// Returns Mnemonic as string - Future asString({dynamic hint}) => - CApi.instance.api.bdkMnemonicAsString(that: this, hint: hint); + String asString() => core.instance.api.crateApiKeyBdkMnemonicAsString( + that: this, + ); /// Create a new Mnemonic in the specified language from the given entropy. /// Entropy must be a multiple of 32 bits (4 bytes) and 128-256 bits in length. - static Future fromEntropy( - {required List entropy, dynamic hint}) => - CApi.instance.api.bdkMnemonicFromEntropy(entropy: entropy, hint: hint); + static Future fromEntropy({required List entropy}) => + core.instance.api.crateApiKeyBdkMnemonicFromEntropy(entropy: entropy); /// Parse a Mnemonic with given string - static Future fromString( - {required String mnemonic, dynamic hint}) => - CApi.instance.api.bdkMnemonicFromString(mnemonic: mnemonic, hint: hint); + static Future fromString({required String mnemonic}) => + core.instance.api.crateApiKeyBdkMnemonicFromString(mnemonic: mnemonic); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. /// Generates Mnemonic with a random entropy - static Future newInstance( - {required WordCount wordCount, dynamic hint}) => - CApi.instance.api.bdkMnemonicNew(wordCount: wordCount, hint: hint); + static Future newInstance({required WordCount wordCount}) => + core.instance.api.crateApiKeyBdkMnemonicNew(wordCount: wordCount); @override int get hashCode => ptr.hashCode; diff --git a/rust/src/api/key.rs b/rust/src/api/key.rs index 50d1dc7b..e1fa9a59 100644 --- a/rust/src/api/key.rs +++ b/rust/src/api/key.rs @@ -8,10 +8,11 @@ use bdk::keys::bip39::Language; use bdk::keys::{DerivableKey, GeneratableKey}; use bdk::miniscript::descriptor::{DescriptorXKey, Wildcard}; use bdk::miniscript::BareCtx; +use flutter_rust_bridge::frb; use std::str::FromStr; pub struct BdkMnemonic { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkMnemonic { fn from(value: keys::bip39::Mnemonic) -> Self { @@ -45,13 +46,14 @@ impl BdkMnemonic { .map_err(|e| BdkError::Bip39(e.to_string())) } - /// Returns Mnemonic as string + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } } + pub struct BdkDerivationPath { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkDerivationPath { fn from(value: bitcoin::bip32::DerivationPath) -> Self { @@ -67,11 +69,15 @@ impl BdkDerivationPath { .map(|e| e.into()) .map_err(|e| BdkError::Generic(e.to_string())) } + #[frb(sync)] + pub fn as_string(&self) -> String { + self.ptr.to_string() + } } #[derive(Debug)] pub struct BdkDescriptorSecretKey { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkDescriptorSecretKey { fn from(value: keys::DescriptorSecretKey) -> Self { @@ -161,7 +167,7 @@ impl BdkDescriptorSecretKey { } /// Get the private key as bytes. pub fn secret_bytes(&self) -> Result, BdkError> { - let descriptor_secret_key = &(*self.ptr); + let descriptor_secret_key = &*self.ptr; match descriptor_secret_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { Ok(descriptor_x_key.xkey.private_key.secret_bytes().to_vec()) @@ -179,13 +185,14 @@ impl BdkDescriptorSecretKey { let key = keys::DescriptorSecretKey::from_str(&*secret_key).unwrap(); Ok(key.into()) } + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } } #[derive(Debug)] pub struct BdkDescriptorPublicKey { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkDescriptorPublicKey { fn from(value: keys::DescriptorPublicKey) -> Self { @@ -263,6 +270,7 @@ impl BdkDescriptorPublicKey { } } + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } From b3e5153fe2b2539e51e89252c2fce51c8859e203 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 7 Jul 2024 20:26:00 -0400 Subject: [PATCH 09/35] code cleanup --- lib/src/generated/api/wallet.dart | 129 ++++++++++++------------------ lib/src/generated/lib.dart | 52 ++++++++++++ rust/src/api/wallet.rs | 19 +++-- 3 files changed, 112 insertions(+), 88 deletions(-) create mode 100644 lib/src/generated/lib.dart diff --git a/lib/src/generated/api/wallet.dart b/lib/src/generated/api/wallet.dart index 51b15058..abdf547b 100644 --- a/lib/src/generated/api/wallet.dart +++ b/lib/src/generated/api/wallet.dart @@ -1,9 +1,10 @@ // 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 'blockchain.dart'; import 'descriptor.dart'; import 'error.dart'; @@ -11,39 +12,39 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'psbt.dart'; import 'types.dart'; +// These functions are ignored because they are not marked as `pub`: `get_wallet` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt` + Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( {required String txid, required double feeRate, BdkAddress? allowShrinking, required BdkWallet wallet, required bool enableRbf, - int? nSequence, - dynamic hint}) => - CApi.instance.api.finishBumpFeeTxBuilder( + int? nSequence}) => + core.instance.api.crateApiWalletFinishBumpFeeTxBuilder( txid: txid, feeRate: feeRate, allowShrinking: allowShrinking, wallet: wallet, enableRbf: enableRbf, - nSequence: nSequence, - hint: hint); + nSequence: nSequence); Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( {required BdkWallet wallet, required List recipients, required List utxos, - (OutPoint, Input, int)? foreignUtxo, + (OutPoint, Input, BigInt)? foreignUtxo, required List unSpendable, required ChangeSpendPolicy changePolicy, required bool manuallySelectedOnly, double? feeRate, - int? feeAbsolute, + BigInt? feeAbsolute, required bool drainWallet, BdkScriptBuf? drainTo, RbfValue? rbf, - required List data, - dynamic hint}) => - CApi.instance.api.txBuilderFinish( + required List data}) => + core.instance.api.crateApiWalletTxBuilderFinish( wallet: wallet, recipients: recipients, utxos: utxos, @@ -56,30 +57,10 @@ Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( drainWallet: drainWallet, drainTo: drainTo, rbf: rbf, - data: data, - hint: hint); - -// Rust type: RustOpaqueNom >> -@sealed -class MutexBdkWalletAnyDatabase extends RustOpaque { - MutexBdkWalletAnyDatabase.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - MutexBdkWalletAnyDatabase.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi - .instance.api.rust_arc_increment_strong_count_MutexBdkWalletAnyDatabase, - rustArcDecrementStrongCount: CApi - .instance.api.rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabase, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr, - ); -} + data: data); class BdkWallet { - final MutexBdkWalletAnyDatabase ptr; + final MutexWalletAnyDatabase ptr; const BdkWallet({ required this.ptr, @@ -89,24 +70,22 @@ class BdkWallet { /// strategies. If none of the keys in the descriptor are derivable (i.e. the descriptor does not end with a * character) /// then the same address will always be returned for any AddressIndex. static Future<(BdkAddress, int)> getAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) => - CApi.instance.api.bdkWalletGetAddress( - ptr: ptr, addressIndex: addressIndex, hint: hint); + {required BdkWallet ptr, required AddressIndex addressIndex}) => + core.instance.api.crateApiWalletBdkWalletGetAddress( + ptr: ptr, addressIndex: addressIndex); /// Return the balance, meaning the sum of this wallet’s unspent outputs’ values. Note that this method only operates /// on the internal database, which first needs to be Wallet.sync manually. - Future getBalance({dynamic hint}) => - CApi.instance.api.bdkWalletGetBalance(that: this, hint: hint); + Future getBalance() => + core.instance.api.crateApiWalletBdkWalletGetBalance( + that: this, + ); ///Returns the descriptor used to create addresses for a particular keychain. static Future getDescriptorForKeychain( - {required BdkWallet ptr, - required KeychainKind keychain, - dynamic hint}) => - CApi.instance.api.bdkWalletGetDescriptorForKeychain( - ptr: ptr, keychain: keychain, hint: hint); + {required BdkWallet ptr, required KeychainKind keychain}) => + core.instance.api.crateApiWalletBdkWalletGetDescriptorForKeychain( + ptr: ptr, keychain: keychain); /// Return a derived address using the internal (change) descriptor. /// @@ -116,57 +95,54 @@ class BdkWallet { /// in the descriptor are derivable (i.e. does not end with /*) then the same address will always /// be returned for any [AddressIndex]. static Future<(BdkAddress, int)> getInternalAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) => - CApi.instance.api.bdkWalletGetInternalAddress( - ptr: ptr, addressIndex: addressIndex, hint: hint); + {required BdkWallet ptr, required AddressIndex addressIndex}) => + core.instance.api.crateApiWalletBdkWalletGetInternalAddress( + ptr: ptr, addressIndex: addressIndex); ///get the corresponding PSBT Input for a LocalUtxo Future getPsbtInput( {required LocalUtxo utxo, required bool onlyWitnessUtxo, - PsbtSigHashType? sighashType, - dynamic hint}) => - CApi.instance.api.bdkWalletGetPsbtInput( + PsbtSigHashType? sighashType}) => + core.instance.api.crateApiWalletBdkWalletGetPsbtInput( that: this, utxo: utxo, onlyWitnessUtxo: onlyWitnessUtxo, - sighashType: sighashType, - hint: hint); + sighashType: sighashType); /// Return whether or not a script is part of this wallet (either internal or external). - Future isMine({required BdkScriptBuf script, dynamic hint}) => - CApi.instance.api.bdkWalletIsMine(that: this, script: script, hint: hint); + Future isMine({required BdkScriptBuf script}) => core.instance.api + .crateApiWalletBdkWalletIsMine(that: this, script: script); /// Return the list of transactions made and received by the wallet. Note that this method only operate on the internal database, which first needs to be [Wallet.sync] manually. Future> listTransactions( - {required bool includeRaw, dynamic hint}) => - CApi.instance.api.bdkWalletListTransactions( - that: this, includeRaw: includeRaw, hint: hint); + {required bool includeRaw}) => + core.instance.api.crateApiWalletBdkWalletListTransactions( + that: this, includeRaw: includeRaw); /// Return the list of unspent outputs of this wallet. Note that this method only operates on the internal database, /// which first needs to be Wallet.sync manually. - Future> listUnspent({dynamic hint}) => - CApi.instance.api.bdkWalletListUnspent(that: this, hint: hint); + Future> listUnspent() => + core.instance.api.crateApiWalletBdkWalletListUnspent( + that: this, + ); /// Get the Bitcoin network the wallet is using. - Future network({dynamic hint}) => - CApi.instance.api.bdkWalletNetwork(that: this, hint: hint); + Future network() => core.instance.api.crateApiWalletBdkWalletNetwork( + that: this, + ); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. static Future newInstance( {required BdkDescriptor descriptor, BdkDescriptor? changeDescriptor, required Network network, - required DatabaseConfig databaseConfig, - dynamic hint}) => - CApi.instance.api.bdkWalletNew( + required DatabaseConfig databaseConfig}) => + core.instance.api.crateApiWalletBdkWalletNew( descriptor: descriptor, changeDescriptor: changeDescriptor, network: network, - databaseConfig: databaseConfig, - hint: hint); + databaseConfig: databaseConfig); /// Sign a transaction with all the wallet's signers. This function returns an encapsulated bool that /// has the value true if the PSBT was finalized, or false otherwise. @@ -178,18 +154,15 @@ class BdkWallet { static Future sign( {required BdkWallet ptr, required BdkPsbt psbt, - SignOptions? signOptions, - dynamic hint}) => - CApi.instance.api.bdkWalletSign( - ptr: ptr, psbt: psbt, signOptions: signOptions, hint: hint); + SignOptions? signOptions}) => + core.instance.api.crateApiWalletBdkWalletSign( + ptr: ptr, psbt: psbt, signOptions: signOptions); /// Sync the internal database with the blockchain. static Future sync( - {required BdkWallet ptr, - required BdkBlockchain blockchain, - dynamic hint}) => - CApi.instance.api - .bdkWalletSync(ptr: ptr, blockchain: blockchain, hint: hint); + {required BdkWallet ptr, required BdkBlockchain blockchain}) => + core.instance.api + .crateApiWalletBdkWalletSync(ptr: ptr, blockchain: blockchain); @override int get hashCode => ptr.hashCode; diff --git a/lib/src/generated/lib.dart b/lib/src/generated/lib.dart new file mode 100644 index 00000000..c4436031 --- /dev/null +++ b/lib/src/generated/lib.dart @@ -0,0 +1,52 @@ +// 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:collection/collection.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; + +// Rust type: RustOpaqueNom +abstract class Address implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class DerivationPath implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class AnyBlockchain implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class ExtendedDescriptor implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class DescriptorPublicKey implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class DescriptorSecretKey implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class KeyMap implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class Mnemonic implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom >> +abstract class MutexWalletAnyDatabase implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom> +abstract class MutexPartiallySignedTransaction implements RustOpaqueInterface {} + +class U8Array4 extends NonGrowableListView { + static const arraySize = 4; + + @internal + Uint8List get inner => _inner; + final Uint8List _inner; + + U8Array4(this._inner) + : assert(_inner.length == arraySize), + super(_inner); + + U8Array4.init() : this(Uint8List(arraySize)); +} diff --git a/rust/src/api/wallet.rs b/rust/src/api/wallet.rs index 6d444561..8b78911a 100644 --- a/rust/src/api/wallet.rs +++ b/rust/src/api/wallet.rs @@ -14,14 +14,13 @@ use crate::frb_generated::RustOpaque; use bdk::bitcoin::script::PushBytesBuf; use bdk::bitcoin::{Sequence, Txid}; pub use bdk::blockchain::GetTx; -pub use bdk::database::any::AnyDatabase; + use bdk::database::ConfigurableDatabase; -pub use std::sync::Mutex; use std::sync::MutexGuard; -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct BdkWallet { - pub ptr: RustOpaque>>, + pub ptr: RustOpaque>>, } impl BdkWallet { pub fn new( @@ -30,9 +29,9 @@ impl BdkWallet { network: Network, database_config: DatabaseConfig, ) -> Result { - let database = AnyDatabase::from_config(&database_config.into())?; - let descriptor: String = descriptor.as_string_private(); - let change_descriptor: Option = change_descriptor.map(|d| d.as_string_private()); + let database = bdk::database::AnyDatabase::from_config(&database_config.into())?; + let descriptor: String = descriptor.to_string_private(); + let change_descriptor: Option = change_descriptor.map(|d| d.to_string_private()); let wallet = bdk::Wallet::new( &descriptor, @@ -41,10 +40,10 @@ impl BdkWallet { database, )?; Ok(BdkWallet { - ptr: RustOpaque::new(Mutex::new(wallet)), + ptr: RustOpaque::new(std::sync::Mutex::new(wallet)), }) } - pub(crate) fn get_wallet(&self) -> MutexGuard> { + pub(crate) fn get_wallet(&self) -> MutexGuard> { self.ptr.lock().expect("") } @@ -140,7 +139,7 @@ impl BdkWallet { .map_err(|e| e.into()) } /// Sync the internal database with the blockchain. - pub fn sync(ptr: BdkWallet, blockchain: BdkBlockchain) -> Result<(), BdkError> { + pub fn sync(ptr: BdkWallet, blockchain: &BdkBlockchain) -> Result<(), BdkError> { let blockchain = blockchain.get_blockchain(); ptr.get_wallet() .sync(blockchain.deref(), bdk::SyncOptions::default()) From 508fec3fdd727f1bdbd5db9ab9b9b17162e6a6ff Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 7 Jul 2024 20:26:00 -0400 Subject: [PATCH 10/35] bindings updated --- ios/Classes/frb_generated.h | 681 ++--- lib/src/generated/frb_generated.dart | 2307 ++++++++------- lib/src/generated/frb_generated.io.dart | 2010 +++++++------ lib/src/generated/frb_generated.web.dart | 3382 ---------------------- lib/src/utils/exceptions.dart | 4 +- macos/Classes/frb_generated.h | 681 ++--- rust/src/frb_generated.io.rs | 557 ++-- rust/src/frb_generated.rs | 1048 ++++--- rust/src/frb_generated.web.rs | 2241 -------------- 9 files changed, 4045 insertions(+), 8866 deletions(-) delete mode 100644 lib/src/generated/frb_generated.web.dart delete mode 100644 rust/src/frb_generated.web.rs diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h index 0564a94d..9a505397 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -24,7 +24,7 @@ typedef struct wire_cst_list_prim_u_8_strict { } wire_cst_list_prim_u_8_strict; typedef struct wire_cst_bdk_transaction { - struct wire_cst_list_prim_u_8_strict *inner; + struct wire_cst_list_prim_u_8_strict *s; } wire_cst_bdk_transaction; typedef struct wire_cst_electrum_config { @@ -722,340 +722,350 @@ typedef struct wire_cst_record_bdk_psbt_transaction_details { struct wire_cst_transaction_details field1; } wire_cst_record_bdk_psbt_transaction_details; -void frbgen_bdk_flutter_wire_bdk_blockchain_broadcast(int64_t port_, - struct wire_cst_bdk_blockchain *that, - struct wire_cst_bdk_transaction *transaction); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast(int64_t port_, + struct wire_cst_bdk_blockchain *that, + struct wire_cst_bdk_transaction *transaction); + +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create(int64_t port_, + struct wire_cst_blockchain_config *blockchain_config); -void frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint64_t target); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint64_t target); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint32_t height); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint32_t height); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_height(int64_t port_, - struct wire_cst_bdk_blockchain *that); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height(int64_t port_, + struct wire_cst_bdk_blockchain *that); -void frbgen_bdk_flutter_wire_bdk_blockchain_new(int64_t port_, - struct wire_cst_blockchain_config *blockchain_config); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight(int64_t port_, + struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new(int64_t port_, + struct wire_cst_list_prim_u_8_strict *descriptor, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new(int64_t port_, - struct wire_cst_list_prim_u_8_strict *descriptor, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string(struct wire_cst_bdk_derivation_path *that); -void frbgen_bdk_flutter_wire_bdk_derivation_path_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string(struct wire_cst_bdk_descriptor_public_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *public_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *public_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string(struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create(int64_t port_, - int32_t network, - struct wire_cst_bdk_mnemonic *mnemonic, - struct wire_cst_list_prim_u_8_strict *password); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create(int64_t port_, + int32_t network, + struct wire_cst_bdk_mnemonic *mnemonic, + struct wire_cst_list_prim_u_8_strict *password); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *secret_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *secret_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_as_string(int64_t port_, - struct wire_cst_bdk_mnemonic *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string(struct wire_cst_bdk_mnemonic *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy(int64_t port_, - struct wire_cst_list_prim_u_8_loose *entropy); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy(int64_t port_, + struct wire_cst_list_prim_u_8_loose *entropy); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *mnemonic); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *mnemonic); -void frbgen_bdk_flutter_wire_bdk_mnemonic_new(int64_t port_, int32_t word_count); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new(int64_t port_, int32_t word_count); -void frbgen_bdk_flutter_wire_bdk_psbt_combine(int64_t port_, - struct wire_cst_bdk_psbt *ptr, - struct wire_cst_bdk_psbt *other); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_extract_tx(int64_t port_, struct wire_cst_bdk_psbt *ptr); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine(int64_t port_, + struct wire_cst_bdk_psbt *ptr, + struct wire_cst_bdk_psbt *other); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_amount(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx(int64_t port_, + struct wire_cst_bdk_psbt *ptr); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_rate(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_from_str(int64_t port_, - struct wire_cst_list_prim_u_8_strict *psbt_base64); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_json_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *psbt_base64); -void frbgen_bdk_flutter_wire_bdk_psbt_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_txid(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_as_string(int64_t port_, - struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_from_script(int64_t port_, - struct wire_cst_bdk_script_buf *script, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *address, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script(int64_t port_, + struct wire_cst_bdk_script_buf *script, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network(int64_t port_, - struct wire_cst_bdk_address *that, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *address, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_network(int64_t port_, struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network(int64_t port_, + struct wire_cst_bdk_address *that, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_payload(int64_t port_, struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_script(int64_t port_, struct wire_cst_bdk_address *ptr); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_to_qr_uri(int64_t port_, - struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script(int64_t port_, + struct wire_cst_bdk_address *ptr); -void frbgen_bdk_flutter_wire_bdk_script_buf_empty(int64_t port_); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_from_hex(int64_t port_, - struct wire_cst_list_prim_u_8_strict *s); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string(struct wire_cst_bdk_script_buf *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity(int64_t port_, uintptr_t capacity); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty(int64_t port_); -void frbgen_bdk_flutter_wire_bdk_transaction_from_bytes(int64_t port_, - struct wire_cst_list_prim_u_8_loose *transaction_bytes); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_bdk_flutter_wire_bdk_transaction_input(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity(int64_t port_, + uintptr_t capacity); -void frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes(int64_t port_, + struct wire_cst_list_prim_u_8_loose *transaction_bytes); -void frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_lock_time(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_new(int64_t port_, - int32_t version, - struct wire_cst_lock_time *lock_time, - struct wire_cst_list_tx_in *input, - struct wire_cst_list_tx_out *output); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_output(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_serialize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new(int64_t port_, + int32_t version, + struct wire_cst_lock_time *lock_time, + struct wire_cst_list_tx_in *input, + struct wire_cst_list_tx_out *output); -void frbgen_bdk_flutter_wire_bdk_transaction_size(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_txid(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_version(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_vsize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_weight(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_balance(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - int32_t keychain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_local_utxo *utxo, - bool only_witness_utxo, - struct wire_cst_psbt_sig_hash_type *sighash_type); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + int32_t keychain); -void frbgen_bdk_flutter_wire_bdk_wallet_is_mine(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_bdk_script_buf *script); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_list_transactions(int64_t port_, - struct wire_cst_bdk_wallet *that, - bool include_raw); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_local_utxo *utxo, + bool only_witness_utxo, + struct wire_cst_psbt_sig_hash_type *sighash_type); -void frbgen_bdk_flutter_wire_bdk_wallet_list_unspent(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_bdk_script_buf *script); -void frbgen_bdk_flutter_wire_bdk_wallet_network(int64_t port_, struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(int64_t port_, + struct wire_cst_bdk_wallet *that, + bool include_raw); -void frbgen_bdk_flutter_wire_bdk_wallet_new(int64_t port_, - struct wire_cst_bdk_descriptor *descriptor, - struct wire_cst_bdk_descriptor *change_descriptor, - int32_t network, - struct wire_cst_database_config *database_config); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sign(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_psbt *psbt, - struct wire_cst_sign_options *sign_options); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sync(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_blockchain *blockchain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new(int64_t port_, + struct wire_cst_bdk_descriptor *descriptor, + struct wire_cst_bdk_descriptor *change_descriptor, + int32_t network, + struct wire_cst_database_config *database_config); -void frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder(int64_t port_, - struct wire_cst_list_prim_u_8_strict *txid, - float fee_rate, - struct wire_cst_bdk_address *allow_shrinking, - struct wire_cst_bdk_wallet *wallet, - bool enable_rbf, - uint32_t *n_sequence); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_psbt *psbt, + struct wire_cst_sign_options *sign_options); -void frbgen_bdk_flutter_wire_tx_builder_finish(int64_t port_, - struct wire_cst_bdk_wallet *wallet, - struct wire_cst_list_script_amount *recipients, - struct wire_cst_list_out_point *utxos, - struct wire_cst_record_out_point_input_usize *foreign_utxo, - struct wire_cst_list_out_point *un_spendable, - int32_t change_policy, - bool manually_selected_only, - float *fee_rate, - uint64_t *fee_absolute, - bool drain_wallet, - struct wire_cst_bdk_script_buf *drain_to, - struct wire_cst_rbf_value *rbf, - struct wire_cst_list_prim_u_8_loose *data); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_blockchain *blockchain); + +void frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder(int64_t port_, + struct wire_cst_list_prim_u_8_strict *txid, + float fee_rate, + struct wire_cst_bdk_address *allow_shrinking, + struct wire_cst_bdk_wallet *wallet, + bool enable_rbf, + uint32_t *n_sequence); + +void frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish(int64_t port_, + struct wire_cst_bdk_wallet *wallet, + struct wire_cst_list_script_amount *recipients, + struct wire_cst_list_out_point *utxos, + struct wire_cst_record_out_point_input_usize *foreign_utxo, + struct wire_cst_list_out_point *un_spendable, + int32_t change_policy, + bool manually_selected_only, + float *fee_rate, + uint64_t *fee_absolute, + bool drain_wallet, + struct wire_cst_bdk_script_buf *drain_to, + struct wire_cst_rbf_value *rbf, + struct wire_cst_list_prim_u_8_loose *data); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); struct wire_cst_address_error *frbgen_bdk_flutter_cst_new_box_autoadd_address_error(void); @@ -1196,106 +1206,109 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_transaction_details); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_in); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_out); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_payload); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_to_qr_uri); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_broadcast); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_height); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_derivation_path_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_combine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_extract_tx); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_amount); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_rate); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_from_str); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_json_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_empty); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_from_hex); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_from_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_lock_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_output); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_size); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_version); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_vsize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_balance); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_is_mine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_transactions); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_unspent); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sign); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sync); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_tx_builder_finish); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish); dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); return dummy_var; } diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index 581cb8c1..f7050658 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.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 @@ -12,19 +12,22 @@ import 'api/types.dart'; import 'api/wallet.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'; /// Main entrypoint of the Rust API -class CApi extends BaseEntrypoint { +class core extends BaseEntrypoint { @internal - static final instance = CApi._(); + static final instance = core._(); - CApi._(); + core._(); /// Initialize flutter_rust_bridge static Future init({ - CApiApi? api, + coreApi? api, BaseHandler? handler, ExternalLibrary? externalLibrary, }) async { @@ -42,11 +45,11 @@ class CApi extends BaseEntrypoint { static void dispose() => instance.disposeImpl(); @override - ApiImplConstructor get apiImplConstructor => - CApiApiImpl.new; + ApiImplConstructor get apiImplConstructor => + coreApiImpl.new; @override - WireConstructor get wireConstructor => CApiWire.fromExternalLibrary; + WireConstructor get wireConstructor => coreWire.fromExternalLibrary; @override Future executeRustInitializers() async {} @@ -56,7 +59,10 @@ class CApi extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.0.0-dev.31'; + String get codegenVersion => '2.0.0'; + + @override + int get rustContentHash => 1897842111; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -66,402 +72,371 @@ class CApi extends BaseEntrypoint { ); } -abstract class CApiApi extends BaseApi { - Future bdkBlockchainBroadcast( - {required BdkBlockchain that, - required BdkTransaction transaction, - dynamic hint}); - - Future bdkBlockchainEstimateFee( - {required BdkBlockchain that, required int target, dynamic hint}); +abstract class coreApi extends BaseApi { + Future crateApiBlockchainBdkBlockchainBroadcast( + {required BdkBlockchain that, required BdkTransaction transaction}); - Future bdkBlockchainGetBlockHash( - {required BdkBlockchain that, required int height, dynamic hint}); + Future crateApiBlockchainBdkBlockchainCreate( + {required BlockchainConfig blockchainConfig}); - Future bdkBlockchainGetHeight( - {required BdkBlockchain that, dynamic hint}); + Future crateApiBlockchainBdkBlockchainEstimateFee( + {required BdkBlockchain that, required BigInt target}); - Future bdkBlockchainNew( - {required BlockchainConfig blockchainConfig, dynamic hint}); + Future crateApiBlockchainBdkBlockchainGetBlockHash( + {required BdkBlockchain that, required int height}); - Future bdkDescriptorAsString( - {required BdkDescriptor that, dynamic hint}); + Future crateApiBlockchainBdkBlockchainGetHeight( + {required BdkBlockchain that}); - Future bdkDescriptorAsStringPrivate( - {required BdkDescriptor that, dynamic hint}); + String crateApiDescriptorBdkDescriptorAsString({required BdkDescriptor that}); - Future bdkDescriptorMaxSatisfactionWeight( - {required BdkDescriptor that, dynamic hint}); + Future crateApiDescriptorBdkDescriptorMaxSatisfactionWeight( + {required BdkDescriptor that}); - Future bdkDescriptorNew( - {required String descriptor, required Network network, dynamic hint}); + Future crateApiDescriptorBdkDescriptorNew( + {required String descriptor, required Network network}); - Future bdkDescriptorNewBip44( + Future crateApiDescriptorBdkDescriptorNewBip44( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip44Public( + Future crateApiDescriptorBdkDescriptorNewBip44Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip49( + Future crateApiDescriptorBdkDescriptorNewBip49( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip49Public( + Future crateApiDescriptorBdkDescriptorNewBip49Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip84( + Future crateApiDescriptorBdkDescriptorNewBip84( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip84Public( + Future crateApiDescriptorBdkDescriptorNewBip84Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip86( + Future crateApiDescriptorBdkDescriptorNewBip86( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip86Public( + Future crateApiDescriptorBdkDescriptorNewBip86Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); + + String crateApiDescriptorBdkDescriptorToStringPrivate( + {required BdkDescriptor that}); - Future bdkDerivationPathFromString( - {required String path, dynamic hint}); + String crateApiKeyBdkDerivationPathAsString( + {required BdkDerivationPath that}); - Future bdkDescriptorPublicKeyAsString( - {required BdkDescriptorPublicKey that, dynamic hint}); + Future crateApiKeyBdkDerivationPathFromString( + {required String path}); - Future bdkDescriptorPublicKeyDerive( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}); + String crateApiKeyBdkDescriptorPublicKeyAsString( + {required BdkDescriptorPublicKey that}); - Future bdkDescriptorPublicKeyExtend( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}); + Future crateApiKeyBdkDescriptorPublicKeyDerive( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}); - Future bdkDescriptorPublicKeyFromString( - {required String publicKey, dynamic hint}); + Future crateApiKeyBdkDescriptorPublicKeyExtend( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}); - Future bdkDescriptorSecretKeyAsPublic( - {required BdkDescriptorSecretKey ptr, dynamic hint}); + Future crateApiKeyBdkDescriptorPublicKeyFromString( + {required String publicKey}); - Future bdkDescriptorSecretKeyAsString( - {required BdkDescriptorSecretKey that, dynamic hint}); + Future crateApiKeyBdkDescriptorSecretKeyAsPublic( + {required BdkDescriptorSecretKey ptr}); - Future bdkDescriptorSecretKeyCreate( + String crateApiKeyBdkDescriptorSecretKeyAsString( + {required BdkDescriptorSecretKey that}); + + Future crateApiKeyBdkDescriptorSecretKeyCreate( {required Network network, required BdkMnemonic mnemonic, - String? password, - dynamic hint}); + String? password}); + + Future crateApiKeyBdkDescriptorSecretKeyDerive( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}); + + Future crateApiKeyBdkDescriptorSecretKeyExtend( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}); - Future bdkDescriptorSecretKeyDerive( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}); + Future crateApiKeyBdkDescriptorSecretKeyFromString( + {required String secretKey}); - Future bdkDescriptorSecretKeyExtend( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}); + Future crateApiKeyBdkDescriptorSecretKeySecretBytes( + {required BdkDescriptorSecretKey that}); - Future bdkDescriptorSecretKeyFromString( - {required String secretKey, dynamic hint}); + String crateApiKeyBdkMnemonicAsString({required BdkMnemonic that}); - Future bdkDescriptorSecretKeySecretBytes( - {required BdkDescriptorSecretKey that, dynamic hint}); + Future crateApiKeyBdkMnemonicFromEntropy( + {required List entropy}); - Future bdkMnemonicAsString({required BdkMnemonic that, dynamic hint}); + Future crateApiKeyBdkMnemonicFromString( + {required String mnemonic}); - Future bdkMnemonicFromEntropy( - {required List entropy, dynamic hint}); + Future crateApiKeyBdkMnemonicNew({required WordCount wordCount}); - Future bdkMnemonicFromString( - {required String mnemonic, dynamic hint}); + String crateApiPsbtBdkPsbtAsString({required BdkPsbt that}); - Future bdkMnemonicNew( - {required WordCount wordCount, dynamic hint}); + Future crateApiPsbtBdkPsbtCombine( + {required BdkPsbt ptr, required BdkPsbt other}); - Future bdkPsbtCombine( - {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}); + Future crateApiPsbtBdkPsbtExtractTx({required BdkPsbt ptr}); - Future bdkPsbtExtractTx({required BdkPsbt ptr, dynamic hint}); + Future crateApiPsbtBdkPsbtFeeAmount({required BdkPsbt that}); - Future bdkPsbtFeeAmount({required BdkPsbt that, dynamic hint}); + Future crateApiPsbtBdkPsbtFeeRate({required BdkPsbt that}); - Future bdkPsbtFeeRate({required BdkPsbt that, dynamic hint}); + Future crateApiPsbtBdkPsbtFromStr({required String psbtBase64}); - Future bdkPsbtFromStr({required String psbtBase64, dynamic hint}); + Future crateApiPsbtBdkPsbtJsonSerialize({required BdkPsbt that}); - Future bdkPsbtJsonSerialize({required BdkPsbt that, dynamic hint}); + Future crateApiPsbtBdkPsbtSerialize({required BdkPsbt that}); - Future bdkPsbtSerialize({required BdkPsbt that, dynamic hint}); + Future crateApiPsbtBdkPsbtTxid({required BdkPsbt that}); - Future bdkPsbtTxid({required BdkPsbt that, dynamic hint}); + String crateApiTypesBdkAddressAsString({required BdkAddress that}); - Future bdkAddressAsString({required BdkAddress that, dynamic hint}); + Future crateApiTypesBdkAddressFromScript( + {required BdkScriptBuf script, required Network network}); - Future bdkAddressFromScript( - {required BdkScriptBuf script, required Network network, dynamic hint}); + Future crateApiTypesBdkAddressFromString( + {required String address, required Network network}); - Future bdkAddressFromString( - {required String address, required Network network, dynamic hint}); + Future crateApiTypesBdkAddressIsValidForNetwork( + {required BdkAddress that, required Network network}); - Future bdkAddressIsValidForNetwork( - {required BdkAddress that, required Network network, dynamic hint}); + Future crateApiTypesBdkAddressNetwork({required BdkAddress that}); - Future bdkAddressNetwork({required BdkAddress that, dynamic hint}); + Future crateApiTypesBdkAddressPayload({required BdkAddress that}); - Future bdkAddressPayload({required BdkAddress that, dynamic hint}); + Future crateApiTypesBdkAddressScript({required BdkAddress ptr}); - Future bdkAddressScript( - {required BdkAddress ptr, dynamic hint}); + String crateApiTypesBdkAddressToQrUri({required BdkAddress that}); - Future bdkAddressToQrUri({required BdkAddress that, dynamic hint}); + String crateApiTypesBdkScriptBufAsString({required BdkScriptBuf that}); - Future bdkScriptBufEmpty({dynamic hint}); + Future crateApiTypesBdkScriptBufEmpty(); - Future bdkScriptBufFromHex({required String s, dynamic hint}); + Future crateApiTypesBdkScriptBufFromHex({required String s}); - Future bdkScriptBufWithCapacity( - {required int capacity, dynamic hint}); + Future crateApiTypesBdkScriptBufWithCapacity( + {required BigInt capacity}); - Future bdkTransactionFromBytes( - {required List transactionBytes, dynamic hint}); + Future crateApiTypesBdkTransactionFromBytes( + {required List transactionBytes}); - Future> bdkTransactionInput( - {required BdkTransaction that, dynamic hint}); + Future> crateApiTypesBdkTransactionInput( + {required BdkTransaction that}); - Future bdkTransactionIsCoinBase( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionIsCoinBase( + {required BdkTransaction that}); - Future bdkTransactionIsExplicitlyRbf( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionIsExplicitlyRbf( + {required BdkTransaction that}); - Future bdkTransactionIsLockTimeEnabled( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionIsLockTimeEnabled( + {required BdkTransaction that}); - Future bdkTransactionLockTime( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionLockTime( + {required BdkTransaction that}); - Future bdkTransactionNew( + Future crateApiTypesBdkTransactionNew( {required int version, required LockTime lockTime, required List input, - required List output, - dynamic hint}); + required List output}); - Future> bdkTransactionOutput( - {required BdkTransaction that, dynamic hint}); + Future> crateApiTypesBdkTransactionOutput( + {required BdkTransaction that}); - Future bdkTransactionSerialize( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionSerialize( + {required BdkTransaction that}); - Future bdkTransactionSize({required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionSize( + {required BdkTransaction that}); - Future bdkTransactionTxid( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionTxid( + {required BdkTransaction that}); - Future bdkTransactionVersion( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionVersion( + {required BdkTransaction that}); - Future bdkTransactionVsize({required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionVsize( + {required BdkTransaction that}); - Future bdkTransactionWeight( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionWeight( + {required BdkTransaction that}); - Future<(BdkAddress, int)> bdkWalletGetAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}); + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}); - Future bdkWalletGetBalance({required BdkWallet that, dynamic hint}); + Future crateApiWalletBdkWalletGetBalance({required BdkWallet that}); - Future bdkWalletGetDescriptorForKeychain( - {required BdkWallet ptr, required KeychainKind keychain, dynamic hint}); + Future crateApiWalletBdkWalletGetDescriptorForKeychain( + {required BdkWallet ptr, required KeychainKind keychain}); - Future<(BdkAddress, int)> bdkWalletGetInternalAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}); + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetInternalAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}); - Future bdkWalletGetPsbtInput( + Future crateApiWalletBdkWalletGetPsbtInput( {required BdkWallet that, required LocalUtxo utxo, required bool onlyWitnessUtxo, - PsbtSigHashType? sighashType, - dynamic hint}); + PsbtSigHashType? sighashType}); - Future bdkWalletIsMine( - {required BdkWallet that, required BdkScriptBuf script, dynamic hint}); + Future crateApiWalletBdkWalletIsMine( + {required BdkWallet that, required BdkScriptBuf script}); - Future> bdkWalletListTransactions( - {required BdkWallet that, required bool includeRaw, dynamic hint}); + Future> crateApiWalletBdkWalletListTransactions( + {required BdkWallet that, required bool includeRaw}); - Future> bdkWalletListUnspent( - {required BdkWallet that, dynamic hint}); + Future> crateApiWalletBdkWalletListUnspent( + {required BdkWallet that}); - Future bdkWalletNetwork({required BdkWallet that, dynamic hint}); + Future crateApiWalletBdkWalletNetwork({required BdkWallet that}); - Future bdkWalletNew( + Future crateApiWalletBdkWalletNew( {required BdkDescriptor descriptor, BdkDescriptor? changeDescriptor, required Network network, - required DatabaseConfig databaseConfig, - dynamic hint}); + required DatabaseConfig databaseConfig}); - Future bdkWalletSign( + Future crateApiWalletBdkWalletSign( {required BdkWallet ptr, required BdkPsbt psbt, - SignOptions? signOptions, - dynamic hint}); + SignOptions? signOptions}); - Future bdkWalletSync( - {required BdkWallet ptr, - required BdkBlockchain blockchain, - dynamic hint}); + Future crateApiWalletBdkWalletSync( + {required BdkWallet ptr, required BdkBlockchain blockchain}); - Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletFinishBumpFeeTxBuilder( {required String txid, required double feeRate, BdkAddress? allowShrinking, required BdkWallet wallet, required bool enableRbf, - int? nSequence, - dynamic hint}); + int? nSequence}); - Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletTxBuilderFinish( {required BdkWallet wallet, required List recipients, required List utxos, - (OutPoint, Input, int)? foreignUtxo, + (OutPoint, Input, BigInt)? foreignUtxo, required List unSpendable, required ChangeSpendPolicy changePolicy, required bool manuallySelectedOnly, double? feeRate, - int? feeAbsolute, + BigInt? feeAbsolute, required bool drainWallet, BdkScriptBuf? drainTo, RbfValue? rbf, - required List data, - dynamic hint}); + required List data}); - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_AnyBlockchain; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Address; - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_AnyBlockchain; + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Address; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_AnyBlockchainPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_AddressPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ExtendedDescriptor; + get rust_arc_increment_strong_count_DerivationPath; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ExtendedDescriptor; + get rust_arc_decrement_strong_count_DerivationPath; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ExtendedDescriptorPtr; + get rust_arc_decrement_strong_count_DerivationPathPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexPartiallySignedTransaction; + get rust_arc_increment_strong_count_AnyBlockchain; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction; + get rust_arc_decrement_strong_count_AnyBlockchain; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr; + get rust_arc_decrement_strong_count_AnyBlockchainPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexBdkWalletAnyDatabase; + get rust_arc_increment_strong_count_ExtendedDescriptor; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabase; + get rust_arc_decrement_strong_count_ExtendedDescriptor; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr; + get rust_arc_decrement_strong_count_ExtendedDescriptorPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BdkBitcoinAddress; + get rust_arc_increment_strong_count_DescriptorPublicKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BdkBitcoinAddress; + get rust_arc_decrement_strong_count_DescriptorPublicKey; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BdkBitcoinAddressPtr; + get rust_arc_decrement_strong_count_DescriptorPublicKeyPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BitcoinBip32DerivationPath; + get rust_arc_increment_strong_count_DescriptorSecretKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPath; + get rust_arc_decrement_strong_count_DescriptorSecretKey; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr; + get rust_arc_decrement_strong_count_DescriptorSecretKeyPtr; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorPublicKey; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_KeyMap; - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorPublicKey; + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_KeyMap; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeyMapPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorSecretKey; + get rust_arc_increment_strong_count_Mnemonic; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorSecretKey; + get rust_arc_decrement_strong_count_Mnemonic; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MnemonicPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysKeyMap; + get rust_arc_increment_strong_count_MutexWalletAnyDatabase; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysKeyMap; + get rust_arc_decrement_strong_count_MutexWalletAnyDatabase; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeysKeyMapPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_MutexWalletAnyDatabasePtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysBip39Mnemonic; + get rust_arc_increment_strong_count_MutexPartiallySignedTransaction; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysBip39Mnemonic; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysBip39MnemonicPtr; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr; } -class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { - CApiApiImpl({ +class coreApiImpl extends coreApiImplPlatform implements coreApi { + coreApiImpl({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, @@ -469,1944 +444,2019 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { }); @override - Future bdkBlockchainBroadcast( - {required BdkBlockchain that, - required BdkTransaction transaction, - dynamic hint}) { + Future crateApiBlockchainBdkBlockchainBroadcast( + {required BdkBlockchain that, required BdkTransaction transaction}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); var arg1 = cst_encode_box_autoadd_bdk_transaction(transaction); - return wire.wire_bdk_blockchain_broadcast(port_, arg0, arg1); + return wire.wire__crate__api__blockchain__bdk_blockchain_broadcast( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainBroadcastConstMeta, + constMeta: kCrateApiBlockchainBdkBlockchainBroadcastConstMeta, argValues: [that, transaction], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainBroadcastConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiBlockchainBdkBlockchainBroadcastConstMeta => + const TaskConstMeta( debugName: "bdk_blockchain_broadcast", argNames: ["that", "transaction"], ); @override - Future bdkBlockchainEstimateFee( - {required BdkBlockchain that, required int target, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainCreate( + {required BlockchainConfig blockchainConfig}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); - var arg1 = cst_encode_u_64(target); - return wire.wire_bdk_blockchain_estimate_fee(port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_blockchain_config(blockchainConfig); + return wire.wire__crate__api__blockchain__bdk_blockchain_create( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_fee_rate, + decodeSuccessData: dco_decode_bdk_blockchain, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainEstimateFeeConstMeta, - argValues: [that, target], + constMeta: kCrateApiBlockchainBdkBlockchainCreateConstMeta, + argValues: [blockchainConfig], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainEstimateFeeConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_estimate_fee", - argNames: ["that", "target"], + TaskConstMeta get kCrateApiBlockchainBdkBlockchainCreateConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_create", + argNames: ["blockchainConfig"], ); @override - Future bdkBlockchainGetBlockHash( - {required BdkBlockchain that, required int height, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainEstimateFee( + {required BdkBlockchain that, required BigInt target}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); - var arg1 = cst_encode_u_32(height); - return wire.wire_bdk_blockchain_get_block_hash(port_, arg0, arg1); + var arg1 = cst_encode_u_64(target); + return wire.wire__crate__api__blockchain__bdk_blockchain_estimate_fee( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_String, + decodeSuccessData: dco_decode_fee_rate, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainGetBlockHashConstMeta, - argValues: [that, height], + constMeta: kCrateApiBlockchainBdkBlockchainEstimateFeeConstMeta, + argValues: [that, target], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainGetBlockHashConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_get_block_hash", - argNames: ["that", "height"], + TaskConstMeta get kCrateApiBlockchainBdkBlockchainEstimateFeeConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_estimate_fee", + argNames: ["that", "target"], ); @override - Future bdkBlockchainGetHeight( - {required BdkBlockchain that, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainGetBlockHash( + {required BdkBlockchain that, required int height}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); - return wire.wire_bdk_blockchain_get_height(port_, arg0); + var arg1 = cst_encode_u_32(height); + return wire.wire__crate__api__blockchain__bdk_blockchain_get_block_hash( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_u_32, + decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainGetHeightConstMeta, - argValues: [that], + constMeta: kCrateApiBlockchainBdkBlockchainGetBlockHashConstMeta, + argValues: [that, height], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainGetHeightConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_get_height", - argNames: ["that"], + TaskConstMeta get kCrateApiBlockchainBdkBlockchainGetBlockHashConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_get_block_hash", + argNames: ["that", "height"], ); @override - Future bdkBlockchainNew( - {required BlockchainConfig blockchainConfig, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainGetHeight( + {required BdkBlockchain that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_blockchain_config(blockchainConfig); - return wire.wire_bdk_blockchain_new(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); + return wire.wire__crate__api__blockchain__bdk_blockchain_get_height( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_bdk_blockchain, + decodeSuccessData: dco_decode_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainNewConstMeta, - argValues: [blockchainConfig], - apiImpl: this, - hint: hint, - )); - } - - TaskConstMeta get kBdkBlockchainNewConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_new", - argNames: ["blockchainConfig"], - ); - - @override - Future bdkDescriptorAsString( - {required BdkDescriptor that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); - return wire.wire_bdk_descriptor_as_string(port_, arg0); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_String, - decodeErrorData: null, - ), - constMeta: kBdkDescriptorAsStringConstMeta, + constMeta: kCrateApiBlockchainBdkBlockchainGetHeightConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorAsStringConstMeta => const TaskConstMeta( - debugName: "bdk_descriptor_as_string", + TaskConstMeta get kCrateApiBlockchainBdkBlockchainGetHeightConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_get_height", argNames: ["that"], ); @override - Future bdkDescriptorAsStringPrivate( - {required BdkDescriptor that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiDescriptorBdkDescriptorAsString( + {required BdkDescriptor that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); - return wire.wire_bdk_descriptor_as_string_private(port_, arg0); + return wire + .wire__crate__api__descriptor__bdk_descriptor_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkDescriptorAsStringPrivateConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorAsStringPrivateConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorAsStringConstMeta => const TaskConstMeta( - debugName: "bdk_descriptor_as_string_private", + debugName: "bdk_descriptor_as_string", argNames: ["that"], ); @override - Future bdkDescriptorMaxSatisfactionWeight( - {required BdkDescriptor that, dynamic hint}) { + Future crateApiDescriptorBdkDescriptorMaxSatisfactionWeight( + {required BdkDescriptor that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); - return wire.wire_bdk_descriptor_max_satisfaction_weight(port_, arg0); + return wire + .wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_usize, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorMaxSatisfactionWeightConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorMaxSatisfactionWeightConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorMaxSatisfactionWeightConstMeta => - const TaskConstMeta( - debugName: "bdk_descriptor_max_satisfaction_weight", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiDescriptorBdkDescriptorMaxSatisfactionWeightConstMeta => + const TaskConstMeta( + debugName: "bdk_descriptor_max_satisfaction_weight", + argNames: ["that"], + ); @override - Future bdkDescriptorNew( - {required String descriptor, required Network network, dynamic hint}) { + Future crateApiDescriptorBdkDescriptorNew( + {required String descriptor, required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(descriptor); var arg1 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new(port_, arg0, arg1); + return wire.wire__crate__api__descriptor__bdk_descriptor_new( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewConstMeta, argValues: [descriptor, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new", argNames: ["descriptor", "network"], ); @override - Future bdkDescriptorNewBip44( + Future crateApiDescriptorBdkDescriptorNewBip44( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip44(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip44( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip44ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip44ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip44ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip44ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip44", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip44Public( + Future crateApiDescriptorBdkDescriptorNewBip44Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip44_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip44PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip44PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip44PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip44PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip44_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip49( + Future crateApiDescriptorBdkDescriptorNewBip49( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip49(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip49( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip49ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip49ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip49ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip49ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip49", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip49Public( + Future crateApiDescriptorBdkDescriptorNewBip49Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip49_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip49PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip49PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip49PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip49PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip49_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip84( + Future crateApiDescriptorBdkDescriptorNewBip84( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip84(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip84( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip84ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip84ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip84ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip84ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip84", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip84Public( + Future crateApiDescriptorBdkDescriptorNewBip84Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip84_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip84PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip84PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip84PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip84PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip84_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip86( + Future crateApiDescriptorBdkDescriptorNewBip86( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip86(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip86( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip86ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip86ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip86ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip86ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip86", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip86Public( + Future crateApiDescriptorBdkDescriptorNewBip86Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip86_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip86PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip86PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip86PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip86PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip86_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDerivationPathFromString( - {required String path, dynamic hint}) { + String crateApiDescriptorBdkDescriptorToStringPrivate( + {required BdkDescriptor that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); + return wire + .wire__crate__api__descriptor__bdk_descriptor_to_string_private( + arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiDescriptorBdkDescriptorToStringPrivateConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiDescriptorBdkDescriptorToStringPrivateConstMeta => + const TaskConstMeta( + debugName: "bdk_descriptor_to_string_private", + argNames: ["that"], + ); + + @override + String crateApiKeyBdkDerivationPathAsString( + {required BdkDerivationPath that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_derivation_path(that); + return wire.wire__crate__api__key__bdk_derivation_path_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiKeyBdkDerivationPathAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiKeyBdkDerivationPathAsStringConstMeta => + const TaskConstMeta( + debugName: "bdk_derivation_path_as_string", + argNames: ["that"], + ); + + @override + Future crateApiKeyBdkDerivationPathFromString( + {required String path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(path); - return wire.wire_bdk_derivation_path_from_string(port_, arg0); + return wire.wire__crate__api__key__bdk_derivation_path_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_derivation_path, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDerivationPathFromStringConstMeta, + constMeta: kCrateApiKeyBdkDerivationPathFromStringConstMeta, argValues: [path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDerivationPathFromStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDerivationPathFromStringConstMeta => const TaskConstMeta( debugName: "bdk_derivation_path_from_string", argNames: ["path"], ); @override - Future bdkDescriptorPublicKeyAsString( - {required BdkDescriptorPublicKey that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiKeyBdkDescriptorPublicKeyAsString( + {required BdkDescriptorPublicKey that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(that); - return wire.wire_bdk_descriptor_public_key_as_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_public_key_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkDescriptorPublicKeyAsStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyAsStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyAsStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_as_string", argNames: ["that"], ); @override - Future bdkDescriptorPublicKeyDerive( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorPublicKeyDerive( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_public_key_derive(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_public_key_derive( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorPublicKeyDeriveConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyDeriveConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyDeriveConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyDeriveConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_derive", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorPublicKeyExtend( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorPublicKeyExtend( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_public_key_extend(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_public_key_extend( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorPublicKeyExtendConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyExtendConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyExtendConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyExtendConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_extend", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorPublicKeyFromString( - {required String publicKey, dynamic hint}) { + Future crateApiKeyBdkDescriptorPublicKeyFromString( + {required String publicKey}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(publicKey); - return wire.wire_bdk_descriptor_public_key_from_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_public_key_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorPublicKeyFromStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyFromStringConstMeta, argValues: [publicKey], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyFromStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyFromStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_from_string", argNames: ["publicKey"], ); @override - Future bdkDescriptorSecretKeyAsPublic( - {required BdkDescriptorSecretKey ptr, dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeyAsPublic( + {required BdkDescriptorSecretKey ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(ptr); - return wire.wire_bdk_descriptor_secret_key_as_public(port_, arg0); + return wire.wire__crate__api__key__bdk_descriptor_secret_key_as_public( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyAsPublicConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyAsPublicConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyAsPublicConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyAsPublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_as_public", argNames: ["ptr"], ); @override - Future bdkDescriptorSecretKeyAsString( - {required BdkDescriptorSecretKey that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiKeyBdkDescriptorSecretKeyAsString( + {required BdkDescriptorSecretKey that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(that); - return wire.wire_bdk_descriptor_secret_key_as_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_secret_key_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkDescriptorSecretKeyAsStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyAsStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyAsStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_as_string", argNames: ["that"], ); @override - Future bdkDescriptorSecretKeyCreate( + Future crateApiKeyBdkDescriptorSecretKeyCreate( {required Network network, required BdkMnemonic mnemonic, - String? password, - dynamic hint}) { + String? password}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_network(network); var arg1 = cst_encode_box_autoadd_bdk_mnemonic(mnemonic); var arg2 = cst_encode_opt_String(password); - return wire.wire_bdk_descriptor_secret_key_create( + return wire.wire__crate__api__key__bdk_descriptor_secret_key_create( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyCreateConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyCreateConstMeta, argValues: [network, mnemonic, password], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyCreateConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyCreateConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_create", argNames: ["network", "mnemonic", "password"], ); @override - Future bdkDescriptorSecretKeyDerive( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeyDerive( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_secret_key_derive(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_secret_key_derive( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyDeriveConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyDeriveConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyDeriveConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyDeriveConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_derive", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorSecretKeyExtend( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeyExtend( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_secret_key_extend(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_secret_key_extend( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyExtendConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyExtendConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyExtendConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyExtendConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_extend", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorSecretKeyFromString( - {required String secretKey, dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeyFromString( + {required String secretKey}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(secretKey); - return wire.wire_bdk_descriptor_secret_key_from_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_secret_key_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyFromStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyFromStringConstMeta, argValues: [secretKey], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyFromStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyFromStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_from_string", argNames: ["secretKey"], ); @override - Future bdkDescriptorSecretKeySecretBytes( - {required BdkDescriptorSecretKey that, dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeySecretBytes( + {required BdkDescriptorSecretKey that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(that); - return wire.wire_bdk_descriptor_secret_key_secret_bytes(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeySecretBytesConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeySecretBytesConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeySecretBytesConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeySecretBytesConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_secret_bytes", argNames: ["that"], ); @override - Future bdkMnemonicAsString( - {required BdkMnemonic that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiKeyBdkMnemonicAsString({required BdkMnemonic that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_mnemonic(that); - return wire.wire_bdk_mnemonic_as_string(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkMnemonicAsStringConstMeta, + constMeta: kCrateApiKeyBdkMnemonicAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicAsStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicAsStringConstMeta => + const TaskConstMeta( debugName: "bdk_mnemonic_as_string", argNames: ["that"], ); @override - Future bdkMnemonicFromEntropy( - {required List entropy, dynamic hint}) { + Future crateApiKeyBdkMnemonicFromEntropy( + {required List entropy}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_list_prim_u_8_loose(entropy); - return wire.wire_bdk_mnemonic_from_entropy(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_from_entropy( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkMnemonicFromEntropyConstMeta, + constMeta: kCrateApiKeyBdkMnemonicFromEntropyConstMeta, argValues: [entropy], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicFromEntropyConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicFromEntropyConstMeta => + const TaskConstMeta( debugName: "bdk_mnemonic_from_entropy", argNames: ["entropy"], ); @override - Future bdkMnemonicFromString( - {required String mnemonic, dynamic hint}) { + Future crateApiKeyBdkMnemonicFromString( + {required String mnemonic}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(mnemonic); - return wire.wire_bdk_mnemonic_from_string(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkMnemonicFromStringConstMeta, + constMeta: kCrateApiKeyBdkMnemonicFromStringConstMeta, argValues: [mnemonic], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicFromStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicFromStringConstMeta => + const TaskConstMeta( debugName: "bdk_mnemonic_from_string", argNames: ["mnemonic"], ); @override - Future bdkMnemonicNew( - {required WordCount wordCount, dynamic hint}) { + Future crateApiKeyBdkMnemonicNew( + {required WordCount wordCount}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_word_count(wordCount); - return wire.wire_bdk_mnemonic_new(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_new(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkMnemonicNewConstMeta, + constMeta: kCrateApiKeyBdkMnemonicNewConstMeta, argValues: [wordCount], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicNewConstMeta => const TaskConstMeta( debugName: "bdk_mnemonic_new", argNames: ["wordCount"], ); @override - Future bdkPsbtCombine( - {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}) { + String crateApiPsbtBdkPsbtAsString({required BdkPsbt that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_psbt(that); + return wire.wire__crate__api__psbt__bdk_psbt_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiPsbtBdkPsbtAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiPsbtBdkPsbtAsStringConstMeta => + const TaskConstMeta( + debugName: "bdk_psbt_as_string", + argNames: ["that"], + ); + + @override + Future crateApiPsbtBdkPsbtCombine( + {required BdkPsbt ptr, required BdkPsbt other}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(ptr); var arg1 = cst_encode_box_autoadd_bdk_psbt(other); - return wire.wire_bdk_psbt_combine(port_, arg0, arg1); + return wire.wire__crate__api__psbt__bdk_psbt_combine(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_psbt, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkPsbtCombineConstMeta, + constMeta: kCrateApiPsbtBdkPsbtCombineConstMeta, argValues: [ptr, other], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtCombineConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtCombineConstMeta => const TaskConstMeta( debugName: "bdk_psbt_combine", argNames: ["ptr", "other"], ); @override - Future bdkPsbtExtractTx( - {required BdkPsbt ptr, dynamic hint}) { + Future crateApiPsbtBdkPsbtExtractTx({required BdkPsbt ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(ptr); - return wire.wire_bdk_psbt_extract_tx(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_extract_tx(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_transaction, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkPsbtExtractTxConstMeta, + constMeta: kCrateApiPsbtBdkPsbtExtractTxConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtExtractTxConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtExtractTxConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_extract_tx", argNames: ["ptr"], ); @override - Future bdkPsbtFeeAmount({required BdkPsbt that, dynamic hint}) { + Future crateApiPsbtBdkPsbtFeeAmount({required BdkPsbt that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_fee_amount(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_fee_amount(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_u_64, decodeErrorData: null, ), - constMeta: kBdkPsbtFeeAmountConstMeta, + constMeta: kCrateApiPsbtBdkPsbtFeeAmountConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtFeeAmountConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtFeeAmountConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_fee_amount", argNames: ["that"], ); @override - Future bdkPsbtFeeRate({required BdkPsbt that, dynamic hint}) { + Future crateApiPsbtBdkPsbtFeeRate({required BdkPsbt that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_fee_rate(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_fee_rate(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_fee_rate, decodeErrorData: null, ), - constMeta: kBdkPsbtFeeRateConstMeta, + constMeta: kCrateApiPsbtBdkPsbtFeeRateConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtFeeRateConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtFeeRateConstMeta => const TaskConstMeta( debugName: "bdk_psbt_fee_rate", argNames: ["that"], ); @override - Future bdkPsbtFromStr({required String psbtBase64, dynamic hint}) { + Future crateApiPsbtBdkPsbtFromStr({required String psbtBase64}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(psbtBase64); - return wire.wire_bdk_psbt_from_str(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_from_str(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_psbt, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkPsbtFromStrConstMeta, + constMeta: kCrateApiPsbtBdkPsbtFromStrConstMeta, argValues: [psbtBase64], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtFromStrConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtFromStrConstMeta => const TaskConstMeta( debugName: "bdk_psbt_from_str", argNames: ["psbtBase64"], ); @override - Future bdkPsbtJsonSerialize({required BdkPsbt that, dynamic hint}) { + Future crateApiPsbtBdkPsbtJsonSerialize({required BdkPsbt that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_json_serialize(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_json_serialize( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkPsbtJsonSerializeConstMeta, + constMeta: kCrateApiPsbtBdkPsbtJsonSerializeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtJsonSerializeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtJsonSerializeConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_json_serialize", argNames: ["that"], ); @override - Future bdkPsbtSerialize({required BdkPsbt that, dynamic hint}) { + Future crateApiPsbtBdkPsbtSerialize({required BdkPsbt that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_serialize(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_serialize(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_String, + decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: null, ), - constMeta: kBdkPsbtSerializeConstMeta, + constMeta: kCrateApiPsbtBdkPsbtSerializeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtSerializeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtSerializeConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_serialize", argNames: ["that"], ); @override - Future bdkPsbtTxid({required BdkPsbt that, dynamic hint}) { + Future crateApiPsbtBdkPsbtTxid({required BdkPsbt that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_txid(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_txid(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkPsbtTxidConstMeta, + constMeta: kCrateApiPsbtBdkPsbtTxidConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtTxidConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtTxidConstMeta => const TaskConstMeta( debugName: "bdk_psbt_txid", argNames: ["that"], ); @override - Future bdkAddressAsString({required BdkAddress that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiTypesBdkAddressAsString({required BdkAddress that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_as_string(port_, arg0); + return wire.wire__crate__api__types__bdk_address_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkAddressAsStringConstMeta, + constMeta: kCrateApiTypesBdkAddressAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressAsStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressAsStringConstMeta => + const TaskConstMeta( debugName: "bdk_address_as_string", argNames: ["that"], ); @override - Future bdkAddressFromScript( - {required BdkScriptBuf script, required Network network, dynamic hint}) { + Future crateApiTypesBdkAddressFromScript( + {required BdkScriptBuf script, required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_script_buf(script); var arg1 = cst_encode_network(network); - return wire.wire_bdk_address_from_script(port_, arg0, arg1); + return wire.wire__crate__api__types__bdk_address_from_script( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_address, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkAddressFromScriptConstMeta, + constMeta: kCrateApiTypesBdkAddressFromScriptConstMeta, argValues: [script, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressFromScriptConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressFromScriptConstMeta => + const TaskConstMeta( debugName: "bdk_address_from_script", argNames: ["script", "network"], ); @override - Future bdkAddressFromString( - {required String address, required Network network, dynamic hint}) { + Future crateApiTypesBdkAddressFromString( + {required String address, required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(address); var arg1 = cst_encode_network(network); - return wire.wire_bdk_address_from_string(port_, arg0, arg1); + return wire.wire__crate__api__types__bdk_address_from_string( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_address, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkAddressFromStringConstMeta, + constMeta: kCrateApiTypesBdkAddressFromStringConstMeta, argValues: [address, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressFromStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressFromStringConstMeta => + const TaskConstMeta( debugName: "bdk_address_from_string", argNames: ["address", "network"], ); @override - Future bdkAddressIsValidForNetwork( - {required BdkAddress that, required Network network, dynamic hint}) { + Future crateApiTypesBdkAddressIsValidForNetwork( + {required BdkAddress that, required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_address(that); var arg1 = cst_encode_network(network); - return wire.wire_bdk_address_is_valid_for_network(port_, arg0, arg1); + return wire.wire__crate__api__types__bdk_address_is_valid_for_network( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: null, ), - constMeta: kBdkAddressIsValidForNetworkConstMeta, + constMeta: kCrateApiTypesBdkAddressIsValidForNetworkConstMeta, argValues: [that, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressIsValidForNetworkConstMeta => + TaskConstMeta get kCrateApiTypesBdkAddressIsValidForNetworkConstMeta => const TaskConstMeta( debugName: "bdk_address_is_valid_for_network", argNames: ["that", "network"], ); @override - Future bdkAddressNetwork({required BdkAddress that, dynamic hint}) { + Future crateApiTypesBdkAddressNetwork({required BdkAddress that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_network(port_, arg0); + return wire.wire__crate__api__types__bdk_address_network(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_network, decodeErrorData: null, ), - constMeta: kBdkAddressNetworkConstMeta, + constMeta: kCrateApiTypesBdkAddressNetworkConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressNetworkConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressNetworkConstMeta => + const TaskConstMeta( debugName: "bdk_address_network", argNames: ["that"], ); @override - Future bdkAddressPayload({required BdkAddress that, dynamic hint}) { + Future crateApiTypesBdkAddressPayload({required BdkAddress that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_payload(port_, arg0); + return wire.wire__crate__api__types__bdk_address_payload(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_payload, decodeErrorData: null, ), - constMeta: kBdkAddressPayloadConstMeta, + constMeta: kCrateApiTypesBdkAddressPayloadConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressPayloadConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressPayloadConstMeta => + const TaskConstMeta( debugName: "bdk_address_payload", argNames: ["that"], ); @override - Future bdkAddressScript( - {required BdkAddress ptr, dynamic hint}) { + Future crateApiTypesBdkAddressScript( + {required BdkAddress ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_address(ptr); - return wire.wire_bdk_address_script(port_, arg0); + return wire.wire__crate__api__types__bdk_address_script(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kBdkAddressScriptConstMeta, + constMeta: kCrateApiTypesBdkAddressScriptConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressScriptConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressScriptConstMeta => + const TaskConstMeta( debugName: "bdk_address_script", argNames: ["ptr"], ); @override - Future bdkAddressToQrUri({required BdkAddress that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiTypesBdkAddressToQrUri({required BdkAddress that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_to_qr_uri(port_, arg0); + return wire.wire__crate__api__types__bdk_address_to_qr_uri(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkAddressToQrUriConstMeta, + constMeta: kCrateApiTypesBdkAddressToQrUriConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressToQrUriConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressToQrUriConstMeta => + const TaskConstMeta( debugName: "bdk_address_to_qr_uri", argNames: ["that"], ); @override - Future bdkScriptBufEmpty({dynamic hint}) { + String crateApiTypesBdkScriptBufAsString({required BdkScriptBuf that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_script_buf(that); + return wire.wire__crate__api__types__bdk_script_buf_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiTypesBdkScriptBufAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiTypesBdkScriptBufAsStringConstMeta => + const TaskConstMeta( + debugName: "bdk_script_buf_as_string", + argNames: ["that"], + ); + + @override + Future crateApiTypesBdkScriptBufEmpty() { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_bdk_script_buf_empty(port_); + return wire.wire__crate__api__types__bdk_script_buf_empty(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kBdkScriptBufEmptyConstMeta, + constMeta: kCrateApiTypesBdkScriptBufEmptyConstMeta, argValues: [], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkScriptBufEmptyConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkScriptBufEmptyConstMeta => + const TaskConstMeta( debugName: "bdk_script_buf_empty", argNames: [], ); @override - Future bdkScriptBufFromHex({required String s, dynamic hint}) { + Future crateApiTypesBdkScriptBufFromHex({required String s}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(s); - return wire.wire_bdk_script_buf_from_hex(port_, arg0); + return wire.wire__crate__api__types__bdk_script_buf_from_hex( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkScriptBufFromHexConstMeta, + constMeta: kCrateApiTypesBdkScriptBufFromHexConstMeta, argValues: [s], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkScriptBufFromHexConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkScriptBufFromHexConstMeta => + const TaskConstMeta( debugName: "bdk_script_buf_from_hex", argNames: ["s"], ); @override - Future bdkScriptBufWithCapacity( - {required int capacity, dynamic hint}) { + Future crateApiTypesBdkScriptBufWithCapacity( + {required BigInt capacity}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_usize(capacity); - return wire.wire_bdk_script_buf_with_capacity(port_, arg0); + return wire.wire__crate__api__types__bdk_script_buf_with_capacity( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kBdkScriptBufWithCapacityConstMeta, + constMeta: kCrateApiTypesBdkScriptBufWithCapacityConstMeta, argValues: [capacity], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkScriptBufWithCapacityConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkScriptBufWithCapacityConstMeta => + const TaskConstMeta( debugName: "bdk_script_buf_with_capacity", argNames: ["capacity"], ); @override - Future bdkTransactionFromBytes( - {required List transactionBytes, dynamic hint}) { + Future crateApiTypesBdkTransactionFromBytes( + {required List transactionBytes}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_list_prim_u_8_loose(transactionBytes); - return wire.wire_bdk_transaction_from_bytes(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_from_bytes( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_transaction, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionFromBytesConstMeta, + constMeta: kCrateApiTypesBdkTransactionFromBytesConstMeta, argValues: [transactionBytes], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionFromBytesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionFromBytesConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_from_bytes", argNames: ["transactionBytes"], ); @override - Future> bdkTransactionInput( - {required BdkTransaction that, dynamic hint}) { + Future> crateApiTypesBdkTransactionInput( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_input(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_input(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_tx_in, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionInputConstMeta, + constMeta: kCrateApiTypesBdkTransactionInputConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionInputConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionInputConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_input", argNames: ["that"], ); @override - Future bdkTransactionIsCoinBase( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionIsCoinBase( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_is_coin_base(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_is_coin_base( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionIsCoinBaseConstMeta, + constMeta: kCrateApiTypesBdkTransactionIsCoinBaseConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionIsCoinBaseConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionIsCoinBaseConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_is_coin_base", argNames: ["that"], ); @override - Future bdkTransactionIsExplicitlyRbf( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionIsExplicitlyRbf( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_is_explicitly_rbf(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_is_explicitly_rbf( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionIsExplicitlyRbfConstMeta, + constMeta: kCrateApiTypesBdkTransactionIsExplicitlyRbfConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionIsExplicitlyRbfConstMeta => + TaskConstMeta get kCrateApiTypesBdkTransactionIsExplicitlyRbfConstMeta => const TaskConstMeta( debugName: "bdk_transaction_is_explicitly_rbf", argNames: ["that"], ); @override - Future bdkTransactionIsLockTimeEnabled( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionIsLockTimeEnabled( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_is_lock_time_enabled(port_, arg0); + return wire + .wire__crate__api__types__bdk_transaction_is_lock_time_enabled( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionIsLockTimeEnabledConstMeta, + constMeta: kCrateApiTypesBdkTransactionIsLockTimeEnabledConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionIsLockTimeEnabledConstMeta => + TaskConstMeta get kCrateApiTypesBdkTransactionIsLockTimeEnabledConstMeta => const TaskConstMeta( debugName: "bdk_transaction_is_lock_time_enabled", argNames: ["that"], ); @override - Future bdkTransactionLockTime( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionLockTime( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_lock_time(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_lock_time( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_lock_time, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionLockTimeConstMeta, + constMeta: kCrateApiTypesBdkTransactionLockTimeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionLockTimeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionLockTimeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_lock_time", argNames: ["that"], ); @override - Future bdkTransactionNew( + Future crateApiTypesBdkTransactionNew( {required int version, required LockTime lockTime, required List input, - required List output, - dynamic hint}) { + required List output}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_i_32(version); var arg1 = cst_encode_box_autoadd_lock_time(lockTime); var arg2 = cst_encode_list_tx_in(input); var arg3 = cst_encode_list_tx_out(output); - return wire.wire_bdk_transaction_new(port_, arg0, arg1, arg2, arg3); + return wire.wire__crate__api__types__bdk_transaction_new( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_transaction, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionNewConstMeta, + constMeta: kCrateApiTypesBdkTransactionNewConstMeta, argValues: [version, lockTime, input, output], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionNewConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_new", argNames: ["version", "lockTime", "input", "output"], ); @override - Future> bdkTransactionOutput( - {required BdkTransaction that, dynamic hint}) { + Future> crateApiTypesBdkTransactionOutput( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_output(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_output( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_tx_out, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionOutputConstMeta, + constMeta: kCrateApiTypesBdkTransactionOutputConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionOutputConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionOutputConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_output", argNames: ["that"], ); @override - Future bdkTransactionSerialize( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionSerialize( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_serialize(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_serialize( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionSerializeConstMeta, + constMeta: kCrateApiTypesBdkTransactionSerializeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionSerializeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionSerializeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_serialize", argNames: ["that"], ); @override - Future bdkTransactionSize({required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionSize( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_size(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_size(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionSizeConstMeta, + constMeta: kCrateApiTypesBdkTransactionSizeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionSizeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionSizeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_size", argNames: ["that"], ); @override - Future bdkTransactionTxid( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionTxid( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_txid(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_txid(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionTxidConstMeta, + constMeta: kCrateApiTypesBdkTransactionTxidConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionTxidConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionTxidConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_txid", argNames: ["that"], ); @override - Future bdkTransactionVersion( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionVersion( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_version(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_version( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_i_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionVersionConstMeta, + constMeta: kCrateApiTypesBdkTransactionVersionConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionVersionConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionVersionConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_version", argNames: ["that"], ); @override - Future bdkTransactionVsize( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionVsize( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_vsize(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_vsize(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionVsizeConstMeta, + constMeta: kCrateApiTypesBdkTransactionVsizeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionVsizeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionVsizeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_vsize", argNames: ["that"], ); @override - Future bdkTransactionWeight( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionWeight( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_weight(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_weight( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionWeightConstMeta, + constMeta: kCrateApiTypesBdkTransactionWeightConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionWeightConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionWeightConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_weight", argNames: ["that"], ); @override - Future<(BdkAddress, int)> bdkWalletGetAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) { + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); - return wire.wire_bdk_wallet_get_address(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_get_address( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_address_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetAddressConstMeta, + constMeta: kCrateApiWalletBdkWalletGetAddressConstMeta, argValues: [ptr, addressIndex], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetAddressConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletGetAddressConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_get_address", argNames: ["ptr", "addressIndex"], ); @override - Future bdkWalletGetBalance({required BdkWallet that, dynamic hint}) { + Future crateApiWalletBdkWalletGetBalance({required BdkWallet that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire_bdk_wallet_get_balance(port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_get_balance( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_balance, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetBalanceConstMeta, + constMeta: kCrateApiWalletBdkWalletGetBalanceConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetBalanceConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletGetBalanceConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_get_balance", argNames: ["that"], ); @override - Future bdkWalletGetDescriptorForKeychain( - {required BdkWallet ptr, required KeychainKind keychain, dynamic hint}) { + Future crateApiWalletBdkWalletGetDescriptorForKeychain( + {required BdkWallet ptr, required KeychainKind keychain}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_keychain_kind(keychain); - return wire.wire_bdk_wallet_get_descriptor_for_keychain( - port_, arg0, arg1); + return wire + .wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetDescriptorForKeychainConstMeta, + constMeta: kCrateApiWalletBdkWalletGetDescriptorForKeychainConstMeta, argValues: [ptr, keychain], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetDescriptorForKeychainConstMeta => + TaskConstMeta get kCrateApiWalletBdkWalletGetDescriptorForKeychainConstMeta => const TaskConstMeta( debugName: "bdk_wallet_get_descriptor_for_keychain", argNames: ["ptr", "keychain"], ); @override - Future<(BdkAddress, int)> bdkWalletGetInternalAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) { + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetInternalAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); - return wire.wire_bdk_wallet_get_internal_address(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_get_internal_address( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_address_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetInternalAddressConstMeta, + constMeta: kCrateApiWalletBdkWalletGetInternalAddressConstMeta, argValues: [ptr, addressIndex], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetInternalAddressConstMeta => + TaskConstMeta get kCrateApiWalletBdkWalletGetInternalAddressConstMeta => const TaskConstMeta( debugName: "bdk_wallet_get_internal_address", argNames: ["ptr", "addressIndex"], ); @override - Future bdkWalletGetPsbtInput( + Future crateApiWalletBdkWalletGetPsbtInput( {required BdkWallet that, required LocalUtxo utxo, required bool onlyWitnessUtxo, - PsbtSigHashType? sighashType, - dynamic hint}) { + PsbtSigHashType? sighashType}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_box_autoadd_local_utxo(utxo); var arg2 = cst_encode_bool(onlyWitnessUtxo); var arg3 = cst_encode_opt_box_autoadd_psbt_sig_hash_type(sighashType); - return wire.wire_bdk_wallet_get_psbt_input( + return wire.wire__crate__api__wallet__bdk_wallet_get_psbt_input( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_input, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetPsbtInputConstMeta, + constMeta: kCrateApiWalletBdkWalletGetPsbtInputConstMeta, argValues: [that, utxo, onlyWitnessUtxo, sighashType], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetPsbtInputConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletGetPsbtInputConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_get_psbt_input", argNames: ["that", "utxo", "onlyWitnessUtxo", "sighashType"], ); @override - Future bdkWalletIsMine( - {required BdkWallet that, required BdkScriptBuf script, dynamic hint}) { + Future crateApiWalletBdkWalletIsMine( + {required BdkWallet that, required BdkScriptBuf script}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_box_autoadd_bdk_script_buf(script); - return wire.wire_bdk_wallet_is_mine(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_is_mine( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletIsMineConstMeta, + constMeta: kCrateApiWalletBdkWalletIsMineConstMeta, argValues: [that, script], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletIsMineConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletIsMineConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_is_mine", argNames: ["that", "script"], ); @override - Future> bdkWalletListTransactions( - {required BdkWallet that, required bool includeRaw, dynamic hint}) { + Future> crateApiWalletBdkWalletListTransactions( + {required BdkWallet that, required bool includeRaw}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_bool(includeRaw); - return wire.wire_bdk_wallet_list_transactions(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_list_transactions( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_transaction_details, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletListTransactionsConstMeta, + constMeta: kCrateApiWalletBdkWalletListTransactionsConstMeta, argValues: [that, includeRaw], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletListTransactionsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletListTransactionsConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_list_transactions", argNames: ["that", "includeRaw"], ); @override - Future> bdkWalletListUnspent( - {required BdkWallet that, dynamic hint}) { + Future> crateApiWalletBdkWalletListUnspent( + {required BdkWallet that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire_bdk_wallet_list_unspent(port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_list_unspent( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_local_utxo, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletListUnspentConstMeta, + constMeta: kCrateApiWalletBdkWalletListUnspentConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletListUnspentConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletListUnspentConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_list_unspent", argNames: ["that"], ); @override - Future bdkWalletNetwork({required BdkWallet that, dynamic hint}) { + Future crateApiWalletBdkWalletNetwork({required BdkWallet that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire_bdk_wallet_network(port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_network(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_network, decodeErrorData: null, ), - constMeta: kBdkWalletNetworkConstMeta, + constMeta: kCrateApiWalletBdkWalletNetworkConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletNetworkConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletNetworkConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_network", argNames: ["that"], ); @override - Future bdkWalletNew( + Future crateApiWalletBdkWalletNew( {required BdkDescriptor descriptor, BdkDescriptor? changeDescriptor, required Network network, - required DatabaseConfig databaseConfig, - dynamic hint}) { + required DatabaseConfig databaseConfig}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor(descriptor); var arg1 = cst_encode_opt_box_autoadd_bdk_descriptor(changeDescriptor); var arg2 = cst_encode_network(network); var arg3 = cst_encode_box_autoadd_database_config(databaseConfig); - return wire.wire_bdk_wallet_new(port_, arg0, arg1, arg2, arg3); + return wire.wire__crate__api__wallet__bdk_wallet_new( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_wallet, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletNewConstMeta, + constMeta: kCrateApiWalletBdkWalletNewConstMeta, argValues: [descriptor, changeDescriptor, network, databaseConfig], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletNewConstMeta => const TaskConstMeta( debugName: "bdk_wallet_new", argNames: [ "descriptor", @@ -2417,70 +2467,68 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { ); @override - Future bdkWalletSign( + Future crateApiWalletBdkWalletSign( {required BdkWallet ptr, required BdkPsbt psbt, - SignOptions? signOptions, - dynamic hint}) { + SignOptions? signOptions}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_bdk_psbt(psbt); var arg2 = cst_encode_opt_box_autoadd_sign_options(signOptions); - return wire.wire_bdk_wallet_sign(port_, arg0, arg1, arg2); + return wire.wire__crate__api__wallet__bdk_wallet_sign( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletSignConstMeta, + constMeta: kCrateApiWalletBdkWalletSignConstMeta, argValues: [ptr, psbt, signOptions], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletSignConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_sign", argNames: ["ptr", "psbt", "signOptions"], ); @override - Future bdkWalletSync( - {required BdkWallet ptr, - required BdkBlockchain blockchain, - dynamic hint}) { + Future crateApiWalletBdkWalletSync( + {required BdkWallet ptr, required BdkBlockchain blockchain}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_bdk_blockchain(blockchain); - return wire.wire_bdk_wallet_sync(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_sync( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletSyncConstMeta, + constMeta: kCrateApiWalletBdkWalletSyncConstMeta, argValues: [ptr, blockchain], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletSyncConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletSyncConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_sync", argNames: ["ptr", "blockchain"], ); @override - Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletFinishBumpFeeTxBuilder( {required String txid, required double feeRate, BdkAddress? allowShrinking, required BdkWallet wallet, required bool enableRbf, - int? nSequence, - dynamic hint}) { + int? nSequence}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(txid); @@ -2489,21 +2537,21 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { var arg3 = cst_encode_box_autoadd_bdk_wallet(wallet); var arg4 = cst_encode_bool(enableRbf); var arg5 = cst_encode_opt_box_autoadd_u_32(nSequence); - return wire.wire_finish_bump_fee_tx_builder( + return wire.wire__crate__api__wallet__finish_bump_fee_tx_builder( port_, arg0, arg1, arg2, arg3, arg4, arg5); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_psbt_transaction_details, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kFinishBumpFeeTxBuilderConstMeta, + constMeta: kCrateApiWalletFinishBumpFeeTxBuilderConstMeta, argValues: [txid, feeRate, allowShrinking, wallet, enableRbf, nSequence], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kFinishBumpFeeTxBuilderConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletFinishBumpFeeTxBuilderConstMeta => + const TaskConstMeta( debugName: "finish_bump_fee_tx_builder", argNames: [ "txid", @@ -2516,21 +2564,20 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { ); @override - Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletTxBuilderFinish( {required BdkWallet wallet, required List recipients, required List utxos, - (OutPoint, Input, int)? foreignUtxo, + (OutPoint, Input, BigInt)? foreignUtxo, required List unSpendable, required ChangeSpendPolicy changePolicy, required bool manuallySelectedOnly, double? feeRate, - int? feeAbsolute, + BigInt? feeAbsolute, required bool drainWallet, BdkScriptBuf? drainTo, RbfValue? rbf, - required List data, - dynamic hint}) { + required List data}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(wallet); @@ -2547,14 +2594,27 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { var arg10 = cst_encode_opt_box_autoadd_bdk_script_buf(drainTo); var arg11 = cst_encode_opt_box_autoadd_rbf_value(rbf); var arg12 = cst_encode_list_prim_u_8_loose(data); - return wire.wire_tx_builder_finish(port_, arg0, arg1, arg2, arg3, arg4, - arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + return wire.wire__crate__api__wallet__tx_builder_finish( + port_, + arg0, + arg1, + arg2, + arg3, + arg4, + arg5, + arg6, + arg7, + arg8, + arg9, + arg10, + arg11, + arg12); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_psbt_transaction_details, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTxBuilderFinishConstMeta, + constMeta: kCrateApiWalletTxBuilderFinishConstMeta, argValues: [ wallet, recipients, @@ -2571,11 +2631,11 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { data ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kTxBuilderFinishConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletTxBuilderFinishConstMeta => + const TaskConstMeta( debugName: "tx_builder_finish", argNames: [ "wallet", @@ -2595,148 +2655,153 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { ); RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_AnyBlockchain => - wire.rust_arc_increment_strong_count_RustOpaque_AnyBlockchain; + get rust_arc_increment_strong_count_Address => + wire.rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_AnyBlockchain => - wire.rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain; + get rust_arc_decrement_strong_count_Address => + wire.rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ExtendedDescriptor => - wire.rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor; + get rust_arc_increment_strong_count_DerivationPath => wire + .rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ExtendedDescriptor => - wire.rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor; + get rust_arc_decrement_strong_count_DerivationPath => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexPartiallySignedTransaction => wire - .rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction; + get rust_arc_increment_strong_count_AnyBlockchain => wire + .rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction => wire - .rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction; + get rust_arc_decrement_strong_count_AnyBlockchain => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexBdkWalletAnyDatabase => wire - .rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase; + get rust_arc_increment_strong_count_ExtendedDescriptor => wire + .rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabase => wire - .rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase; + get rust_arc_decrement_strong_count_ExtendedDescriptor => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BdkBitcoinAddress => - wire.rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress; + get rust_arc_increment_strong_count_DescriptorPublicKey => wire + .rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BdkBitcoinAddress => - wire.rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress; + get rust_arc_decrement_strong_count_DescriptorPublicKey => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BitcoinBip32DerivationPath => wire - .rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath; + get rust_arc_increment_strong_count_DescriptorSecretKey => wire + .rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPath => wire - .rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath; + get rust_arc_decrement_strong_count_DescriptorSecretKey => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorPublicKey => wire - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey; + get rust_arc_increment_strong_count_KeyMap => + wire.rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorPublicKey => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey; + get rust_arc_decrement_strong_count_KeyMap => + wire.rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorSecretKey => wire - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey; + get rust_arc_increment_strong_count_Mnemonic => + wire.rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorSecretKey => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey; + get rust_arc_decrement_strong_count_Mnemonic => + wire.rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysKeyMap => - wire.rust_arc_increment_strong_count_RustOpaque_keysKeyMap; + get rust_arc_increment_strong_count_MutexWalletAnyDatabase => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysKeyMap => - wire.rust_arc_decrement_strong_count_RustOpaque_keysKeyMap; + get rust_arc_decrement_strong_count_MutexWalletAnyDatabase => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysBip39Mnemonic => - wire.rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic; + get rust_arc_increment_strong_count_MutexPartiallySignedTransaction => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysBip39Mnemonic => - wire.rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction; @protected - AnyBlockchain dco_decode_RustOpaque_AnyBlockchain(dynamic raw) { + Address dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return AnyBlockchain.dcoDecode(raw as List); + return AddressImpl.frbInternalDcoDecode(raw as List); } @protected - ExtendedDescriptor dco_decode_RustOpaque_ExtendedDescriptor(dynamic raw) { + DerivationPath dco_decode_RustOpaque_bdkbitcoinbip32DerivationPath( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ExtendedDescriptor.dcoDecode(raw as List); + return DerivationPathImpl.frbInternalDcoDecode(raw as List); } @protected - MutexPartiallySignedTransaction - dco_decode_RustOpaque_MutexPartiallySignedTransaction(dynamic raw) { + AnyBlockchain dco_decode_RustOpaque_bdkblockchainAnyBlockchain(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return MutexPartiallySignedTransaction.dcoDecode(raw as List); + return AnyBlockchainImpl.frbInternalDcoDecode(raw as List); } @protected - MutexBdkWalletAnyDatabase dco_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor dco_decode_RustOpaque_bdkdescriptorExtendedDescriptor( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return MutexBdkWalletAnyDatabase.dcoDecode(raw as List); + return ExtendedDescriptorImpl.frbInternalDcoDecode(raw as List); } @protected - BdkBitcoinAddress dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw) { + DescriptorPublicKey dco_decode_RustOpaque_bdkkeysDescriptorPublicKey( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return BdkBitcoinAddress.dcoDecode(raw as List); + return DescriptorPublicKeyImpl.frbInternalDcoDecode(raw as List); } @protected - BitcoinBip32DerivationPath dco_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey dco_decode_RustOpaque_bdkkeysDescriptorSecretKey( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return BitcoinBip32DerivationPath.dcoDecode(raw as List); + return DescriptorSecretKeyImpl.frbInternalDcoDecode(raw as List); } @protected - KeysDescriptorPublicKey dco_decode_RustOpaque_keysDescriptorPublicKey( - dynamic raw) { + KeyMap dco_decode_RustOpaque_bdkkeysKeyMap(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysDescriptorPublicKey.dcoDecode(raw as List); + return KeyMapImpl.frbInternalDcoDecode(raw as List); } @protected - KeysDescriptorSecretKey dco_decode_RustOpaque_keysDescriptorSecretKey( - dynamic raw) { + Mnemonic dco_decode_RustOpaque_bdkkeysbip39Mnemonic(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysDescriptorSecretKey.dcoDecode(raw as List); + return MnemonicImpl.frbInternalDcoDecode(raw as List); } @protected - KeysKeyMap dco_decode_RustOpaque_keysKeyMap(dynamic raw) { + MutexWalletAnyDatabase + dco_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysKeyMap.dcoDecode(raw as List); + return MutexWalletAnyDatabaseImpl.frbInternalDcoDecode( + raw as List); } @protected - KeysBip39Mnemonic dco_decode_RustOpaque_keysbip39Mnemonic(dynamic raw) { + MutexPartiallySignedTransaction + dco_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysBip39Mnemonic.dcoDecode(raw as List); + return MutexPartiallySignedTransactionImpl.frbInternalDcoDecode( + raw as List); } @protected @@ -2878,7 +2943,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkBlockchain( - ptr: dco_decode_RustOpaque_AnyBlockchain(arr[0]), + ptr: dco_decode_RustOpaque_bdkblockchainAnyBlockchain(arr[0]), ); } @@ -2889,7 +2954,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkDerivationPath( - ptr: dco_decode_RustOpaque_bitcoinbip32DerivationPath(arr[0]), + ptr: dco_decode_RustOpaque_bdkbitcoinbip32DerivationPath(arr[0]), ); } @@ -2900,8 +2965,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return BdkDescriptor( - extendedDescriptor: dco_decode_RustOpaque_ExtendedDescriptor(arr[0]), - keyMap: dco_decode_RustOpaque_keysKeyMap(arr[1]), + extendedDescriptor: + dco_decode_RustOpaque_bdkdescriptorExtendedDescriptor(arr[0]), + keyMap: dco_decode_RustOpaque_bdkkeysKeyMap(arr[1]), ); } @@ -2912,7 +2978,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkDescriptorPublicKey( - ptr: dco_decode_RustOpaque_keysDescriptorPublicKey(arr[0]), + ptr: dco_decode_RustOpaque_bdkkeysDescriptorPublicKey(arr[0]), ); } @@ -2923,7 +2989,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkDescriptorSecretKey( - ptr: dco_decode_RustOpaque_keysDescriptorSecretKey(arr[0]), + ptr: dco_decode_RustOpaque_bdkkeysDescriptorSecretKey(arr[0]), ); } @@ -3112,7 +3178,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkMnemonic( - ptr: dco_decode_RustOpaque_keysbip39Mnemonic(arr[0]), + ptr: dco_decode_RustOpaque_bdkkeysbip39Mnemonic(arr[0]), ); } @@ -3123,7 +3189,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkPsbt( - ptr: dco_decode_RustOpaque_MutexPartiallySignedTransaction(arr[0]), + ptr: + dco_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + arr[0]), ); } @@ -3145,7 +3213,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkTransaction( - inner: dco_decode_String(arr[0]), + s: dco_decode_String(arr[0]), ); } @@ -3156,7 +3224,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkWallet( - ptr: dco_decode_RustOpaque_MutexbdkWalletAnyDatabase(arr[0]), + ptr: dco_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + arr[0]), ); } @@ -3370,10 +3439,10 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) dco_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) dco_decode_box_autoadd_record_out_point_input_usize( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as (OutPoint, Input, int); + return raw as (OutPoint, Input, BigInt); } @protected @@ -3415,7 +3484,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int dco_decode_box_autoadd_u_64(dynamic raw) { + BigInt dco_decode_box_autoadd_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return dco_decode_u_64(raw); } @@ -3778,7 +3847,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? dco_decode_opt_box_autoadd_record_out_point_input_usize(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null @@ -3805,7 +3874,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw) { + BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null ? null : dco_decode_box_autoadd_u_64(raw); } @@ -3904,7 +3973,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw) { + (OutPoint, Input, BigInt) dco_decode_record_out_point_input_usize( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 3) { @@ -4047,9 +4117,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @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 @@ -4071,9 +4141,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int dco_decode_usize(dynamic raw) { + BigInt dco_decode_usize(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + return dcoDecodeU64(raw); } @protected @@ -4095,82 +4165,83 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - AnyBlockchain sse_decode_RustOpaque_AnyBlockchain( + Address sse_decode_RustOpaque_bdkbitcoinAddress( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return AnyBlockchain.sseDecode( + return AddressImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ExtendedDescriptor sse_decode_RustOpaque_ExtendedDescriptor( + DerivationPath sse_decode_RustOpaque_bdkbitcoinbip32DerivationPath( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ExtendedDescriptor.sseDecode( + return DerivationPathImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - MutexPartiallySignedTransaction - sse_decode_RustOpaque_MutexPartiallySignedTransaction( - SseDeserializer deserializer) { + AnyBlockchain sse_decode_RustOpaque_bdkblockchainAnyBlockchain( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return MutexPartiallySignedTransaction.sseDecode( + return AnyBlockchainImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - MutexBdkWalletAnyDatabase sse_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor sse_decode_RustOpaque_bdkdescriptorExtendedDescriptor( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return MutexBdkWalletAnyDatabase.sseDecode( + return ExtendedDescriptorImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - BdkBitcoinAddress sse_decode_RustOpaque_bdkbitcoinAddress( + DescriptorPublicKey sse_decode_RustOpaque_bdkkeysDescriptorPublicKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return BdkBitcoinAddress.sseDecode( + return DescriptorPublicKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - BitcoinBip32DerivationPath sse_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey sse_decode_RustOpaque_bdkkeysDescriptorSecretKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return BitcoinBip32DerivationPath.sseDecode( + return DescriptorSecretKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysDescriptorPublicKey sse_decode_RustOpaque_keysDescriptorPublicKey( - SseDeserializer deserializer) { + KeyMap sse_decode_RustOpaque_bdkkeysKeyMap(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysDescriptorPublicKey.sseDecode( + return KeyMapImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysDescriptorSecretKey sse_decode_RustOpaque_keysDescriptorSecretKey( + Mnemonic sse_decode_RustOpaque_bdkkeysbip39Mnemonic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysDescriptorSecretKey.sseDecode( + return MnemonicImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysKeyMap sse_decode_RustOpaque_keysKeyMap(SseDeserializer deserializer) { + MutexWalletAnyDatabase + sse_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysKeyMap.sseDecode( + return MutexWalletAnyDatabaseImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysBip39Mnemonic sse_decode_RustOpaque_keysbip39Mnemonic( - SseDeserializer deserializer) { + MutexPartiallySignedTransaction + sse_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysBip39Mnemonic.sseDecode( + return MutexPartiallySignedTransactionImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @@ -4305,7 +4376,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected BdkBlockchain sse_decode_bdk_blockchain(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_AnyBlockchain(deserializer); + var var_ptr = + sse_decode_RustOpaque_bdkblockchainAnyBlockchain(deserializer); return BdkBlockchain(ptr: var_ptr); } @@ -4314,7 +4386,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_ptr = - sse_decode_RustOpaque_bitcoinbip32DerivationPath(deserializer); + sse_decode_RustOpaque_bdkbitcoinbip32DerivationPath(deserializer); return BdkDerivationPath(ptr: var_ptr); } @@ -4322,8 +4394,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkDescriptor sse_decode_bdk_descriptor(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_extendedDescriptor = - sse_decode_RustOpaque_ExtendedDescriptor(deserializer); - var var_keyMap = sse_decode_RustOpaque_keysKeyMap(deserializer); + sse_decode_RustOpaque_bdkdescriptorExtendedDescriptor(deserializer); + var var_keyMap = sse_decode_RustOpaque_bdkkeysKeyMap(deserializer); return BdkDescriptor( extendedDescriptor: var_extendedDescriptor, keyMap: var_keyMap); } @@ -4332,7 +4404,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkDescriptorPublicKey sse_decode_bdk_descriptor_public_key( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysDescriptorPublicKey(deserializer); + var var_ptr = + sse_decode_RustOpaque_bdkkeysDescriptorPublicKey(deserializer); return BdkDescriptorPublicKey(ptr: var_ptr); } @@ -4340,7 +4413,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkDescriptorSecretKey sse_decode_bdk_descriptor_secret_key( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysDescriptorSecretKey(deserializer); + var var_ptr = + sse_decode_RustOpaque_bdkkeysDescriptorSecretKey(deserializer); return BdkDescriptorSecretKey(ptr: var_ptr); } @@ -4493,7 +4567,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected BdkMnemonic sse_decode_bdk_mnemonic(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysbip39Mnemonic(deserializer); + var var_ptr = sse_decode_RustOpaque_bdkkeysbip39Mnemonic(deserializer); return BdkMnemonic(ptr: var_ptr); } @@ -4501,7 +4575,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkPsbt sse_decode_bdk_psbt(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_ptr = - sse_decode_RustOpaque_MutexPartiallySignedTransaction(deserializer); + sse_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + deserializer); return BdkPsbt(ptr: var_ptr); } @@ -4515,14 +4590,16 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected BdkTransaction sse_decode_bdk_transaction(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_inner = sse_decode_String(deserializer); - return BdkTransaction(inner: var_inner); + var var_s = sse_decode_String(deserializer); + return BdkTransaction(s: var_s); } @protected BdkWallet sse_decode_bdk_wallet(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_MutexbdkWalletAnyDatabase(deserializer); + var var_ptr = + sse_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + deserializer); return BdkWallet(ptr: var_ptr); } @@ -4746,7 +4823,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) sse_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_record_out_point_input_usize(deserializer)); @@ -4793,7 +4870,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { + BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_u_64(deserializer)); } @@ -5252,7 +5329,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? sse_decode_opt_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5301,7 +5378,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { + BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -5394,7 +5471,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_record_out_point_input_usize( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_field0 = sse_decode_out_point(deserializer); @@ -5529,9 +5606,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int sse_decode_u_64(SseDeserializer deserializer) { + BigInt sse_decode_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + return deserializer.buffer.getBigUint64(); } @protected @@ -5553,9 +5630,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int sse_decode_usize(SseDeserializer deserializer) { + BigInt sse_decode_usize(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + return deserializer.buffer.getBigUint64(); } @protected @@ -5580,78 +5657,78 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw) { + int cst_encode_RustOpaque_bdkbitcoinAddress(Address raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as AddressImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_ExtendedDescriptor(ExtendedDescriptor raw) { + int cst_encode_RustOpaque_bdkbitcoinbip32DerivationPath(DerivationPath raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as DerivationPathImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction raw) { + int cst_encode_RustOpaque_bdkblockchainAnyBlockchain(AnyBlockchain raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as AnyBlockchainImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase raw) { + int cst_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ExtendedDescriptorImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_bdkbitcoinAddress(BdkBitcoinAddress raw) { + int cst_encode_RustOpaque_bdkkeysDescriptorPublicKey( + DescriptorPublicKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as DescriptorPublicKeyImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath raw) { + int cst_encode_RustOpaque_bdkkeysDescriptorSecretKey( + DescriptorSecretKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as DescriptorSecretKeyImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey raw) { + int cst_encode_RustOpaque_bdkkeysKeyMap(KeyMap raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as KeyMapImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey raw) { + int cst_encode_RustOpaque_bdkkeysbip39Mnemonic(Mnemonic raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MnemonicImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysKeyMap(KeysKeyMap raw) { + int cst_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MutexWalletAnyDatabaseImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysbip39Mnemonic(KeysBip39Mnemonic raw) { + int cst_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MutexPartiallySignedTransactionImpl).frbInternalCstEncode(); } @protected @@ -5708,12 +5785,6 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { return raw; } - @protected - int cst_encode_usize(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; - } - @protected int cst_encode_variant(Variant raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -5733,73 +5804,92 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_RustOpaque_AnyBlockchain( - AnyBlockchain self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkbitcoinAddress( + Address 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 AddressImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_ExtendedDescriptor( - ExtendedDescriptor self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkbitcoinbip32DerivationPath( + DerivationPath 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 DerivationPathImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkblockchainAnyBlockchain( + AnyBlockchain 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 AnyBlockchainImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor 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 ExtendedDescriptorImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_bdkbitcoinAddress( - BdkBitcoinAddress self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysDescriptorPublicKey( + DescriptorPublicKey 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 DescriptorPublicKeyImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysDescriptorSecretKey( + DescriptorSecretKey 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 DescriptorSecretKeyImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysKeyMap( + KeyMap 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 KeyMapImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysbip39Mnemonic( + Mnemonic 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 MnemonicImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_keysKeyMap( - KeysKeyMap self, SseSerializer serializer) { + void sse_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase 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 MutexWalletAnyDatabaseImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_keysbip39Mnemonic( - KeysBip39Mnemonic self, SseSerializer serializer) { + void + sse_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction 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 MutexPartiallySignedTransactionImpl) + .frbInternalSseEncode(move: null), + serializer); } @protected @@ -5859,6 +5949,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_network(networkRequired, serializer); sse_encode_network(networkFound, serializer); sse_encode_String(address, serializer); + default: + throw UnimplementedError(''); } } @@ -5876,6 +5968,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case AddressIndex_Reset(index: final index): sse_encode_i_32(3, serializer); sse_encode_u_32(index, serializer); + default: + throw UnimplementedError(''); } } @@ -5892,6 +5986,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case Auth_Cookie(file: final file): sse_encode_i_32(2, serializer); sse_encode_String(file, serializer); + default: + throw UnimplementedError(''); } } @@ -5915,36 +6011,36 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_bdk_blockchain(BdkBlockchain self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_AnyBlockchain(self.ptr, serializer); + sse_encode_RustOpaque_bdkblockchainAnyBlockchain(self.ptr, serializer); } @protected void sse_encode_bdk_derivation_path( BdkDerivationPath self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_bitcoinbip32DerivationPath(self.ptr, serializer); + sse_encode_RustOpaque_bdkbitcoinbip32DerivationPath(self.ptr, serializer); } @protected void sse_encode_bdk_descriptor(BdkDescriptor self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_ExtendedDescriptor( + sse_encode_RustOpaque_bdkdescriptorExtendedDescriptor( self.extendedDescriptor, serializer); - sse_encode_RustOpaque_keysKeyMap(self.keyMap, serializer); + sse_encode_RustOpaque_bdkkeysKeyMap(self.keyMap, serializer); } @protected void sse_encode_bdk_descriptor_public_key( BdkDescriptorPublicKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysDescriptorPublicKey(self.ptr, serializer); + sse_encode_RustOpaque_bdkkeysDescriptorPublicKey(self.ptr, serializer); } @protected void sse_encode_bdk_descriptor_secret_key( BdkDescriptorSecretKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysDescriptorSecretKey(self.ptr, serializer); + sse_encode_RustOpaque_bdkkeysDescriptorSecretKey(self.ptr, serializer); } @protected @@ -6093,19 +6189,22 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case BdkError_InvalidTransaction(field0: final field0): sse_encode_i_32(46, serializer); sse_encode_String(field0, serializer); + default: + throw UnimplementedError(''); } } @protected void sse_encode_bdk_mnemonic(BdkMnemonic self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysbip39Mnemonic(self.ptr, serializer); + sse_encode_RustOpaque_bdkkeysbip39Mnemonic(self.ptr, serializer); } @protected void sse_encode_bdk_psbt(BdkPsbt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_MutexPartiallySignedTransaction(self.ptr, serializer); + sse_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + self.ptr, serializer); } @protected @@ -6118,13 +6217,14 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { void sse_encode_bdk_transaction( BdkTransaction self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_String(self.inner, serializer); + sse_encode_String(self.s, serializer); } @protected void sse_encode_bdk_wallet(BdkWallet self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_MutexbdkWalletAnyDatabase(self.ptr, serializer); + sse_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + self.ptr, serializer); } @protected @@ -6148,6 +6248,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case BlockchainConfig_Rpc(config: final config): sse_encode_i_32(2, serializer); sse_encode_box_autoadd_rpc_config(config, serializer); + default: + throw UnimplementedError(''); } } @@ -6352,7 +6454,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer) { + (OutPoint, Input, BigInt) self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_record_out_point_input_usize(self, serializer); } @@ -6399,7 +6501,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer) { + void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_u_64(self, serializer); } @@ -6447,6 +6549,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case ConsensusError_UnsupportedSegwitFlag(field0: final field0): sse_encode_i_32(5, serializer); sse_encode_u_8(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6463,6 +6567,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case DatabaseConfig_Sled(config: final config): sse_encode_i_32(2, serializer); sse_encode_box_autoadd_sled_db_configuration(config, serializer); + default: + throw UnimplementedError(''); } } @@ -6503,6 +6609,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case DescriptorError_Hex(field0: final field0): sse_encode_i_32(11, serializer); sse_encode_String(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6554,6 +6662,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_i_32(2, serializer); sse_encode_usize(field0, serializer); sse_encode_usize(field1, serializer); + default: + throw UnimplementedError(''); } } @@ -6679,6 +6789,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case LockTime_Seconds(field0: final field0): sse_encode_i_32(1, serializer); sse_encode_u_32(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6798,7 +6910,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? self, SseSerializer serializer) { + (OutPoint, Input, BigInt)? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -6840,7 +6952,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -6883,6 +6995,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_i_32(2, serializer); sse_encode_witness_version(version, serializer); sse_encode_list_prim_u_8_strict(program, serializer); + default: + throw UnimplementedError(''); } } @@ -6902,6 +7016,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case RbfValue_Value(field0: final field0): sse_encode_i_32(1, serializer); sse_encode_u_32(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6923,7 +7039,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer) { + (OutPoint, Input, BigInt) self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_out_point(self.$1, serializer); sse_encode_input(self.$2, serializer); @@ -7019,9 +7135,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @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 @@ -7042,9 +7158,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_usize(int self, SseSerializer serializer) { + void sse_encode_usize(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint64(self); + serializer.buffer.putBigUint64(self); } @protected @@ -7066,3 +7182,212 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_i_32(self.index, serializer); } } + +@sealed +class AddressImpl extends RustOpaque implements Address { + // Not to be used by end users + AddressImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + AddressImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_Address, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_Address, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_AddressPtr, + ); +} + +@sealed +class AnyBlockchainImpl extends RustOpaque implements AnyBlockchain { + // Not to be used by end users + AnyBlockchainImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + AnyBlockchainImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_AnyBlockchain, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_AnyBlockchain, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_AnyBlockchainPtr, + ); +} + +@sealed +class DerivationPathImpl extends RustOpaque implements DerivationPath { + // Not to be used by end users + DerivationPathImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + DerivationPathImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_DerivationPath, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_DerivationPath, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_DerivationPathPtr, + ); +} + +@sealed +class DescriptorPublicKeyImpl extends RustOpaque + implements DescriptorPublicKey { + // Not to be used by end users + DescriptorPublicKeyImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + DescriptorPublicKeyImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_DescriptorPublicKey, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_DescriptorPublicKey, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_DescriptorPublicKeyPtr, + ); +} + +@sealed +class DescriptorSecretKeyImpl extends RustOpaque + implements DescriptorSecretKey { + // Not to be used by end users + DescriptorSecretKeyImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + DescriptorSecretKeyImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_DescriptorSecretKey, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_DescriptorSecretKey, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_DescriptorSecretKeyPtr, + ); +} + +@sealed +class ExtendedDescriptorImpl extends RustOpaque implements ExtendedDescriptor { + // Not to be used by end users + ExtendedDescriptorImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ExtendedDescriptorImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_ExtendedDescriptor, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptor, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptorPtr, + ); +} + +@sealed +class KeyMapImpl extends RustOpaque implements KeyMap { + // Not to be used by end users + KeyMapImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + KeyMapImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_KeyMap, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_KeyMap, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_KeyMapPtr, + ); +} + +@sealed +class MnemonicImpl extends RustOpaque implements Mnemonic { + // Not to be used by end users + MnemonicImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MnemonicImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_Mnemonic, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_Mnemonic, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_MnemonicPtr, + ); +} + +@sealed +class MutexPartiallySignedTransactionImpl extends RustOpaque + implements MutexPartiallySignedTransaction { + // Not to be used by end users + MutexPartiallySignedTransactionImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MutexPartiallySignedTransactionImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: core.instance.api + .rust_arc_increment_strong_count_MutexPartiallySignedTransaction, + rustArcDecrementStrongCount: core.instance.api + .rust_arc_decrement_strong_count_MutexPartiallySignedTransaction, + rustArcDecrementStrongCountPtr: core.instance.api + .rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr, + ); +} + +@sealed +class MutexWalletAnyDatabaseImpl extends RustOpaque + implements MutexWalletAnyDatabase { + // Not to be used by end users + MutexWalletAnyDatabaseImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MutexWalletAnyDatabaseImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: core + .instance.api.rust_arc_increment_strong_count_MutexWalletAnyDatabase, + rustArcDecrementStrongCount: core + .instance.api.rust_arc_decrement_strong_count_MutexWalletAnyDatabase, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_MutexWalletAnyDatabasePtr, + ); +} diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 4e9def27..652e2318 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.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 @@ -14,89 +14,91 @@ 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'; -abstract class CApiApiImplPlatform extends BaseApiImpl { - CApiApiImplPlatform({ +abstract class coreApiImplPlatform extends BaseApiImpl { + coreApiImplPlatform({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, required super.portManager, }); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_AnyBlockchainPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_AnyBlockchainPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_AddressPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ExtendedDescriptorPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptorPtr; + get rust_arc_decrement_strong_count_DerivationPathPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr; + get rust_arc_decrement_strong_count_AnyBlockchainPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr; + get rust_arc_decrement_strong_count_ExtendedDescriptorPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BdkBitcoinAddressPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr; + get rust_arc_decrement_strong_count_DescriptorPublicKeyPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr; + get rust_arc_decrement_strong_count_DescriptorSecretKeyPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeyMapPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMapPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MnemonicPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeysKeyMapPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_keysKeyMapPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_MutexWalletAnyDatabasePtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysBip39MnemonicPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_keysbip39MnemonicPtr; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr; @protected - AnyBlockchain dco_decode_RustOpaque_AnyBlockchain(dynamic raw); + Address dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw); @protected - ExtendedDescriptor dco_decode_RustOpaque_ExtendedDescriptor(dynamic raw); + DerivationPath dco_decode_RustOpaque_bdkbitcoinbip32DerivationPath( + dynamic raw); @protected - MutexPartiallySignedTransaction - dco_decode_RustOpaque_MutexPartiallySignedTransaction(dynamic raw); + AnyBlockchain dco_decode_RustOpaque_bdkblockchainAnyBlockchain(dynamic raw); @protected - MutexBdkWalletAnyDatabase dco_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor dco_decode_RustOpaque_bdkdescriptorExtendedDescriptor( dynamic raw); @protected - BdkBitcoinAddress dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw); + DescriptorPublicKey dco_decode_RustOpaque_bdkkeysDescriptorPublicKey( + dynamic raw); @protected - BitcoinBip32DerivationPath dco_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey dco_decode_RustOpaque_bdkkeysDescriptorSecretKey( dynamic raw); @protected - KeysDescriptorPublicKey dco_decode_RustOpaque_keysDescriptorPublicKey( - dynamic raw); + KeyMap dco_decode_RustOpaque_bdkkeysKeyMap(dynamic raw); @protected - KeysDescriptorSecretKey dco_decode_RustOpaque_keysDescriptorSecretKey( - dynamic raw); + Mnemonic dco_decode_RustOpaque_bdkkeysbip39Mnemonic(dynamic raw); @protected - KeysKeyMap dco_decode_RustOpaque_keysKeyMap(dynamic raw); + MutexWalletAnyDatabase + dco_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + dynamic raw); @protected - KeysBip39Mnemonic dco_decode_RustOpaque_keysbip39Mnemonic(dynamic raw); + MutexPartiallySignedTransaction + dco_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + dynamic raw); @protected String dco_decode_String(dynamic raw); @@ -245,7 +247,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue dco_decode_box_autoadd_rbf_value(dynamic raw); @protected - (OutPoint, Input, int) dco_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) dco_decode_box_autoadd_record_out_point_input_usize( dynamic raw); @protected @@ -268,7 +270,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int dco_decode_box_autoadd_u_32(dynamic raw); @protected - int dco_decode_box_autoadd_u_64(dynamic raw); + BigInt dco_decode_box_autoadd_u_64(dynamic raw); @protected int dco_decode_box_autoadd_u_8(dynamic raw); @@ -376,7 +378,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue? dco_decode_opt_box_autoadd_rbf_value(dynamic raw); @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? dco_decode_opt_box_autoadd_record_out_point_input_usize(dynamic raw); @protected @@ -389,7 +391,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int? dco_decode_opt_box_autoadd_u_32(dynamic raw); @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw); + BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw); @protected int? dco_decode_opt_box_autoadd_u_8(dynamic raw); @@ -414,7 +416,8 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { dynamic raw); @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw); + (OutPoint, Input, BigInt) dco_decode_record_out_point_input_usize( + dynamic raw); @protected RpcConfig dco_decode_rpc_config(dynamic raw); @@ -447,7 +450,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int dco_decode_u_32(dynamic raw); @protected - int dco_decode_u_64(dynamic raw); + BigInt dco_decode_u_64(dynamic raw); @protected int dco_decode_u_8(dynamic raw); @@ -459,7 +462,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void dco_decode_unit(dynamic raw); @protected - int dco_decode_usize(dynamic raw); + BigInt dco_decode_usize(dynamic raw); @protected Variant dco_decode_variant(dynamic raw); @@ -471,44 +474,44 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { WordCount dco_decode_word_count(dynamic raw); @protected - AnyBlockchain sse_decode_RustOpaque_AnyBlockchain( - SseDeserializer deserializer); + Address sse_decode_RustOpaque_bdkbitcoinAddress(SseDeserializer deserializer); @protected - ExtendedDescriptor sse_decode_RustOpaque_ExtendedDescriptor( + DerivationPath sse_decode_RustOpaque_bdkbitcoinbip32DerivationPath( SseDeserializer deserializer); @protected - MutexPartiallySignedTransaction - sse_decode_RustOpaque_MutexPartiallySignedTransaction( - SseDeserializer deserializer); + AnyBlockchain sse_decode_RustOpaque_bdkblockchainAnyBlockchain( + SseDeserializer deserializer); @protected - MutexBdkWalletAnyDatabase sse_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor sse_decode_RustOpaque_bdkdescriptorExtendedDescriptor( SseDeserializer deserializer); @protected - BdkBitcoinAddress sse_decode_RustOpaque_bdkbitcoinAddress( + DescriptorPublicKey sse_decode_RustOpaque_bdkkeysDescriptorPublicKey( SseDeserializer deserializer); @protected - BitcoinBip32DerivationPath sse_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey sse_decode_RustOpaque_bdkkeysDescriptorSecretKey( SseDeserializer deserializer); @protected - KeysDescriptorPublicKey sse_decode_RustOpaque_keysDescriptorPublicKey( - SseDeserializer deserializer); + KeyMap sse_decode_RustOpaque_bdkkeysKeyMap(SseDeserializer deserializer); @protected - KeysDescriptorSecretKey sse_decode_RustOpaque_keysDescriptorSecretKey( + Mnemonic sse_decode_RustOpaque_bdkkeysbip39Mnemonic( SseDeserializer deserializer); @protected - KeysKeyMap sse_decode_RustOpaque_keysKeyMap(SseDeserializer deserializer); + MutexWalletAnyDatabase + sse_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + SseDeserializer deserializer); @protected - KeysBip39Mnemonic sse_decode_RustOpaque_keysbip39Mnemonic( - SseDeserializer deserializer); + MutexPartiallySignedTransaction + sse_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + SseDeserializer deserializer); @protected String sse_decode_String(SseDeserializer deserializer); @@ -674,7 +677,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue sse_decode_box_autoadd_rbf_value(SseDeserializer deserializer); @protected - (OutPoint, Input, int) sse_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer); @protected @@ -699,7 +702,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int sse_decode_box_autoadd_u_32(SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer); @protected int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); @@ -817,7 +820,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue? sse_decode_opt_box_autoadd_rbf_value(SseDeserializer deserializer); @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? sse_decode_opt_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer); @@ -833,7 +836,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int? sse_decode_opt_box_autoadd_u_32(SseDeserializer deserializer); @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); + BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); @protected int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer); @@ -859,7 +862,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_record_out_point_input_usize( SseDeserializer deserializer); @protected @@ -896,7 +899,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int sse_decode_u_32(SseDeserializer deserializer); @protected - int sse_decode_u_64(SseDeserializer deserializer); + BigInt sse_decode_u_64(SseDeserializer deserializer); @protected int sse_decode_u_8(SseDeserializer deserializer); @@ -908,7 +911,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_decode_unit(SseDeserializer deserializer); @protected - int sse_decode_usize(SseDeserializer deserializer); + BigInt sse_decode_usize(SseDeserializer deserializer); @protected Variant sse_decode_variant(SseDeserializer deserializer); @@ -1177,7 +1180,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer cst_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) raw) { + (OutPoint, Input, BigInt) raw) { // Codec=Cst (C-struct based), see doc to use other codecs final ptr = wire.cst_new_box_autoadd_record_out_point_input_usize(); cst_api_fill_to_wire_record_out_point_input_usize(raw, ptr.ref); @@ -1237,7 +1240,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_box_autoadd_u_64(int raw) { + ffi.Pointer cst_encode_box_autoadd_u_64(BigInt raw) { // Codec=Cst (C-struct based), see doc to use other codecs return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw)); } @@ -1421,7 +1424,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer cst_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? raw) { + (OutPoint, Input, BigInt)? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr @@ -1451,7 +1454,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_opt_box_autoadd_u_64(int? raw) { + ffi.Pointer cst_encode_opt_box_autoadd_u_64(BigInt? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw); } @@ -1463,9 +1466,9 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - int cst_encode_u_64(int raw) { + int cst_encode_u_64(BigInt raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return raw.toInt(); + return raw.toSigned(64).toInt(); } @protected @@ -1477,6 +1480,12 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { return ans; } + @protected + int cst_encode_usize(BigInt raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw.toSigned(64).toInt(); + } + @protected void cst_api_fill_to_wire_address_error( AddressError apiObj, wire_cst_address_error wireObj) { @@ -1628,35 +1637,37 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_bdk_blockchain( BdkBlockchain apiObj, wire_cst_bdk_blockchain wireObj) { - wireObj.ptr = cst_encode_RustOpaque_AnyBlockchain(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkblockchainAnyBlockchain(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_derivation_path( BdkDerivationPath apiObj, wire_cst_bdk_derivation_path wireObj) { - wireObj.ptr = cst_encode_RustOpaque_bitcoinbip32DerivationPath(apiObj.ptr); + wireObj.ptr = + cst_encode_RustOpaque_bdkbitcoinbip32DerivationPath(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_descriptor( BdkDescriptor apiObj, wire_cst_bdk_descriptor wireObj) { wireObj.extended_descriptor = - cst_encode_RustOpaque_ExtendedDescriptor(apiObj.extendedDescriptor); - wireObj.key_map = cst_encode_RustOpaque_keysKeyMap(apiObj.keyMap); + cst_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + apiObj.extendedDescriptor); + wireObj.key_map = cst_encode_RustOpaque_bdkkeysKeyMap(apiObj.keyMap); } @protected void cst_api_fill_to_wire_bdk_descriptor_public_key( BdkDescriptorPublicKey apiObj, wire_cst_bdk_descriptor_public_key wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysDescriptorPublicKey(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkkeysDescriptorPublicKey(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_descriptor_secret_key( BdkDescriptorSecretKey apiObj, wire_cst_bdk_descriptor_secret_key wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysDescriptorSecretKey(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkkeysDescriptorSecretKey(apiObj.ptr); } @protected @@ -1933,14 +1944,15 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_bdk_mnemonic( BdkMnemonic apiObj, wire_cst_bdk_mnemonic wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysbip39Mnemonic(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkkeysbip39Mnemonic(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_psbt( BdkPsbt apiObj, wire_cst_bdk_psbt wireObj) { wireObj.ptr = - cst_encode_RustOpaque_MutexPartiallySignedTransaction(apiObj.ptr); + cst_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + apiObj.ptr); } @protected @@ -1952,13 +1964,15 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_bdk_transaction( BdkTransaction apiObj, wire_cst_bdk_transaction wireObj) { - wireObj.inner = cst_encode_String(apiObj.inner); + wireObj.s = cst_encode_String(apiObj.s); } @protected void cst_api_fill_to_wire_bdk_wallet( BdkWallet apiObj, wire_cst_bdk_wallet wireObj) { - wireObj.ptr = cst_encode_RustOpaque_MutexbdkWalletAnyDatabase(apiObj.ptr); + wireObj.ptr = + cst_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + apiObj.ptr); } @protected @@ -2160,7 +2174,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) apiObj, + (OutPoint, Input, BigInt) apiObj, ffi.Pointer wireObj) { cst_api_fill_to_wire_record_out_point_input_usize(apiObj, wireObj.ref); } @@ -2484,7 +2498,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_record_out_point_input_usize( - (OutPoint, Input, int) apiObj, + (OutPoint, Input, BigInt) apiObj, wire_cst_record_out_point_input_usize wireObj) { cst_api_fill_to_wire_out_point(apiObj.$1, wireObj.field0); cst_api_fill_to_wire_input(apiObj.$2, wireObj.field1); @@ -2575,39 +2589,37 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw); + int cst_encode_RustOpaque_bdkbitcoinAddress(Address raw); @protected - int cst_encode_RustOpaque_ExtendedDescriptor(ExtendedDescriptor raw); + int cst_encode_RustOpaque_bdkbitcoinbip32DerivationPath(DerivationPath raw); @protected - int cst_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction raw); + int cst_encode_RustOpaque_bdkblockchainAnyBlockchain(AnyBlockchain raw); @protected - int cst_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase raw); + int cst_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor raw); @protected - int cst_encode_RustOpaque_bdkbitcoinAddress(BdkBitcoinAddress raw); + int cst_encode_RustOpaque_bdkkeysDescriptorPublicKey(DescriptorPublicKey raw); @protected - int cst_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath raw); + int cst_encode_RustOpaque_bdkkeysDescriptorSecretKey(DescriptorSecretKey raw); @protected - int cst_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey raw); + int cst_encode_RustOpaque_bdkkeysKeyMap(KeyMap raw); @protected - int cst_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey raw); + int cst_encode_RustOpaque_bdkkeysbip39Mnemonic(Mnemonic raw); @protected - int cst_encode_RustOpaque_keysKeyMap(KeysKeyMap raw); + int cst_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase raw); @protected - int cst_encode_RustOpaque_keysbip39Mnemonic(KeysBip39Mnemonic raw); + int cst_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction raw); @protected bool cst_encode_bool(bool raw); @@ -2636,9 +2648,6 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_encode_unit(void raw); - @protected - int cst_encode_usize(int raw); - @protected int cst_encode_variant(Variant raw); @@ -2649,44 +2658,45 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int cst_encode_word_count(WordCount raw); @protected - void sse_encode_RustOpaque_AnyBlockchain( - AnyBlockchain self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkbitcoinAddress( + Address self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_ExtendedDescriptor( - ExtendedDescriptor self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkbitcoinbip32DerivationPath( + DerivationPath self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkblockchainAnyBlockchain( + AnyBlockchain self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_bdkbitcoinAddress( - BdkBitcoinAddress self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysDescriptorPublicKey( + DescriptorPublicKey self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysDescriptorSecretKey( + DescriptorSecretKey self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysKeyMap( + KeyMap self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysbip39Mnemonic( + Mnemonic self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysKeyMap( - KeysKeyMap self, SseSerializer serializer); + void sse_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysbip39Mnemonic( - KeysBip39Mnemonic self, SseSerializer serializer); + void + sse_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction self, SseSerializer serializer); @protected void sse_encode_String(String self, SseSerializer serializer); @@ -2864,7 +2874,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); + (OutPoint, Input, BigInt) self, SseSerializer serializer); @protected void sse_encode_box_autoadd_rpc_config( @@ -2890,7 +2900,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_u_32(int self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer); + void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer); @protected void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); @@ -3017,7 +3027,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void sse_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? self, SseSerializer serializer); + (OutPoint, Input, BigInt)? self, SseSerializer serializer); @protected void sse_encode_opt_box_autoadd_rpc_sync_params( @@ -3031,7 +3041,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_opt_box_autoadd_u_32(int? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer); @protected void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer); @@ -3059,7 +3069,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); + (OutPoint, Input, BigInt) self, SseSerializer serializer); @protected void sse_encode_rpc_config(RpcConfig self, SseSerializer serializer); @@ -3095,7 +3105,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_u_32(int self, SseSerializer serializer); @protected - void sse_encode_u_64(int self, SseSerializer serializer); + void sse_encode_u_64(BigInt self, SseSerializer serializer); @protected void sse_encode_u_8(int self, SseSerializer serializer); @@ -3107,7 +3117,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_unit(void self, SseSerializer serializer); @protected - void sse_encode_usize(int self, SseSerializer serializer); + void sse_encode_usize(BigInt self, SseSerializer serializer); @protected void sse_encode_variant(Variant self, SseSerializer serializer); @@ -3129,19 +3139,19 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { // ignore_for_file: type=lint /// generated by flutter_rust_bridge -class CApiWire implements BaseWire { - factory CApiWire.fromExternalLibrary(ExternalLibrary lib) => - CApiWire(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]. - CApiWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + coreWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - CApiWire.fromLookup( + coreWire.fromLookup( ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; @@ -3160,191 +3170,179 @@ class CApiWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); - void wire_bdk_blockchain_broadcast( + void wire__crate__api__blockchain__bdk_blockchain_broadcast( int port_, ffi.Pointer that, ffi.Pointer transaction, ) { - return _wire_bdk_blockchain_broadcast( + return _wire__crate__api__blockchain__bdk_blockchain_broadcast( port_, that, transaction, ); } - late final _wire_bdk_blockchain_broadcastPtr = _lookup< + late final _wire__crate__api__blockchain__bdk_blockchain_broadcastPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_broadcast'); - late final _wire_bdk_blockchain_broadcast = - _wire_bdk_blockchain_broadcastPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast'); + late final _wire__crate__api__blockchain__bdk_blockchain_broadcast = + _wire__crate__api__blockchain__bdk_blockchain_broadcastPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_blockchain_estimate_fee( + void wire__crate__api__blockchain__bdk_blockchain_create( int port_, - ffi.Pointer that, - int target, + ffi.Pointer blockchain_config, ) { - return _wire_bdk_blockchain_estimate_fee( + return _wire__crate__api__blockchain__bdk_blockchain_create( port_, - that, - target, + blockchain_config, ); } - late final _wire_bdk_blockchain_estimate_feePtr = _lookup< + late final _wire__crate__api__blockchain__bdk_blockchain_createPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Uint64)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee'); - late final _wire_bdk_blockchain_estimate_fee = - _wire_bdk_blockchain_estimate_feePtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create'); + late final _wire__crate__api__blockchain__bdk_blockchain_create = + _wire__crate__api__blockchain__bdk_blockchain_createPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_blockchain_get_block_hash( + void wire__crate__api__blockchain__bdk_blockchain_estimate_fee( int port_, ffi.Pointer that, - int height, + int target, ) { - return _wire_bdk_blockchain_get_block_hash( + return _wire__crate__api__blockchain__bdk_blockchain_estimate_fee( port_, that, - height, + target, ); } - late final _wire_bdk_blockchain_get_block_hashPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Uint32)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash'); - late final _wire_bdk_blockchain_get_block_hash = - _wire_bdk_blockchain_get_block_hashPtr.asFunction< + late final _wire__crate__api__blockchain__bdk_blockchain_estimate_feePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Uint64)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee'); + late final _wire__crate__api__blockchain__bdk_blockchain_estimate_fee = + _wire__crate__api__blockchain__bdk_blockchain_estimate_feePtr.asFunction< void Function(int, ffi.Pointer, int)>(); - void wire_bdk_blockchain_get_height( + void wire__crate__api__blockchain__bdk_blockchain_get_block_hash( int port_, ffi.Pointer that, + int height, ) { - return _wire_bdk_blockchain_get_height( + return _wire__crate__api__blockchain__bdk_blockchain_get_block_hash( port_, that, + height, ); } - late final _wire_bdk_blockchain_get_heightPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_get_height'); - late final _wire_bdk_blockchain_get_height = - _wire_bdk_blockchain_get_heightPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__blockchain__bdk_blockchain_get_block_hashPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Uint32)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash'); + late final _wire__crate__api__blockchain__bdk_blockchain_get_block_hash = + _wire__crate__api__blockchain__bdk_blockchain_get_block_hashPtr + .asFunction< + void Function(int, ffi.Pointer, int)>(); - void wire_bdk_blockchain_new( + void wire__crate__api__blockchain__bdk_blockchain_get_height( int port_, - ffi.Pointer blockchain_config, - ) { - return _wire_bdk_blockchain_new( - port_, - blockchain_config, - ); - } - - late final _wire_bdk_blockchain_newPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_new'); - late final _wire_bdk_blockchain_new = _wire_bdk_blockchain_newPtr.asFunction< - void Function(int, ffi.Pointer)>(); - - void wire_bdk_descriptor_as_string( - int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_bdk_descriptor_as_string( + return _wire__crate__api__blockchain__bdk_blockchain_get_height( port_, that, ); } - late final _wire_bdk_descriptor_as_stringPtr = _lookup< + late final _wire__crate__api__blockchain__bdk_blockchain_get_heightPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_as_string'); - late final _wire_bdk_descriptor_as_string = _wire_bdk_descriptor_as_stringPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height'); + late final _wire__crate__api__blockchain__bdk_blockchain_get_height = + _wire__crate__api__blockchain__bdk_blockchain_get_heightPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_as_string_private( - int port_, + WireSyncRust2DartDco wire__crate__api__descriptor__bdk_descriptor_as_string( ffi.Pointer that, ) { - return _wire_bdk_descriptor_as_string_private( - port_, + return _wire__crate__api__descriptor__bdk_descriptor_as_string( that, ); } - late final _wire_bdk_descriptor_as_string_privatePtr = _lookup< + late final _wire__crate__api__descriptor__bdk_descriptor_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private'); - late final _wire_bdk_descriptor_as_string_private = - _wire_bdk_descriptor_as_string_privatePtr.asFunction< - void Function(int, ffi.Pointer)>(); - - void wire_bdk_descriptor_max_satisfaction_weight( + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string'); + late final _wire__crate__api__descriptor__bdk_descriptor_as_string = + _wire__crate__api__descriptor__bdk_descriptor_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + void wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( int port_, ffi.Pointer that, ) { - return _wire_bdk_descriptor_max_satisfaction_weight( + return _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( port_, that, ); } - late final _wire_bdk_descriptor_max_satisfaction_weightPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight'); - late final _wire_bdk_descriptor_max_satisfaction_weight = - _wire_bdk_descriptor_max_satisfaction_weightPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weightPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight'); + late final _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight = + _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weightPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_new( + void wire__crate__api__descriptor__bdk_descriptor_new( int port_, ffi.Pointer descriptor, int network, ) { - return _wire_bdk_descriptor_new( + return _wire__crate__api__descriptor__bdk_descriptor_new( port_, descriptor, network, ); } - late final _wire_bdk_descriptor_newPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new'); - late final _wire_bdk_descriptor_new = _wire_bdk_descriptor_newPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + late final _wire__crate__api__descriptor__bdk_descriptor_newPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new'); + late final _wire__crate__api__descriptor__bdk_descriptor_new = + _wire__crate__api__descriptor__bdk_descriptor_newPtr.asFunction< + void Function( + int, ffi.Pointer, int)>(); - void wire_bdk_descriptor_new_bip44( + void wire__crate__api__descriptor__bdk_descriptor_new_bip44( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip44( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip44( port_, secret_key, keychain_kind, @@ -3352,26 +3350,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip44Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44'); - late final _wire_bdk_descriptor_new_bip44 = - _wire_bdk_descriptor_new_bip44Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip44Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip44_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip44_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( port_, public_key, fingerprint, @@ -3380,27 +3379,33 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip44_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip44_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public'); - late final _wire_bdk_descriptor_new_bip44_public = - _wire_bdk_descriptor_new_bip44_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); - void wire_bdk_descriptor_new_bip49( + void wire__crate__api__descriptor__bdk_descriptor_new_bip49( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip49( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip49( port_, secret_key, keychain_kind, @@ -3408,26 +3413,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip49Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49'); - late final _wire_bdk_descriptor_new_bip49 = - _wire_bdk_descriptor_new_bip49Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip49Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip49_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip49_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( port_, public_key, fingerprint, @@ -3436,27 +3442,33 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip49_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip49_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public'); - late final _wire_bdk_descriptor_new_bip49_public = - _wire_bdk_descriptor_new_bip49_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); - void wire_bdk_descriptor_new_bip84( + void wire__crate__api__descriptor__bdk_descriptor_new_bip84( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip84( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip84( port_, secret_key, keychain_kind, @@ -3464,26 +3476,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip84Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84'); - late final _wire_bdk_descriptor_new_bip84 = - _wire_bdk_descriptor_new_bip84Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip84Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip84_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip84_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( port_, public_key, fingerprint, @@ -3492,27 +3505,33 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip84_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip84_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public'); - late final _wire_bdk_descriptor_new_bip84_public = - _wire_bdk_descriptor_new_bip84_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); - void wire_bdk_descriptor_new_bip86( + void wire__crate__api__descriptor__bdk_descriptor_new_bip86( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip86( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip86( port_, secret_key, keychain_kind, @@ -3520,26 +3539,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip86Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86'); - late final _wire_bdk_descriptor_new_bip86 = - _wire_bdk_descriptor_new_bip86Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip86Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip86_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip86_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( port_, public_key, fingerprint, @@ -3548,173 +3568,221 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip86_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip86_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public'); - late final _wire_bdk_descriptor_new_bip86_public = - _wire_bdk_descriptor_new_bip86_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); + + WireSyncRust2DartDco + wire__crate__api__descriptor__bdk_descriptor_to_string_private( + ffi.Pointer that, + ) { + return _wire__crate__api__descriptor__bdk_descriptor_to_string_private( + that, + ); + } + + late final _wire__crate__api__descriptor__bdk_descriptor_to_string_privatePtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private'); + late final _wire__crate__api__descriptor__bdk_descriptor_to_string_private = + _wire__crate__api__descriptor__bdk_descriptor_to_string_privatePtr + .asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__key__bdk_derivation_path_as_string( + ffi.Pointer that, + ) { + return _wire__crate__api__key__bdk_derivation_path_as_string( + that, + ); + } - void wire_bdk_derivation_path_from_string( + late final _wire__crate__api__key__bdk_derivation_path_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string'); + late final _wire__crate__api__key__bdk_derivation_path_as_string = + _wire__crate__api__key__bdk_derivation_path_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + void wire__crate__api__key__bdk_derivation_path_from_string( int port_, ffi.Pointer path, ) { - return _wire_bdk_derivation_path_from_string( + return _wire__crate__api__key__bdk_derivation_path_from_string( port_, path, ); } - late final _wire_bdk_derivation_path_from_stringPtr = _lookup< + late final _wire__crate__api__key__bdk_derivation_path_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_derivation_path_from_string'); - late final _wire_bdk_derivation_path_from_string = - _wire_bdk_derivation_path_from_stringPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string'); + late final _wire__crate__api__key__bdk_derivation_path_from_string = + _wire__crate__api__key__bdk_derivation_path_from_stringPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_as_string( - int port_, + WireSyncRust2DartDco + wire__crate__api__key__bdk_descriptor_public_key_as_string( ffi.Pointer that, ) { - return _wire_bdk_descriptor_public_key_as_string( - port_, + return _wire__crate__api__key__bdk_descriptor_public_key_as_string( that, ); } - late final _wire_bdk_descriptor_public_key_as_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string'); - late final _wire_bdk_descriptor_public_key_as_string = - _wire_bdk_descriptor_public_key_as_stringPtr.asFunction< - void Function( - int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_public_key_as_stringPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string'); + late final _wire__crate__api__key__bdk_descriptor_public_key_as_string = + _wire__crate__api__key__bdk_descriptor_public_key_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_derive( + void wire__crate__api__key__bdk_descriptor_public_key_derive( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_public_key_derive( + return _wire__crate__api__key__bdk_descriptor_public_key_derive( port_, ptr, path, ); } - late final _wire_bdk_descriptor_public_key_derivePtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_public_key_derivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive'); - late final _wire_bdk_descriptor_public_key_derive = - _wire_bdk_descriptor_public_key_derivePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive'); + late final _wire__crate__api__key__bdk_descriptor_public_key_derive = + _wire__crate__api__key__bdk_descriptor_public_key_derivePtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_extend( + void wire__crate__api__key__bdk_descriptor_public_key_extend( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_public_key_extend( + return _wire__crate__api__key__bdk_descriptor_public_key_extend( port_, ptr, path, ); } - late final _wire_bdk_descriptor_public_key_extendPtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_public_key_extendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend'); - late final _wire_bdk_descriptor_public_key_extend = - _wire_bdk_descriptor_public_key_extendPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend'); + late final _wire__crate__api__key__bdk_descriptor_public_key_extend = + _wire__crate__api__key__bdk_descriptor_public_key_extendPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_from_string( + void wire__crate__api__key__bdk_descriptor_public_key_from_string( int port_, ffi.Pointer public_key, ) { - return _wire_bdk_descriptor_public_key_from_string( + return _wire__crate__api__key__bdk_descriptor_public_key_from_string( port_, public_key, ); } - late final _wire_bdk_descriptor_public_key_from_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string'); - late final _wire_bdk_descriptor_public_key_from_string = - _wire_bdk_descriptor_public_key_from_stringPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_public_key_from_stringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string'); + late final _wire__crate__api__key__bdk_descriptor_public_key_from_string = + _wire__crate__api__key__bdk_descriptor_public_key_from_stringPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_as_public( + void wire__crate__api__key__bdk_descriptor_secret_key_as_public( int port_, ffi.Pointer ptr, ) { - return _wire_bdk_descriptor_secret_key_as_public( + return _wire__crate__api__key__bdk_descriptor_secret_key_as_public( port_, ptr, ); } - late final _wire_bdk_descriptor_secret_key_as_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public'); - late final _wire_bdk_descriptor_secret_key_as_public = - _wire_bdk_descriptor_secret_key_as_publicPtr.asFunction< + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_public = + _wire__crate__api__key__bdk_descriptor_secret_key_as_publicPtr.asFunction< void Function( int, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_as_string( - int port_, + WireSyncRust2DartDco + wire__crate__api__key__bdk_descriptor_secret_key_as_string( ffi.Pointer that, ) { - return _wire_bdk_descriptor_secret_key_as_string( - port_, + return _wire__crate__api__key__bdk_descriptor_secret_key_as_string( that, ); } - late final _wire_bdk_descriptor_secret_key_as_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string'); - late final _wire_bdk_descriptor_secret_key_as_string = - _wire_bdk_descriptor_secret_key_as_stringPtr.asFunction< - void Function( - int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_stringPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_string = + _wire__crate__api__key__bdk_descriptor_secret_key_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_create( + void wire__crate__api__key__bdk_descriptor_secret_key_create( int port_, int network, ffi.Pointer mnemonic, ffi.Pointer password, ) { - return _wire_bdk_descriptor_secret_key_create( + return _wire__crate__api__key__bdk_descriptor_secret_key_create( port_, network, mnemonic, @@ -3722,639 +3790,694 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_secret_key_createPtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_secret_key_createPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Int32, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create'); - late final _wire_bdk_descriptor_secret_key_create = - _wire_bdk_descriptor_secret_key_createPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_create = + _wire__crate__api__key__bdk_descriptor_secret_key_createPtr.asFunction< void Function(int, int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_derive( + void wire__crate__api__key__bdk_descriptor_secret_key_derive( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_secret_key_derive( + return _wire__crate__api__key__bdk_descriptor_secret_key_derive( port_, ptr, path, ); } - late final _wire_bdk_descriptor_secret_key_derivePtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_secret_key_derivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive'); - late final _wire_bdk_descriptor_secret_key_derive = - _wire_bdk_descriptor_secret_key_derivePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_derive = + _wire__crate__api__key__bdk_descriptor_secret_key_derivePtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_extend( + void wire__crate__api__key__bdk_descriptor_secret_key_extend( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_secret_key_extend( + return _wire__crate__api__key__bdk_descriptor_secret_key_extend( port_, ptr, path, ); } - late final _wire_bdk_descriptor_secret_key_extendPtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_secret_key_extendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend'); - late final _wire_bdk_descriptor_secret_key_extend = - _wire_bdk_descriptor_secret_key_extendPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_extend = + _wire__crate__api__key__bdk_descriptor_secret_key_extendPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_from_string( + void wire__crate__api__key__bdk_descriptor_secret_key_from_string( int port_, ffi.Pointer secret_key, ) { - return _wire_bdk_descriptor_secret_key_from_string( + return _wire__crate__api__key__bdk_descriptor_secret_key_from_string( port_, secret_key, ); } - late final _wire_bdk_descriptor_secret_key_from_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string'); - late final _wire_bdk_descriptor_secret_key_from_string = - _wire_bdk_descriptor_secret_key_from_stringPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_secret_key_from_stringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_from_string = + _wire__crate__api__key__bdk_descriptor_secret_key_from_stringPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_secret_bytes( + void wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( int port_, ffi.Pointer that, ) { - return _wire_bdk_descriptor_secret_key_secret_bytes( + return _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( port_, that, ); } - late final _wire_bdk_descriptor_secret_key_secret_bytesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes'); - late final _wire_bdk_descriptor_secret_key_secret_bytes = - _wire_bdk_descriptor_secret_key_secret_bytesPtr.asFunction< - void Function( - int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytesPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes = + _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytesPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_bdk_mnemonic_as_string( - int port_, + WireSyncRust2DartDco wire__crate__api__key__bdk_mnemonic_as_string( ffi.Pointer that, ) { - return _wire_bdk_mnemonic_as_string( - port_, + return _wire__crate__api__key__bdk_mnemonic_as_string( that, ); } - late final _wire_bdk_mnemonic_as_stringPtr = _lookup< + late final _wire__crate__api__key__bdk_mnemonic_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_as_string'); - late final _wire_bdk_mnemonic_as_string = _wire_bdk_mnemonic_as_stringPtr - .asFunction)>(); - - void wire_bdk_mnemonic_from_entropy( + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string'); + late final _wire__crate__api__key__bdk_mnemonic_as_string = + _wire__crate__api__key__bdk_mnemonic_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + void wire__crate__api__key__bdk_mnemonic_from_entropy( int port_, ffi.Pointer entropy, ) { - return _wire_bdk_mnemonic_from_entropy( + return _wire__crate__api__key__bdk_mnemonic_from_entropy( port_, entropy, ); } - late final _wire_bdk_mnemonic_from_entropyPtr = _lookup< + late final _wire__crate__api__key__bdk_mnemonic_from_entropyPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy'); - late final _wire_bdk_mnemonic_from_entropy = - _wire_bdk_mnemonic_from_entropyPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy'); + late final _wire__crate__api__key__bdk_mnemonic_from_entropy = + _wire__crate__api__key__bdk_mnemonic_from_entropyPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_mnemonic_from_string( + void wire__crate__api__key__bdk_mnemonic_from_string( int port_, ffi.Pointer mnemonic, ) { - return _wire_bdk_mnemonic_from_string( + return _wire__crate__api__key__bdk_mnemonic_from_string( port_, mnemonic, ); } - late final _wire_bdk_mnemonic_from_stringPtr = _lookup< + late final _wire__crate__api__key__bdk_mnemonic_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_from_string'); - late final _wire_bdk_mnemonic_from_string = - _wire_bdk_mnemonic_from_stringPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string'); + late final _wire__crate__api__key__bdk_mnemonic_from_string = + _wire__crate__api__key__bdk_mnemonic_from_stringPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_mnemonic_new( + void wire__crate__api__key__bdk_mnemonic_new( int port_, int word_count, ) { - return _wire_bdk_mnemonic_new( + return _wire__crate__api__key__bdk_mnemonic_new( port_, word_count, ); } - late final _wire_bdk_mnemonic_newPtr = + late final _wire__crate__api__key__bdk_mnemonic_newPtr = _lookup>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_new'); - late final _wire_bdk_mnemonic_new = - _wire_bdk_mnemonic_newPtr.asFunction(); + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new'); + late final _wire__crate__api__key__bdk_mnemonic_new = + _wire__crate__api__key__bdk_mnemonic_newPtr + .asFunction(); + + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_as_string( + ffi.Pointer that, + ) { + return _wire__crate__api__psbt__bdk_psbt_as_string( + that, + ); + } + + late final _wire__crate__api__psbt__bdk_psbt_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string'); + late final _wire__crate__api__psbt__bdk_psbt_as_string = + _wire__crate__api__psbt__bdk_psbt_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_bdk_psbt_combine( + void wire__crate__api__psbt__bdk_psbt_combine( int port_, ffi.Pointer ptr, ffi.Pointer other, ) { - return _wire_bdk_psbt_combine( + return _wire__crate__api__psbt__bdk_psbt_combine( port_, ptr, other, ); } - late final _wire_bdk_psbt_combinePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_combinePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_combine'); - late final _wire_bdk_psbt_combine = _wire_bdk_psbt_combinePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine'); + late final _wire__crate__api__psbt__bdk_psbt_combine = + _wire__crate__api__psbt__bdk_psbt_combinePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_bdk_psbt_extract_tx( + void wire__crate__api__psbt__bdk_psbt_extract_tx( int port_, ffi.Pointer ptr, ) { - return _wire_bdk_psbt_extract_tx( + return _wire__crate__api__psbt__bdk_psbt_extract_tx( port_, ptr, ); } - late final _wire_bdk_psbt_extract_txPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_extract_txPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_extract_tx'); - late final _wire_bdk_psbt_extract_tx = _wire_bdk_psbt_extract_txPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx'); + late final _wire__crate__api__psbt__bdk_psbt_extract_tx = + _wire__crate__api__psbt__bdk_psbt_extract_txPtr + .asFunction)>(); - void wire_bdk_psbt_fee_amount( + void wire__crate__api__psbt__bdk_psbt_fee_amount( int port_, ffi.Pointer that, ) { - return _wire_bdk_psbt_fee_amount( + return _wire__crate__api__psbt__bdk_psbt_fee_amount( port_, that, ); } - late final _wire_bdk_psbt_fee_amountPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_fee_amountPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_fee_amount'); - late final _wire_bdk_psbt_fee_amount = _wire_bdk_psbt_fee_amountPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount'); + late final _wire__crate__api__psbt__bdk_psbt_fee_amount = + _wire__crate__api__psbt__bdk_psbt_fee_amountPtr + .asFunction)>(); - void wire_bdk_psbt_fee_rate( + void wire__crate__api__psbt__bdk_psbt_fee_rate( int port_, ffi.Pointer that, ) { - return _wire_bdk_psbt_fee_rate( + return _wire__crate__api__psbt__bdk_psbt_fee_rate( port_, that, ); } - late final _wire_bdk_psbt_fee_ratePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_fee_ratePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_fee_rate'); - late final _wire_bdk_psbt_fee_rate = _wire_bdk_psbt_fee_ratePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate'); + late final _wire__crate__api__psbt__bdk_psbt_fee_rate = + _wire__crate__api__psbt__bdk_psbt_fee_ratePtr + .asFunction)>(); - void wire_bdk_psbt_from_str( + void wire__crate__api__psbt__bdk_psbt_from_str( int port_, ffi.Pointer psbt_base64, ) { - return _wire_bdk_psbt_from_str( + return _wire__crate__api__psbt__bdk_psbt_from_str( port_, psbt_base64, ); } - late final _wire_bdk_psbt_from_strPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_from_strPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_from_str'); - late final _wire_bdk_psbt_from_str = _wire_bdk_psbt_from_strPtr.asFunction< - void Function(int, ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str'); + late final _wire__crate__api__psbt__bdk_psbt_from_str = + _wire__crate__api__psbt__bdk_psbt_from_strPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_psbt_json_serialize( + void wire__crate__api__psbt__bdk_psbt_json_serialize( int port_, ffi.Pointer that, ) { - return _wire_bdk_psbt_json_serialize( + return _wire__crate__api__psbt__bdk_psbt_json_serialize( port_, that, ); } - late final _wire_bdk_psbt_json_serializePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_json_serializePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_json_serialize'); - late final _wire_bdk_psbt_json_serialize = _wire_bdk_psbt_json_serializePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize'); + late final _wire__crate__api__psbt__bdk_psbt_json_serialize = + _wire__crate__api__psbt__bdk_psbt_json_serializePtr + .asFunction)>(); - void wire_bdk_psbt_serialize( + void wire__crate__api__psbt__bdk_psbt_serialize( int port_, ffi.Pointer that, ) { - return _wire_bdk_psbt_serialize( + return _wire__crate__api__psbt__bdk_psbt_serialize( port_, that, ); } - late final _wire_bdk_psbt_serializePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_serializePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_serialize'); - late final _wire_bdk_psbt_serialize = _wire_bdk_psbt_serializePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize'); + late final _wire__crate__api__psbt__bdk_psbt_serialize = + _wire__crate__api__psbt__bdk_psbt_serializePtr + .asFunction)>(); - void wire_bdk_psbt_txid( + void wire__crate__api__psbt__bdk_psbt_txid( int port_, ffi.Pointer that, ) { - return _wire_bdk_psbt_txid( + return _wire__crate__api__psbt__bdk_psbt_txid( port_, that, ); } - late final _wire_bdk_psbt_txidPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_txidPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_txid'); - late final _wire_bdk_psbt_txid = _wire_bdk_psbt_txidPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid'); + late final _wire__crate__api__psbt__bdk_psbt_txid = + _wire__crate__api__psbt__bdk_psbt_txidPtr + .asFunction)>(); - void wire_bdk_address_as_string( - int port_, + WireSyncRust2DartDco wire__crate__api__types__bdk_address_as_string( ffi.Pointer that, ) { - return _wire_bdk_address_as_string( - port_, + return _wire__crate__api__types__bdk_address_as_string( that, ); } - late final _wire_bdk_address_as_stringPtr = _lookup< + late final _wire__crate__api__types__bdk_address_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_as_string'); - late final _wire_bdk_address_as_string = _wire_bdk_address_as_stringPtr - .asFunction)>(); - - void wire_bdk_address_from_script( + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string'); + late final _wire__crate__api__types__bdk_address_as_string = + _wire__crate__api__types__bdk_address_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + void wire__crate__api__types__bdk_address_from_script( int port_, ffi.Pointer script, int network, ) { - return _wire_bdk_address_from_script( + return _wire__crate__api__types__bdk_address_from_script( port_, script, network, ); } - late final _wire_bdk_address_from_scriptPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_address_from_script'); - late final _wire_bdk_address_from_script = - _wire_bdk_address_from_scriptPtr.asFunction< + late final _wire__crate__api__types__bdk_address_from_scriptPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script'); + late final _wire__crate__api__types__bdk_address_from_script = + _wire__crate__api__types__bdk_address_from_scriptPtr.asFunction< void Function(int, ffi.Pointer, int)>(); - void wire_bdk_address_from_string( + void wire__crate__api__types__bdk_address_from_string( int port_, ffi.Pointer address, int network, ) { - return _wire_bdk_address_from_string( + return _wire__crate__api__types__bdk_address_from_string( port_, address, network, ); } - late final _wire_bdk_address_from_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_address_from_string'); - late final _wire_bdk_address_from_string = - _wire_bdk_address_from_stringPtr.asFunction< + late final _wire__crate__api__types__bdk_address_from_stringPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string'); + late final _wire__crate__api__types__bdk_address_from_string = + _wire__crate__api__types__bdk_address_from_stringPtr.asFunction< void Function( int, ffi.Pointer, int)>(); - void wire_bdk_address_is_valid_for_network( + void wire__crate__api__types__bdk_address_is_valid_for_network( int port_, ffi.Pointer that, int network, ) { - return _wire_bdk_address_is_valid_for_network( + return _wire__crate__api__types__bdk_address_is_valid_for_network( port_, that, network, ); } - late final _wire_bdk_address_is_valid_for_networkPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network'); - late final _wire_bdk_address_is_valid_for_network = - _wire_bdk_address_is_valid_for_networkPtr.asFunction< + late final _wire__crate__api__types__bdk_address_is_valid_for_networkPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network'); + late final _wire__crate__api__types__bdk_address_is_valid_for_network = + _wire__crate__api__types__bdk_address_is_valid_for_networkPtr.asFunction< void Function(int, ffi.Pointer, int)>(); - void wire_bdk_address_network( + void wire__crate__api__types__bdk_address_network( int port_, ffi.Pointer that, ) { - return _wire_bdk_address_network( + return _wire__crate__api__types__bdk_address_network( port_, that, ); } - late final _wire_bdk_address_networkPtr = _lookup< + late final _wire__crate__api__types__bdk_address_networkPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_network'); - late final _wire_bdk_address_network = _wire_bdk_address_networkPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network'); + late final _wire__crate__api__types__bdk_address_network = + _wire__crate__api__types__bdk_address_networkPtr + .asFunction)>(); - void wire_bdk_address_payload( + void wire__crate__api__types__bdk_address_payload( int port_, ffi.Pointer that, ) { - return _wire_bdk_address_payload( + return _wire__crate__api__types__bdk_address_payload( port_, that, ); } - late final _wire_bdk_address_payloadPtr = _lookup< + late final _wire__crate__api__types__bdk_address_payloadPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_payload'); - late final _wire_bdk_address_payload = _wire_bdk_address_payloadPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload'); + late final _wire__crate__api__types__bdk_address_payload = + _wire__crate__api__types__bdk_address_payloadPtr + .asFunction)>(); - void wire_bdk_address_script( + void wire__crate__api__types__bdk_address_script( int port_, ffi.Pointer ptr, ) { - return _wire_bdk_address_script( + return _wire__crate__api__types__bdk_address_script( port_, ptr, ); } - late final _wire_bdk_address_scriptPtr = _lookup< + late final _wire__crate__api__types__bdk_address_scriptPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_script'); - late final _wire_bdk_address_script = _wire_bdk_address_scriptPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script'); + late final _wire__crate__api__types__bdk_address_script = + _wire__crate__api__types__bdk_address_scriptPtr + .asFunction)>(); - void wire_bdk_address_to_qr_uri( - int port_, + WireSyncRust2DartDco wire__crate__api__types__bdk_address_to_qr_uri( ffi.Pointer that, ) { - return _wire_bdk_address_to_qr_uri( - port_, + return _wire__crate__api__types__bdk_address_to_qr_uri( that, ); } - late final _wire_bdk_address_to_qr_uriPtr = _lookup< + late final _wire__crate__api__types__bdk_address_to_qr_uriPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_to_qr_uri'); - late final _wire_bdk_address_to_qr_uri = _wire_bdk_address_to_qr_uriPtr - .asFunction)>(); + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri'); + late final _wire__crate__api__types__bdk_address_to_qr_uri = + _wire__crate__api__types__bdk_address_to_qr_uriPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__types__bdk_script_buf_as_string( + ffi.Pointer that, + ) { + return _wire__crate__api__types__bdk_script_buf_as_string( + that, + ); + } - void wire_bdk_script_buf_empty( + late final _wire__crate__api__types__bdk_script_buf_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string'); + late final _wire__crate__api__types__bdk_script_buf_as_string = + _wire__crate__api__types__bdk_script_buf_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + void wire__crate__api__types__bdk_script_buf_empty( int port_, ) { - return _wire_bdk_script_buf_empty( + return _wire__crate__api__types__bdk_script_buf_empty( port_, ); } - late final _wire_bdk_script_buf_emptyPtr = + late final _wire__crate__api__types__bdk_script_buf_emptyPtr = _lookup>( - 'frbgen_bdk_flutter_wire_bdk_script_buf_empty'); - late final _wire_bdk_script_buf_empty = - _wire_bdk_script_buf_emptyPtr.asFunction(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty'); + late final _wire__crate__api__types__bdk_script_buf_empty = + _wire__crate__api__types__bdk_script_buf_emptyPtr + .asFunction(); - void wire_bdk_script_buf_from_hex( + void wire__crate__api__types__bdk_script_buf_from_hex( int port_, ffi.Pointer s, ) { - return _wire_bdk_script_buf_from_hex( + return _wire__crate__api__types__bdk_script_buf_from_hex( port_, s, ); } - late final _wire_bdk_script_buf_from_hexPtr = _lookup< + late final _wire__crate__api__types__bdk_script_buf_from_hexPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_script_buf_from_hex'); - late final _wire_bdk_script_buf_from_hex = - _wire_bdk_script_buf_from_hexPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex'); + late final _wire__crate__api__types__bdk_script_buf_from_hex = + _wire__crate__api__types__bdk_script_buf_from_hexPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_script_buf_with_capacity( + void wire__crate__api__types__bdk_script_buf_with_capacity( int port_, int capacity, ) { - return _wire_bdk_script_buf_with_capacity( + return _wire__crate__api__types__bdk_script_buf_with_capacity( port_, capacity, ); } - late final _wire_bdk_script_buf_with_capacityPtr = - _lookup>( - 'frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity'); - late final _wire_bdk_script_buf_with_capacity = - _wire_bdk_script_buf_with_capacityPtr + late final _wire__crate__api__types__bdk_script_buf_with_capacityPtr = _lookup< + ffi.NativeFunction>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity'); + late final _wire__crate__api__types__bdk_script_buf_with_capacity = + _wire__crate__api__types__bdk_script_buf_with_capacityPtr .asFunction(); - void wire_bdk_transaction_from_bytes( + void wire__crate__api__types__bdk_transaction_from_bytes( int port_, ffi.Pointer transaction_bytes, ) { - return _wire_bdk_transaction_from_bytes( + return _wire__crate__api__types__bdk_transaction_from_bytes( port_, transaction_bytes, ); } - late final _wire_bdk_transaction_from_bytesPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_from_bytesPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_from_bytes'); - late final _wire_bdk_transaction_from_bytes = - _wire_bdk_transaction_from_bytesPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes'); + late final _wire__crate__api__types__bdk_transaction_from_bytes = + _wire__crate__api__types__bdk_transaction_from_bytesPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_input( + void wire__crate__api__types__bdk_transaction_input( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_input( + return _wire__crate__api__types__bdk_transaction_input( port_, that, ); } - late final _wire_bdk_transaction_inputPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_input'); - late final _wire_bdk_transaction_input = _wire_bdk_transaction_inputPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input'); + late final _wire__crate__api__types__bdk_transaction_input = + _wire__crate__api__types__bdk_transaction_inputPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_is_coin_base( + void wire__crate__api__types__bdk_transaction_is_coin_base( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_is_coin_base( + return _wire__crate__api__types__bdk_transaction_is_coin_base( port_, that, ); } - late final _wire_bdk_transaction_is_coin_basePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_is_coin_basePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base'); - late final _wire_bdk_transaction_is_coin_base = - _wire_bdk_transaction_is_coin_basePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base'); + late final _wire__crate__api__types__bdk_transaction_is_coin_base = + _wire__crate__api__types__bdk_transaction_is_coin_basePtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_is_explicitly_rbf( + void wire__crate__api__types__bdk_transaction_is_explicitly_rbf( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_is_explicitly_rbf( + return _wire__crate__api__types__bdk_transaction_is_explicitly_rbf( port_, that, ); } - late final _wire_bdk_transaction_is_explicitly_rbfPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf'); - late final _wire_bdk_transaction_is_explicitly_rbf = - _wire_bdk_transaction_is_explicitly_rbfPtr.asFunction< + late final _wire__crate__api__types__bdk_transaction_is_explicitly_rbfPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf'); + late final _wire__crate__api__types__bdk_transaction_is_explicitly_rbf = + _wire__crate__api__types__bdk_transaction_is_explicitly_rbfPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_is_lock_time_enabled( + void wire__crate__api__types__bdk_transaction_is_lock_time_enabled( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_is_lock_time_enabled( + return _wire__crate__api__types__bdk_transaction_is_lock_time_enabled( port_, that, ); } - late final _wire_bdk_transaction_is_lock_time_enabledPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled'); - late final _wire_bdk_transaction_is_lock_time_enabled = - _wire_bdk_transaction_is_lock_time_enabledPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__types__bdk_transaction_is_lock_time_enabledPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled'); + late final _wire__crate__api__types__bdk_transaction_is_lock_time_enabled = + _wire__crate__api__types__bdk_transaction_is_lock_time_enabledPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_lock_time( + void wire__crate__api__types__bdk_transaction_lock_time( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_lock_time( + return _wire__crate__api__types__bdk_transaction_lock_time( port_, that, ); } - late final _wire_bdk_transaction_lock_timePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_lock_timePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_lock_time'); - late final _wire_bdk_transaction_lock_time = - _wire_bdk_transaction_lock_timePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time'); + late final _wire__crate__api__types__bdk_transaction_lock_time = + _wire__crate__api__types__bdk_transaction_lock_timePtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_new( + void wire__crate__api__types__bdk_transaction_new( int port_, int version, ffi.Pointer lock_time, ffi.Pointer input, ffi.Pointer output, ) { - return _wire_bdk_transaction_new( + return _wire__crate__api__types__bdk_transaction_new( port_, version, lock_time, @@ -4363,7 +4486,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_transaction_newPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4371,9 +4494,9 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_new'); - late final _wire_bdk_transaction_new = - _wire_bdk_transaction_newPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new'); + late final _wire__crate__api__types__bdk_transaction_new = + _wire__crate__api__types__bdk_transaction_newPtr.asFunction< void Function( int, int, @@ -4381,223 +4504,233 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_transaction_output( + void wire__crate__api__types__bdk_transaction_output( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_output( + return _wire__crate__api__types__bdk_transaction_output( port_, that, ); } - late final _wire_bdk_transaction_outputPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_outputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_output'); - late final _wire_bdk_transaction_output = _wire_bdk_transaction_outputPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output'); + late final _wire__crate__api__types__bdk_transaction_output = + _wire__crate__api__types__bdk_transaction_outputPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_serialize( + void wire__crate__api__types__bdk_transaction_serialize( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_serialize( + return _wire__crate__api__types__bdk_transaction_serialize( port_, that, ); } - late final _wire_bdk_transaction_serializePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_serializePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_serialize'); - late final _wire_bdk_transaction_serialize = - _wire_bdk_transaction_serializePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize'); + late final _wire__crate__api__types__bdk_transaction_serialize = + _wire__crate__api__types__bdk_transaction_serializePtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_size( + void wire__crate__api__types__bdk_transaction_size( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_size( + return _wire__crate__api__types__bdk_transaction_size( port_, that, ); } - late final _wire_bdk_transaction_sizePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_sizePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_size'); - late final _wire_bdk_transaction_size = _wire_bdk_transaction_sizePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size'); + late final _wire__crate__api__types__bdk_transaction_size = + _wire__crate__api__types__bdk_transaction_sizePtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_txid( + void wire__crate__api__types__bdk_transaction_txid( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_txid( + return _wire__crate__api__types__bdk_transaction_txid( port_, that, ); } - late final _wire_bdk_transaction_txidPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_txidPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_txid'); - late final _wire_bdk_transaction_txid = _wire_bdk_transaction_txidPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid'); + late final _wire__crate__api__types__bdk_transaction_txid = + _wire__crate__api__types__bdk_transaction_txidPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_version( + void wire__crate__api__types__bdk_transaction_version( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_version( + return _wire__crate__api__types__bdk_transaction_version( port_, that, ); } - late final _wire_bdk_transaction_versionPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_versionPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_version'); - late final _wire_bdk_transaction_version = _wire_bdk_transaction_versionPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version'); + late final _wire__crate__api__types__bdk_transaction_version = + _wire__crate__api__types__bdk_transaction_versionPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_vsize( + void wire__crate__api__types__bdk_transaction_vsize( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_vsize( + return _wire__crate__api__types__bdk_transaction_vsize( port_, that, ); } - late final _wire_bdk_transaction_vsizePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_vsizePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_vsize'); - late final _wire_bdk_transaction_vsize = _wire_bdk_transaction_vsizePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize'); + late final _wire__crate__api__types__bdk_transaction_vsize = + _wire__crate__api__types__bdk_transaction_vsizePtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_weight( + void wire__crate__api__types__bdk_transaction_weight( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_weight( + return _wire__crate__api__types__bdk_transaction_weight( port_, that, ); } - late final _wire_bdk_transaction_weightPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_weightPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_weight'); - late final _wire_bdk_transaction_weight = _wire_bdk_transaction_weightPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight'); + late final _wire__crate__api__types__bdk_transaction_weight = + _wire__crate__api__types__bdk_transaction_weightPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_wallet_get_address( + void wire__crate__api__wallet__bdk_wallet_get_address( int port_, ffi.Pointer ptr, ffi.Pointer address_index, ) { - return _wire_bdk_wallet_get_address( + return _wire__crate__api__wallet__bdk_wallet_get_address( port_, ptr, address_index, ); } - late final _wire_bdk_wallet_get_addressPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_get_addressPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_address'); - late final _wire_bdk_wallet_get_address = - _wire_bdk_wallet_get_addressPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address'); + late final _wire__crate__api__wallet__bdk_wallet_get_address = + _wire__crate__api__wallet__bdk_wallet_get_addressPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_wallet_get_balance( + void wire__crate__api__wallet__bdk_wallet_get_balance( int port_, ffi.Pointer that, ) { - return _wire_bdk_wallet_get_balance( + return _wire__crate__api__wallet__bdk_wallet_get_balance( port_, that, ); } - late final _wire_bdk_wallet_get_balancePtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_get_balancePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_balance'); - late final _wire_bdk_wallet_get_balance = _wire_bdk_wallet_get_balancePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance'); + late final _wire__crate__api__wallet__bdk_wallet_get_balance = + _wire__crate__api__wallet__bdk_wallet_get_balancePtr + .asFunction)>(); - void wire_bdk_wallet_get_descriptor_for_keychain( + void wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( int port_, ffi.Pointer ptr, int keychain, ) { - return _wire_bdk_wallet_get_descriptor_for_keychain( + return _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( port_, ptr, keychain, ); } - late final _wire_bdk_wallet_get_descriptor_for_keychainPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain'); - late final _wire_bdk_wallet_get_descriptor_for_keychain = - _wire_bdk_wallet_get_descriptor_for_keychainPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + late final _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychainPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain'); + late final _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain = + _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychainPtr + .asFunction< + void Function(int, ffi.Pointer, int)>(); - void wire_bdk_wallet_get_internal_address( + void wire__crate__api__wallet__bdk_wallet_get_internal_address( int port_, ffi.Pointer ptr, ffi.Pointer address_index, ) { - return _wire_bdk_wallet_get_internal_address( + return _wire__crate__api__wallet__bdk_wallet_get_internal_address( port_, ptr, address_index, ); } - late final _wire_bdk_wallet_get_internal_addressPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address'); - late final _wire_bdk_wallet_get_internal_address = - _wire_bdk_wallet_get_internal_addressPtr.asFunction< + late final _wire__crate__api__wallet__bdk_wallet_get_internal_addressPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address'); + late final _wire__crate__api__wallet__bdk_wallet_get_internal_address = + _wire__crate__api__wallet__bdk_wallet_get_internal_addressPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_wallet_get_psbt_input( + void wire__crate__api__wallet__bdk_wallet_get_psbt_input( int port_, ffi.Pointer that, ffi.Pointer utxo, bool only_witness_utxo, ffi.Pointer sighash_type, ) { - return _wire_bdk_wallet_get_psbt_input( + return _wire__crate__api__wallet__bdk_wallet_get_psbt_input( port_, that, utxo, @@ -4606,7 +4739,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_wallet_get_psbt_inputPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_get_psbt_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4614,9 +4747,9 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Bool, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input'); - late final _wire_bdk_wallet_get_psbt_input = - _wire_bdk_wallet_get_psbt_inputPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input'); + late final _wire__crate__api__wallet__bdk_wallet_get_psbt_input = + _wire__crate__api__wallet__bdk_wallet_get_psbt_inputPtr.asFunction< void Function( int, ffi.Pointer, @@ -4624,90 +4757,93 @@ class CApiWire implements BaseWire { bool, ffi.Pointer)>(); - void wire_bdk_wallet_is_mine( + void wire__crate__api__wallet__bdk_wallet_is_mine( int port_, ffi.Pointer that, ffi.Pointer script, ) { - return _wire_bdk_wallet_is_mine( + return _wire__crate__api__wallet__bdk_wallet_is_mine( port_, that, script, ); } - late final _wire_bdk_wallet_is_minePtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_is_minePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_is_mine'); - late final _wire_bdk_wallet_is_mine = _wire_bdk_wallet_is_minePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine'); + late final _wire__crate__api__wallet__bdk_wallet_is_mine = + _wire__crate__api__wallet__bdk_wallet_is_minePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_bdk_wallet_list_transactions( + void wire__crate__api__wallet__bdk_wallet_list_transactions( int port_, ffi.Pointer that, bool include_raw, ) { - return _wire_bdk_wallet_list_transactions( + return _wire__crate__api__wallet__bdk_wallet_list_transactions( port_, that, include_raw, ); } - late final _wire_bdk_wallet_list_transactionsPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_list_transactionsPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Bool)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_list_transactions'); - late final _wire_bdk_wallet_list_transactions = - _wire_bdk_wallet_list_transactionsPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions'); + late final _wire__crate__api__wallet__bdk_wallet_list_transactions = + _wire__crate__api__wallet__bdk_wallet_list_transactionsPtr.asFunction< void Function(int, ffi.Pointer, bool)>(); - void wire_bdk_wallet_list_unspent( + void wire__crate__api__wallet__bdk_wallet_list_unspent( int port_, ffi.Pointer that, ) { - return _wire_bdk_wallet_list_unspent( + return _wire__crate__api__wallet__bdk_wallet_list_unspent( port_, that, ); } - late final _wire_bdk_wallet_list_unspentPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_list_unspentPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_list_unspent'); - late final _wire_bdk_wallet_list_unspent = _wire_bdk_wallet_list_unspentPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent'); + late final _wire__crate__api__wallet__bdk_wallet_list_unspent = + _wire__crate__api__wallet__bdk_wallet_list_unspentPtr + .asFunction)>(); - void wire_bdk_wallet_network( + void wire__crate__api__wallet__bdk_wallet_network( int port_, ffi.Pointer that, ) { - return _wire_bdk_wallet_network( + return _wire__crate__api__wallet__bdk_wallet_network( port_, that, ); } - late final _wire_bdk_wallet_networkPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_networkPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_network'); - late final _wire_bdk_wallet_network = _wire_bdk_wallet_networkPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network'); + late final _wire__crate__api__wallet__bdk_wallet_network = + _wire__crate__api__wallet__bdk_wallet_networkPtr + .asFunction)>(); - void wire_bdk_wallet_new( + void wire__crate__api__wallet__bdk_wallet_new( int port_, ffi.Pointer descriptor, ffi.Pointer change_descriptor, int network, ffi.Pointer database_config, ) { - return _wire_bdk_wallet_new( + return _wire__crate__api__wallet__bdk_wallet_new( port_, descriptor, change_descriptor, @@ -4716,7 +4852,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_wallet_newPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4724,22 +4860,23 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Int32, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_new'); - late final _wire_bdk_wallet_new = _wire_bdk_wallet_newPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - void wire_bdk_wallet_sign( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new'); + late final _wire__crate__api__wallet__bdk_wallet_new = + _wire__crate__api__wallet__bdk_wallet_newPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + void wire__crate__api__wallet__bdk_wallet_sign( int port_, ffi.Pointer ptr, ffi.Pointer psbt, ffi.Pointer sign_options, ) { - return _wire_bdk_wallet_sign( + return _wire__crate__api__wallet__bdk_wallet_sign( port_, ptr, psbt, @@ -4747,43 +4884,45 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_wallet_signPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_signPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_sign'); - late final _wire_bdk_wallet_sign = _wire_bdk_wallet_signPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - void wire_bdk_wallet_sync( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign'); + late final _wire__crate__api__wallet__bdk_wallet_sign = + _wire__crate__api__wallet__bdk_wallet_signPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__wallet__bdk_wallet_sync( int port_, ffi.Pointer ptr, ffi.Pointer blockchain, ) { - return _wire_bdk_wallet_sync( + return _wire__crate__api__wallet__bdk_wallet_sync( port_, ptr, blockchain, ); } - late final _wire_bdk_wallet_syncPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_syncPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_sync'); - late final _wire_bdk_wallet_sync = _wire_bdk_wallet_syncPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync'); + late final _wire__crate__api__wallet__bdk_wallet_sync = + _wire__crate__api__wallet__bdk_wallet_syncPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_finish_bump_fee_tx_builder( + void wire__crate__api__wallet__finish_bump_fee_tx_builder( int port_, ffi.Pointer txid, double fee_rate, @@ -4792,7 +4931,7 @@ class CApiWire implements BaseWire { bool enable_rbf, ffi.Pointer n_sequence, ) { - return _wire_finish_bump_fee_tx_builder( + return _wire__crate__api__wallet__finish_bump_fee_tx_builder( port_, txid, fee_rate, @@ -4803,7 +4942,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_finish_bump_fee_tx_builderPtr = _lookup< + late final _wire__crate__api__wallet__finish_bump_fee_tx_builderPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4813,9 +4952,9 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Bool, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder'); - late final _wire_finish_bump_fee_tx_builder = - _wire_finish_bump_fee_tx_builderPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder'); + late final _wire__crate__api__wallet__finish_bump_fee_tx_builder = + _wire__crate__api__wallet__finish_bump_fee_tx_builderPtr.asFunction< void Function( int, ffi.Pointer, @@ -4825,7 +4964,7 @@ class CApiWire implements BaseWire { bool, ffi.Pointer)>(); - void wire_tx_builder_finish( + void wire__crate__api__wallet__tx_builder_finish( int port_, ffi.Pointer wallet, ffi.Pointer recipients, @@ -4841,7 +4980,7 @@ class CApiWire implements BaseWire { ffi.Pointer rbf, ffi.Pointer data, ) { - return _wire_tx_builder_finish( + return _wire__crate__api__wallet__tx_builder_finish( port_, wallet, recipients, @@ -4859,7 +4998,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_tx_builder_finishPtr = _lookup< + late final _wire__crate__api__wallet__tx_builder_finishPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4876,324 +5015,329 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_tx_builder_finish'); - late final _wire_tx_builder_finish = _wire_tx_builder_finishPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - void rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( + 'frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish'); + late final _wire__crate__api__wallet__tx_builder_finish = + _wire__crate__api__wallet__tx_builder_finishPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( + return _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_AnyBlockchainPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain'); - late final _rust_arc_increment_strong_count_RustOpaque_AnyBlockchain = - _rust_arc_increment_strong_count_RustOpaque_AnyBlockchainPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress = + _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( + void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( + return _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchainPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain'); - late final _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain = - _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchainPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress = + _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( + void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( + return _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptorPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor'); - late final _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor = - _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptorPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath = + _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( + void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( + return _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptorPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor'); - late final _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor = - _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptorPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath = + _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( + void rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( + return _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction'); - late final _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction = - _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain = + _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr .asFunction)>(); - void - rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( + void rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( + return _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction'); - late final _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction = - _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain = + _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + void + rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + return _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase'); - late final _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase = - _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor = + _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + void + rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + return _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase'); - late final _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase = - _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor = + _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress'); - late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress = - _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress'); - late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress = - _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath'); - late final _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath = - _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath'); - late final _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath = - _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKeyPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMapPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey'); - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey = - _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKeyPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMapPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKeyPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMapPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey = - _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKeyPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMapPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKeyPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey'); - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey = - _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKeyPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKeyPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey = - _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKeyPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysKeyMap( + void + rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysKeyMap( + return _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysKeyMapPtr = _lookup< - ffi.NativeFunction)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap'); - late final _rust_arc_increment_strong_count_RustOpaque_keysKeyMap = - _rust_arc_increment_strong_count_RustOpaque_keysKeyMapPtr + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr = + _lookup)>>( + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase = + _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysKeyMapPtr = _lookup< - ffi.NativeFunction)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysKeyMap = - _rust_arc_decrement_strong_count_RustOpaque_keysKeyMapPtr + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr = + _lookup)>>( + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( + void + rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( + return _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysbip39MnemonicPtr = + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic'); - late final _rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic = - _rust_arc_increment_strong_count_RustOpaque_keysbip39MnemonicPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction = + _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysbip39MnemonicPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic = - _rust_arc_decrement_strong_count_RustOpaque_keysbip39MnemonicPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr .asFunction)>(); ffi.Pointer cst_new_box_autoadd_address_error() { @@ -5779,10 +5923,14 @@ class CApiWire implements BaseWire { _dummy_method_to_enforce_bundlingPtr.asFunction(); } -typedef DartPostCObjectFnType = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(DartPort port_id, ffi.Pointer message)>>; +typedef DartPostCObjectFnType + = ffi.Pointer>; +typedef DartPostCObjectFnTypeFunction = ffi.Bool Function( + DartPort port_id, ffi.Pointer message); +typedef DartDartPostCObjectFnTypeFunction = bool Function( + DartDartPort port_id, ffi.Pointer message); typedef DartPort = ffi.Int64; +typedef DartDartPort = int; final class wire_cst_bdk_blockchain extends ffi.Struct { @ffi.UintPtr() @@ -5797,7 +5945,7 @@ final class wire_cst_list_prim_u_8_strict extends ffi.Struct { } final class wire_cst_bdk_transaction extends ffi.Struct { - external ffi.Pointer inner; + external ffi.Pointer s; } final class wire_cst_electrum_config extends ffi.Struct { diff --git a/lib/src/generated/frb_generated.web.dart b/lib/src/generated/frb_generated.web.dart deleted file mode 100644 index 15b52176..00000000 --- a/lib/src/generated/frb_generated.web.dart +++ /dev/null @@ -1,3382 +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/blockchain.dart'; -import 'api/descriptor.dart'; -import 'api/error.dart'; -import 'api/key.dart'; -import 'api/psbt.dart'; -import 'api/types.dart'; -import 'api/wallet.dart'; -import 'dart:async'; -import 'dart:convert'; -import 'frb_generated.dart'; -import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_web.dart'; - -abstract class CApiApiImplPlatform extends BaseApiImpl { - CApiApiImplPlatform({ - required super.handler, - required super.wire, - required super.generalizedFrbRustBinding, - required super.portManager, - }); - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_AnyBlockchainPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ExtendedDescriptorPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr => wire - .rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BdkBitcoinAddressPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey; - - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeysKeyMapPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_keysKeyMap; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysBip39MnemonicPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic; - - @protected - AnyBlockchain dco_decode_RustOpaque_AnyBlockchain(dynamic raw); - - @protected - ExtendedDescriptor dco_decode_RustOpaque_ExtendedDescriptor(dynamic raw); - - @protected - MutexPartiallySignedTransaction - dco_decode_RustOpaque_MutexPartiallySignedTransaction(dynamic raw); - - @protected - MutexBdkWalletAnyDatabase dco_decode_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic raw); - - @protected - BdkBitcoinAddress dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw); - - @protected - BitcoinBip32DerivationPath dco_decode_RustOpaque_bitcoinbip32DerivationPath( - dynamic raw); - - @protected - KeysDescriptorPublicKey dco_decode_RustOpaque_keysDescriptorPublicKey( - dynamic raw); - - @protected - KeysDescriptorSecretKey dco_decode_RustOpaque_keysDescriptorSecretKey( - dynamic raw); - - @protected - KeysKeyMap dco_decode_RustOpaque_keysKeyMap(dynamic raw); - - @protected - KeysBip39Mnemonic dco_decode_RustOpaque_keysbip39Mnemonic(dynamic raw); - - @protected - String dco_decode_String(dynamic raw); - - @protected - AddressError dco_decode_address_error(dynamic raw); - - @protected - AddressIndex dco_decode_address_index(dynamic raw); - - @protected - Auth dco_decode_auth(dynamic raw); - - @protected - Balance dco_decode_balance(dynamic raw); - - @protected - BdkAddress dco_decode_bdk_address(dynamic raw); - - @protected - BdkBlockchain dco_decode_bdk_blockchain(dynamic raw); - - @protected - BdkDerivationPath dco_decode_bdk_derivation_path(dynamic raw); - - @protected - BdkDescriptor dco_decode_bdk_descriptor(dynamic raw); - - @protected - BdkDescriptorPublicKey dco_decode_bdk_descriptor_public_key(dynamic raw); - - @protected - BdkDescriptorSecretKey dco_decode_bdk_descriptor_secret_key(dynamic raw); - - @protected - BdkError dco_decode_bdk_error(dynamic raw); - - @protected - BdkMnemonic dco_decode_bdk_mnemonic(dynamic raw); - - @protected - BdkPsbt dco_decode_bdk_psbt(dynamic raw); - - @protected - BdkScriptBuf dco_decode_bdk_script_buf(dynamic raw); - - @protected - BdkTransaction dco_decode_bdk_transaction(dynamic raw); - - @protected - BdkWallet dco_decode_bdk_wallet(dynamic raw); - - @protected - BlockTime dco_decode_block_time(dynamic raw); - - @protected - BlockchainConfig dco_decode_blockchain_config(dynamic raw); - - @protected - bool dco_decode_bool(dynamic raw); - - @protected - AddressError dco_decode_box_autoadd_address_error(dynamic raw); - - @protected - AddressIndex dco_decode_box_autoadd_address_index(dynamic raw); - - @protected - BdkAddress dco_decode_box_autoadd_bdk_address(dynamic raw); - - @protected - BdkBlockchain dco_decode_box_autoadd_bdk_blockchain(dynamic raw); - - @protected - BdkDerivationPath dco_decode_box_autoadd_bdk_derivation_path(dynamic raw); - - @protected - BdkDescriptor dco_decode_box_autoadd_bdk_descriptor(dynamic raw); - - @protected - BdkDescriptorPublicKey dco_decode_box_autoadd_bdk_descriptor_public_key( - dynamic raw); - - @protected - BdkDescriptorSecretKey dco_decode_box_autoadd_bdk_descriptor_secret_key( - dynamic raw); - - @protected - BdkMnemonic dco_decode_box_autoadd_bdk_mnemonic(dynamic raw); - - @protected - BdkPsbt dco_decode_box_autoadd_bdk_psbt(dynamic raw); - - @protected - BdkScriptBuf dco_decode_box_autoadd_bdk_script_buf(dynamic raw); - - @protected - BdkTransaction dco_decode_box_autoadd_bdk_transaction(dynamic raw); - - @protected - BdkWallet dco_decode_box_autoadd_bdk_wallet(dynamic raw); - - @protected - BlockTime dco_decode_box_autoadd_block_time(dynamic raw); - - @protected - BlockchainConfig dco_decode_box_autoadd_blockchain_config(dynamic raw); - - @protected - ConsensusError dco_decode_box_autoadd_consensus_error(dynamic raw); - - @protected - DatabaseConfig dco_decode_box_autoadd_database_config(dynamic raw); - - @protected - DescriptorError dco_decode_box_autoadd_descriptor_error(dynamic raw); - - @protected - ElectrumConfig dco_decode_box_autoadd_electrum_config(dynamic raw); - - @protected - EsploraConfig dco_decode_box_autoadd_esplora_config(dynamic raw); - - @protected - double dco_decode_box_autoadd_f_32(dynamic raw); - - @protected - FeeRate dco_decode_box_autoadd_fee_rate(dynamic raw); - - @protected - HexError dco_decode_box_autoadd_hex_error(dynamic raw); - - @protected - LocalUtxo dco_decode_box_autoadd_local_utxo(dynamic raw); - - @protected - LockTime dco_decode_box_autoadd_lock_time(dynamic raw); - - @protected - OutPoint dco_decode_box_autoadd_out_point(dynamic raw); - - @protected - PsbtSigHashType dco_decode_box_autoadd_psbt_sig_hash_type(dynamic raw); - - @protected - RbfValue dco_decode_box_autoadd_rbf_value(dynamic raw); - - @protected - (OutPoint, Input, int) dco_decode_box_autoadd_record_out_point_input_usize( - dynamic raw); - - @protected - RpcConfig dco_decode_box_autoadd_rpc_config(dynamic raw); - - @protected - RpcSyncParams dco_decode_box_autoadd_rpc_sync_params(dynamic raw); - - @protected - SignOptions dco_decode_box_autoadd_sign_options(dynamic raw); - - @protected - SledDbConfiguration dco_decode_box_autoadd_sled_db_configuration(dynamic raw); - - @protected - SqliteDbConfiguration dco_decode_box_autoadd_sqlite_db_configuration( - dynamic raw); - - @protected - int dco_decode_box_autoadd_u_32(dynamic raw); - - @protected - int dco_decode_box_autoadd_u_64(dynamic raw); - - @protected - int dco_decode_box_autoadd_u_8(dynamic raw); - - @protected - ChangeSpendPolicy dco_decode_change_spend_policy(dynamic raw); - - @protected - ConsensusError dco_decode_consensus_error(dynamic raw); - - @protected - DatabaseConfig dco_decode_database_config(dynamic raw); - - @protected - DescriptorError dco_decode_descriptor_error(dynamic raw); - - @protected - ElectrumConfig dco_decode_electrum_config(dynamic raw); - - @protected - EsploraConfig dco_decode_esplora_config(dynamic raw); - - @protected - double dco_decode_f_32(dynamic raw); - - @protected - FeeRate dco_decode_fee_rate(dynamic raw); - - @protected - HexError dco_decode_hex_error(dynamic raw); - - @protected - int dco_decode_i_32(dynamic raw); - - @protected - Input dco_decode_input(dynamic raw); - - @protected - KeychainKind dco_decode_keychain_kind(dynamic raw); - - @protected - List dco_decode_list_list_prim_u_8_strict(dynamic raw); - - @protected - List dco_decode_list_local_utxo(dynamic raw); - - @protected - List dco_decode_list_out_point(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 dco_decode_list_script_amount(dynamic raw); - - @protected - List dco_decode_list_transaction_details(dynamic raw); - - @protected - List dco_decode_list_tx_in(dynamic raw); - - @protected - List dco_decode_list_tx_out(dynamic raw); - - @protected - LocalUtxo dco_decode_local_utxo(dynamic raw); - - @protected - LockTime dco_decode_lock_time(dynamic raw); - - @protected - Network dco_decode_network(dynamic raw); - - @protected - String? dco_decode_opt_String(dynamic raw); - - @protected - BdkAddress? dco_decode_opt_box_autoadd_bdk_address(dynamic raw); - - @protected - BdkDescriptor? dco_decode_opt_box_autoadd_bdk_descriptor(dynamic raw); - - @protected - BdkScriptBuf? dco_decode_opt_box_autoadd_bdk_script_buf(dynamic raw); - - @protected - BdkTransaction? dco_decode_opt_box_autoadd_bdk_transaction(dynamic raw); - - @protected - BlockTime? dco_decode_opt_box_autoadd_block_time(dynamic raw); - - @protected - double? dco_decode_opt_box_autoadd_f_32(dynamic raw); - - @protected - FeeRate? dco_decode_opt_box_autoadd_fee_rate(dynamic raw); - - @protected - PsbtSigHashType? dco_decode_opt_box_autoadd_psbt_sig_hash_type(dynamic raw); - - @protected - RbfValue? dco_decode_opt_box_autoadd_rbf_value(dynamic raw); - - @protected - (OutPoint, Input, int)? - dco_decode_opt_box_autoadd_record_out_point_input_usize(dynamic raw); - - @protected - RpcSyncParams? dco_decode_opt_box_autoadd_rpc_sync_params(dynamic raw); - - @protected - SignOptions? dco_decode_opt_box_autoadd_sign_options(dynamic raw); - - @protected - int? dco_decode_opt_box_autoadd_u_32(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 - OutPoint dco_decode_out_point(dynamic raw); - - @protected - Payload dco_decode_payload(dynamic raw); - - @protected - PsbtSigHashType dco_decode_psbt_sig_hash_type(dynamic raw); - - @protected - RbfValue dco_decode_rbf_value(dynamic raw); - - @protected - (BdkAddress, int) dco_decode_record_bdk_address_u_32(dynamic raw); - - @protected - (BdkPsbt, TransactionDetails) dco_decode_record_bdk_psbt_transaction_details( - dynamic raw); - - @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw); - - @protected - RpcConfig dco_decode_rpc_config(dynamic raw); - - @protected - RpcSyncParams dco_decode_rpc_sync_params(dynamic raw); - - @protected - ScriptAmount dco_decode_script_amount(dynamic raw); - - @protected - SignOptions dco_decode_sign_options(dynamic raw); - - @protected - SledDbConfiguration dco_decode_sled_db_configuration(dynamic raw); - - @protected - SqliteDbConfiguration dco_decode_sqlite_db_configuration(dynamic raw); - - @protected - TransactionDetails dco_decode_transaction_details(dynamic raw); - - @protected - TxIn dco_decode_tx_in(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 - U8Array4 dco_decode_u_8_array_4(dynamic raw); - - @protected - void dco_decode_unit(dynamic raw); - - @protected - int dco_decode_usize(dynamic raw); - - @protected - Variant dco_decode_variant(dynamic raw); - - @protected - WitnessVersion dco_decode_witness_version(dynamic raw); - - @protected - WordCount dco_decode_word_count(dynamic raw); - - @protected - AnyBlockchain sse_decode_RustOpaque_AnyBlockchain( - SseDeserializer deserializer); - - @protected - ExtendedDescriptor sse_decode_RustOpaque_ExtendedDescriptor( - SseDeserializer deserializer); - - @protected - MutexPartiallySignedTransaction - sse_decode_RustOpaque_MutexPartiallySignedTransaction( - SseDeserializer deserializer); - - @protected - MutexBdkWalletAnyDatabase sse_decode_RustOpaque_MutexbdkWalletAnyDatabase( - SseDeserializer deserializer); - - @protected - BdkBitcoinAddress sse_decode_RustOpaque_bdkbitcoinAddress( - SseDeserializer deserializer); - - @protected - BitcoinBip32DerivationPath sse_decode_RustOpaque_bitcoinbip32DerivationPath( - SseDeserializer deserializer); - - @protected - KeysDescriptorPublicKey sse_decode_RustOpaque_keysDescriptorPublicKey( - SseDeserializer deserializer); - - @protected - KeysDescriptorSecretKey sse_decode_RustOpaque_keysDescriptorSecretKey( - SseDeserializer deserializer); - - @protected - KeysKeyMap sse_decode_RustOpaque_keysKeyMap(SseDeserializer deserializer); - - @protected - KeysBip39Mnemonic sse_decode_RustOpaque_keysbip39Mnemonic( - SseDeserializer deserializer); - - @protected - String sse_decode_String(SseDeserializer deserializer); - - @protected - AddressError sse_decode_address_error(SseDeserializer deserializer); - - @protected - AddressIndex sse_decode_address_index(SseDeserializer deserializer); - - @protected - Auth sse_decode_auth(SseDeserializer deserializer); - - @protected - Balance sse_decode_balance(SseDeserializer deserializer); - - @protected - BdkAddress sse_decode_bdk_address(SseDeserializer deserializer); - - @protected - BdkBlockchain sse_decode_bdk_blockchain(SseDeserializer deserializer); - - @protected - BdkDerivationPath sse_decode_bdk_derivation_path( - SseDeserializer deserializer); - - @protected - BdkDescriptor sse_decode_bdk_descriptor(SseDeserializer deserializer); - - @protected - BdkDescriptorPublicKey sse_decode_bdk_descriptor_public_key( - SseDeserializer deserializer); - - @protected - BdkDescriptorSecretKey sse_decode_bdk_descriptor_secret_key( - SseDeserializer deserializer); - - @protected - BdkError sse_decode_bdk_error(SseDeserializer deserializer); - - @protected - BdkMnemonic sse_decode_bdk_mnemonic(SseDeserializer deserializer); - - @protected - BdkPsbt sse_decode_bdk_psbt(SseDeserializer deserializer); - - @protected - BdkScriptBuf sse_decode_bdk_script_buf(SseDeserializer deserializer); - - @protected - BdkTransaction sse_decode_bdk_transaction(SseDeserializer deserializer); - - @protected - BdkWallet sse_decode_bdk_wallet(SseDeserializer deserializer); - - @protected - BlockTime sse_decode_block_time(SseDeserializer deserializer); - - @protected - BlockchainConfig sse_decode_blockchain_config(SseDeserializer deserializer); - - @protected - bool sse_decode_bool(SseDeserializer deserializer); - - @protected - AddressError sse_decode_box_autoadd_address_error( - SseDeserializer deserializer); - - @protected - AddressIndex sse_decode_box_autoadd_address_index( - SseDeserializer deserializer); - - @protected - BdkAddress sse_decode_box_autoadd_bdk_address(SseDeserializer deserializer); - - @protected - BdkBlockchain sse_decode_box_autoadd_bdk_blockchain( - SseDeserializer deserializer); - - @protected - BdkDerivationPath sse_decode_box_autoadd_bdk_derivation_path( - SseDeserializer deserializer); - - @protected - BdkDescriptor sse_decode_box_autoadd_bdk_descriptor( - SseDeserializer deserializer); - - @protected - BdkDescriptorPublicKey sse_decode_box_autoadd_bdk_descriptor_public_key( - SseDeserializer deserializer); - - @protected - BdkDescriptorSecretKey sse_decode_box_autoadd_bdk_descriptor_secret_key( - SseDeserializer deserializer); - - @protected - BdkMnemonic sse_decode_box_autoadd_bdk_mnemonic(SseDeserializer deserializer); - - @protected - BdkPsbt sse_decode_box_autoadd_bdk_psbt(SseDeserializer deserializer); - - @protected - BdkScriptBuf sse_decode_box_autoadd_bdk_script_buf( - SseDeserializer deserializer); - - @protected - BdkTransaction sse_decode_box_autoadd_bdk_transaction( - SseDeserializer deserializer); - - @protected - BdkWallet sse_decode_box_autoadd_bdk_wallet(SseDeserializer deserializer); - - @protected - BlockTime sse_decode_box_autoadd_block_time(SseDeserializer deserializer); - - @protected - BlockchainConfig sse_decode_box_autoadd_blockchain_config( - SseDeserializer deserializer); - - @protected - ConsensusError sse_decode_box_autoadd_consensus_error( - SseDeserializer deserializer); - - @protected - DatabaseConfig sse_decode_box_autoadd_database_config( - SseDeserializer deserializer); - - @protected - DescriptorError sse_decode_box_autoadd_descriptor_error( - SseDeserializer deserializer); - - @protected - ElectrumConfig sse_decode_box_autoadd_electrum_config( - SseDeserializer deserializer); - - @protected - EsploraConfig sse_decode_box_autoadd_esplora_config( - SseDeserializer deserializer); - - @protected - double sse_decode_box_autoadd_f_32(SseDeserializer deserializer); - - @protected - FeeRate sse_decode_box_autoadd_fee_rate(SseDeserializer deserializer); - - @protected - HexError sse_decode_box_autoadd_hex_error(SseDeserializer deserializer); - - @protected - LocalUtxo sse_decode_box_autoadd_local_utxo(SseDeserializer deserializer); - - @protected - LockTime sse_decode_box_autoadd_lock_time(SseDeserializer deserializer); - - @protected - OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); - - @protected - PsbtSigHashType sse_decode_box_autoadd_psbt_sig_hash_type( - SseDeserializer deserializer); - - @protected - RbfValue sse_decode_box_autoadd_rbf_value(SseDeserializer deserializer); - - @protected - (OutPoint, Input, int) sse_decode_box_autoadd_record_out_point_input_usize( - SseDeserializer deserializer); - - @protected - RpcConfig sse_decode_box_autoadd_rpc_config(SseDeserializer deserializer); - - @protected - RpcSyncParams sse_decode_box_autoadd_rpc_sync_params( - SseDeserializer deserializer); - - @protected - SignOptions sse_decode_box_autoadd_sign_options(SseDeserializer deserializer); - - @protected - SledDbConfiguration sse_decode_box_autoadd_sled_db_configuration( - SseDeserializer deserializer); - - @protected - SqliteDbConfiguration sse_decode_box_autoadd_sqlite_db_configuration( - SseDeserializer deserializer); - - @protected - int sse_decode_box_autoadd_u_32(SseDeserializer deserializer); - - @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); - - @protected - int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); - - @protected - ChangeSpendPolicy sse_decode_change_spend_policy( - SseDeserializer deserializer); - - @protected - ConsensusError sse_decode_consensus_error(SseDeserializer deserializer); - - @protected - DatabaseConfig sse_decode_database_config(SseDeserializer deserializer); - - @protected - DescriptorError sse_decode_descriptor_error(SseDeserializer deserializer); - - @protected - ElectrumConfig sse_decode_electrum_config(SseDeserializer deserializer); - - @protected - EsploraConfig sse_decode_esplora_config(SseDeserializer deserializer); - - @protected - double sse_decode_f_32(SseDeserializer deserializer); - - @protected - FeeRate sse_decode_fee_rate(SseDeserializer deserializer); - - @protected - HexError sse_decode_hex_error(SseDeserializer deserializer); - - @protected - int sse_decode_i_32(SseDeserializer deserializer); - - @protected - Input sse_decode_input(SseDeserializer deserializer); - - @protected - KeychainKind sse_decode_keychain_kind(SseDeserializer deserializer); - - @protected - List sse_decode_list_list_prim_u_8_strict( - SseDeserializer deserializer); - - @protected - List sse_decode_list_local_utxo(SseDeserializer deserializer); - - @protected - List sse_decode_list_out_point(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 sse_decode_list_script_amount( - SseDeserializer deserializer); - - @protected - List sse_decode_list_transaction_details( - SseDeserializer deserializer); - - @protected - List sse_decode_list_tx_in(SseDeserializer deserializer); - - @protected - List sse_decode_list_tx_out(SseDeserializer deserializer); - - @protected - LocalUtxo sse_decode_local_utxo(SseDeserializer deserializer); - - @protected - LockTime sse_decode_lock_time(SseDeserializer deserializer); - - @protected - Network sse_decode_network(SseDeserializer deserializer); - - @protected - String? sse_decode_opt_String(SseDeserializer deserializer); - - @protected - BdkAddress? sse_decode_opt_box_autoadd_bdk_address( - SseDeserializer deserializer); - - @protected - BdkDescriptor? sse_decode_opt_box_autoadd_bdk_descriptor( - SseDeserializer deserializer); - - @protected - BdkScriptBuf? sse_decode_opt_box_autoadd_bdk_script_buf( - SseDeserializer deserializer); - - @protected - BdkTransaction? sse_decode_opt_box_autoadd_bdk_transaction( - SseDeserializer deserializer); - - @protected - BlockTime? sse_decode_opt_box_autoadd_block_time( - SseDeserializer deserializer); - - @protected - double? sse_decode_opt_box_autoadd_f_32(SseDeserializer deserializer); - - @protected - FeeRate? sse_decode_opt_box_autoadd_fee_rate(SseDeserializer deserializer); - - @protected - PsbtSigHashType? sse_decode_opt_box_autoadd_psbt_sig_hash_type( - SseDeserializer deserializer); - - @protected - RbfValue? sse_decode_opt_box_autoadd_rbf_value(SseDeserializer deserializer); - - @protected - (OutPoint, Input, int)? - sse_decode_opt_box_autoadd_record_out_point_input_usize( - SseDeserializer deserializer); - - @protected - RpcSyncParams? sse_decode_opt_box_autoadd_rpc_sync_params( - SseDeserializer deserializer); - - @protected - SignOptions? sse_decode_opt_box_autoadd_sign_options( - SseDeserializer deserializer); - - @protected - int? sse_decode_opt_box_autoadd_u_32(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 - OutPoint sse_decode_out_point(SseDeserializer deserializer); - - @protected - Payload sse_decode_payload(SseDeserializer deserializer); - - @protected - PsbtSigHashType sse_decode_psbt_sig_hash_type(SseDeserializer deserializer); - - @protected - RbfValue sse_decode_rbf_value(SseDeserializer deserializer); - - @protected - (BdkAddress, int) sse_decode_record_bdk_address_u_32( - SseDeserializer deserializer); - - @protected - (BdkPsbt, TransactionDetails) sse_decode_record_bdk_psbt_transaction_details( - SseDeserializer deserializer); - - @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( - SseDeserializer deserializer); - - @protected - RpcConfig sse_decode_rpc_config(SseDeserializer deserializer); - - @protected - RpcSyncParams sse_decode_rpc_sync_params(SseDeserializer deserializer); - - @protected - ScriptAmount sse_decode_script_amount(SseDeserializer deserializer); - - @protected - SignOptions sse_decode_sign_options(SseDeserializer deserializer); - - @protected - SledDbConfiguration sse_decode_sled_db_configuration( - SseDeserializer deserializer); - - @protected - SqliteDbConfiguration sse_decode_sqlite_db_configuration( - SseDeserializer deserializer); - - @protected - TransactionDetails sse_decode_transaction_details( - SseDeserializer deserializer); - - @protected - TxIn sse_decode_tx_in(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 - U8Array4 sse_decode_u_8_array_4(SseDeserializer deserializer); - - @protected - void sse_decode_unit(SseDeserializer deserializer); - - @protected - int sse_decode_usize(SseDeserializer deserializer); - - @protected - Variant sse_decode_variant(SseDeserializer deserializer); - - @protected - WitnessVersion sse_decode_witness_version(SseDeserializer deserializer); - - @protected - WordCount sse_decode_word_count(SseDeserializer deserializer); - - @protected - String cst_encode_String(String raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; - } - - @protected - List cst_encode_address_error(AddressError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is AddressError_Base58) { - return [0, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_Bech32) { - return [1, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_EmptyBech32Payload) { - return [2]; - } - if (raw is AddressError_InvalidBech32Variant) { - return [ - 3, - cst_encode_variant(raw.expected), - cst_encode_variant(raw.found) - ]; - } - if (raw is AddressError_InvalidWitnessVersion) { - return [4, cst_encode_u_8(raw.field0)]; - } - if (raw is AddressError_UnparsableWitnessVersion) { - return [5, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_MalformedWitnessVersion) { - return [6]; - } - if (raw is AddressError_InvalidWitnessProgramLength) { - return [7, cst_encode_usize(raw.field0)]; - } - if (raw is AddressError_InvalidSegwitV0ProgramLength) { - return [8, cst_encode_usize(raw.field0)]; - } - if (raw is AddressError_UncompressedPubkey) { - return [9]; - } - if (raw is AddressError_ExcessiveScriptSize) { - return [10]; - } - if (raw is AddressError_UnrecognizedScript) { - return [11]; - } - if (raw is AddressError_UnknownAddressType) { - return [12, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_NetworkValidation) { - return [ - 13, - cst_encode_network(raw.networkRequired), - cst_encode_network(raw.networkFound), - cst_encode_String(raw.address) - ]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_address_index(AddressIndex raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is AddressIndex_Increase) { - return [0]; - } - if (raw is AddressIndex_LastUnused) { - return [1]; - } - if (raw is AddressIndex_Peek) { - return [2, cst_encode_u_32(raw.index)]; - } - if (raw is AddressIndex_Reset) { - return [3, cst_encode_u_32(raw.index)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_auth(Auth raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is Auth_None) { - return [0]; - } - if (raw is Auth_UserPass) { - return [ - 1, - cst_encode_String(raw.username), - cst_encode_String(raw.password) - ]; - } - if (raw is Auth_Cookie) { - return [2, cst_encode_String(raw.file)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_balance(Balance raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_u_64(raw.immature), - cst_encode_u_64(raw.trustedPending), - cst_encode_u_64(raw.untrustedPending), - cst_encode_u_64(raw.confirmed), - cst_encode_u_64(raw.spendable), - cst_encode_u_64(raw.total) - ]; - } - - @protected - List cst_encode_bdk_address(BdkAddress raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_bdkbitcoinAddress(raw.ptr)]; - } - - @protected - List cst_encode_bdk_blockchain(BdkBlockchain raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_AnyBlockchain(raw.ptr)]; - } - - @protected - List cst_encode_bdk_derivation_path(BdkDerivationPath raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_bitcoinbip32DerivationPath(raw.ptr)]; - } - - @protected - List cst_encode_bdk_descriptor(BdkDescriptor raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_RustOpaque_ExtendedDescriptor(raw.extendedDescriptor), - cst_encode_RustOpaque_keysKeyMap(raw.keyMap) - ]; - } - - @protected - List cst_encode_bdk_descriptor_public_key( - BdkDescriptorPublicKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysDescriptorPublicKey(raw.ptr)]; - } - - @protected - List cst_encode_bdk_descriptor_secret_key( - BdkDescriptorSecretKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysDescriptorSecretKey(raw.ptr)]; - } - - @protected - List cst_encode_bdk_error(BdkError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is BdkError_Hex) { - return [0, cst_encode_box_autoadd_hex_error(raw.field0)]; - } - if (raw is BdkError_Consensus) { - return [1, cst_encode_box_autoadd_consensus_error(raw.field0)]; - } - if (raw is BdkError_VerifyTransaction) { - return [2, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Address) { - return [3, cst_encode_box_autoadd_address_error(raw.field0)]; - } - if (raw is BdkError_Descriptor) { - return [4, cst_encode_box_autoadd_descriptor_error(raw.field0)]; - } - if (raw is BdkError_InvalidU32Bytes) { - return [5, cst_encode_list_prim_u_8_strict(raw.field0)]; - } - if (raw is BdkError_Generic) { - return [6, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_ScriptDoesntHaveAddressForm) { - return [7]; - } - if (raw is BdkError_NoRecipients) { - return [8]; - } - if (raw is BdkError_NoUtxosSelected) { - return [9]; - } - if (raw is BdkError_OutputBelowDustLimit) { - return [10, cst_encode_usize(raw.field0)]; - } - if (raw is BdkError_InsufficientFunds) { - return [11, cst_encode_u_64(raw.needed), cst_encode_u_64(raw.available)]; - } - if (raw is BdkError_BnBTotalTriesExceeded) { - return [12]; - } - if (raw is BdkError_BnBNoExactMatch) { - return [13]; - } - if (raw is BdkError_UnknownUtxo) { - return [14]; - } - if (raw is BdkError_TransactionNotFound) { - return [15]; - } - if (raw is BdkError_TransactionConfirmed) { - return [16]; - } - if (raw is BdkError_IrreplaceableTransaction) { - return [17]; - } - if (raw is BdkError_FeeRateTooLow) { - return [18, cst_encode_f_32(raw.needed)]; - } - if (raw is BdkError_FeeTooLow) { - return [19, cst_encode_u_64(raw.needed)]; - } - if (raw is BdkError_FeeRateUnavailable) { - return [20]; - } - if (raw is BdkError_MissingKeyOrigin) { - return [21, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Key) { - return [22, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_ChecksumMismatch) { - return [23]; - } - if (raw is BdkError_SpendingPolicyRequired) { - return [24, cst_encode_keychain_kind(raw.field0)]; - } - if (raw is BdkError_InvalidPolicyPathError) { - return [25, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Signer) { - return [26, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidNetwork) { - return [ - 27, - cst_encode_network(raw.requested), - cst_encode_network(raw.found) - ]; - } - if (raw is BdkError_InvalidOutpoint) { - return [28, cst_encode_box_autoadd_out_point(raw.field0)]; - } - if (raw is BdkError_Encode) { - return [29, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Miniscript) { - return [30, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_MiniscriptPsbt) { - return [31, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Bip32) { - return [32, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Bip39) { - return [33, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Secp256k1) { - return [34, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Json) { - return [35, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Psbt) { - return [36, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_PsbtParse) { - return [37, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_MissingCachedScripts) { - return [38, cst_encode_usize(raw.field0), cst_encode_usize(raw.field1)]; - } - if (raw is BdkError_Electrum) { - return [39, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Esplora) { - return [40, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Sled) { - return [41, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Rpc) { - return [42, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Rusqlite) { - return [43, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidInput) { - return [44, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidLockTime) { - return [45, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidTransaction) { - return [46, cst_encode_String(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_bdk_mnemonic(BdkMnemonic raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysbip39Mnemonic(raw.ptr)]; - } - - @protected - List cst_encode_bdk_psbt(BdkPsbt raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_MutexPartiallySignedTransaction(raw.ptr)]; - } - - @protected - List cst_encode_bdk_script_buf(BdkScriptBuf raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_list_prim_u_8_strict(raw.bytes)]; - } - - @protected - List cst_encode_bdk_transaction(BdkTransaction raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.inner)]; - } - - @protected - List cst_encode_bdk_wallet(BdkWallet raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_MutexbdkWalletAnyDatabase(raw.ptr)]; - } - - @protected - List cst_encode_block_time(BlockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_u_32(raw.height), cst_encode_u_64(raw.timestamp)]; - } - - @protected - List cst_encode_blockchain_config(BlockchainConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is BlockchainConfig_Electrum) { - return [0, cst_encode_box_autoadd_electrum_config(raw.config)]; - } - if (raw is BlockchainConfig_Esplora) { - return [1, cst_encode_box_autoadd_esplora_config(raw.config)]; - } - if (raw is BlockchainConfig_Rpc) { - return [2, cst_encode_box_autoadd_rpc_config(raw.config)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_box_autoadd_address_error(AddressError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_address_error(raw); - } - - @protected - List cst_encode_box_autoadd_address_index(AddressIndex raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_address_index(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_address(BdkAddress raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_address(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_blockchain(BdkBlockchain raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_blockchain(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_derivation_path( - BdkDerivationPath raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_derivation_path(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_descriptor(BdkDescriptor raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_descriptor(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_descriptor_public_key( - BdkDescriptorPublicKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_descriptor_public_key(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_descriptor_secret_key( - BdkDescriptorSecretKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_descriptor_secret_key(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_mnemonic(BdkMnemonic raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_mnemonic(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_psbt(BdkPsbt raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_psbt(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_script_buf(BdkScriptBuf raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_script_buf(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_transaction(BdkTransaction raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_transaction(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_wallet(BdkWallet raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_wallet(raw); - } - - @protected - List cst_encode_box_autoadd_block_time(BlockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_block_time(raw); - } - - @protected - List cst_encode_box_autoadd_blockchain_config(BlockchainConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_blockchain_config(raw); - } - - @protected - List cst_encode_box_autoadd_consensus_error(ConsensusError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_consensus_error(raw); - } - - @protected - List cst_encode_box_autoadd_database_config(DatabaseConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_database_config(raw); - } - - @protected - List cst_encode_box_autoadd_descriptor_error(DescriptorError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_descriptor_error(raw); - } - - @protected - List cst_encode_box_autoadd_electrum_config(ElectrumConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_electrum_config(raw); - } - - @protected - List cst_encode_box_autoadd_esplora_config(EsploraConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_esplora_config(raw); - } - - @protected - double cst_encode_box_autoadd_f_32(double raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_f_32(raw); - } - - @protected - List cst_encode_box_autoadd_fee_rate(FeeRate raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_fee_rate(raw); - } - - @protected - List cst_encode_box_autoadd_hex_error(HexError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_hex_error(raw); - } - - @protected - List cst_encode_box_autoadd_local_utxo(LocalUtxo raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_local_utxo(raw); - } - - @protected - List cst_encode_box_autoadd_lock_time(LockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_lock_time(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_psbt_sig_hash_type(PsbtSigHashType raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_psbt_sig_hash_type(raw); - } - - @protected - List cst_encode_box_autoadd_rbf_value(RbfValue raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_rbf_value(raw); - } - - @protected - List cst_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_record_out_point_input_usize(raw); - } - - @protected - List cst_encode_box_autoadd_rpc_config(RpcConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_rpc_config(raw); - } - - @protected - List cst_encode_box_autoadd_rpc_sync_params(RpcSyncParams raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_rpc_sync_params(raw); - } - - @protected - List cst_encode_box_autoadd_sign_options(SignOptions raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_sign_options(raw); - } - - @protected - List cst_encode_box_autoadd_sled_db_configuration( - SledDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_sled_db_configuration(raw); - } - - @protected - List cst_encode_box_autoadd_sqlite_db_configuration( - SqliteDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_sqlite_db_configuration(raw); - } - - @protected - int cst_encode_box_autoadd_u_32(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_u_32(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_consensus_error(ConsensusError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is ConsensusError_Io) { - return [0, cst_encode_String(raw.field0)]; - } - if (raw is ConsensusError_OversizedVectorAllocation) { - return [1, cst_encode_usize(raw.requested), cst_encode_usize(raw.max)]; - } - if (raw is ConsensusError_InvalidChecksum) { - return [ - 2, - cst_encode_u_8_array_4(raw.expected), - cst_encode_u_8_array_4(raw.actual) - ]; - } - if (raw is ConsensusError_NonMinimalVarInt) { - return [3]; - } - if (raw is ConsensusError_ParseFailed) { - return [4, cst_encode_String(raw.field0)]; - } - if (raw is ConsensusError_UnsupportedSegwitFlag) { - return [5, cst_encode_u_8(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_database_config(DatabaseConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is DatabaseConfig_Memory) { - return [0]; - } - if (raw is DatabaseConfig_Sqlite) { - return [1, cst_encode_box_autoadd_sqlite_db_configuration(raw.config)]; - } - if (raw is DatabaseConfig_Sled) { - return [2, cst_encode_box_autoadd_sled_db_configuration(raw.config)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_descriptor_error(DescriptorError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is DescriptorError_InvalidHdKeyPath) { - return [0]; - } - if (raw is DescriptorError_InvalidDescriptorChecksum) { - return [1]; - } - if (raw is DescriptorError_HardenedDerivationXpub) { - return [2]; - } - if (raw is DescriptorError_MultiPath) { - return [3]; - } - if (raw is DescriptorError_Key) { - return [4, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Policy) { - return [5, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_InvalidDescriptorCharacter) { - return [6, cst_encode_u_8(raw.field0)]; - } - if (raw is DescriptorError_Bip32) { - return [7, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Base58) { - return [8, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Pk) { - return [9, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Miniscript) { - return [10, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Hex) { - return [11, cst_encode_String(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_electrum_config(ElectrumConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_String(raw.url), - cst_encode_opt_String(raw.socks5), - cst_encode_u_8(raw.retry), - cst_encode_opt_box_autoadd_u_8(raw.timeout), - cst_encode_u_64(raw.stopGap), - cst_encode_bool(raw.validateDomain) - ]; - } - - @protected - List cst_encode_esplora_config(EsploraConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_String(raw.baseUrl), - cst_encode_opt_String(raw.proxy), - cst_encode_opt_box_autoadd_u_8(raw.concurrency), - cst_encode_u_64(raw.stopGap), - cst_encode_opt_box_autoadd_u_64(raw.timeout) - ]; - } - - @protected - List cst_encode_fee_rate(FeeRate raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_f_32(raw.satPerVb)]; - } - - @protected - List cst_encode_hex_error(HexError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is HexError_InvalidChar) { - return [0, cst_encode_u_8(raw.field0)]; - } - if (raw is HexError_OddLengthString) { - return [1, cst_encode_usize(raw.field0)]; - } - if (raw is HexError_InvalidLength) { - return [2, cst_encode_usize(raw.field0), cst_encode_usize(raw.field1)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_input(Input raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.s)]; - } - - @protected - List cst_encode_list_list_prim_u_8_strict(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_list_prim_u_8_strict).toList(); - } - - @protected - List cst_encode_list_local_utxo(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_local_utxo).toList(); - } - - @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 - 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_script_amount(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_script_amount).toList(); - } - - @protected - List cst_encode_list_transaction_details( - List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_transaction_details).toList(); - } - - @protected - List cst_encode_list_tx_in(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_tx_in).toList(); - } - - @protected - List cst_encode_list_tx_out(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_tx_out).toList(); - } - - @protected - List cst_encode_local_utxo(LocalUtxo raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_out_point(raw.outpoint), - cst_encode_tx_out(raw.txout), - cst_encode_keychain_kind(raw.keychain), - cst_encode_bool(raw.isSpent) - ]; - } - - @protected - List cst_encode_lock_time(LockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is LockTime_Blocks) { - return [0, cst_encode_u_32(raw.field0)]; - } - if (raw is LockTime_Seconds) { - return [1, cst_encode_u_32(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @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 - List? cst_encode_opt_box_autoadd_bdk_address(BdkAddress? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_address(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_bdk_descriptor(BdkDescriptor? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_descriptor(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_bdk_script_buf(BdkScriptBuf? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_script_buf(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_bdk_transaction( - BdkTransaction? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_transaction(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_block_time(BlockTime? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_block_time(raw); - } - - @protected - double? cst_encode_opt_box_autoadd_f_32(double? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_f_32(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_fee_rate(FeeRate? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_fee_rate(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_psbt_sig_hash_type( - PsbtSigHashType? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_psbt_sig_hash_type(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_rbf_value(RbfValue? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_rbf_value(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null - ? null - : cst_encode_box_autoadd_record_out_point_input_usize(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_rpc_sync_params( - RpcSyncParams? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_rpc_sync_params(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_sign_options(SignOptions? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_sign_options(raw); - } - - @protected - int? cst_encode_opt_box_autoadd_u_32(int? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_u_32(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_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_payload(Payload raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is Payload_PubkeyHash) { - return [0, cst_encode_String(raw.pubkeyHash)]; - } - if (raw is Payload_ScriptHash) { - return [1, cst_encode_String(raw.scriptHash)]; - } - if (raw is Payload_WitnessProgram) { - return [ - 2, - cst_encode_witness_version(raw.version), - cst_encode_list_prim_u_8_strict(raw.program) - ]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_psbt_sig_hash_type(PsbtSigHashType raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_u_32(raw.inner)]; - } - - @protected - List cst_encode_rbf_value(RbfValue raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is RbfValue_RbfDefault) { - return [0]; - } - if (raw is RbfValue_Value) { - return [1, cst_encode_u_32(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_record_bdk_address_u_32((BdkAddress, int) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_bdk_address(raw.$1), cst_encode_u_32(raw.$2)]; - } - - @protected - List cst_encode_record_bdk_psbt_transaction_details( - (BdkPsbt, TransactionDetails) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_bdk_psbt(raw.$1), - cst_encode_transaction_details(raw.$2) - ]; - } - - @protected - List cst_encode_record_out_point_input_usize( - (OutPoint, Input, int) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_out_point(raw.$1), - cst_encode_input(raw.$2), - cst_encode_usize(raw.$3) - ]; - } - - @protected - List cst_encode_rpc_config(RpcConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_String(raw.url), - cst_encode_auth(raw.auth), - cst_encode_network(raw.network), - cst_encode_String(raw.walletName), - cst_encode_opt_box_autoadd_rpc_sync_params(raw.syncParams) - ]; - } - - @protected - List cst_encode_rpc_sync_params(RpcSyncParams raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_u_64(raw.startScriptCount), - cst_encode_u_64(raw.startTime), - cst_encode_bool(raw.forceStartTime), - cst_encode_u_64(raw.pollRateSec) - ]; - } - - @protected - List cst_encode_script_amount(ScriptAmount raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_bdk_script_buf(raw.script), cst_encode_u_64(raw.amount)]; - } - - @protected - List cst_encode_sign_options(SignOptions raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_bool(raw.trustWitnessUtxo), - cst_encode_opt_box_autoadd_u_32(raw.assumeHeight), - cst_encode_bool(raw.allowAllSighashes), - cst_encode_bool(raw.removePartialSigs), - cst_encode_bool(raw.tryFinalize), - cst_encode_bool(raw.signWithTapInternalKey), - cst_encode_bool(raw.allowGrinding) - ]; - } - - @protected - List cst_encode_sled_db_configuration(SledDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.path), cst_encode_String(raw.treeName)]; - } - - @protected - List cst_encode_sqlite_db_configuration(SqliteDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.path)]; - } - - @protected - List cst_encode_transaction_details(TransactionDetails raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_opt_box_autoadd_bdk_transaction(raw.transaction), - cst_encode_String(raw.txid), - cst_encode_u_64(raw.received), - cst_encode_u_64(raw.sent), - cst_encode_opt_box_autoadd_u_64(raw.fee), - cst_encode_opt_box_autoadd_block_time(raw.confirmationTime) - ]; - } - - @protected - List cst_encode_tx_in(TxIn raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_out_point(raw.previousOutput), - cst_encode_bdk_script_buf(raw.scriptSig), - cst_encode_u_32(raw.sequence), - cst_encode_list_list_prim_u_8_strict(raw.witness) - ]; - } - - @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_bdk_script_buf(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 - Uint8List cst_encode_u_8_array_4(U8Array4 raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return Uint8List.fromList(raw); - } - - @protected - int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw); - - @protected - int cst_encode_RustOpaque_ExtendedDescriptor(ExtendedDescriptor raw); - - @protected - int cst_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction raw); - - @protected - int cst_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase raw); - - @protected - int cst_encode_RustOpaque_bdkbitcoinAddress(BdkBitcoinAddress raw); - - @protected - int cst_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath raw); - - @protected - int cst_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey raw); - - @protected - int cst_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey raw); - - @protected - int cst_encode_RustOpaque_keysKeyMap(KeysKeyMap raw); - - @protected - int cst_encode_RustOpaque_keysbip39Mnemonic(KeysBip39Mnemonic raw); - - @protected - bool cst_encode_bool(bool raw); - - @protected - int cst_encode_change_spend_policy(ChangeSpendPolicy raw); - - @protected - double cst_encode_f_32(double raw); - - @protected - int cst_encode_i_32(int raw); - - @protected - int cst_encode_keychain_kind(KeychainKind raw); - - @protected - int cst_encode_network(Network 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 - int cst_encode_variant(Variant raw); - - @protected - int cst_encode_witness_version(WitnessVersion raw); - - @protected - int cst_encode_word_count(WordCount raw); - - @protected - void sse_encode_RustOpaque_AnyBlockchain( - AnyBlockchain self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_ExtendedDescriptor( - ExtendedDescriptor self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_bdkbitcoinAddress( - BdkBitcoinAddress self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysKeyMap( - KeysKeyMap self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysbip39Mnemonic( - KeysBip39Mnemonic self, SseSerializer serializer); - - @protected - void sse_encode_String(String self, SseSerializer serializer); - - @protected - void sse_encode_address_error(AddressError self, SseSerializer serializer); - - @protected - void sse_encode_address_index(AddressIndex self, SseSerializer serializer); - - @protected - void sse_encode_auth(Auth self, SseSerializer serializer); - - @protected - void sse_encode_balance(Balance self, SseSerializer serializer); - - @protected - void sse_encode_bdk_address(BdkAddress self, SseSerializer serializer); - - @protected - void sse_encode_bdk_blockchain(BdkBlockchain self, SseSerializer serializer); - - @protected - void sse_encode_bdk_derivation_path( - BdkDerivationPath self, SseSerializer serializer); - - @protected - void sse_encode_bdk_descriptor(BdkDescriptor self, SseSerializer serializer); - - @protected - void sse_encode_bdk_descriptor_public_key( - BdkDescriptorPublicKey self, SseSerializer serializer); - - @protected - void sse_encode_bdk_descriptor_secret_key( - BdkDescriptorSecretKey self, SseSerializer serializer); - - @protected - void sse_encode_bdk_error(BdkError self, SseSerializer serializer); - - @protected - void sse_encode_bdk_mnemonic(BdkMnemonic self, SseSerializer serializer); - - @protected - void sse_encode_bdk_psbt(BdkPsbt self, SseSerializer serializer); - - @protected - void sse_encode_bdk_script_buf(BdkScriptBuf self, SseSerializer serializer); - - @protected - void sse_encode_bdk_transaction( - BdkTransaction self, SseSerializer serializer); - - @protected - void sse_encode_bdk_wallet(BdkWallet self, SseSerializer serializer); - - @protected - void sse_encode_block_time(BlockTime self, SseSerializer serializer); - - @protected - void sse_encode_blockchain_config( - BlockchainConfig self, SseSerializer serializer); - - @protected - void sse_encode_bool(bool self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_address_error( - AddressError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_address_index( - AddressIndex self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_address( - BdkAddress self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_blockchain( - BdkBlockchain self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_derivation_path( - BdkDerivationPath self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_descriptor( - BdkDescriptor self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_descriptor_public_key( - BdkDescriptorPublicKey self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_descriptor_secret_key( - BdkDescriptorSecretKey self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_mnemonic( - BdkMnemonic self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_psbt(BdkPsbt self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_script_buf( - BdkScriptBuf self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_transaction( - BdkTransaction self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_wallet( - BdkWallet self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_block_time( - BlockTime self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_blockchain_config( - BlockchainConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_consensus_error( - ConsensusError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_database_config( - DatabaseConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_descriptor_error( - DescriptorError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_electrum_config( - ElectrumConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_esplora_config( - EsploraConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_f_32(double self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_fee_rate(FeeRate self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_hex_error( - HexError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_local_utxo( - LocalUtxo self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_lock_time( - LockTime self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_out_point( - OutPoint self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_psbt_sig_hash_type( - PsbtSigHashType self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_rbf_value( - RbfValue self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_rpc_config( - RpcConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_rpc_sync_params( - RpcSyncParams self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_sign_options( - SignOptions self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_sled_db_configuration( - SledDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_sqlite_db_configuration( - SqliteDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_u_32(int 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_change_spend_policy( - ChangeSpendPolicy self, SseSerializer serializer); - - @protected - void sse_encode_consensus_error( - ConsensusError self, SseSerializer serializer); - - @protected - void sse_encode_database_config( - DatabaseConfig self, SseSerializer serializer); - - @protected - void sse_encode_descriptor_error( - DescriptorError self, SseSerializer serializer); - - @protected - void sse_encode_electrum_config( - ElectrumConfig self, SseSerializer serializer); - - @protected - void sse_encode_esplora_config(EsploraConfig self, SseSerializer serializer); - - @protected - void sse_encode_f_32(double self, SseSerializer serializer); - - @protected - void sse_encode_fee_rate(FeeRate self, SseSerializer serializer); - - @protected - void sse_encode_hex_error(HexError self, SseSerializer serializer); - - @protected - void sse_encode_i_32(int self, SseSerializer serializer); - - @protected - void sse_encode_input(Input self, SseSerializer serializer); - - @protected - void sse_encode_keychain_kind(KeychainKind self, SseSerializer serializer); - - @protected - void sse_encode_list_list_prim_u_8_strict( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_local_utxo( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_out_point(List 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_script_amount( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_transaction_details( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_tx_in(List self, SseSerializer serializer); - - @protected - void sse_encode_list_tx_out(List self, SseSerializer serializer); - - @protected - void sse_encode_local_utxo(LocalUtxo self, SseSerializer serializer); - - @protected - void sse_encode_lock_time(LockTime self, SseSerializer serializer); - - @protected - void sse_encode_network(Network self, SseSerializer serializer); - - @protected - void sse_encode_opt_String(String? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_address( - BdkAddress? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_descriptor( - BdkDescriptor? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_script_buf( - BdkScriptBuf? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_transaction( - BdkTransaction? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_block_time( - BlockTime? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_f_32(double? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_fee_rate( - FeeRate? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_psbt_sig_hash_type( - PsbtSigHashType? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_rbf_value( - RbfValue? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_rpc_sync_params( - RpcSyncParams? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_sign_options( - SignOptions? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_u_32(int? 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_out_point(OutPoint self, SseSerializer serializer); - - @protected - void sse_encode_payload(Payload self, SseSerializer serializer); - - @protected - void sse_encode_psbt_sig_hash_type( - PsbtSigHashType self, SseSerializer serializer); - - @protected - void sse_encode_rbf_value(RbfValue self, SseSerializer serializer); - - @protected - void sse_encode_record_bdk_address_u_32( - (BdkAddress, int) self, SseSerializer serializer); - - @protected - void sse_encode_record_bdk_psbt_transaction_details( - (BdkPsbt, TransactionDetails) self, SseSerializer serializer); - - @protected - void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); - - @protected - void sse_encode_rpc_config(RpcConfig self, SseSerializer serializer); - - @protected - void sse_encode_rpc_sync_params(RpcSyncParams self, SseSerializer serializer); - - @protected - void sse_encode_script_amount(ScriptAmount self, SseSerializer serializer); - - @protected - void sse_encode_sign_options(SignOptions self, SseSerializer serializer); - - @protected - void sse_encode_sled_db_configuration( - SledDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_sqlite_db_configuration( - SqliteDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_transaction_details( - TransactionDetails self, SseSerializer serializer); - - @protected - void sse_encode_tx_in(TxIn 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_u_8_array_4(U8Array4 self, SseSerializer serializer); - - @protected - void sse_encode_unit(void self, SseSerializer serializer); - - @protected - void sse_encode_usize(int self, SseSerializer serializer); - - @protected - void sse_encode_variant(Variant self, SseSerializer serializer); - - @protected - void sse_encode_witness_version( - WitnessVersion self, SseSerializer serializer); - - @protected - void sse_encode_word_count(WordCount self, SseSerializer serializer); -} - -// Section: wire_class - -class CApiWire implements BaseWire { - CApiWire.fromExternalLibrary(ExternalLibrary lib); - - void wire_bdk_blockchain_broadcast(NativePortType port_, List that, - List transaction) => - wasmModule.wire_bdk_blockchain_broadcast(port_, that, transaction); - - void wire_bdk_blockchain_estimate_fee( - NativePortType port_, List that, Object target) => - wasmModule.wire_bdk_blockchain_estimate_fee(port_, that, target); - - void wire_bdk_blockchain_get_block_hash( - NativePortType port_, List that, int height) => - wasmModule.wire_bdk_blockchain_get_block_hash(port_, that, height); - - void wire_bdk_blockchain_get_height( - NativePortType port_, List that) => - wasmModule.wire_bdk_blockchain_get_height(port_, that); - - void wire_bdk_blockchain_new( - NativePortType port_, List blockchain_config) => - wasmModule.wire_bdk_blockchain_new(port_, blockchain_config); - - void wire_bdk_descriptor_as_string( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_as_string(port_, that); - - void wire_bdk_descriptor_as_string_private( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_as_string_private(port_, that); - - void wire_bdk_descriptor_max_satisfaction_weight( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_max_satisfaction_weight(port_, that); - - void wire_bdk_descriptor_new( - NativePortType port_, String descriptor, int network) => - wasmModule.wire_bdk_descriptor_new(port_, descriptor, network); - - void wire_bdk_descriptor_new_bip44(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip44( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip44_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip44_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_descriptor_new_bip49(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip49( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip49_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip49_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_descriptor_new_bip84(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip84( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip84_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip84_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_descriptor_new_bip86(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip86( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip86_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip86_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_derivation_path_from_string( - NativePortType port_, String path) => - wasmModule.wire_bdk_derivation_path_from_string(port_, path); - - void wire_bdk_descriptor_public_key_as_string( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_public_key_as_string(port_, that); - - void wire_bdk_descriptor_public_key_derive( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_public_key_derive(port_, ptr, path); - - void wire_bdk_descriptor_public_key_extend( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_public_key_extend(port_, ptr, path); - - void wire_bdk_descriptor_public_key_from_string( - NativePortType port_, String public_key) => - wasmModule.wire_bdk_descriptor_public_key_from_string(port_, public_key); - - void wire_bdk_descriptor_secret_key_as_public( - NativePortType port_, List ptr) => - wasmModule.wire_bdk_descriptor_secret_key_as_public(port_, ptr); - - void wire_bdk_descriptor_secret_key_as_string( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_secret_key_as_string(port_, that); - - void wire_bdk_descriptor_secret_key_create(NativePortType port_, int network, - List mnemonic, String? password) => - wasmModule.wire_bdk_descriptor_secret_key_create( - port_, network, mnemonic, password); - - void wire_bdk_descriptor_secret_key_derive( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_secret_key_derive(port_, ptr, path); - - void wire_bdk_descriptor_secret_key_extend( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_secret_key_extend(port_, ptr, path); - - void wire_bdk_descriptor_secret_key_from_string( - NativePortType port_, String secret_key) => - wasmModule.wire_bdk_descriptor_secret_key_from_string(port_, secret_key); - - void wire_bdk_descriptor_secret_key_secret_bytes( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_secret_key_secret_bytes(port_, that); - - void wire_bdk_mnemonic_as_string(NativePortType port_, List that) => - wasmModule.wire_bdk_mnemonic_as_string(port_, that); - - void wire_bdk_mnemonic_from_entropy( - NativePortType port_, List entropy) => - wasmModule.wire_bdk_mnemonic_from_entropy(port_, entropy); - - void wire_bdk_mnemonic_from_string(NativePortType port_, String mnemonic) => - wasmModule.wire_bdk_mnemonic_from_string(port_, mnemonic); - - void wire_bdk_mnemonic_new(NativePortType port_, int word_count) => - wasmModule.wire_bdk_mnemonic_new(port_, word_count); - - void wire_bdk_psbt_combine( - NativePortType port_, List ptr, List other) => - wasmModule.wire_bdk_psbt_combine(port_, ptr, other); - - void wire_bdk_psbt_extract_tx(NativePortType port_, List ptr) => - wasmModule.wire_bdk_psbt_extract_tx(port_, ptr); - - void wire_bdk_psbt_fee_amount(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_fee_amount(port_, that); - - void wire_bdk_psbt_fee_rate(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_fee_rate(port_, that); - - void wire_bdk_psbt_from_str(NativePortType port_, String psbt_base64) => - wasmModule.wire_bdk_psbt_from_str(port_, psbt_base64); - - void wire_bdk_psbt_json_serialize(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_json_serialize(port_, that); - - void wire_bdk_psbt_serialize(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_serialize(port_, that); - - void wire_bdk_psbt_txid(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_txid(port_, that); - - void wire_bdk_address_as_string(NativePortType port_, List that) => - wasmModule.wire_bdk_address_as_string(port_, that); - - void wire_bdk_address_from_script( - NativePortType port_, List script, int network) => - wasmModule.wire_bdk_address_from_script(port_, script, network); - - void wire_bdk_address_from_string( - NativePortType port_, String address, int network) => - wasmModule.wire_bdk_address_from_string(port_, address, network); - - void wire_bdk_address_is_valid_for_network( - NativePortType port_, List that, int network) => - wasmModule.wire_bdk_address_is_valid_for_network(port_, that, network); - - void wire_bdk_address_network(NativePortType port_, List that) => - wasmModule.wire_bdk_address_network(port_, that); - - void wire_bdk_address_payload(NativePortType port_, List that) => - wasmModule.wire_bdk_address_payload(port_, that); - - void wire_bdk_address_script(NativePortType port_, List ptr) => - wasmModule.wire_bdk_address_script(port_, ptr); - - void wire_bdk_address_to_qr_uri(NativePortType port_, List that) => - wasmModule.wire_bdk_address_to_qr_uri(port_, that); - - void wire_bdk_script_buf_empty(NativePortType port_) => - wasmModule.wire_bdk_script_buf_empty(port_); - - void wire_bdk_script_buf_from_hex(NativePortType port_, String s) => - wasmModule.wire_bdk_script_buf_from_hex(port_, s); - - void wire_bdk_script_buf_with_capacity(NativePortType port_, int capacity) => - wasmModule.wire_bdk_script_buf_with_capacity(port_, capacity); - - void wire_bdk_transaction_from_bytes( - NativePortType port_, List transaction_bytes) => - wasmModule.wire_bdk_transaction_from_bytes(port_, transaction_bytes); - - void wire_bdk_transaction_input(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_input(port_, that); - - void wire_bdk_transaction_is_coin_base( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_is_coin_base(port_, that); - - void wire_bdk_transaction_is_explicitly_rbf( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_is_explicitly_rbf(port_, that); - - void wire_bdk_transaction_is_lock_time_enabled( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_is_lock_time_enabled(port_, that); - - void wire_bdk_transaction_lock_time( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_lock_time(port_, that); - - void wire_bdk_transaction_new(NativePortType port_, int version, - List lock_time, List input, List output) => - wasmModule.wire_bdk_transaction_new( - port_, version, lock_time, input, output); - - void wire_bdk_transaction_output(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_output(port_, that); - - void wire_bdk_transaction_serialize( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_serialize(port_, that); - - void wire_bdk_transaction_size(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_size(port_, that); - - void wire_bdk_transaction_txid(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_txid(port_, that); - - void wire_bdk_transaction_version(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_version(port_, that); - - void wire_bdk_transaction_vsize(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_vsize(port_, that); - - void wire_bdk_transaction_weight(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_weight(port_, that); - - void wire_bdk_wallet_get_address(NativePortType port_, List ptr, - List address_index) => - wasmModule.wire_bdk_wallet_get_address(port_, ptr, address_index); - - void wire_bdk_wallet_get_balance(NativePortType port_, List that) => - wasmModule.wire_bdk_wallet_get_balance(port_, that); - - void wire_bdk_wallet_get_descriptor_for_keychain( - NativePortType port_, List ptr, int keychain) => - wasmModule.wire_bdk_wallet_get_descriptor_for_keychain( - port_, ptr, keychain); - - void wire_bdk_wallet_get_internal_address(NativePortType port_, - List ptr, List address_index) => - wasmModule.wire_bdk_wallet_get_internal_address( - port_, ptr, address_index); - - void wire_bdk_wallet_get_psbt_input( - NativePortType port_, - List that, - List utxo, - bool only_witness_utxo, - List? sighash_type) => - wasmModule.wire_bdk_wallet_get_psbt_input( - port_, that, utxo, only_witness_utxo, sighash_type); - - void wire_bdk_wallet_is_mine( - NativePortType port_, List that, List script) => - wasmModule.wire_bdk_wallet_is_mine(port_, that, script); - - void wire_bdk_wallet_list_transactions( - NativePortType port_, List that, bool include_raw) => - wasmModule.wire_bdk_wallet_list_transactions(port_, that, include_raw); - - void wire_bdk_wallet_list_unspent(NativePortType port_, List that) => - wasmModule.wire_bdk_wallet_list_unspent(port_, that); - - void wire_bdk_wallet_network(NativePortType port_, List that) => - wasmModule.wire_bdk_wallet_network(port_, that); - - void wire_bdk_wallet_new( - NativePortType port_, - List descriptor, - List? change_descriptor, - int network, - List database_config) => - wasmModule.wire_bdk_wallet_new( - port_, descriptor, change_descriptor, network, database_config); - - void wire_bdk_wallet_sign(NativePortType port_, List ptr, - List psbt, List? sign_options) => - wasmModule.wire_bdk_wallet_sign(port_, ptr, psbt, sign_options); - - void wire_bdk_wallet_sync( - NativePortType port_, List ptr, List blockchain) => - wasmModule.wire_bdk_wallet_sync(port_, ptr, blockchain); - - void wire_finish_bump_fee_tx_builder( - NativePortType port_, - String txid, - double fee_rate, - List? allow_shrinking, - List wallet, - bool enable_rbf, - int? n_sequence) => - wasmModule.wire_finish_bump_fee_tx_builder(port_, txid, fee_rate, - allow_shrinking, wallet, enable_rbf, n_sequence); - - void wire_tx_builder_finish( - NativePortType port_, - List wallet, - List recipients, - List utxos, - List? foreign_utxo, - List un_spendable, - int change_policy, - bool manually_selected_only, - double? fee_rate, - Object? fee_absolute, - bool drain_wallet, - List? drain_to, - List? rbf, - List data) => - wasmModule.wire_tx_builder_finish( - port_, - wallet, - recipients, - utxos, - foreign_utxo, - un_spendable, - change_policy, - manually_selected_only, - fee_rate, - fee_absolute, - drain_wallet, - drain_to, - rbf, - data); - - void rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(dynamic ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(dynamic ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(ptr); - - void rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(ptr); - - void rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(ptr); - - void rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysKeyMap(dynamic ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_keysKeyMap(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(dynamic ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(ptr); -} - -@JS('wasm_bindgen') -external CApiWasmModule get wasmModule; - -@JS() -@anonymous -class CApiWasmModule implements WasmModule { - @override - external Object /* Promise */ call([String? moduleName]); - - @override - external CApiWasmModule bind(dynamic thisArg, String moduleName); - - external void wire_bdk_blockchain_broadcast( - NativePortType port_, List that, List transaction); - - external void wire_bdk_blockchain_estimate_fee( - NativePortType port_, List that, Object target); - - external void wire_bdk_blockchain_get_block_hash( - NativePortType port_, List that, int height); - - external void wire_bdk_blockchain_get_height( - NativePortType port_, List that); - - external void wire_bdk_blockchain_new( - NativePortType port_, List blockchain_config); - - external void wire_bdk_descriptor_as_string( - NativePortType port_, List that); - - external void wire_bdk_descriptor_as_string_private( - NativePortType port_, List that); - - external void wire_bdk_descriptor_max_satisfaction_weight( - NativePortType port_, List that); - - external void wire_bdk_descriptor_new( - NativePortType port_, String descriptor, int network); - - external void wire_bdk_descriptor_new_bip44(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip44_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_descriptor_new_bip49(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip49_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_descriptor_new_bip84(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip84_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_descriptor_new_bip86(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip86_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_derivation_path_from_string( - NativePortType port_, String path); - - external void wire_bdk_descriptor_public_key_as_string( - NativePortType port_, List that); - - external void wire_bdk_descriptor_public_key_derive( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_public_key_extend( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_public_key_from_string( - NativePortType port_, String public_key); - - external void wire_bdk_descriptor_secret_key_as_public( - NativePortType port_, List ptr); - - external void wire_bdk_descriptor_secret_key_as_string( - NativePortType port_, List that); - - external void wire_bdk_descriptor_secret_key_create(NativePortType port_, - int network, List mnemonic, String? password); - - external void wire_bdk_descriptor_secret_key_derive( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_secret_key_extend( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_secret_key_from_string( - NativePortType port_, String secret_key); - - external void wire_bdk_descriptor_secret_key_secret_bytes( - NativePortType port_, List that); - - external void wire_bdk_mnemonic_as_string( - NativePortType port_, List that); - - external void wire_bdk_mnemonic_from_entropy( - NativePortType port_, List entropy); - - external void wire_bdk_mnemonic_from_string( - NativePortType port_, String mnemonic); - - external void wire_bdk_mnemonic_new(NativePortType port_, int word_count); - - external void wire_bdk_psbt_combine( - NativePortType port_, List ptr, List other); - - external void wire_bdk_psbt_extract_tx( - NativePortType port_, List ptr); - - external void wire_bdk_psbt_fee_amount( - NativePortType port_, List that); - - external void wire_bdk_psbt_fee_rate( - NativePortType port_, List that); - - external void wire_bdk_psbt_from_str( - NativePortType port_, String psbt_base64); - - external void wire_bdk_psbt_json_serialize( - NativePortType port_, List that); - - external void wire_bdk_psbt_serialize( - NativePortType port_, List that); - - external void wire_bdk_psbt_txid(NativePortType port_, List that); - - external void wire_bdk_address_as_string( - NativePortType port_, List that); - - external void wire_bdk_address_from_script( - NativePortType port_, List script, int network); - - external void wire_bdk_address_from_string( - NativePortType port_, String address, int network); - - external void wire_bdk_address_is_valid_for_network( - NativePortType port_, List that, int network); - - external void wire_bdk_address_network( - NativePortType port_, List that); - - external void wire_bdk_address_payload( - NativePortType port_, List that); - - external void wire_bdk_address_script( - NativePortType port_, List ptr); - - external void wire_bdk_address_to_qr_uri( - NativePortType port_, List that); - - external void wire_bdk_script_buf_empty(NativePortType port_); - - external void wire_bdk_script_buf_from_hex(NativePortType port_, String s); - - external void wire_bdk_script_buf_with_capacity( - NativePortType port_, int capacity); - - external void wire_bdk_transaction_from_bytes( - NativePortType port_, List transaction_bytes); - - external void wire_bdk_transaction_input( - NativePortType port_, List that); - - external void wire_bdk_transaction_is_coin_base( - NativePortType port_, List that); - - external void wire_bdk_transaction_is_explicitly_rbf( - NativePortType port_, List that); - - external void wire_bdk_transaction_is_lock_time_enabled( - NativePortType port_, List that); - - external void wire_bdk_transaction_lock_time( - NativePortType port_, List that); - - external void wire_bdk_transaction_new(NativePortType port_, int version, - List lock_time, List input, List output); - - external void wire_bdk_transaction_output( - NativePortType port_, List that); - - external void wire_bdk_transaction_serialize( - NativePortType port_, List that); - - external void wire_bdk_transaction_size( - NativePortType port_, List that); - - external void wire_bdk_transaction_txid( - NativePortType port_, List that); - - external void wire_bdk_transaction_version( - NativePortType port_, List that); - - external void wire_bdk_transaction_vsize( - NativePortType port_, List that); - - external void wire_bdk_transaction_weight( - NativePortType port_, List that); - - external void wire_bdk_wallet_get_address( - NativePortType port_, List ptr, List address_index); - - external void wire_bdk_wallet_get_balance( - NativePortType port_, List that); - - external void wire_bdk_wallet_get_descriptor_for_keychain( - NativePortType port_, List ptr, int keychain); - - external void wire_bdk_wallet_get_internal_address( - NativePortType port_, List ptr, List address_index); - - external void wire_bdk_wallet_get_psbt_input( - NativePortType port_, - List that, - List utxo, - bool only_witness_utxo, - List? sighash_type); - - external void wire_bdk_wallet_is_mine( - NativePortType port_, List that, List script); - - external void wire_bdk_wallet_list_transactions( - NativePortType port_, List that, bool include_raw); - - external void wire_bdk_wallet_list_unspent( - NativePortType port_, List that); - - external void wire_bdk_wallet_network( - NativePortType port_, List that); - - external void wire_bdk_wallet_new( - NativePortType port_, - List descriptor, - List? change_descriptor, - int network, - List database_config); - - external void wire_bdk_wallet_sign(NativePortType port_, List ptr, - List psbt, List? sign_options); - - external void wire_bdk_wallet_sync( - NativePortType port_, List ptr, List blockchain); - - external void wire_finish_bump_fee_tx_builder( - NativePortType port_, - String txid, - double fee_rate, - List? allow_shrinking, - List wallet, - bool enable_rbf, - int? n_sequence); - - external void wire_tx_builder_finish( - NativePortType port_, - List wallet, - List recipients, - List utxos, - List? foreign_utxo, - List un_spendable, - int change_policy, - bool manually_selected_only, - double? fee_rate, - Object? fee_absolute, - bool drain_wallet, - List? drain_to, - List? rbf, - List data); - - external void rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_keysKeyMap( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr); -} diff --git a/lib/src/utils/exceptions.dart b/lib/src/utils/exceptions.dart index 2ecbeec5..05ae163d 100644 --- a/lib/src/utils/exceptions.dart +++ b/lib/src/utils/exceptions.dart @@ -296,9 +296,9 @@ Exception mapHexError(HexError error) { invalidChar: (e) => HexException(message: "Non-hexadecimal character $e"), oddLengthString: (e) => HexException(message: "Purported hex string had odd length $e"), - invalidLength: (int expected, int found) => HexException( + invalidLength: (BigInt expected, BigInt found) => HexException( message: - "Tried to parse fixed-length hash from a string with the wrong type; \n expected: $expected, found: $found.")); + "Tried to parse fixed-length hash from a string with the wrong type; \n expected: ${expected.toString()}, found: ${found.toString()}.")); } Exception mapAddressError(AddressError error) { diff --git a/macos/Classes/frb_generated.h b/macos/Classes/frb_generated.h index 0564a94d..9a505397 100644 --- a/macos/Classes/frb_generated.h +++ b/macos/Classes/frb_generated.h @@ -24,7 +24,7 @@ typedef struct wire_cst_list_prim_u_8_strict { } wire_cst_list_prim_u_8_strict; typedef struct wire_cst_bdk_transaction { - struct wire_cst_list_prim_u_8_strict *inner; + struct wire_cst_list_prim_u_8_strict *s; } wire_cst_bdk_transaction; typedef struct wire_cst_electrum_config { @@ -722,340 +722,350 @@ typedef struct wire_cst_record_bdk_psbt_transaction_details { struct wire_cst_transaction_details field1; } wire_cst_record_bdk_psbt_transaction_details; -void frbgen_bdk_flutter_wire_bdk_blockchain_broadcast(int64_t port_, - struct wire_cst_bdk_blockchain *that, - struct wire_cst_bdk_transaction *transaction); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast(int64_t port_, + struct wire_cst_bdk_blockchain *that, + struct wire_cst_bdk_transaction *transaction); + +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create(int64_t port_, + struct wire_cst_blockchain_config *blockchain_config); -void frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint64_t target); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint64_t target); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint32_t height); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint32_t height); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_height(int64_t port_, - struct wire_cst_bdk_blockchain *that); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height(int64_t port_, + struct wire_cst_bdk_blockchain *that); -void frbgen_bdk_flutter_wire_bdk_blockchain_new(int64_t port_, - struct wire_cst_blockchain_config *blockchain_config); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight(int64_t port_, + struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new(int64_t port_, + struct wire_cst_list_prim_u_8_strict *descriptor, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new(int64_t port_, - struct wire_cst_list_prim_u_8_strict *descriptor, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string(struct wire_cst_bdk_derivation_path *that); -void frbgen_bdk_flutter_wire_bdk_derivation_path_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string(struct wire_cst_bdk_descriptor_public_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *public_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *public_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string(struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create(int64_t port_, - int32_t network, - struct wire_cst_bdk_mnemonic *mnemonic, - struct wire_cst_list_prim_u_8_strict *password); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create(int64_t port_, + int32_t network, + struct wire_cst_bdk_mnemonic *mnemonic, + struct wire_cst_list_prim_u_8_strict *password); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *secret_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *secret_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_as_string(int64_t port_, - struct wire_cst_bdk_mnemonic *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string(struct wire_cst_bdk_mnemonic *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy(int64_t port_, - struct wire_cst_list_prim_u_8_loose *entropy); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy(int64_t port_, + struct wire_cst_list_prim_u_8_loose *entropy); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *mnemonic); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *mnemonic); -void frbgen_bdk_flutter_wire_bdk_mnemonic_new(int64_t port_, int32_t word_count); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new(int64_t port_, int32_t word_count); -void frbgen_bdk_flutter_wire_bdk_psbt_combine(int64_t port_, - struct wire_cst_bdk_psbt *ptr, - struct wire_cst_bdk_psbt *other); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_extract_tx(int64_t port_, struct wire_cst_bdk_psbt *ptr); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine(int64_t port_, + struct wire_cst_bdk_psbt *ptr, + struct wire_cst_bdk_psbt *other); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_amount(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx(int64_t port_, + struct wire_cst_bdk_psbt *ptr); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_rate(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_from_str(int64_t port_, - struct wire_cst_list_prim_u_8_strict *psbt_base64); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_json_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *psbt_base64); -void frbgen_bdk_flutter_wire_bdk_psbt_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_txid(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_as_string(int64_t port_, - struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid(int64_t port_, + struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_from_script(int64_t port_, - struct wire_cst_bdk_script_buf *script, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *address, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script(int64_t port_, + struct wire_cst_bdk_script_buf *script, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network(int64_t port_, - struct wire_cst_bdk_address *that, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *address, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_network(int64_t port_, struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network(int64_t port_, + struct wire_cst_bdk_address *that, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_payload(int64_t port_, struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_script(int64_t port_, struct wire_cst_bdk_address *ptr); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_to_qr_uri(int64_t port_, - struct wire_cst_bdk_address *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script(int64_t port_, + struct wire_cst_bdk_address *ptr); -void frbgen_bdk_flutter_wire_bdk_script_buf_empty(int64_t port_); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_from_hex(int64_t port_, - struct wire_cst_list_prim_u_8_strict *s); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string(struct wire_cst_bdk_script_buf *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity(int64_t port_, uintptr_t capacity); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty(int64_t port_); -void frbgen_bdk_flutter_wire_bdk_transaction_from_bytes(int64_t port_, - struct wire_cst_list_prim_u_8_loose *transaction_bytes); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_bdk_flutter_wire_bdk_transaction_input(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity(int64_t port_, + uintptr_t capacity); -void frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes(int64_t port_, + struct wire_cst_list_prim_u_8_loose *transaction_bytes); -void frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_lock_time(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_new(int64_t port_, - int32_t version, - struct wire_cst_lock_time *lock_time, - struct wire_cst_list_tx_in *input, - struct wire_cst_list_tx_out *output); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_output(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_serialize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new(int64_t port_, + int32_t version, + struct wire_cst_lock_time *lock_time, + struct wire_cst_list_tx_in *input, + struct wire_cst_list_tx_out *output); -void frbgen_bdk_flutter_wire_bdk_transaction_size(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_txid(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_version(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_vsize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_weight(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_balance(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - int32_t keychain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_local_utxo *utxo, - bool only_witness_utxo, - struct wire_cst_psbt_sig_hash_type *sighash_type); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + int32_t keychain); -void frbgen_bdk_flutter_wire_bdk_wallet_is_mine(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_bdk_script_buf *script); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_list_transactions(int64_t port_, - struct wire_cst_bdk_wallet *that, - bool include_raw); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_local_utxo *utxo, + bool only_witness_utxo, + struct wire_cst_psbt_sig_hash_type *sighash_type); -void frbgen_bdk_flutter_wire_bdk_wallet_list_unspent(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_bdk_script_buf *script); -void frbgen_bdk_flutter_wire_bdk_wallet_network(int64_t port_, struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(int64_t port_, + struct wire_cst_bdk_wallet *that, + bool include_raw); -void frbgen_bdk_flutter_wire_bdk_wallet_new(int64_t port_, - struct wire_cst_bdk_descriptor *descriptor, - struct wire_cst_bdk_descriptor *change_descriptor, - int32_t network, - struct wire_cst_database_config *database_config); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sign(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_psbt *psbt, - struct wire_cst_sign_options *sign_options); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sync(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_blockchain *blockchain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new(int64_t port_, + struct wire_cst_bdk_descriptor *descriptor, + struct wire_cst_bdk_descriptor *change_descriptor, + int32_t network, + struct wire_cst_database_config *database_config); -void frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder(int64_t port_, - struct wire_cst_list_prim_u_8_strict *txid, - float fee_rate, - struct wire_cst_bdk_address *allow_shrinking, - struct wire_cst_bdk_wallet *wallet, - bool enable_rbf, - uint32_t *n_sequence); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_psbt *psbt, + struct wire_cst_sign_options *sign_options); -void frbgen_bdk_flutter_wire_tx_builder_finish(int64_t port_, - struct wire_cst_bdk_wallet *wallet, - struct wire_cst_list_script_amount *recipients, - struct wire_cst_list_out_point *utxos, - struct wire_cst_record_out_point_input_usize *foreign_utxo, - struct wire_cst_list_out_point *un_spendable, - int32_t change_policy, - bool manually_selected_only, - float *fee_rate, - uint64_t *fee_absolute, - bool drain_wallet, - struct wire_cst_bdk_script_buf *drain_to, - struct wire_cst_rbf_value *rbf, - struct wire_cst_list_prim_u_8_loose *data); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_blockchain *blockchain); + +void frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder(int64_t port_, + struct wire_cst_list_prim_u_8_strict *txid, + float fee_rate, + struct wire_cst_bdk_address *allow_shrinking, + struct wire_cst_bdk_wallet *wallet, + bool enable_rbf, + uint32_t *n_sequence); + +void frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish(int64_t port_, + struct wire_cst_bdk_wallet *wallet, + struct wire_cst_list_script_amount *recipients, + struct wire_cst_list_out_point *utxos, + struct wire_cst_record_out_point_input_usize *foreign_utxo, + struct wire_cst_list_out_point *un_spendable, + int32_t change_policy, + bool manually_selected_only, + float *fee_rate, + uint64_t *fee_absolute, + bool drain_wallet, + struct wire_cst_bdk_script_buf *drain_to, + struct wire_cst_rbf_value *rbf, + struct wire_cst_list_prim_u_8_loose *data); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); struct wire_cst_address_error *frbgen_bdk_flutter_cst_new_box_autoadd_address_error(void); @@ -1196,106 +1206,109 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_transaction_details); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_in); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_out); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_payload); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_to_qr_uri); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_broadcast); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_height); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_derivation_path_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_combine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_extract_tx); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_amount); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_rate); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_from_str); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_json_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_empty); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_from_hex); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_from_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_lock_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_output); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_size); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_version); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_vsize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_balance); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_is_mine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_transactions); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_unspent); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sign); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sync); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_tx_builder_finish); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish); dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); return dummy_var; } diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index 6041f725..2024072e 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -1,17 +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::blockchain::*; -use crate::api::descriptor::*; -use crate::api::key::*; -use crate::api::psbt::*; -use crate::api::types::*; -use crate::api::wallet::*; +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 @@ -20,63 +15,69 @@ flutter_rust_bridge::frb_generated_boilerplate_io!(); // Section: dart2rust -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 _) } } } @@ -457,7 +458,7 @@ impl CstDecode for wire_cst_bdk_transaction { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::BdkTransaction { crate::api::types::BdkTransaction { - inner: self.inner.cst_decode(), + s: self.s.cst_decode(), } } } @@ -1426,7 +1427,7 @@ impl Default for wire_cst_bdk_script_buf { impl NewWithNullPtr for wire_cst_bdk_transaction { fn new_with_null_ptr() -> Self { Self { - inner: core::ptr::null_mut(), + s: core::ptr::null_mut(), } } } @@ -1835,100 +1836,96 @@ impl Default for wire_cst_tx_out { } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_broadcast( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast( port_: i64, that: *mut wire_cst_bdk_blockchain, transaction: *mut wire_cst_bdk_transaction, ) { - wire_bdk_blockchain_broadcast_impl(port_, that, transaction) + wire__crate__api__blockchain__bdk_blockchain_broadcast_impl(port_, that, transaction) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create( port_: i64, - that: *mut wire_cst_bdk_blockchain, - target: u64, + blockchain_config: *mut wire_cst_blockchain_config, ) { - wire_bdk_blockchain_estimate_fee_impl(port_, that, target) + wire__crate__api__blockchain__bdk_blockchain_create_impl(port_, blockchain_config) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee( port_: i64, that: *mut wire_cst_bdk_blockchain, - height: u32, + target: u64, ) { - wire_bdk_blockchain_get_block_hash_impl(port_, that, height) + wire__crate__api__blockchain__bdk_blockchain_estimate_fee_impl(port_, that, target) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_get_height( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash( port_: i64, that: *mut wire_cst_bdk_blockchain, + height: u32, ) { - wire_bdk_blockchain_get_height_impl(port_, that) -} - -#[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_new( - port_: i64, - blockchain_config: *mut wire_cst_blockchain_config, -) { - wire_bdk_blockchain_new_impl(port_, blockchain_config) + wire__crate__api__blockchain__bdk_blockchain_get_block_hash_impl(port_, that, height) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_as_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height( port_: i64, - that: *mut wire_cst_bdk_descriptor, + that: *mut wire_cst_bdk_blockchain, ) { - wire_bdk_descriptor_as_string_impl(port_, that) + wire__crate__api__blockchain__bdk_blockchain_get_height_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string( that: *mut wire_cst_bdk_descriptor, -) { - wire_bdk_descriptor_as_string_private_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__descriptor__bdk_descriptor_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( port_: i64, that: *mut wire_cst_bdk_descriptor, ) { - wire_bdk_descriptor_max_satisfaction_weight_impl(port_, that) + wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new( port_: i64, descriptor: *mut wire_cst_list_prim_u_8_strict, network: i32, ) { - wire_bdk_descriptor_new_impl(port_, descriptor, network) + wire__crate__api__descriptor__bdk_descriptor_new_impl(port_, descriptor, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip44_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip44_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip44_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip44_public_impl( port_, public_key, fingerprint, @@ -1938,24 +1935,29 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip49_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip49_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip49_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip49_public_impl( port_, public_key, fingerprint, @@ -1965,24 +1967,29 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip84_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip84_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip84_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip84_public_impl( port_, public_key, fingerprint, @@ -1992,24 +1999,29 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip86_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip86_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip86_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip86_public_impl( port_, public_key, fingerprint, @@ -2019,490 +2031,525 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_derivation_path_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private( + that: *mut wire_cst_bdk_descriptor, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__descriptor__bdk_descriptor_to_string_private_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string( + that: *mut wire_cst_bdk_derivation_path, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_derivation_path_as_string_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string( port_: i64, path: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_derivation_path_from_string_impl(port_, path) + wire__crate__api__key__bdk_derivation_path_from_string_impl(port_, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string( that: *mut wire_cst_bdk_descriptor_public_key, -) { - wire_bdk_descriptor_public_key_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_descriptor_public_key_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive( port_: i64, ptr: *mut wire_cst_bdk_descriptor_public_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_public_key_derive_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_public_key_derive_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend( port_: i64, ptr: *mut wire_cst_bdk_descriptor_public_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_public_key_extend_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_public_key_extend_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string( port_: i64, public_key: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_descriptor_public_key_from_string_impl(port_, public_key) + wire__crate__api__key__bdk_descriptor_public_key_from_string_impl(port_, public_key) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public( port_: i64, ptr: *mut wire_cst_bdk_descriptor_secret_key, ) { - wire_bdk_descriptor_secret_key_as_public_impl(port_, ptr) + wire__crate__api__key__bdk_descriptor_secret_key_as_public_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string( that: *mut wire_cst_bdk_descriptor_secret_key, -) { - wire_bdk_descriptor_secret_key_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_descriptor_secret_key_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create( port_: i64, network: i32, mnemonic: *mut wire_cst_bdk_mnemonic, password: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) + wire__crate__api__key__bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive( port_: i64, ptr: *mut wire_cst_bdk_descriptor_secret_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_secret_key_derive_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_secret_key_derive_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend( port_: i64, ptr: *mut wire_cst_bdk_descriptor_secret_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_secret_key_extend_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_secret_key_extend_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string( port_: i64, secret_key: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_descriptor_secret_key_from_string_impl(port_, secret_key) + wire__crate__api__key__bdk_descriptor_secret_key_from_string_impl(port_, secret_key) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( port_: i64, that: *mut wire_cst_bdk_descriptor_secret_key, ) { - wire_bdk_descriptor_secret_key_secret_bytes_impl(port_, that) + wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string( that: *mut wire_cst_bdk_mnemonic, -) { - wire_bdk_mnemonic_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_mnemonic_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy( port_: i64, entropy: *mut wire_cst_list_prim_u_8_loose, ) { - wire_bdk_mnemonic_from_entropy_impl(port_, entropy) + wire__crate__api__key__bdk_mnemonic_from_entropy_impl(port_, entropy) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string( port_: i64, mnemonic: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_mnemonic_from_string_impl(port_, mnemonic) + wire__crate__api__key__bdk_mnemonic_from_string_impl(port_, mnemonic) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new( + port_: i64, + word_count: i32, +) { + wire__crate__api__key__bdk_mnemonic_new_impl(port_, word_count) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_new(port_: i64, word_count: i32) { - wire_bdk_mnemonic_new_impl(port_, word_count) +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string( + that: *mut wire_cst_bdk_psbt, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_combine( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine( port_: i64, ptr: *mut wire_cst_bdk_psbt, other: *mut wire_cst_bdk_psbt, ) { - wire_bdk_psbt_combine_impl(port_, ptr, other) + wire__crate__api__psbt__bdk_psbt_combine_impl(port_, ptr, other) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_extract_tx( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx( port_: i64, ptr: *mut wire_cst_bdk_psbt, ) { - wire_bdk_psbt_extract_tx_impl(port_, ptr) + wire__crate__api__psbt__bdk_psbt_extract_tx_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_fee_amount( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount( port_: i64, that: *mut wire_cst_bdk_psbt, ) { - wire_bdk_psbt_fee_amount_impl(port_, that) + wire__crate__api__psbt__bdk_psbt_fee_amount_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_fee_rate( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate( port_: i64, that: *mut wire_cst_bdk_psbt, ) { - wire_bdk_psbt_fee_rate_impl(port_, that) + wire__crate__api__psbt__bdk_psbt_fee_rate_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_from_str( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str( port_: i64, psbt_base64: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_psbt_from_str_impl(port_, psbt_base64) + wire__crate__api__psbt__bdk_psbt_from_str_impl(port_, psbt_base64) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_json_serialize( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize( port_: i64, that: *mut wire_cst_bdk_psbt, ) { - wire_bdk_psbt_json_serialize_impl(port_, that) + wire__crate__api__psbt__bdk_psbt_json_serialize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_serialize( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize( port_: i64, that: *mut wire_cst_bdk_psbt, ) { - wire_bdk_psbt_serialize_impl(port_, that) + wire__crate__api__psbt__bdk_psbt_serialize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_txid(port_: i64, that: *mut wire_cst_bdk_psbt) { - wire_bdk_psbt_txid_impl(port_, that) +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid( + port_: i64, + that: *mut wire_cst_bdk_psbt, +) { + wire__crate__api__psbt__bdk_psbt_txid_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string( that: *mut wire_cst_bdk_address, -) { - wire_bdk_address_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_from_script( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script( port_: i64, script: *mut wire_cst_bdk_script_buf, network: i32, ) { - wire_bdk_address_from_script_impl(port_, script, network) + wire__crate__api__types__bdk_address_from_script_impl(port_, script, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string( port_: i64, address: *mut wire_cst_list_prim_u_8_strict, network: i32, ) { - wire_bdk_address_from_string_impl(port_, address, network) + wire__crate__api__types__bdk_address_from_string_impl(port_, address, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network( port_: i64, that: *mut wire_cst_bdk_address, network: i32, ) { - wire_bdk_address_is_valid_for_network_impl(port_, that, network) + wire__crate__api__types__bdk_address_is_valid_for_network_impl(port_, that, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_network( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network( port_: i64, that: *mut wire_cst_bdk_address, ) { - wire_bdk_address_network_impl(port_, that) + wire__crate__api__types__bdk_address_network_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_payload( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload( port_: i64, that: *mut wire_cst_bdk_address, ) { - wire_bdk_address_payload_impl(port_, that) + wire__crate__api__types__bdk_address_payload_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_script( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script( port_: i64, ptr: *mut wire_cst_bdk_address, ) { - wire_bdk_address_script_impl(port_, ptr) + wire__crate__api__types__bdk_address_script_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_to_qr_uri( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri( that: *mut wire_cst_bdk_address, -) { - wire_bdk_address_to_qr_uri_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_to_qr_uri_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_empty(port_: i64) { - wire_bdk_script_buf_empty_impl(port_) +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string( + that: *mut wire_cst_bdk_script_buf, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_script_buf_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_from_hex( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty(port_: i64) { + wire__crate__api__types__bdk_script_buf_empty_impl(port_) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex( port_: i64, s: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_script_buf_from_hex_impl(port_, s) + wire__crate__api__types__bdk_script_buf_from_hex_impl(port_, s) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity( port_: i64, capacity: usize, ) { - wire_bdk_script_buf_with_capacity_impl(port_, capacity) + wire__crate__api__types__bdk_script_buf_with_capacity_impl(port_, capacity) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_from_bytes( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes( port_: i64, transaction_bytes: *mut wire_cst_list_prim_u_8_loose, ) { - wire_bdk_transaction_from_bytes_impl(port_, transaction_bytes) + wire__crate__api__types__bdk_transaction_from_bytes_impl(port_, transaction_bytes) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_input( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_input_impl(port_, that) + wire__crate__api__types__bdk_transaction_input_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_is_coin_base_impl(port_, that) + wire__crate__api__types__bdk_transaction_is_coin_base_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_is_explicitly_rbf_impl(port_, that) + wire__crate__api__types__bdk_transaction_is_explicitly_rbf_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_is_lock_time_enabled_impl(port_, that) + wire__crate__api__types__bdk_transaction_is_lock_time_enabled_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_lock_time( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_lock_time_impl(port_, that) + wire__crate__api__types__bdk_transaction_lock_time_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_new( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new( port_: i64, version: i32, lock_time: *mut wire_cst_lock_time, input: *mut wire_cst_list_tx_in, output: *mut wire_cst_list_tx_out, ) { - wire_bdk_transaction_new_impl(port_, version, lock_time, input, output) + wire__crate__api__types__bdk_transaction_new_impl(port_, version, lock_time, input, output) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_output( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_output_impl(port_, that) + wire__crate__api__types__bdk_transaction_output_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_serialize( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_serialize_impl(port_, that) + wire__crate__api__types__bdk_transaction_serialize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_size( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_size_impl(port_, that) + wire__crate__api__types__bdk_transaction_size_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_txid( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_txid_impl(port_, that) + wire__crate__api__types__bdk_transaction_txid_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_version( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_version_impl(port_, that) + wire__crate__api__types__bdk_transaction_version_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_vsize( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_vsize_impl(port_, that) + wire__crate__api__types__bdk_transaction_vsize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_weight( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_weight_impl(port_, that) + wire__crate__api__types__bdk_transaction_weight_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_address( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address( port_: i64, ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, ) { - wire_bdk_wallet_get_address_impl(port_, ptr, address_index) + wire__crate__api__wallet__bdk_wallet_get_address_impl(port_, ptr, address_index) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_balance( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance( port_: i64, that: *mut wire_cst_bdk_wallet, ) { - wire_bdk_wallet_get_balance_impl(port_, that) + wire__crate__api__wallet__bdk_wallet_get_balance_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( port_: i64, ptr: *mut wire_cst_bdk_wallet, keychain: i32, ) { - wire_bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) + wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address( port_: i64, ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, ) { - wire_bdk_wallet_get_internal_address_impl(port_, ptr, address_index) + wire__crate__api__wallet__bdk_wallet_get_internal_address_impl(port_, ptr, address_index) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input( port_: i64, that: *mut wire_cst_bdk_wallet, utxo: *mut wire_cst_local_utxo, only_witness_utxo: bool, sighash_type: *mut wire_cst_psbt_sig_hash_type, ) { - wire_bdk_wallet_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) + wire__crate__api__wallet__bdk_wallet_get_psbt_input_impl( + port_, + that, + utxo, + only_witness_utxo, + sighash_type, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_is_mine( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine( port_: i64, that: *mut wire_cst_bdk_wallet, script: *mut wire_cst_bdk_script_buf, ) { - wire_bdk_wallet_is_mine_impl(port_, that, script) + wire__crate__api__wallet__bdk_wallet_is_mine_impl(port_, that, script) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_list_transactions( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions( port_: i64, that: *mut wire_cst_bdk_wallet, include_raw: bool, ) { - wire_bdk_wallet_list_transactions_impl(port_, that, include_raw) + wire__crate__api__wallet__bdk_wallet_list_transactions_impl(port_, that, include_raw) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_list_unspent( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent( port_: i64, that: *mut wire_cst_bdk_wallet, ) { - wire_bdk_wallet_list_unspent_impl(port_, that) + wire__crate__api__wallet__bdk_wallet_list_unspent_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_network( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network( port_: i64, that: *mut wire_cst_bdk_wallet, ) { - wire_bdk_wallet_network_impl(port_, that) + wire__crate__api__wallet__bdk_wallet_network_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_new( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new( port_: i64, descriptor: *mut wire_cst_bdk_descriptor, change_descriptor: *mut wire_cst_bdk_descriptor, network: i32, database_config: *mut wire_cst_database_config, ) { - wire_bdk_wallet_new_impl( + wire__crate__api__wallet__bdk_wallet_new_impl( port_, descriptor, change_descriptor, @@ -2512,26 +2559,26 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_new( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_sign( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign( port_: i64, ptr: *mut wire_cst_bdk_wallet, psbt: *mut wire_cst_bdk_psbt, sign_options: *mut wire_cst_sign_options, ) { - wire_bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) + wire__crate__api__wallet__bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_sync( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync( port_: i64, ptr: *mut wire_cst_bdk_wallet, blockchain: *mut wire_cst_bdk_blockchain, ) { - wire_bdk_wallet_sync_impl(port_, ptr, blockchain) + wire__crate__api__wallet__bdk_wallet_sync_impl(port_, ptr, blockchain) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder( port_: i64, txid: *mut wire_cst_list_prim_u_8_strict, fee_rate: f32, @@ -2540,7 +2587,7 @@ pub extern "C" fn frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder( enable_rbf: bool, n_sequence: *mut u32, ) { - wire_finish_bump_fee_tx_builder_impl( + wire__crate__api__wallet__finish_bump_fee_tx_builder_impl( port_, txid, fee_rate, @@ -2552,7 +2599,7 @@ pub extern "C" fn frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_tx_builder_finish( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish( port_: i64, wallet: *mut wire_cst_bdk_wallet, recipients: *mut wire_cst_list_script_amount, @@ -2568,7 +2615,7 @@ pub extern "C" fn frbgen_bdk_flutter_wire_tx_builder_finish( rbf: *mut wire_cst_rbf_value, data: *mut wire_cst_list_prim_u_8_loose, ) { - wire_tx_builder_finish_impl( + wire__crate__api__wallet__tx_builder_finish_impl( port_, wallet, recipients, @@ -2587,182 +2634,186 @@ pub extern "C" fn frbgen_bdk_flutter_wire_tx_builder_finish( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } @@ -3530,7 +3581,7 @@ pub struct wire_cst_bdk_script_buf { #[repr(C)] #[derive(Clone, Copy)] pub struct wire_cst_bdk_transaction { - inner: *mut wire_cst_list_prim_u_8_strict, + s: *mut wire_cst_list_prim_u_8_strict, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index 19277aa7..e4af7045 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,19 +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::blockchain::*; -use crate::api::descriptor::*; -use crate::api::key::*; -use crate::api::psbt::*; -use crate::api::types::*; -use crate::api::wallet::*; +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 @@ -36,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 = 1897842111; // Section: executor @@ -44,7 +46,7 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire_bdk_blockchain_broadcast_impl( +fn wire__crate__api__blockchain__bdk_blockchain_broadcast_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, transaction: impl CstDecode, @@ -59,140 +61,130 @@ fn wire_bdk_blockchain_broadcast_impl( let api_that = that.cst_decode(); let api_transaction = transaction.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::broadcast(&api_that, api_transaction) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::blockchain::BdkBlockchain::broadcast( + &api_that, + &api_transaction, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_blockchain_estimate_fee_impl( +fn wire__crate__api__blockchain__bdk_blockchain_create_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - target: impl CstDecode, + blockchain_config: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_estimate_fee", + debug_name: "bdk_blockchain_create", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); - let api_target = target.cst_decode(); + let api_blockchain_config = blockchain_config.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::estimate_fee(&api_that, api_target) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::blockchain::BdkBlockchain::create(api_blockchain_config)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_blockchain_get_block_hash_impl( +fn wire__crate__api__blockchain__bdk_blockchain_estimate_fee_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, - height: impl CstDecode, + target: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_get_block_hash", + debug_name: "bdk_blockchain_estimate_fee", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_height = height.cst_decode(); + let api_target = target.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::get_block_hash(&api_that, api_height) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::blockchain::BdkBlockchain::estimate_fee(&api_that, api_target)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_blockchain_get_height_impl( +fn wire__crate__api__blockchain__bdk_blockchain_get_block_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, + height: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_get_height", + debug_name: "bdk_blockchain_get_block_hash", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_height = height.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::get_height(&api_that) - })()) - } - }, - ) -} -fn wire_bdk_blockchain_new_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - blockchain_config: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_new", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_blockchain_config = blockchain_config.cst_decode(); - move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::new(api_blockchain_config) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::blockchain::BdkBlockchain::get_block_hash( + &api_that, api_height, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_as_string_impl( +fn wire__crate__api__blockchain__bdk_blockchain_get_height_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: "bdk_descriptor_as_string", + debug_name: "bdk_blockchain_get_height", 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::descriptor::BdkDescriptor::as_string(&api_that)) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::blockchain::BdkBlockchain::get_height(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_as_string_private_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__descriptor__bdk_descriptor_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_descriptor_as_string_private", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "bdk_descriptor_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::descriptor::BdkDescriptor::as_string_private( - &api_that, - )) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::descriptor::BdkDescriptor::as_string(&api_that), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_max_satisfaction_weight_impl( +fn wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -205,14 +197,16 @@ fn wire_bdk_descriptor_max_satisfaction_weight_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::max_satisfaction_weight(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::descriptor::BdkDescriptor::max_satisfaction_weight(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, descriptor: impl CstDecode, network: impl CstDecode, @@ -227,14 +221,16 @@ fn wire_bdk_descriptor_new_impl( let api_descriptor = descriptor.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new(api_descriptor, api_network) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::descriptor::BdkDescriptor::new(api_descriptor, api_network)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip44_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip44_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -251,18 +247,19 @@ fn wire_bdk_descriptor_new_bip44_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip44( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip44( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip44_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip44_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -281,19 +278,20 @@ fn wire_bdk_descriptor_new_bip44_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip44_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip44_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip49_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip49_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -310,18 +308,19 @@ fn wire_bdk_descriptor_new_bip49_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip49( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip49( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip49_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip49_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -340,19 +339,20 @@ fn wire_bdk_descriptor_new_bip49_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip49_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip49_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip84_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip84_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -369,18 +369,19 @@ fn wire_bdk_descriptor_new_bip84_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip84( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip84( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip84_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip84_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -399,19 +400,20 @@ fn wire_bdk_descriptor_new_bip84_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip84_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip84_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip86_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip86_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -428,18 +430,19 @@ fn wire_bdk_descriptor_new_bip86_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip86( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip86( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip86_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip86_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -458,19 +461,59 @@ fn wire_bdk_descriptor_new_bip86_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip86_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip86_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_derivation_path_from_string_impl( +fn wire__crate__api__descriptor__bdk_descriptor_to_string_private_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "bdk_descriptor_to_string_private", + 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::descriptor::BdkDescriptor::to_string_private(&api_that), + )?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__key__bdk_derivation_path_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: "bdk_derivation_path_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::key::BdkDerivationPath::as_string(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__key__bdk_derivation_path_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, path: impl CstDecode, ) { @@ -483,36 +526,35 @@ fn wire_bdk_derivation_path_from_string_impl( move || { let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDerivationPath::from_string(api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkDerivationPath::from_string(api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_public_key_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_descriptor_public_key_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_descriptor_public_key_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::key::BdkDescriptorPublicKey::as_string( - &api_that, - )) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::key::BdkDescriptorPublicKey::as_string(&api_that), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_public_key_derive_impl( +fn wire__crate__api__key__bdk_descriptor_public_key_derive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -527,14 +569,16 @@ fn wire_bdk_descriptor_public_key_derive_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorPublicKey::derive(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorPublicKey::derive(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_public_key_extend_impl( +fn wire__crate__api__key__bdk_descriptor_public_key_extend_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -549,14 +593,16 @@ fn wire_bdk_descriptor_public_key_extend_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorPublicKey::extend(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorPublicKey::extend(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_public_key_from_string_impl( +fn wire__crate__api__key__bdk_descriptor_public_key_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, ) { @@ -569,14 +615,16 @@ fn wire_bdk_descriptor_public_key_from_string_impl( move || { let api_public_key = public_key.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorPublicKey::from_string(api_public_key) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorPublicKey::from_string(api_public_key)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_as_public_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_as_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, ) { @@ -589,36 +637,35 @@ fn wire_bdk_descriptor_secret_key_as_public_impl( move || { let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::as_public(api_ptr) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkDescriptorSecretKey::as_public(api_ptr)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_descriptor_secret_key_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_descriptor_secret_key_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::key::BdkDescriptorSecretKey::as_string( - &api_that, - )) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::key::BdkDescriptorSecretKey::as_string(&api_that), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_secret_key_create_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_create_impl( port_: flutter_rust_bridge::for_generated::MessagePort, network: impl CstDecode, mnemonic: impl CstDecode, @@ -635,18 +682,19 @@ fn wire_bdk_descriptor_secret_key_create_impl( let api_mnemonic = mnemonic.cst_decode(); let api_password = password.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::create( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkDescriptorSecretKey::create( api_network, api_mnemonic, api_password, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_derive_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_derive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -661,14 +709,16 @@ fn wire_bdk_descriptor_secret_key_derive_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::derive(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorSecretKey::derive(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_extend_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_extend_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -683,14 +733,16 @@ fn wire_bdk_descriptor_secret_key_extend_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::extend(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorSecretKey::extend(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_from_string_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, ) { @@ -703,14 +755,16 @@ fn wire_bdk_descriptor_secret_key_from_string_impl( move || { let api_secret_key = secret_key.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::from_string(api_secret_key) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorSecretKey::from_string(api_secret_key)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_secret_bytes_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -723,34 +777,35 @@ fn wire_bdk_descriptor_secret_key_secret_bytes_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::secret_bytes(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorSecretKey::secret_bytes(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_mnemonic_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_mnemonic_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_mnemonic_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::key::BdkMnemonic::as_string(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::key::BdkMnemonic::as_string(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_mnemonic_from_entropy_impl( +fn wire__crate__api__key__bdk_mnemonic_from_entropy_impl( port_: flutter_rust_bridge::for_generated::MessagePort, entropy: impl CstDecode>, ) { @@ -763,14 +818,15 @@ fn wire_bdk_mnemonic_from_entropy_impl( move || { let api_entropy = entropy.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkMnemonic::from_entropy(api_entropy) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkMnemonic::from_entropy(api_entropy)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_mnemonic_from_string_impl( +fn wire__crate__api__key__bdk_mnemonic_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, mnemonic: impl CstDecode, ) { @@ -783,14 +839,15 @@ fn wire_bdk_mnemonic_from_string_impl( move || { let api_mnemonic = mnemonic.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkMnemonic::from_string(api_mnemonic) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkMnemonic::from_string(api_mnemonic)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_mnemonic_new_impl( +fn wire__crate__api__key__bdk_mnemonic_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, word_count: impl CstDecode, ) { @@ -803,12 +860,34 @@ fn wire_bdk_mnemonic_new_impl( move || { let api_word_count = word_count.cst_decode(); move |context| { - transform_result_dco((move || crate::api::key::BdkMnemonic::new(api_word_count))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkMnemonic::new(api_word_count)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_psbt_combine_impl( +fn wire__crate__api__psbt__bdk_psbt_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: "bdk_psbt_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::psbt::BdkPsbt::as_string(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__psbt__bdk_psbt_combine_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, other: impl CstDecode, @@ -823,14 +902,15 @@ fn wire_bdk_psbt_combine_impl( let api_ptr = ptr.cst_decode(); let api_other = other.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::psbt::BdkPsbt::combine(api_ptr, api_other) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::psbt::BdkPsbt::combine(api_ptr, api_other)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_extract_tx_impl( +fn wire__crate__api__psbt__bdk_psbt_extract_tx_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, ) { @@ -843,12 +923,15 @@ fn wire_bdk_psbt_extract_tx_impl( move || { let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || crate::api::psbt::BdkPsbt::extract_tx(api_ptr))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::psbt::BdkPsbt::extract_tx(api_ptr)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_psbt_fee_amount_impl( +fn wire__crate__api__psbt__bdk_psbt_fee_amount_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -861,14 +944,16 @@ fn wire_bdk_psbt_fee_amount_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_amount(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_amount(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_fee_rate_impl( +fn wire__crate__api__psbt__bdk_psbt_fee_rate_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -881,14 +966,16 @@ fn wire_bdk_psbt_fee_rate_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_rate(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_rate(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_from_str_impl( +fn wire__crate__api__psbt__bdk_psbt_from_str_impl( port_: flutter_rust_bridge::for_generated::MessagePort, psbt_base64: impl CstDecode, ) { @@ -901,14 +988,15 @@ fn wire_bdk_psbt_from_str_impl( move || { let api_psbt_base64 = psbt_base64.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::psbt::BdkPsbt::from_str(api_psbt_base64) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::psbt::BdkPsbt::from_str(api_psbt_base64)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_json_serialize_impl( +fn wire__crate__api__psbt__bdk_psbt_json_serialize_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -921,14 +1009,16 @@ fn wire_bdk_psbt_json_serialize_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::json_serialize(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::json_serialize(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_serialize_impl( +fn wire__crate__api__psbt__bdk_psbt_serialize_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -941,14 +1031,16 @@ fn wire_bdk_psbt_serialize_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::serialize(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::serialize(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_txid_impl( +fn wire__crate__api__psbt__bdk_psbt_txid_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -961,34 +1053,35 @@ fn wire_bdk_psbt_txid_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::txid(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::txid(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::types::BdkAddress::as_string(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::as_string(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_address_from_script_impl( +fn wire__crate__api__types__bdk_address_from_script_impl( port_: flutter_rust_bridge::for_generated::MessagePort, script: impl CstDecode, network: impl CstDecode, @@ -1003,14 +1096,16 @@ fn wire_bdk_address_from_script_impl( let api_script = script.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkAddress::from_script(api_script, api_network) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkAddress::from_script(api_script, api_network)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_from_string_impl( +fn wire__crate__api__types__bdk_address_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, address: impl CstDecode, network: impl CstDecode, @@ -1025,14 +1120,16 @@ fn wire_bdk_address_from_string_impl( let api_address = address.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkAddress::from_string(api_address, api_network) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkAddress::from_string(api_address, api_network)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_is_valid_for_network_impl( +fn wire__crate__api__types__bdk_address_is_valid_for_network_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, network: impl CstDecode, @@ -1047,17 +1144,17 @@ fn wire_bdk_address_is_valid_for_network_impl( let api_that = that.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkAddress::is_valid_for_network( - &api_that, - api_network, - )) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::types::BdkAddress::is_valid_for_network(&api_that, api_network), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_network_impl( +fn wire__crate__api__types__bdk_address_network_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1070,14 +1167,16 @@ fn wire_bdk_address_network_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkAddress::network(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::network(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_payload_impl( +fn wire__crate__api__types__bdk_address_payload_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1090,14 +1189,16 @@ fn wire_bdk_address_payload_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkAddress::payload(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::payload(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_script_impl( +fn wire__crate__api__types__bdk_address_script_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, ) { @@ -1110,34 +1211,56 @@ fn wire_bdk_address_script_impl( move || { let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkAddress::script(api_ptr)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::script(api_ptr))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_to_qr_uri_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_to_qr_uri_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_to_qr_uri", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::types::BdkAddress::to_qr_uri(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::to_qr_uri(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__types__bdk_script_buf_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: "bdk_script_buf_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::types::BdkScriptBuf::as_string(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_script_buf_empty_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__api__types__bdk_script_buf_empty_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_script_buf_empty", @@ -1146,14 +1269,15 @@ fn wire_bdk_script_buf_empty_impl(port_: flutter_rust_bridge::for_generated::Mes }, move || { move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::empty()) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::empty())?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_script_buf_from_hex_impl( +fn wire__crate__api__types__bdk_script_buf_from_hex_impl( port_: flutter_rust_bridge::for_generated::MessagePort, s: impl CstDecode, ) { @@ -1166,12 +1290,15 @@ fn wire_bdk_script_buf_from_hex_impl( move || { let api_s = s.cst_decode(); move |context| { - transform_result_dco((move || crate::api::types::BdkScriptBuf::from_hex(api_s))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkScriptBuf::from_hex(api_s)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_script_buf_with_capacity_impl( +fn wire__crate__api__types__bdk_script_buf_with_capacity_impl( port_: flutter_rust_bridge::for_generated::MessagePort, capacity: impl CstDecode, ) { @@ -1184,16 +1311,17 @@ fn wire_bdk_script_buf_with_capacity_impl( move || { let api_capacity = capacity.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::with_capacity( - api_capacity, - )) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::types::BdkScriptBuf::with_capacity(api_capacity), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_from_bytes_impl( +fn wire__crate__api__types__bdk_transaction_from_bytes_impl( port_: flutter_rust_bridge::for_generated::MessagePort, transaction_bytes: impl CstDecode>, ) { @@ -1206,14 +1334,16 @@ fn wire_bdk_transaction_from_bytes_impl( move || { let api_transaction_bytes = transaction_bytes.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::from_bytes(api_transaction_bytes) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkTransaction::from_bytes(api_transaction_bytes)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_input_impl( +fn wire__crate__api__types__bdk_transaction_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1226,14 +1356,15 @@ fn wire_bdk_transaction_input_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::input(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::input(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_is_coin_base_impl( +fn wire__crate__api__types__bdk_transaction_is_coin_base_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1246,14 +1377,15 @@ fn wire_bdk_transaction_is_coin_base_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::is_coin_base(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::is_coin_base(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_is_explicitly_rbf_impl( +fn wire__crate__api__types__bdk_transaction_is_explicitly_rbf_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1266,14 +1398,16 @@ fn wire_bdk_transaction_is_explicitly_rbf_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::is_explicitly_rbf(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkTransaction::is_explicitly_rbf(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_is_lock_time_enabled_impl( +fn wire__crate__api__types__bdk_transaction_is_lock_time_enabled_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1286,14 +1420,16 @@ fn wire_bdk_transaction_is_lock_time_enabled_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::is_lock_time_enabled(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkTransaction::is_lock_time_enabled(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_lock_time_impl( +fn wire__crate__api__types__bdk_transaction_lock_time_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1306,14 +1442,15 @@ fn wire_bdk_transaction_lock_time_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::lock_time(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::lock_time(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_new_impl( +fn wire__crate__api__types__bdk_transaction_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, version: impl CstDecode, lock_time: impl CstDecode, @@ -1332,19 +1469,20 @@ fn wire_bdk_transaction_new_impl( let api_input = input.cst_decode(); let api_output = output.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::new( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::new( api_version, api_lock_time, api_input, api_output, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_output_impl( +fn wire__crate__api__types__bdk_transaction_output_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1357,14 +1495,15 @@ fn wire_bdk_transaction_output_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::output(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::output(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_serialize_impl( +fn wire__crate__api__types__bdk_transaction_serialize_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1377,14 +1516,15 @@ fn wire_bdk_transaction_serialize_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::serialize(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::serialize(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_size_impl( +fn wire__crate__api__types__bdk_transaction_size_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1397,12 +1537,15 @@ fn wire_bdk_transaction_size_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || crate::api::types::BdkTransaction::size(&api_that))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::size(&api_that)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_transaction_txid_impl( +fn wire__crate__api__types__bdk_transaction_txid_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1415,12 +1558,15 @@ fn wire_bdk_transaction_txid_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || crate::api::types::BdkTransaction::txid(&api_that))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::txid(&api_that)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_transaction_version_impl( +fn wire__crate__api__types__bdk_transaction_version_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1433,14 +1579,15 @@ fn wire_bdk_transaction_version_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::version(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::version(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_vsize_impl( +fn wire__crate__api__types__bdk_transaction_vsize_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1453,14 +1600,15 @@ fn wire_bdk_transaction_vsize_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::vsize(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::vsize(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_weight_impl( +fn wire__crate__api__types__bdk_transaction_weight_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1473,14 +1621,15 @@ fn wire_bdk_transaction_weight_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::weight(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::weight(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_address_impl( +fn wire__crate__api__wallet__bdk_wallet_get_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, address_index: impl CstDecode, @@ -1495,14 +1644,16 @@ fn wire_bdk_wallet_get_address_impl( let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_address(api_ptr, api_address_index) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::wallet::BdkWallet::get_address(api_ptr, api_address_index)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_balance_impl( +fn wire__crate__api__wallet__bdk_wallet_get_balance_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1515,14 +1666,15 @@ fn wire_bdk_wallet_get_balance_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_balance(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_balance(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_descriptor_for_keychain_impl( +fn wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, keychain: impl CstDecode, @@ -1537,17 +1689,18 @@ fn wire_bdk_wallet_get_descriptor_for_keychain_impl( let api_ptr = ptr.cst_decode(); let api_keychain = keychain.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_descriptor_for_keychain( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_descriptor_for_keychain( api_ptr, api_keychain, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_internal_address_impl( +fn wire__crate__api__wallet__bdk_wallet_get_internal_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, address_index: impl CstDecode, @@ -1562,14 +1715,18 @@ fn wire_bdk_wallet_get_internal_address_impl( let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_internal_address(api_ptr, api_address_index) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_internal_address( + api_ptr, + api_address_index, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_psbt_input_impl( +fn wire__crate__api__wallet__bdk_wallet_get_psbt_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, utxo: impl CstDecode, @@ -1588,19 +1745,20 @@ fn wire_bdk_wallet_get_psbt_input_impl( let api_only_witness_utxo = only_witness_utxo.cst_decode(); let api_sighash_type = sighash_type.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_psbt_input( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_psbt_input( &api_that, api_utxo, api_only_witness_utxo, api_sighash_type, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_is_mine_impl( +fn wire__crate__api__wallet__bdk_wallet_is_mine_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, script: impl CstDecode, @@ -1615,14 +1773,15 @@ fn wire_bdk_wallet_is_mine_impl( let api_that = that.cst_decode(); let api_script = script.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::is_mine(&api_that, api_script) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::is_mine(&api_that, api_script)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_list_transactions_impl( +fn wire__crate__api__wallet__bdk_wallet_list_transactions_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, include_raw: impl CstDecode, @@ -1637,14 +1796,18 @@ fn wire_bdk_wallet_list_transactions_impl( let api_that = that.cst_decode(); let api_include_raw = include_raw.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::list_transactions(&api_that, api_include_raw) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::list_transactions( + &api_that, + api_include_raw, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_list_unspent_impl( +fn wire__crate__api__wallet__bdk_wallet_list_unspent_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1657,14 +1820,15 @@ fn wire_bdk_wallet_list_unspent_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::list_unspent(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::list_unspent(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_network_impl( +fn wire__crate__api__wallet__bdk_wallet_network_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1677,14 +1841,16 @@ fn wire_bdk_wallet_network_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::wallet::BdkWallet::network(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::wallet::BdkWallet::network(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_new_impl( +fn wire__crate__api__wallet__bdk_wallet_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, descriptor: impl CstDecode, change_descriptor: impl CstDecode>, @@ -1703,19 +1869,20 @@ fn wire_bdk_wallet_new_impl( let api_network = network.cst_decode(); let api_database_config = database_config.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::new( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::new( api_descriptor, api_change_descriptor, api_network, api_database_config, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_sign_impl( +fn wire__crate__api__wallet__bdk_wallet_sign_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, psbt: impl CstDecode, @@ -1732,14 +1899,16 @@ fn wire_bdk_wallet_sign_impl( let api_psbt = psbt.cst_decode(); let api_sign_options = sign_options.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::sign(api_ptr, api_psbt, api_sign_options) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::wallet::BdkWallet::sign(api_ptr, api_psbt, api_sign_options)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_sync_impl( +fn wire__crate__api__wallet__bdk_wallet_sync_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, blockchain: impl CstDecode, @@ -1754,14 +1923,15 @@ fn wire_bdk_wallet_sync_impl( let api_ptr = ptr.cst_decode(); let api_blockchain = blockchain.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::sync(api_ptr, api_blockchain) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::sync(api_ptr, &api_blockchain)?; + Ok(output_ok) })()) } }, ) } -fn wire_finish_bump_fee_tx_builder_impl( +fn wire__crate__api__wallet__finish_bump_fee_tx_builder_impl( port_: flutter_rust_bridge::for_generated::MessagePort, txid: impl CstDecode, fee_rate: impl CstDecode, @@ -1784,21 +1954,22 @@ fn wire_finish_bump_fee_tx_builder_impl( let api_enable_rbf = enable_rbf.cst_decode(); let api_n_sequence = n_sequence.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::finish_bump_fee_tx_builder( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::finish_bump_fee_tx_builder( api_txid, api_fee_rate, api_allow_shrinking, api_wallet, api_enable_rbf, api_n_sequence, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_tx_builder_finish_impl( +fn wire__crate__api__wallet__tx_builder_finish_impl( port_: flutter_rust_bridge::for_generated::MessagePort, wallet: impl CstDecode, recipients: impl CstDecode>, @@ -1835,8 +2006,8 @@ fn wire_tx_builder_finish_impl( let api_rbf = rbf.cst_decode(); let api_data = data.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::tx_builder_finish( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::tx_builder_finish( api_wallet, api_recipients, api_utxos, @@ -1850,7 +2021,8 @@ fn wire_tx_builder_finish_impl( api_drain_to, api_rbf, api_data, - ) + )?; + Ok(output_ok) })()) } }, @@ -1980,7 +2152,7 @@ impl CstDecode for i32 { } } } -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); @@ -1988,7 +2160,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); @@ -1996,7 +2168,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); @@ -2004,7 +2176,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); @@ -2012,7 +2184,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); @@ -2020,7 +2192,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); @@ -2028,7 +2200,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); @@ -2036,7 +2208,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); @@ -2044,7 +2216,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); @@ -2052,7 +2224,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); @@ -2226,7 +2398,7 @@ impl SseDecode for crate::api::types::BdkAddress { impl SseDecode for crate::api::blockchain::BdkBlockchain { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::blockchain::BdkBlockchain { ptr: var_ptr }; } } @@ -2234,7 +2406,8 @@ impl SseDecode for crate::api::blockchain::BdkBlockchain { impl SseDecode for crate::api::key::BdkDerivationPath { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = + >::sse_decode(deserializer); return crate::api::key::BdkDerivationPath { ptr: var_ptr }; } } @@ -2243,8 +2416,8 @@ impl SseDecode for crate::api::descriptor::BdkDescriptor { // 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_extendedDescriptor = - >::sse_decode(deserializer); - let mut var_keyMap = >::sse_decode(deserializer); + >::sse_decode(deserializer); + let mut var_keyMap = >::sse_decode(deserializer); return crate::api::descriptor::BdkDescriptor { extended_descriptor: var_extendedDescriptor, key_map: var_keyMap, @@ -2255,7 +2428,7 @@ impl SseDecode for crate::api::descriptor::BdkDescriptor { impl SseDecode for crate::api::key::BdkDescriptorPublicKey { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::key::BdkDescriptorPublicKey { ptr: var_ptr }; } } @@ -2263,7 +2436,7 @@ impl SseDecode for crate::api::key::BdkDescriptorPublicKey { impl SseDecode for crate::api::key::BdkDescriptorSecretKey { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::key::BdkDescriptorSecretKey { ptr: var_ptr }; } } @@ -2469,7 +2642,7 @@ impl SseDecode for crate::api::error::BdkError { impl SseDecode for crate::api::key::BdkMnemonic { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::key::BdkMnemonic { ptr: var_ptr }; } } @@ -2477,8 +2650,9 @@ impl SseDecode for crate::api::key::BdkMnemonic { impl SseDecode for crate::api::psbt::BdkPsbt { // 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_ptr = - >>::sse_decode(deserializer); + let mut var_ptr = , + >>::sse_decode(deserializer); return crate::api::psbt::BdkPsbt { ptr: var_ptr }; } } @@ -2494,8 +2668,8 @@ impl SseDecode for crate::api::types::BdkScriptBuf { impl SseDecode for crate::api::types::BdkTransaction { // 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_inner = ::sse_decode(deserializer); - return crate::api::types::BdkTransaction { inner: var_inner }; + let mut var_s = ::sse_decode(deserializer); + return crate::api::types::BdkTransaction { s: var_s }; } } @@ -2503,7 +2677,9 @@ impl SseDecode for crate::api::wallet::BdkWallet { // 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_ptr = - >>>::sse_decode(deserializer); + >>>::sse_decode( + deserializer, + ); return crate::api::wallet::BdkWallet { ptr: var_ptr }; } } @@ -3543,6 +3719,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::AddressError { address.into_into_dart().into_dart(), ] .into_dart(), + _ => { + unimplemented!(""); + } } } } @@ -3569,6 +3748,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::AddressIndex { crate::api::types::AddressIndex::Reset { index } => { [3.into_dart(), index.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -3597,6 +3779,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::blockchain::Auth { crate::api::blockchain::Auth::Cookie { file } => { [2.into_dart(), file.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -3863,6 +4048,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::BdkError { crate::api::error::BdkError::InvalidTransaction(field0) => { [46.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -3920,7 +4108,7 @@ impl flutter_rust_bridge::IntoIntoDart // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::BdkTransaction { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.inner.into_into_dart().into_dart()].into_dart() + [self.s.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive @@ -3979,6 +4167,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::blockchain::BlockchainConfig crate::api::blockchain::BlockchainConfig::Rpc { config } => { [2.into_dart(), config.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4000,6 +4191,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::ChangeSpendPolicy { Self::ChangeAllowed => 0.into_dart(), Self::OnlyChange => 1.into_dart(), Self::ChangeForbidden => 2.into_dart(), + _ => unreachable!(), } } } @@ -4040,6 +4232,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::ConsensusError { crate::api::error::ConsensusError::UnsupportedSegwitFlag(field0) => { [5.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4065,6 +4260,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::DatabaseConfig { crate::api::types::DatabaseConfig::Sled { config } => { [2.into_dart(), config.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4115,6 +4313,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::DescriptorError { crate::api::error::DescriptorError::Hex(field0) => { [11.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4206,6 +4407,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::HexError { field1.into_into_dart().into_dart(), ] .into_dart(), + _ => { + unimplemented!(""); + } } } } @@ -4235,6 +4439,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::KeychainKind { match self { Self::ExternalChain => 0.into_dart(), Self::InternalChain => 1.into_dart(), + _ => unreachable!(), } } } @@ -4279,6 +4484,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::LockTime { crate::api::types::LockTime::Seconds(field0) => { [1.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4298,6 +4506,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::Network { Self::Regtest => 1.into_dart(), Self::Bitcoin => 2.into_dart(), Self::Signet => 3.into_dart(), + _ => unreachable!(), } } } @@ -4341,6 +4550,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::Payload { program.into_into_dart().into_dart(), ] .into_dart(), + _ => { + unimplemented!(""); + } } } } @@ -4375,6 +4587,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::RbfValue { crate::api::types::RbfValue::Value(field0) => { [1.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4583,6 +4798,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::Variant { match self { Self::Bech32 => 0.into_dart(), Self::Bech32m => 1.into_dart(), + _ => unreachable!(), } } } @@ -4613,6 +4829,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::WitnessVersion { Self::V14 => 14.into_dart(), Self::V15 => 15.into_dart(), Self::V16 => 16.into_dart(), + _ => unreachable!(), } } } @@ -4634,6 +4851,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::WordCount { Self::Words12 => 0.into_dart(), Self::Words18 => 1.into_dart(), Self::Words24 => 2.into_dart(), + _ => unreachable!(), } } } @@ -4646,7 +4864,7 @@ impl flutter_rust_bridge::IntoIntoDart } } -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(); @@ -4655,7 +4873,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(); @@ -4664,7 +4882,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(); @@ -4673,7 +4891,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(); @@ -4682,7 +4900,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(); @@ -4691,7 +4909,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(); @@ -4700,7 +4918,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(); @@ -4709,7 +4927,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(); @@ -4718,7 +4936,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(); @@ -4727,7 +4945,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(); @@ -4805,6 +5023,9 @@ impl SseEncode for crate::api::error::AddressError { ::sse_encode(network_found, serializer); ::sse_encode(address, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -4827,6 +5048,9 @@ impl SseEncode for crate::api::types::AddressIndex { ::sse_encode(3, serializer); ::sse_encode(index, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -4847,6 +5071,9 @@ impl SseEncode for crate::api::blockchain::Auth { ::sse_encode(2, serializer); ::sse_encode(file, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -4873,36 +5100,39 @@ impl SseEncode for crate::api::types::BdkAddress { impl SseEncode for crate::api::blockchain::BdkBlockchain { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::key::BdkDerivationPath { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::descriptor::BdkDescriptor { // 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.extended_descriptor, serializer); - >::sse_encode(self.key_map, serializer); + >::sse_encode( + self.extended_descriptor, + serializer, + ); + >::sse_encode(self.key_map, serializer); } } impl SseEncode for crate::api::key::BdkDescriptorPublicKey { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::key::BdkDescriptorSecretKey { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } @@ -5090,6 +5320,9 @@ impl SseEncode for crate::api::error::BdkError { ::sse_encode(46, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5097,14 +5330,14 @@ impl SseEncode for crate::api::error::BdkError { impl SseEncode for crate::api::key::BdkMnemonic { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::psbt::BdkPsbt { // 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.ptr, serializer); + >>::sse_encode(self.ptr, serializer); } } @@ -5118,14 +5351,16 @@ impl SseEncode for crate::api::types::BdkScriptBuf { impl SseEncode for crate::api::types::BdkTransaction { // 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.inner, serializer); + ::sse_encode(self.s, serializer); } } impl SseEncode for crate::api::wallet::BdkWallet { // 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.ptr, serializer); + >>>::sse_encode( + self.ptr, serializer, + ); } } @@ -5153,6 +5388,9 @@ impl SseEncode for crate::api::blockchain::BlockchainConfig { ::sse_encode(2, serializer); ::sse_encode(config, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5210,6 +5448,9 @@ impl SseEncode for crate::api::error::ConsensusError { ::sse_encode(5, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5229,6 +5470,9 @@ impl SseEncode for crate::api::types::DatabaseConfig { ::sse_encode(2, serializer); ::sse_encode(config, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5281,6 +5525,9 @@ impl SseEncode for crate::api::error::DescriptorError { ::sse_encode(11, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5339,6 +5586,9 @@ impl SseEncode for crate::api::error::HexError { ::sse_encode(field0, serializer); ::sse_encode(field1, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5475,6 +5725,9 @@ impl SseEncode for crate::api::types::LockTime { ::sse_encode(1, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5684,6 +5937,9 @@ impl SseEncode for crate::api::types::Payload { ::sse_encode(version, serializer); >::sse_encode(program, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5706,6 +5962,9 @@ impl SseEncode for crate::api::types::RbfValue { ::sse_encode(1, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5945,10 +6204,3 @@ impl SseEncode for crate::api::types::WordCount { 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/frb_generated.web.rs b/rust/src/frb_generated.web.rs deleted file mode 100644 index 0614c180..00000000 --- a/rust/src/frb_generated.web.rs +++ /dev/null @@ -1,2241 +0,0 @@ -// This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. - -// Section: imports - -use super::*; -use crate::api::blockchain::*; -use crate::api::descriptor::*; -use crate::api::key::*; -use crate::api::psbt::*; -use crate::api::types::*; -use crate::api::wallet::*; -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::wasm_bindgen; -use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::{Handler, IntoIntoDart}; - -// Section: boilerplate - -flutter_rust_bridge::frb_generated_boilerplate_web!(); - -// Section: dart2rust - -impl CstDecode for String { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> String { - self - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::AddressError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::AddressError::Base58(self_.get(1).cst_decode()), - 1 => crate::api::error::AddressError::Bech32(self_.get(1).cst_decode()), - 2 => crate::api::error::AddressError::EmptyBech32Payload, - 3 => crate::api::error::AddressError::InvalidBech32Variant { - expected: self_.get(1).cst_decode(), - found: self_.get(2).cst_decode(), - }, - 4 => crate::api::error::AddressError::InvalidWitnessVersion(self_.get(1).cst_decode()), - 5 => { - crate::api::error::AddressError::UnparsableWitnessVersion(self_.get(1).cst_decode()) - } - 6 => crate::api::error::AddressError::MalformedWitnessVersion, - 7 => crate::api::error::AddressError::InvalidWitnessProgramLength( - self_.get(1).cst_decode(), - ), - 8 => crate::api::error::AddressError::InvalidSegwitV0ProgramLength( - self_.get(1).cst_decode(), - ), - 9 => crate::api::error::AddressError::UncompressedPubkey, - 10 => crate::api::error::AddressError::ExcessiveScriptSize, - 11 => crate::api::error::AddressError::UnrecognizedScript, - 12 => crate::api::error::AddressError::UnknownAddressType(self_.get(1).cst_decode()), - 13 => crate::api::error::AddressError::NetworkValidation { - network_required: self_.get(1).cst_decode(), - network_found: self_.get(2).cst_decode(), - address: self_.get(3).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::AddressIndex { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::AddressIndex::Increase, - 1 => crate::api::types::AddressIndex::LastUnused, - 2 => crate::api::types::AddressIndex::Peek { - index: self_.get(1).cst_decode(), - }, - 3 => crate::api::types::AddressIndex::Reset { - index: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::Auth { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::blockchain::Auth::None, - 1 => crate::api::blockchain::Auth::UserPass { - username: self_.get(1).cst_decode(), - password: self_.get(2).cst_decode(), - }, - 2 => crate::api::blockchain::Auth::Cookie { - file: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Balance { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 6, - "Expected 6 elements, got {}", - self_.length() - ); - crate::api::types::Balance { - immature: self_.get(0).cst_decode(), - trusted_pending: self_.get(1).cst_decode(), - untrusted_pending: self_.get(2).cst_decode(), - confirmed: self_.get(3).cst_decode(), - spendable: self_.get(4).cst_decode(), - total: self_.get(5).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BdkAddress { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::BdkAddress { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::BdkBlockchain { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::blockchain::BdkBlockchain { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkDerivationPath { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkDerivationPath { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::descriptor::BdkDescriptor { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::descriptor::BdkDescriptor { - extended_descriptor: self_.get(0).cst_decode(), - key_map: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkDescriptorPublicKey { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkDescriptorPublicKey { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkDescriptorSecretKey { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkDescriptorSecretKey { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::BdkError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::BdkError::Hex(self_.get(1).cst_decode()), - 1 => crate::api::error::BdkError::Consensus(self_.get(1).cst_decode()), - 2 => crate::api::error::BdkError::VerifyTransaction(self_.get(1).cst_decode()), - 3 => crate::api::error::BdkError::Address(self_.get(1).cst_decode()), - 4 => crate::api::error::BdkError::Descriptor(self_.get(1).cst_decode()), - 5 => crate::api::error::BdkError::InvalidU32Bytes(self_.get(1).cst_decode()), - 6 => crate::api::error::BdkError::Generic(self_.get(1).cst_decode()), - 7 => crate::api::error::BdkError::ScriptDoesntHaveAddressForm, - 8 => crate::api::error::BdkError::NoRecipients, - 9 => crate::api::error::BdkError::NoUtxosSelected, - 10 => crate::api::error::BdkError::OutputBelowDustLimit(self_.get(1).cst_decode()), - 11 => crate::api::error::BdkError::InsufficientFunds { - needed: self_.get(1).cst_decode(), - available: self_.get(2).cst_decode(), - }, - 12 => crate::api::error::BdkError::BnBTotalTriesExceeded, - 13 => crate::api::error::BdkError::BnBNoExactMatch, - 14 => crate::api::error::BdkError::UnknownUtxo, - 15 => crate::api::error::BdkError::TransactionNotFound, - 16 => crate::api::error::BdkError::TransactionConfirmed, - 17 => crate::api::error::BdkError::IrreplaceableTransaction, - 18 => crate::api::error::BdkError::FeeRateTooLow { - needed: self_.get(1).cst_decode(), - }, - 19 => crate::api::error::BdkError::FeeTooLow { - needed: self_.get(1).cst_decode(), - }, - 20 => crate::api::error::BdkError::FeeRateUnavailable, - 21 => crate::api::error::BdkError::MissingKeyOrigin(self_.get(1).cst_decode()), - 22 => crate::api::error::BdkError::Key(self_.get(1).cst_decode()), - 23 => crate::api::error::BdkError::ChecksumMismatch, - 24 => crate::api::error::BdkError::SpendingPolicyRequired(self_.get(1).cst_decode()), - 25 => crate::api::error::BdkError::InvalidPolicyPathError(self_.get(1).cst_decode()), - 26 => crate::api::error::BdkError::Signer(self_.get(1).cst_decode()), - 27 => crate::api::error::BdkError::InvalidNetwork { - requested: self_.get(1).cst_decode(), - found: self_.get(2).cst_decode(), - }, - 28 => crate::api::error::BdkError::InvalidOutpoint(self_.get(1).cst_decode()), - 29 => crate::api::error::BdkError::Encode(self_.get(1).cst_decode()), - 30 => crate::api::error::BdkError::Miniscript(self_.get(1).cst_decode()), - 31 => crate::api::error::BdkError::MiniscriptPsbt(self_.get(1).cst_decode()), - 32 => crate::api::error::BdkError::Bip32(self_.get(1).cst_decode()), - 33 => crate::api::error::BdkError::Bip39(self_.get(1).cst_decode()), - 34 => crate::api::error::BdkError::Secp256k1(self_.get(1).cst_decode()), - 35 => crate::api::error::BdkError::Json(self_.get(1).cst_decode()), - 36 => crate::api::error::BdkError::Psbt(self_.get(1).cst_decode()), - 37 => crate::api::error::BdkError::PsbtParse(self_.get(1).cst_decode()), - 38 => crate::api::error::BdkError::MissingCachedScripts( - self_.get(1).cst_decode(), - self_.get(2).cst_decode(), - ), - 39 => crate::api::error::BdkError::Electrum(self_.get(1).cst_decode()), - 40 => crate::api::error::BdkError::Esplora(self_.get(1).cst_decode()), - 41 => crate::api::error::BdkError::Sled(self_.get(1).cst_decode()), - 42 => crate::api::error::BdkError::Rpc(self_.get(1).cst_decode()), - 43 => crate::api::error::BdkError::Rusqlite(self_.get(1).cst_decode()), - 44 => crate::api::error::BdkError::InvalidInput(self_.get(1).cst_decode()), - 45 => crate::api::error::BdkError::InvalidLockTime(self_.get(1).cst_decode()), - 46 => crate::api::error::BdkError::InvalidTransaction(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkMnemonic { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkMnemonic { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::psbt::BdkPsbt { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::psbt::BdkPsbt { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BdkScriptBuf { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::BdkScriptBuf { - bytes: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BdkTransaction { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::BdkTransaction { - inner: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::wallet::BdkWallet { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::wallet::BdkWallet { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BlockTime { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::BlockTime { - height: self_.get(0).cst_decode(), - timestamp: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::BlockchainConfig { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::blockchain::BlockchainConfig::Electrum { - config: self_.get(1).cst_decode(), - }, - 1 => crate::api::blockchain::BlockchainConfig::Esplora { - config: self_.get(1).cst_decode(), - }, - 2 => crate::api::blockchain::BlockchainConfig::Rpc { - config: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::ConsensusError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::ConsensusError::Io(self_.get(1).cst_decode()), - 1 => crate::api::error::ConsensusError::OversizedVectorAllocation { - requested: self_.get(1).cst_decode(), - max: self_.get(2).cst_decode(), - }, - 2 => crate::api::error::ConsensusError::InvalidChecksum { - expected: self_.get(1).cst_decode(), - actual: self_.get(2).cst_decode(), - }, - 3 => crate::api::error::ConsensusError::NonMinimalVarInt, - 4 => crate::api::error::ConsensusError::ParseFailed(self_.get(1).cst_decode()), - 5 => { - crate::api::error::ConsensusError::UnsupportedSegwitFlag(self_.get(1).cst_decode()) - } - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::DatabaseConfig { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::DatabaseConfig::Memory, - 1 => crate::api::types::DatabaseConfig::Sqlite { - config: self_.get(1).cst_decode(), - }, - 2 => crate::api::types::DatabaseConfig::Sled { - config: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::DescriptorError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::DescriptorError::InvalidHdKeyPath, - 1 => crate::api::error::DescriptorError::InvalidDescriptorChecksum, - 2 => crate::api::error::DescriptorError::HardenedDerivationXpub, - 3 => crate::api::error::DescriptorError::MultiPath, - 4 => crate::api::error::DescriptorError::Key(self_.get(1).cst_decode()), - 5 => crate::api::error::DescriptorError::Policy(self_.get(1).cst_decode()), - 6 => crate::api::error::DescriptorError::InvalidDescriptorCharacter( - self_.get(1).cst_decode(), - ), - 7 => crate::api::error::DescriptorError::Bip32(self_.get(1).cst_decode()), - 8 => crate::api::error::DescriptorError::Base58(self_.get(1).cst_decode()), - 9 => crate::api::error::DescriptorError::Pk(self_.get(1).cst_decode()), - 10 => crate::api::error::DescriptorError::Miniscript(self_.get(1).cst_decode()), - 11 => crate::api::error::DescriptorError::Hex(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::ElectrumConfig { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 6, - "Expected 6 elements, got {}", - self_.length() - ); - crate::api::blockchain::ElectrumConfig { - url: self_.get(0).cst_decode(), - socks5: self_.get(1).cst_decode(), - retry: self_.get(2).cst_decode(), - timeout: self_.get(3).cst_decode(), - stop_gap: self_.get(4).cst_decode(), - validate_domain: self_.get(5).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::EsploraConfig { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 5, - "Expected 5 elements, got {}", - self_.length() - ); - crate::api::blockchain::EsploraConfig { - base_url: self_.get(0).cst_decode(), - proxy: self_.get(1).cst_decode(), - concurrency: self_.get(2).cst_decode(), - stop_gap: self_.get(3).cst_decode(), - timeout: self_.get(4).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::FeeRate { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::FeeRate { - sat_per_vb: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::HexError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::HexError::InvalidChar(self_.get(1).cst_decode()), - 1 => crate::api::error::HexError::OddLengthString(self_.get(1).cst_decode()), - 2 => crate::api::error::HexError::InvalidLength( - self_.get(1).cst_decode(), - self_.get(2).cst_decode(), - ), - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Input { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::Input { - s: self_.get(0).cst_decode(), - } - } -} -impl CstDecode>> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec> { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> for Box<[u8]> { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.into_vec() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::LocalUtxo { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 4, - "Expected 4 elements, got {}", - self_.length() - ); - crate::api::types::LocalUtxo { - outpoint: self_.get(0).cst_decode(), - txout: self_.get(1).cst_decode(), - keychain: self_.get(2).cst_decode(), - is_spent: self_.get(3).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::LockTime { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::LockTime::Blocks(self_.get(1).cst_decode()), - 1 => crate::api::types::LockTime::Seconds(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode> for Option { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Option { - self.map(CstDecode::cst_decode) - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::OutPoint { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::OutPoint { - txid: self_.get(0).cst_decode(), - vout: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Payload { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::Payload::PubkeyHash { - pubkey_hash: self_.get(1).cst_decode(), - }, - 1 => crate::api::types::Payload::ScriptHash { - script_hash: self_.get(1).cst_decode(), - }, - 2 => crate::api::types::Payload::WitnessProgram { - version: self_.get(1).cst_decode(), - program: self_.get(2).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::PsbtSigHashType { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::PsbtSigHashType { - inner: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::RbfValue { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::RbfValue::RbfDefault, - 1 => crate::api::types::RbfValue::Value(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode<(crate::api::types::BdkAddress, u32)> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> (crate::api::types::BdkAddress, u32) { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - (self_.get(0).cst_decode(), self_.get(1).cst_decode()) - } -} -impl - CstDecode<( - crate::api::psbt::BdkPsbt, - crate::api::types::TransactionDetails, - )> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode( - self, - ) -> ( - crate::api::psbt::BdkPsbt, - crate::api::types::TransactionDetails, - ) { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - (self_.get(0).cst_decode(), self_.get(1).cst_decode()) - } -} -impl CstDecode<(crate::api::types::OutPoint, crate::api::types::Input, usize)> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> (crate::api::types::OutPoint, crate::api::types::Input, usize) { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 3, - "Expected 3 elements, got {}", - self_.length() - ); - ( - self_.get(0).cst_decode(), - self_.get(1).cst_decode(), - self_.get(2).cst_decode(), - ) - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::RpcConfig { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 5, - "Expected 5 elements, got {}", - self_.length() - ); - crate::api::blockchain::RpcConfig { - url: self_.get(0).cst_decode(), - auth: self_.get(1).cst_decode(), - network: self_.get(2).cst_decode(), - wallet_name: self_.get(3).cst_decode(), - sync_params: self_.get(4).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::RpcSyncParams { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 4, - "Expected 4 elements, got {}", - self_.length() - ); - crate::api::blockchain::RpcSyncParams { - start_script_count: self_.get(0).cst_decode(), - start_time: self_.get(1).cst_decode(), - force_start_time: self_.get(2).cst_decode(), - poll_rate_sec: self_.get(3).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::ScriptAmount { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::ScriptAmount { - script: self_.get(0).cst_decode(), - amount: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::SignOptions { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 7, - "Expected 7 elements, got {}", - self_.length() - ); - crate::api::types::SignOptions { - trust_witness_utxo: self_.get(0).cst_decode(), - assume_height: self_.get(1).cst_decode(), - allow_all_sighashes: self_.get(2).cst_decode(), - remove_partial_sigs: self_.get(3).cst_decode(), - try_finalize: self_.get(4).cst_decode(), - sign_with_tap_internal_key: self_.get(5).cst_decode(), - allow_grinding: self_.get(6).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::SledDbConfiguration { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::SledDbConfiguration { - path: self_.get(0).cst_decode(), - tree_name: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::SqliteDbConfiguration { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::SqliteDbConfiguration { - path: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TransactionDetails { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 6, - "Expected 6 elements, got {}", - self_.length() - ); - crate::api::types::TransactionDetails { - transaction: self_.get(0).cst_decode(), - txid: self_.get(1).cst_decode(), - received: self_.get(2).cst_decode(), - sent: self_.get(3).cst_decode(), - fee: self_.get(4).cst_decode(), - confirmation_time: self_.get(5).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TxIn { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 4, - "Expected 4 elements, got {}", - self_.length() - ); - crate::api::types::TxIn { - previous_output: self_.get(0).cst_decode(), - script_sig: self_.get(1).cst_decode(), - sequence: self_.get(2).cst_decode(), - witness: self_.get(3).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TxOut { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::TxOut { - value: self_.get(0).cst_decode(), - script_pubkey: self_.get(1).cst_decode(), - } - } -} -impl CstDecode<[u8; 4]> for Box<[u8]> { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> [u8; 4] { - let vec: Vec = self.cst_decode(); - flutter_rust_bridge::for_generated::from_vec_to_array(vec) - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode>> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode>>> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom>> { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> String { - self.as_string().expect("non-UTF-8 string, or not a string") - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> bool { - self.is_truthy() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::ChangeSpendPolicy { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> f32 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> i32 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::KeychainKind { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.unchecked_into::() - .to_vec() - .into() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Network { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u32 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u64 { - ::std::convert::TryInto::try_into( - self.dyn_into::() - .unwrap(), - ) - .unwrap() - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u8 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode<[u8; 4]> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> [u8; 4] { - let vec: Vec = self.cst_decode(); - flutter_rust_bridge::for_generated::from_vec_to_array(vec) - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> usize { - self.unchecked_into_f64() as _ - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Variant { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::WitnessVersion { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::WordCount { - (self.unchecked_into_f64() as i32).cst_decode() - } -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_broadcast( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - transaction: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_blockchain_broadcast_impl(port_, that, transaction) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_estimate_fee( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - target: u64, -) { - wire_bdk_blockchain_estimate_fee_impl(port_, that, target) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_get_block_hash( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - height: u32, -) { - wire_bdk_blockchain_get_block_hash_impl(port_, that, height) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_get_height( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_blockchain_get_height_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - blockchain_config: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_blockchain_new_impl(port_, blockchain_config) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_as_string_private( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_as_string_private_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_max_satisfaction_weight( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_max_satisfaction_weight_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - descriptor: String, - network: i32, -) { - wire_bdk_descriptor_new_impl(port_, descriptor, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip44( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip44_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip44_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip44_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip49( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip49_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip49_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip49_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip84( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip84_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip84_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip84_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip86( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip86_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip86_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip86_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_derivation_path_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - path: String, -) { - wire_bdk_derivation_path_from_string_impl(port_, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_public_key_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_derive( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_public_key_derive_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_extend( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_public_key_extend_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: String, -) { - wire_bdk_descriptor_public_key_from_string_impl(port_, public_key) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_as_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_as_public_impl(port_, ptr) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_create( - port_: flutter_rust_bridge::for_generated::MessagePort, - network: i32, - mnemonic: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - password: Option, -) { - wire_bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_derive( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_derive_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_extend( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_extend_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: String, -) { - wire_bdk_descriptor_secret_key_from_string_impl(port_, secret_key) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_secret_bytes( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_secret_bytes_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_mnemonic_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_from_entropy( - port_: flutter_rust_bridge::for_generated::MessagePort, - entropy: Box<[u8]>, -) { - wire_bdk_mnemonic_from_entropy_impl(port_, entropy) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - mnemonic: String, -) { - wire_bdk_mnemonic_from_string_impl(port_, mnemonic) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - word_count: i32, -) { - wire_bdk_mnemonic_new_impl(port_, word_count) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_combine( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - other: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_combine_impl(port_, ptr, other) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_extract_tx( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_extract_tx_impl(port_, ptr) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_fee_amount( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_fee_amount_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_fee_rate( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_fee_rate_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_from_str( - port_: flutter_rust_bridge::for_generated::MessagePort, - psbt_base64: String, -) { - wire_bdk_psbt_from_str_impl(port_, psbt_base64) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_json_serialize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_json_serialize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_serialize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_serialize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_txid( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_txid_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_from_script( - port_: flutter_rust_bridge::for_generated::MessagePort, - script: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - network: i32, -) { - wire_bdk_address_from_script_impl(port_, script, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - address: String, - network: i32, -) { - wire_bdk_address_from_string_impl(port_, address, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_is_valid_for_network( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - network: i32, -) { - wire_bdk_address_is_valid_for_network_impl(port_, that, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_network( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_network_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_payload( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_payload_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_script( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_script_impl(port_, ptr) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_to_qr_uri( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_to_qr_uri_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_script_buf_empty(port_: flutter_rust_bridge::for_generated::MessagePort) { - wire_bdk_script_buf_empty_impl(port_) -} - -#[wasm_bindgen] -pub fn wire_bdk_script_buf_from_hex( - port_: flutter_rust_bridge::for_generated::MessagePort, - s: String, -) { - wire_bdk_script_buf_from_hex_impl(port_, s) -} - -#[wasm_bindgen] -pub fn wire_bdk_script_buf_with_capacity( - port_: flutter_rust_bridge::for_generated::MessagePort, - capacity: usize, -) { - wire_bdk_script_buf_with_capacity_impl(port_, capacity) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_from_bytes( - port_: flutter_rust_bridge::for_generated::MessagePort, - transaction_bytes: Box<[u8]>, -) { - wire_bdk_transaction_from_bytes_impl(port_, transaction_bytes) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_input( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_input_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_is_coin_base( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_is_coin_base_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_is_explicitly_rbf( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_is_explicitly_rbf_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_is_lock_time_enabled( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_is_lock_time_enabled_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_lock_time( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_lock_time_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - version: i32, - lock_time: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - input: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - output: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_new_impl(port_, version, lock_time, input, output) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_output( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_output_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_serialize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_serialize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_size( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_size_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_txid( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_txid_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_version( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_version_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_vsize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_vsize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_weight( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_weight_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_address( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - address_index: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_address_impl(port_, ptr, address_index) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_balance( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_balance_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_descriptor_for_keychain( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain: i32, -) { - wire_bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_internal_address( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - address_index: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_internal_address_impl(port_, ptr, address_index) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_psbt_input( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - utxo: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - only_witness_utxo: bool, - sighash_type: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_is_mine( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - script: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_is_mine_impl(port_, that, script) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_list_transactions( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - include_raw: bool, -) { - wire_bdk_wallet_list_transactions_impl(port_, that, include_raw) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_list_unspent( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_list_unspent_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_network( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_network_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - descriptor: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - change_descriptor: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - network: i32, - database_config: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_new_impl( - port_, - descriptor, - change_descriptor, - network, - database_config, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_sign( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - psbt: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - sign_options: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_sync( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - blockchain: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_sync_impl(port_, ptr, blockchain) -} - -#[wasm_bindgen] -pub fn wire_finish_bump_fee_tx_builder( - port_: flutter_rust_bridge::for_generated::MessagePort, - txid: String, - fee_rate: f32, - allow_shrinking: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - wallet: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - enable_rbf: bool, - n_sequence: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_finish_bump_fee_tx_builder_impl( - port_, - txid, - fee_rate, - allow_shrinking, - wallet, - enable_rbf, - n_sequence, - ) -} - -#[wasm_bindgen] -pub fn wire_tx_builder_finish( - port_: flutter_rust_bridge::for_generated::MessagePort, - wallet: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - recipients: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - utxos: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - foreign_utxo: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - un_spendable: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - change_policy: i32, - manually_selected_only: bool, - fee_rate: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fee_absolute: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - drain_wallet: bool, - drain_to: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - rbf: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - data: Box<[u8]>, -) { - wire_tx_builder_finish_impl( - port_, - wallet, - recipients, - utxos, - foreign_utxo, - un_spendable, - change_policy, - manually_selected_only, - fee_rate, - fee_absolute, - drain_wallet, - drain_to, - rbf, - data, - ) -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>>::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>>::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysKeyMap(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} From e57f55ac31929d1b440f3d03a145c11716002a54 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 7 Jul 2024 20:28:00 -0400 Subject: [PATCH 11/35] refactor: override toString() in all the classes --- lib/src/root.dart | 140 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 98 insertions(+), 42 deletions(-) diff --git a/lib/src/root.dart b/lib/src/root.dart index f5012528..9100d981 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -1,5 +1,6 @@ import 'dart:typed_data'; +import 'package:bdk_flutter/bdk_flutter.dart'; import 'package:bdk_flutter/src/utils/utils.dart'; import 'generated/api/blockchain.dart'; @@ -13,6 +14,8 @@ import 'generated/api/wallet.dart'; ///A Bitcoin address. class Address extends BdkAddress { Address._({required super.ptr}); + + /// [Address] constructor static Future
fromScript( {required ScriptBuf script, required Network network}) async { try { @@ -24,6 +27,7 @@ class Address extends BdkAddress { } } + /// [Address] constructor static Future
fromString( {required String s, required Network network}) async { try { @@ -44,6 +48,57 @@ class Address extends BdkAddress { throw mapBdkError(e); } } + + //Creates a URI string bitcoin:address optimized to be encoded in QR codes. + /// If the address is bech32, both the schema and the address become uppercase. If the address is base58, the schema is lowercase and the address is left mixed case. + /// Quoting BIP 173 "inside QR codes uppercase SHOULD be used, as those permit the use of alphanumeric mode, which is 45% more compact than the normal byte mode." + /// Note however that despite BIP21 explicitly stating that the bitcoin: prefix should be parsed as case-insensitive many wallets got this wrong and don't parse correctly. See compatibility table. + /// If you want to avoid allocation you can use alternate display instead: + @override + String toQrUri() { + try { + return super.toQrUri(); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + ///Parsed addresses do not always have one network. The problem is that legacy testnet, regtest and signet addresses use the same prefix instead of multiple different ones. + ///When parsing, such addresses are always assumed to be testnet addresses (the same is true for bech32 signet addresses). + ///So if one wants to check if an address belongs to a certain network a simple comparison is not enough anymore. Instead this function can be used. + @override + Future isValidForNetwork({required Network network}) { + try { + return super.isValidForNetwork(network: network); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + ///The network on which this address is usable. + @override + Future network() { + try { + return super.network(); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + ///The type of the address. + @override + Future payload() { + try { + return super.payload(); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + @override + String toString() { + return super.asString(); + } } /// Blockchain backends module provides the implementation of a few commonly-used backends like Electrum, and Esplora. @@ -51,10 +106,11 @@ class Blockchain extends BdkBlockchain { Blockchain._({required super.ptr}); /// [Blockchain] constructor + static Future create({required BlockchainConfig config}) async { try { await Api.initialize(); - final res = await BdkBlockchain.newInstance(blockchainConfig: config); + final res = await BdkBlockchain.create(blockchainConfig: config); return Blockchain._(ptr: res.ptr); } on BdkError catch (e) { throw mapBdkError(e); @@ -63,7 +119,7 @@ class Blockchain extends BdkBlockchain { ///Estimate the fee rate required to confirm a transaction in a given target of blocks @override - Future estimateFee({required int target, hint}) async { + Future estimateFee({required BigInt target, hint}) async { try { return super.estimateFee(target: target); } on BdkError catch (e) { @@ -173,6 +229,11 @@ class DerivationPath extends BdkDerivationPath { throw mapBdkError(e); } } + + @override + String toString() { + return super.asString(); + } } ///Script descriptor @@ -362,20 +423,17 @@ class Descriptor extends BdkDescriptor { } ///Return the public version of the output descriptor. + @override - Future asString({hint}) async { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } ///Return the private version of the output descriptor if available, otherwise return the public version. @override - Future asStringPrivate({hint}) async { + String toStringPrivate({hint}) { try { - return super.asStringPrivate(); + return super.toStringPrivate(); } on BdkError catch (e) { throw mapBdkError(e); } @@ -383,7 +441,7 @@ class Descriptor extends BdkDescriptor { ///Computes an upper bound on the difference between a non-satisfied TxIn's segwit_weight and a satisfied TxIn's segwit_weight @override - Future maxSatisfactionWeight({hint}) async { + Future maxSatisfactionWeight({hint}) async { try { return super.maxSatisfactionWeight(); } on BdkError catch (e) { @@ -409,12 +467,8 @@ class DescriptorPublicKey extends BdkDescriptorPublicKey { ///Get the public key as string. @override - Future asString({hint}) async { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } ///Derive a public descriptor at a given path. @@ -502,12 +556,8 @@ class DescriptorSecretKey extends BdkDescriptorSecretKey { ///Get the private key as string. @override - Future asString({hint}) { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } ///Get the private key as bytes. @@ -567,12 +617,8 @@ class Mnemonic extends BdkMnemonic { ///Returns Mnemonic as string @override - Future asString({hint}) async { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } } @@ -596,7 +642,7 @@ class PartiallySignedTransaction extends BdkPsbt { ///Return fee amount @override - Future feeAmount({hint}) { + Future feeAmount({hint}) { try { return super.feeAmount(); } on BdkError catch (e) { @@ -623,9 +669,14 @@ class PartiallySignedTransaction extends BdkPsbt { } } - ///Return psbt as string @override - Future serialize({hint}) { + String toString() { + return super.asString(); + } + + ///Serialize as raw binary data + @override + Future serialize({hint}) { try { return super.serialize(); } on BdkError catch (e) { @@ -637,7 +688,7 @@ class PartiallySignedTransaction extends BdkPsbt { Future extractTx() async { try { final res = await BdkPsbt.extractTx(ptr: this); - return Transaction._(inner: res.inner); + return Transaction._(inner: res.s); } on BdkError catch (e) { throw mapBdkError(e); } @@ -682,7 +733,7 @@ class ScriptBuf extends BdkScriptBuf { } ///Creates a new empty script with pre-allocated capacity. - static Future withCapacity(int capacity) async { + static Future withCapacity(BigInt capacity) async { try { await Api.initialize(); final res = await BdkScriptBuf.withCapacity(capacity: capacity); @@ -702,11 +753,16 @@ class ScriptBuf extends BdkScriptBuf { throw mapBdkError(e); } } + + @override + String toString() { + return super.asString(); + } } ///A bitcoin transaction. class Transaction extends BdkTransaction { - Transaction._({required super.inner}); + Transaction._({required super.s}); /// [Transaction] constructor /// Decode an object with a well-defined format. @@ -718,7 +774,7 @@ class Transaction extends BdkTransaction { await Api.initialize(); final res = await BdkTransaction.fromBytes(transactionBytes: transactionBytes); - return Transaction._(inner: res.inner); + return Transaction._(s: res.s); } on BdkError catch (e) { throw mapBdkError(e); } @@ -726,7 +782,7 @@ class Transaction extends BdkTransaction { @override String toString() { - return inner; + return s; } } @@ -738,11 +794,11 @@ class TxBuilder { final List _recipients = []; final List _utxos = []; final List _unSpendable = []; - (OutPoint, Input, int)? _foreignUtxo; + (OutPoint, Input, BigInt)? _foreignUtxo; bool _manuallySelectedOnly = false; double? _feeRate; ChangeSpendPolicy _changeSpendPolicy = ChangeSpendPolicy.changeAllowed; - int? _feeAbsolute; + BigInt? _feeAbsolute; bool _drainWallet = false; ScriptBuf? _drainTo; RbfValue? _rbfValue; @@ -755,7 +811,7 @@ class TxBuilder { } ///Add a recipient to the internal list - TxBuilder addRecipient(ScriptBuf script, int amount) { + TxBuilder addRecipient(ScriptBuf script, BigInt amount) { _recipients.add(ScriptAmount(script: script, amount: amount)); return this; } @@ -804,7 +860,7 @@ class TxBuilder { /// you into putting a value that is too high causing you to pay a fee that is too high. The party who is broadcasting the transaction can of course check the /// real input weight matches the expected weight prior to broadcasting. TxBuilder addForeignUtxo( - Input psbtInput, OutPoint outPoint, int satisfactionWeight) { + Input psbtInput, OutPoint outPoint, BigInt satisfactionWeight) { _foreignUtxo = (outPoint, psbtInput, satisfactionWeight); return this; } @@ -857,7 +913,7 @@ class TxBuilder { } ///Set an absolute fee - TxBuilder feeAbsolute(int feeAmount) { + TxBuilder feeAbsolute(BigInt feeAmount) { _feeAbsolute = feeAmount; return this; } From 6276bbc001205289fee2b62606c745ed4c911efe Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 9 Jul 2024 20:28:00 -0400 Subject: [PATCH 12/35] mock tests updated --- test/bdk_flutter_test.dart | 8 +- test/bdk_flutter_test.mocks.dart | 880 ++++++++++++++++--------------- 2 files changed, 472 insertions(+), 416 deletions(-) diff --git a/test/bdk_flutter_test.dart b/test/bdk_flutter_test.dart index 82fe0832..a6ca3555 100644 --- a/test/bdk_flutter_test.dart +++ b/test/bdk_flutter_test.dart @@ -228,15 +228,15 @@ void main() { .thenAnswer((_) async => Future.value(mockScript)); when(mockTxBuilder.addRecipient(mockScript, any)) .thenReturn(mockTxBuilder); - when(mockTxBuilder.addForeignUtxo(input, outPoint, 0)) + when(mockTxBuilder.addForeignUtxo(input, outPoint, BigInt.zero)) .thenReturn(mockTxBuilder); when(mockTxBuilder.finish(mockWallet)).thenAnswer((_) async => Future.value( (MockPartiallySignedTransaction(), MockTransactionDetails()))); final script = await mockAddress.scriptPubkey(); final txBuilder = mockTxBuilder - .addRecipient(script, 1200) - .addForeignUtxo(input, outPoint, 0); + .addRecipient(script, BigInt.from(1200)) + .addForeignUtxo(input, outPoint, BigInt.zero); final res = await txBuilder.finish(mockWallet); expect(res, isA<(PartiallySignedTransaction, TransactionDetails)>()); }); @@ -257,7 +257,7 @@ void main() { when(mockTxBuilder.finish(mockWallet)).thenAnswer( (_) async => Future.value((psbt, MockTransactionDetails()))); final script = await mockAddress.scriptPubkey(); - final txBuilder = mockTxBuilder.addRecipient(script, 1200); + final txBuilder = mockTxBuilder.addRecipient(script, BigInt.from(1200)); final res = await txBuilder.finish(mockWallet); expect(res.$1, psbt); }); diff --git a/test/bdk_flutter_test.mocks.dart b/test/bdk_flutter_test.mocks.dart index fd3bb848..416f1752 100644 --- a/test/bdk_flutter_test.mocks.dart +++ b/test/bdk_flutter_test.mocks.dart @@ -3,18 +3,14 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i9; -import 'dart:typed_data' as _i11; - -import 'package:bdk_flutter/src/generated/api/blockchain.dart' as _i5; -import 'package:bdk_flutter/src/generated/api/descriptor.dart' as _i6; -import 'package:bdk_flutter/src/generated/api/key.dart' as _i8; -import 'package:bdk_flutter/src/generated/api/psbt.dart' as _i7; -import 'package:bdk_flutter/src/generated/api/types.dart' as _i4; -import 'package:bdk_flutter/src/generated/api/wallet.dart' as _i2; -import 'package:bdk_flutter/src/root.dart' as _i3; +import 'dart:async' as _i4; +import 'dart:typed_data' as _i7; + +import 'package:bdk_flutter/bdk_flutter.dart' as _i3; +import 'package:bdk_flutter/src/generated/api/types.dart' as _i5; +import 'package:bdk_flutter/src/generated/lib.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i10; +import 'package:mockito/src/dummies.dart' as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -29,9 +25,9 @@ import 'package:mockito/src/dummies.dart' as _i10; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeMutexBdkWalletAnyDatabase_0 extends _i1.SmartFake - implements _i2.MutexBdkWalletAnyDatabase { - _FakeMutexBdkWalletAnyDatabase_0( +class _FakeMutexWalletAnyDatabase_0 extends _i1.SmartFake + implements _i2.MutexWalletAnyDatabase { + _FakeMutexWalletAnyDatabase_0( Object parent, Invocation parentInvocation, ) : super( @@ -50,7 +46,7 @@ class _FakeAddressInfo_1 extends _i1.SmartFake implements _i3.AddressInfo { ); } -class _FakeBalance_2 extends _i1.SmartFake implements _i4.Balance { +class _FakeBalance_2 extends _i1.SmartFake implements _i3.Balance { _FakeBalance_2( Object parent, Invocation parentInvocation, @@ -70,7 +66,7 @@ class _FakeDescriptor_3 extends _i1.SmartFake implements _i3.Descriptor { ); } -class _FakeInput_4 extends _i1.SmartFake implements _i4.Input { +class _FakeInput_4 extends _i1.SmartFake implements _i3.Input { _FakeInput_4( Object parent, Invocation parentInvocation, @@ -80,7 +76,7 @@ class _FakeInput_4 extends _i1.SmartFake implements _i4.Input { ); } -class _FakeAnyBlockchain_5 extends _i1.SmartFake implements _i5.AnyBlockchain { +class _FakeAnyBlockchain_5 extends _i1.SmartFake implements _i2.AnyBlockchain { _FakeAnyBlockchain_5( Object parent, Invocation parentInvocation, @@ -90,7 +86,7 @@ class _FakeAnyBlockchain_5 extends _i1.SmartFake implements _i5.AnyBlockchain { ); } -class _FakeFeeRate_6 extends _i1.SmartFake implements _i4.FeeRate { +class _FakeFeeRate_6 extends _i1.SmartFake implements _i3.FeeRate { _FakeFeeRate_6( Object parent, Invocation parentInvocation, @@ -100,9 +96,9 @@ class _FakeFeeRate_6 extends _i1.SmartFake implements _i4.FeeRate { ); } -class _FakeKeysDescriptorSecretKey_7 extends _i1.SmartFake - implements _i6.KeysDescriptorSecretKey { - _FakeKeysDescriptorSecretKey_7( +class _FakeDescriptorSecretKey_7 extends _i1.SmartFake + implements _i2.DescriptorSecretKey { + _FakeDescriptorSecretKey_7( Object parent, Invocation parentInvocation, ) : super( @@ -133,9 +129,9 @@ class _FakeDescriptorPublicKey_9 extends _i1.SmartFake ); } -class _FakeKeysDescriptorPublicKey_10 extends _i1.SmartFake - implements _i6.KeysDescriptorPublicKey { - _FakeKeysDescriptorPublicKey_10( +class _FakeDescriptorPublicKey_10 extends _i1.SmartFake + implements _i2.DescriptorPublicKey { + _FakeDescriptorPublicKey_10( Object parent, Invocation parentInvocation, ) : super( @@ -145,7 +141,7 @@ class _FakeKeysDescriptorPublicKey_10 extends _i1.SmartFake } class _FakeMutexPartiallySignedTransaction_11 extends _i1.SmartFake - implements _i7.MutexPartiallySignedTransaction { + implements _i2.MutexPartiallySignedTransaction { _FakeMutexPartiallySignedTransaction_11( Object parent, Invocation parentInvocation, @@ -187,7 +183,7 @@ class _FakeTxBuilder_14 extends _i1.SmartFake implements _i3.TxBuilder { } class _FakeTransactionDetails_15 extends _i1.SmartFake - implements _i4.TransactionDetails { + implements _i3.TransactionDetails { _FakeTransactionDetails_15( Object parent, Invocation parentInvocation, @@ -208,9 +204,8 @@ class _FakeBumpFeeTxBuilder_16 extends _i1.SmartFake ); } -class _FakeBdkBitcoinAddress_17 extends _i1.SmartFake - implements _i4.BdkBitcoinAddress { - _FakeBdkBitcoinAddress_17( +class _FakeAddress_17 extends _i1.SmartFake implements _i2.Address { + _FakeAddress_17( Object parent, Invocation parentInvocation, ) : super( @@ -229,9 +224,9 @@ class _FakeScriptBuf_18 extends _i1.SmartFake implements _i3.ScriptBuf { ); } -class _FakeBitcoinBip32DerivationPath_19 extends _i1.SmartFake - implements _i8.BitcoinBip32DerivationPath { - _FakeBitcoinBip32DerivationPath_19( +class _FakeDerivationPath_19 extends _i1.SmartFake + implements _i2.DerivationPath { + _FakeDerivationPath_19( Object parent, Invocation parentInvocation, ) : super( @@ -240,7 +235,7 @@ class _FakeBitcoinBip32DerivationPath_19 extends _i1.SmartFake ); } -class _FakeOutPoint_20 extends _i1.SmartFake implements _i4.OutPoint { +class _FakeOutPoint_20 extends _i1.SmartFake implements _i3.OutPoint { _FakeOutPoint_20( Object parent, Invocation parentInvocation, @@ -250,7 +245,7 @@ class _FakeOutPoint_20 extends _i1.SmartFake implements _i4.OutPoint { ); } -class _FakeTxOut_21 extends _i1.SmartFake implements _i4.TxOut { +class _FakeTxOut_21 extends _i1.SmartFake implements _i3.TxOut { _FakeTxOut_21( Object parent, Invocation parentInvocation, @@ -265,21 +260,21 @@ class _FakeTxOut_21 extends _i1.SmartFake implements _i4.TxOut { /// See the documentation for Mockito's code generation for more information. class MockWallet extends _i1.Mock implements _i3.Wallet { @override - _i2.MutexBdkWalletAnyDatabase get ptr => (super.noSuchMethod( + _i2.MutexWalletAnyDatabase get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeMutexBdkWalletAnyDatabase_0( + returnValue: _FakeMutexWalletAnyDatabase_0( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeMutexBdkWalletAnyDatabase_0( + returnValueForMissingStub: _FakeMutexWalletAnyDatabase_0( this, Invocation.getter(#ptr), ), - ) as _i2.MutexBdkWalletAnyDatabase); + ) as _i2.MutexWalletAnyDatabase); @override - _i9.Future<_i3.AddressInfo> getAddress({ - required _i4.AddressIndex? addressIndex, + _i4.Future<_i3.AddressInfo> getAddress({ + required _i3.AddressIndex? addressIndex, dynamic hint, }) => (super.noSuchMethod( @@ -291,7 +286,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + returnValue: _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getAddress, @@ -303,7 +298,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ), )), returnValueForMissingStub: - _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getAddress, @@ -314,16 +309,16 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i3.AddressInfo>); + ) as _i4.Future<_i3.AddressInfo>); @override - _i9.Future<_i4.Balance> getBalance({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.Balance> getBalance({dynamic hint}) => (super.noSuchMethod( Invocation.method( #getBalance, [], {#hint: hint}, ), - returnValue: _i9.Future<_i4.Balance>.value(_FakeBalance_2( + returnValue: _i4.Future<_i3.Balance>.value(_FakeBalance_2( this, Invocation.method( #getBalance, @@ -331,7 +326,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { {#hint: hint}, ), )), - returnValueForMissingStub: _i9.Future<_i4.Balance>.value(_FakeBalance_2( + returnValueForMissingStub: _i4.Future<_i3.Balance>.value(_FakeBalance_2( this, Invocation.method( #getBalance, @@ -339,11 +334,11 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { {#hint: hint}, ), )), - ) as _i9.Future<_i4.Balance>); + ) as _i4.Future<_i3.Balance>); @override - _i9.Future<_i3.Descriptor> getDescriptorForKeychain({ - required _i4.KeychainKind? keychain, + _i4.Future<_i3.Descriptor> getDescriptorForKeychain({ + required _i3.KeychainKind? keychain, dynamic hint, }) => (super.noSuchMethod( @@ -355,7 +350,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i3.Descriptor>.value(_FakeDescriptor_3( + returnValue: _i4.Future<_i3.Descriptor>.value(_FakeDescriptor_3( this, Invocation.method( #getDescriptorForKeychain, @@ -367,7 +362,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ), )), returnValueForMissingStub: - _i9.Future<_i3.Descriptor>.value(_FakeDescriptor_3( + _i4.Future<_i3.Descriptor>.value(_FakeDescriptor_3( this, Invocation.method( #getDescriptorForKeychain, @@ -378,11 +373,11 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i3.Descriptor>); + ) as _i4.Future<_i3.Descriptor>); @override - _i9.Future<_i3.AddressInfo> getInternalAddress({ - required _i4.AddressIndex? addressIndex, + _i4.Future<_i3.AddressInfo> getInternalAddress({ + required _i3.AddressIndex? addressIndex, dynamic hint, }) => (super.noSuchMethod( @@ -394,7 +389,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + returnValue: _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getInternalAddress, @@ -406,7 +401,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ), )), returnValueForMissingStub: - _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getInternalAddress, @@ -417,13 +412,13 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i3.AddressInfo>); + ) as _i4.Future<_i3.AddressInfo>); @override - _i9.Future<_i4.Input> getPsbtInput({ - required _i4.LocalUtxo? utxo, + _i4.Future<_i3.Input> getPsbtInput({ + required _i3.LocalUtxo? utxo, required bool? onlyWitnessUtxo, - _i4.PsbtSigHashType? sighashType, + _i3.PsbtSigHashType? sighashType, dynamic hint, }) => (super.noSuchMethod( @@ -437,7 +432,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i4.Input>.value(_FakeInput_4( + returnValue: _i4.Future<_i3.Input>.value(_FakeInput_4( this, Invocation.method( #getPsbtInput, @@ -450,7 +445,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - returnValueForMissingStub: _i9.Future<_i4.Input>.value(_FakeInput_4( + returnValueForMissingStub: _i4.Future<_i3.Input>.value(_FakeInput_4( this, Invocation.method( #getPsbtInput, @@ -463,11 +458,11 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i4.Input>); + ) as _i4.Future<_i3.Input>); @override - _i9.Future isMine({ - required _i4.BdkScriptBuf? script, + _i4.Future isMine({ + required _i5.BdkScriptBuf? script, dynamic hint, }) => (super.noSuchMethod( @@ -479,12 +474,12 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future> listTransactions({ + _i4.Future> listTransactions({ required bool? includeRaw, dynamic hint, }) => @@ -497,42 +492,42 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future>.value( - <_i4.TransactionDetails>[]), + returnValue: _i4.Future>.value( + <_i3.TransactionDetails>[]), returnValueForMissingStub: - _i9.Future>.value( - <_i4.TransactionDetails>[]), - ) as _i9.Future>); + _i4.Future>.value( + <_i3.TransactionDetails>[]), + ) as _i4.Future>); @override - _i9.Future> listUnspent({dynamic hint}) => + _i4.Future> listUnspent({dynamic hint}) => (super.noSuchMethod( Invocation.method( #listUnspent, [], {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i4.LocalUtxo>[]), + returnValue: _i4.Future>.value(<_i3.LocalUtxo>[]), returnValueForMissingStub: - _i9.Future>.value(<_i4.LocalUtxo>[]), - ) as _i9.Future>); + _i4.Future>.value(<_i3.LocalUtxo>[]), + ) as _i4.Future>); @override - _i9.Future<_i4.Network> network({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.Network> network({dynamic hint}) => (super.noSuchMethod( Invocation.method( #network, [], {#hint: hint}, ), - returnValue: _i9.Future<_i4.Network>.value(_i4.Network.testnet), + returnValue: _i4.Future<_i3.Network>.value(_i3.Network.testnet), returnValueForMissingStub: - _i9.Future<_i4.Network>.value(_i4.Network.testnet), - ) as _i9.Future<_i4.Network>); + _i4.Future<_i3.Network>.value(_i3.Network.testnet), + ) as _i4.Future<_i3.Network>); @override - _i9.Future sign({ + _i4.Future sign({ required _i3.PartiallySignedTransaction? psbt, - _i4.SignOptions? signOptions, + _i3.SignOptions? signOptions, dynamic hint, }) => (super.noSuchMethod( @@ -545,12 +540,12 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future sync({ + _i4.Future sync({ required _i3.Blockchain? blockchain, dynamic hint, }) => @@ -563,9 +558,9 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); } /// A class which mocks [Transaction]. @@ -573,183 +568,206 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { /// See the documentation for Mockito's code generation for more information. class MockTransaction extends _i1.Mock implements _i3.Transaction { @override - String get inner => (super.noSuchMethod( - Invocation.getter(#inner), - returnValue: _i10.dummyValue( + String get s => (super.noSuchMethod( + Invocation.getter(#s), + returnValue: _i6.dummyValue( this, - Invocation.getter(#inner), + Invocation.getter(#s), ), - returnValueForMissingStub: _i10.dummyValue( + returnValueForMissingStub: _i6.dummyValue( this, - Invocation.getter(#inner), + Invocation.getter(#s), ), ) as String); @override - _i9.Future> input({dynamic hint}) => (super.noSuchMethod( + _i4.Future> input() => (super.noSuchMethod( Invocation.method( #input, [], - {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i4.TxIn>[]), + returnValue: _i4.Future>.value(<_i3.TxIn>[]), returnValueForMissingStub: - _i9.Future>.value(<_i4.TxIn>[]), - ) as _i9.Future>); + _i4.Future>.value(<_i3.TxIn>[]), + ) as _i4.Future>); @override - _i9.Future isCoinBase({dynamic hint}) => (super.noSuchMethod( + _i4.Future isCoinBase() => (super.noSuchMethod( Invocation.method( #isCoinBase, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future isExplicitlyRbf({dynamic hint}) => (super.noSuchMethod( + _i4.Future isExplicitlyRbf() => (super.noSuchMethod( Invocation.method( #isExplicitlyRbf, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future isLockTimeEnabled({dynamic hint}) => (super.noSuchMethod( + _i4.Future isLockTimeEnabled() => (super.noSuchMethod( Invocation.method( #isLockTimeEnabled, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future<_i4.LockTime> lockTime({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.LockTime> lockTime() => (super.noSuchMethod( Invocation.method( #lockTime, [], - {#hint: hint}, ), returnValue: - _i9.Future<_i4.LockTime>.value(_i10.dummyValue<_i4.LockTime>( + _i4.Future<_i3.LockTime>.value(_i6.dummyValue<_i3.LockTime>( this, Invocation.method( #lockTime, [], - {#hint: hint}, ), )), returnValueForMissingStub: - _i9.Future<_i4.LockTime>.value(_i10.dummyValue<_i4.LockTime>( + _i4.Future<_i3.LockTime>.value(_i6.dummyValue<_i3.LockTime>( this, Invocation.method( #lockTime, [], - {#hint: hint}, ), )), - ) as _i9.Future<_i4.LockTime>); + ) as _i4.Future<_i3.LockTime>); @override - _i9.Future> output({dynamic hint}) => (super.noSuchMethod( + _i4.Future> output() => (super.noSuchMethod( Invocation.method( #output, [], - {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i4.TxOut>[]), + returnValue: _i4.Future>.value(<_i3.TxOut>[]), returnValueForMissingStub: - _i9.Future>.value(<_i4.TxOut>[]), - ) as _i9.Future>); + _i4.Future>.value(<_i3.TxOut>[]), + ) as _i4.Future>); @override - _i9.Future<_i11.Uint8List> serialize({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i7.Uint8List> serialize() => (super.noSuchMethod( Invocation.method( #serialize, [], - {#hint: hint}, ), - returnValue: _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), + returnValue: _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), returnValueForMissingStub: - _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), - ) as _i9.Future<_i11.Uint8List>); + _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i4.Future<_i7.Uint8List>); @override - _i9.Future size({dynamic hint}) => (super.noSuchMethod( + _i4.Future size() => (super.noSuchMethod( Invocation.method( #size, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #size, + [], + ), + )), + returnValueForMissingStub: + _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #size, + [], + ), + )), + ) as _i4.Future); @override - _i9.Future txid({dynamic hint}) => (super.noSuchMethod( + _i4.Future txid() => (super.noSuchMethod( Invocation.method( #txid, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #txid, [], - {#hint: hint}, ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #txid, [], - {#hint: hint}, ), )), - ) as _i9.Future); + ) as _i4.Future); @override - _i9.Future version({dynamic hint}) => (super.noSuchMethod( + _i4.Future version() => (super.noSuchMethod( Invocation.method( #version, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(0), + returnValueForMissingStub: _i4.Future.value(0), + ) as _i4.Future); @override - _i9.Future vsize({dynamic hint}) => (super.noSuchMethod( + _i4.Future vsize() => (super.noSuchMethod( Invocation.method( #vsize, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #vsize, + [], + ), + )), + returnValueForMissingStub: + _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #vsize, + [], + ), + )), + ) as _i4.Future); @override - _i9.Future weight({dynamic hint}) => (super.noSuchMethod( + _i4.Future weight() => (super.noSuchMethod( Invocation.method( #weight, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #weight, + [], + ), + )), + returnValueForMissingStub: + _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #weight, + [], + ), + )), + ) as _i4.Future); } /// A class which mocks [Blockchain]. @@ -757,7 +775,7 @@ class MockTransaction extends _i1.Mock implements _i3.Transaction { /// See the documentation for Mockito's code generation for more information. class MockBlockchain extends _i1.Mock implements _i3.Blockchain { @override - _i5.AnyBlockchain get ptr => (super.noSuchMethod( + _i2.AnyBlockchain get ptr => (super.noSuchMethod( Invocation.getter(#ptr), returnValue: _FakeAnyBlockchain_5( this, @@ -767,11 +785,11 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { this, Invocation.getter(#ptr), ), - ) as _i5.AnyBlockchain); + ) as _i2.AnyBlockchain); @override - _i9.Future<_i4.FeeRate> estimateFee({ - required int? target, + _i4.Future<_i3.FeeRate> estimateFee({ + required BigInt? target, dynamic hint, }) => (super.noSuchMethod( @@ -783,7 +801,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { #hint: hint, }, ), - returnValue: _i9.Future<_i4.FeeRate>.value(_FakeFeeRate_6( + returnValue: _i4.Future<_i3.FeeRate>.value(_FakeFeeRate_6( this, Invocation.method( #estimateFee, @@ -794,7 +812,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - returnValueForMissingStub: _i9.Future<_i4.FeeRate>.value(_FakeFeeRate_6( + returnValueForMissingStub: _i4.Future<_i3.FeeRate>.value(_FakeFeeRate_6( this, Invocation.method( #estimateFee, @@ -805,11 +823,11 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - ) as _i9.Future<_i4.FeeRate>); + ) as _i4.Future<_i3.FeeRate>); @override - _i9.Future broadcast({ - required _i4.BdkTransaction? transaction, + _i4.Future broadcast({ + required _i5.BdkTransaction? transaction, dynamic hint, }) => (super.noSuchMethod( @@ -821,7 +839,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { #hint: hint, }, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #broadcast, @@ -833,7 +851,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #broadcast, @@ -844,10 +862,10 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - ) as _i9.Future); + ) as _i4.Future); @override - _i9.Future getBlockHash({ + _i4.Future getBlockHash({ required int? height, dynamic hint, }) => @@ -860,7 +878,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { #hint: hint, }, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #getBlockHash, @@ -872,7 +890,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #getBlockHash, @@ -883,18 +901,18 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - ) as _i9.Future); + ) as _i4.Future); @override - _i9.Future getHeight({dynamic hint}) => (super.noSuchMethod( + _i4.Future getHeight({dynamic hint}) => (super.noSuchMethod( Invocation.method( #getHeight, [], {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(0), + returnValueForMissingStub: _i4.Future.value(0), + ) as _i4.Future); } /// A class which mocks [DescriptorSecretKey]. @@ -903,26 +921,26 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { class MockDescriptorSecretKey extends _i1.Mock implements _i3.DescriptorSecretKey { @override - _i6.KeysDescriptorSecretKey get ptr => (super.noSuchMethod( + _i2.DescriptorSecretKey get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeKeysDescriptorSecretKey_7( + returnValue: _FakeDescriptorSecretKey_7( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeKeysDescriptorSecretKey_7( + returnValueForMissingStub: _FakeDescriptorSecretKey_7( this, Invocation.getter(#ptr), ), - ) as _i6.KeysDescriptorSecretKey); + ) as _i2.DescriptorSecretKey); @override - _i9.Future<_i3.DescriptorSecretKey> derive(_i3.DerivationPath? path) => + _i4.Future<_i3.DescriptorSecretKey> derive(_i3.DerivationPath? path) => (super.noSuchMethod( Invocation.method( #derive, [path], ), - returnValue: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValue: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -930,7 +948,7 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -938,16 +956,16 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - ) as _i9.Future<_i3.DescriptorSecretKey>); + ) as _i4.Future<_i3.DescriptorSecretKey>); @override - _i9.Future<_i3.DescriptorSecretKey> extend(_i3.DerivationPath? path) => + _i4.Future<_i3.DescriptorSecretKey> extend(_i3.DerivationPath? path) => (super.noSuchMethod( Invocation.method( #extend, [path], ), - returnValue: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValue: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -955,7 +973,7 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -963,15 +981,15 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - ) as _i9.Future<_i3.DescriptorSecretKey>); + ) as _i4.Future<_i3.DescriptorSecretKey>); @override - _i9.Future<_i3.DescriptorPublicKey> asPublic() => (super.noSuchMethod( + _i4.Future<_i3.DescriptorPublicKey> asPublic() => (super.noSuchMethod( Invocation.method( #asPublic, [], ), - returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValue: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -979,7 +997,7 @@ class MockDescriptorSecretKey extends _i1.Mock [], ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -987,45 +1005,41 @@ class MockDescriptorSecretKey extends _i1.Mock [], ), )), - ) as _i9.Future<_i3.DescriptorPublicKey>); + ) as _i4.Future<_i3.DescriptorPublicKey>); @override - _i9.Future asString({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i7.Uint8List> secretBytes({dynamic hint}) => (super.noSuchMethod( Invocation.method( - #asString, + #secretBytes, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + returnValueForMissingStub: + _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i4.Future<_i7.Uint8List>); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( this, Invocation.method( #asString, [], - {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( #asString, [], - {#hint: hint}, ), - )), - ) as _i9.Future); - - @override - _i9.Future<_i11.Uint8List> secretBytes({dynamic hint}) => (super.noSuchMethod( - Invocation.method( - #secretBytes, - [], - {#hint: hint}, ), - returnValue: _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), - returnValueForMissingStub: - _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), - ) as _i9.Future<_i11.Uint8List>); + ) as String); } /// A class which mocks [DescriptorPublicKey]. @@ -1034,46 +1048,20 @@ class MockDescriptorSecretKey extends _i1.Mock class MockDescriptorPublicKey extends _i1.Mock implements _i3.DescriptorPublicKey { @override - _i6.KeysDescriptorPublicKey get ptr => (super.noSuchMethod( + _i2.DescriptorPublicKey get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeKeysDescriptorPublicKey_10( + returnValue: _FakeDescriptorPublicKey_10( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeKeysDescriptorPublicKey_10( + returnValueForMissingStub: _FakeDescriptorPublicKey_10( this, Invocation.getter(#ptr), ), - ) as _i6.KeysDescriptorPublicKey); + ) as _i2.DescriptorPublicKey); @override - _i9.Future asString({dynamic hint}) => (super.noSuchMethod( - Invocation.method( - #asString, - [], - {#hint: hint}, - ), - returnValue: _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #asString, - [], - {#hint: hint}, - ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #asString, - [], - {#hint: hint}, - ), - )), - ) as _i9.Future); - - @override - _i9.Future<_i3.DescriptorPublicKey> derive({ + _i4.Future<_i3.DescriptorPublicKey> derive({ required _i3.DerivationPath? path, dynamic hint, }) => @@ -1086,7 +1074,7 @@ class MockDescriptorPublicKey extends _i1.Mock #hint: hint, }, ), - returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValue: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1098,7 +1086,7 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1110,10 +1098,10 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - ) as _i9.Future<_i3.DescriptorPublicKey>); + ) as _i4.Future<_i3.DescriptorPublicKey>); @override - _i9.Future<_i3.DescriptorPublicKey> extend({ + _i4.Future<_i3.DescriptorPublicKey> extend({ required _i3.DerivationPath? path, dynamic hint, }) => @@ -1126,7 +1114,7 @@ class MockDescriptorPublicKey extends _i1.Mock #hint: hint, }, ), - returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValue: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1138,7 +1126,7 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1150,7 +1138,29 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - ) as _i9.Future<_i3.DescriptorPublicKey>); + ) as _i4.Future<_i3.DescriptorPublicKey>); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [PartiallySignedTransaction]. @@ -1159,7 +1169,7 @@ class MockDescriptorPublicKey extends _i1.Mock class MockPartiallySignedTransaction extends _i1.Mock implements _i3.PartiallySignedTransaction { @override - _i7.MutexPartiallySignedTransaction get ptr => (super.noSuchMethod( + _i2.MutexPartiallySignedTransaction get ptr => (super.noSuchMethod( Invocation.getter(#ptr), returnValue: _FakeMutexPartiallySignedTransaction_11( this, @@ -1169,38 +1179,38 @@ class MockPartiallySignedTransaction extends _i1.Mock this, Invocation.getter(#ptr), ), - ) as _i7.MutexPartiallySignedTransaction); + ) as _i2.MutexPartiallySignedTransaction); @override - _i9.Future feeAmount({dynamic hint}) => (super.noSuchMethod( + _i4.Future feeAmount({dynamic hint}) => (super.noSuchMethod( Invocation.method( #feeAmount, [], {#hint: hint}, ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i9.Future<_i4.FeeRate?> feeRate({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.FeeRate?> feeRate({dynamic hint}) => (super.noSuchMethod( Invocation.method( #feeRate, [], {#hint: hint}, ), - returnValue: _i9.Future<_i4.FeeRate?>.value(), - returnValueForMissingStub: _i9.Future<_i4.FeeRate?>.value(), - ) as _i9.Future<_i4.FeeRate?>); + returnValue: _i4.Future<_i3.FeeRate?>.value(), + returnValueForMissingStub: _i4.Future<_i3.FeeRate?>.value(), + ) as _i4.Future<_i3.FeeRate?>); @override - _i9.Future jsonSerialize({dynamic hint}) => (super.noSuchMethod( + _i4.Future jsonSerialize({dynamic hint}) => (super.noSuchMethod( Invocation.method( #jsonSerialize, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #jsonSerialize, @@ -1209,7 +1219,7 @@ class MockPartiallySignedTransaction extends _i1.Mock ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #jsonSerialize, @@ -1217,41 +1227,27 @@ class MockPartiallySignedTransaction extends _i1.Mock {#hint: hint}, ), )), - ) as _i9.Future); + ) as _i4.Future); @override - _i9.Future serialize({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i7.Uint8List> serialize({dynamic hint}) => (super.noSuchMethod( Invocation.method( #serialize, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #serialize, - [], - {#hint: hint}, - ), - )), + returnValue: _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #serialize, - [], - {#hint: hint}, - ), - )), - ) as _i9.Future); + _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i4.Future<_i7.Uint8List>); @override - _i9.Future<_i3.Transaction> extractTx() => (super.noSuchMethod( + _i4.Future<_i3.Transaction> extractTx() => (super.noSuchMethod( Invocation.method( #extractTx, [], ), - returnValue: _i9.Future<_i3.Transaction>.value(_FakeTransaction_12( + returnValue: _i4.Future<_i3.Transaction>.value(_FakeTransaction_12( this, Invocation.method( #extractTx, @@ -1259,24 +1255,24 @@ class MockPartiallySignedTransaction extends _i1.Mock ), )), returnValueForMissingStub: - _i9.Future<_i3.Transaction>.value(_FakeTransaction_12( + _i4.Future<_i3.Transaction>.value(_FakeTransaction_12( this, Invocation.method( #extractTx, [], ), )), - ) as _i9.Future<_i3.Transaction>); + ) as _i4.Future<_i3.Transaction>); @override - _i9.Future<_i3.PartiallySignedTransaction> combine( + _i4.Future<_i3.PartiallySignedTransaction> combine( _i3.PartiallySignedTransaction? other) => (super.noSuchMethod( Invocation.method( #combine, [other], ), - returnValue: _i9.Future<_i3.PartiallySignedTransaction>.value( + returnValue: _i4.Future<_i3.PartiallySignedTransaction>.value( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1285,7 +1281,7 @@ class MockPartiallySignedTransaction extends _i1.Mock ), )), returnValueForMissingStub: - _i9.Future<_i3.PartiallySignedTransaction>.value( + _i4.Future<_i3.PartiallySignedTransaction>.value( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1293,16 +1289,16 @@ class MockPartiallySignedTransaction extends _i1.Mock [other], ), )), - ) as _i9.Future<_i3.PartiallySignedTransaction>); + ) as _i4.Future<_i3.PartiallySignedTransaction>); @override - _i9.Future txid({dynamic hint}) => (super.noSuchMethod( + _i4.Future txid({dynamic hint}) => (super.noSuchMethod( Invocation.method( #txid, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #txid, @@ -1311,7 +1307,7 @@ class MockPartiallySignedTransaction extends _i1.Mock ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #txid, @@ -1319,7 +1315,29 @@ class MockPartiallySignedTransaction extends _i1.Mock {#hint: hint}, ), )), - ) as _i9.Future); + ) as _i4.Future); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [TxBuilder]. @@ -1354,7 +1372,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { @override _i3.TxBuilder addRecipient( _i3.ScriptBuf? script, - int? amount, + BigInt? amount, ) => (super.noSuchMethod( Invocation.method( @@ -1387,7 +1405,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder unSpendable(List<_i4.OutPoint>? outpoints) => + _i3.TxBuilder unSpendable(List<_i3.OutPoint>? outpoints) => (super.noSuchMethod( Invocation.method( #unSpendable, @@ -1410,7 +1428,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder addUtxo(_i4.OutPoint? outpoint) => (super.noSuchMethod( + _i3.TxBuilder addUtxo(_i3.OutPoint? outpoint) => (super.noSuchMethod( Invocation.method( #addUtxo, [outpoint], @@ -1432,7 +1450,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder addUtxos(List<_i4.OutPoint>? outpoints) => (super.noSuchMethod( + _i3.TxBuilder addUtxos(List<_i3.OutPoint>? outpoints) => (super.noSuchMethod( Invocation.method( #addUtxos, [outpoints], @@ -1455,9 +1473,9 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { @override _i3.TxBuilder addForeignUtxo( - _i4.Input? psbtInput, - _i4.OutPoint? outPoint, - int? satisfactionWeight, + _i3.Input? psbtInput, + _i3.OutPoint? outPoint, + BigInt? satisfactionWeight, ) => (super.noSuchMethod( Invocation.method( @@ -1603,7 +1621,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder feeAbsolute(int? feeAmount) => (super.noSuchMethod( + _i3.TxBuilder feeAbsolute(BigInt? feeAmount) => (super.noSuchMethod( Invocation.method( #feeAbsolute, [feeAmount], @@ -1647,7 +1665,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder setRecipients(List<_i4.ScriptAmount>? recipients) => + _i3.TxBuilder setRecipients(List<_i3.ScriptAmount>? recipients) => (super.noSuchMethod( Invocation.method( #setRecipients, @@ -1692,7 +1710,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder addUnSpendable(_i4.OutPoint? unSpendable) => + _i3.TxBuilder addUnSpendable(_i3.OutPoint? unSpendable) => (super.noSuchMethod( Invocation.method( #addUnSpendable, @@ -1737,15 +1755,15 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i9.Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)> finish( + _i4.Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)> finish( _i3.Wallet? wallet) => (super.noSuchMethod( Invocation.method( #finish, [wallet], ), - returnValue: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValue: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1761,8 +1779,8 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ), ) )), - returnValueForMissingStub: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValueForMissingStub: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1778,8 +1796,8 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ), ) )), - ) as _i9 - .Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)>); + ) as _i4 + .Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)>); } /// A class which mocks [BumpFeeTxBuilder]. @@ -1789,11 +1807,11 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { @override String get txid => (super.noSuchMethod( Invocation.getter(#txid), - returnValue: _i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.getter(#txid), ), - returnValueForMissingStub: _i10.dummyValue( + returnValueForMissingStub: _i6.dummyValue( this, Invocation.getter(#txid), ), @@ -1875,15 +1893,15 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { ) as _i3.BumpFeeTxBuilder); @override - _i9.Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)> finish( + _i4.Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)> finish( _i3.Wallet? wallet) => (super.noSuchMethod( Invocation.method( #finish, [wallet], ), - returnValue: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValue: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1899,8 +1917,8 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { ), ) )), - returnValueForMissingStub: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValueForMissingStub: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1916,8 +1934,8 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { ), ) )), - ) as _i9 - .Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)>); + ) as _i4 + .Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)>); } /// A class which mocks [ScriptBuf]. @@ -1925,11 +1943,33 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { /// See the documentation for Mockito's code generation for more information. class MockScriptBuf extends _i1.Mock implements _i3.ScriptBuf { @override - _i11.Uint8List get bytes => (super.noSuchMethod( + _i7.Uint8List get bytes => (super.noSuchMethod( Invocation.getter(#bytes), - returnValue: _i11.Uint8List(0), - returnValueForMissingStub: _i11.Uint8List(0), - ) as _i11.Uint8List); + returnValue: _i7.Uint8List(0), + returnValueForMissingStub: _i7.Uint8List(0), + ) as _i7.Uint8List); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [Address]. @@ -1937,25 +1977,25 @@ class MockScriptBuf extends _i1.Mock implements _i3.ScriptBuf { /// See the documentation for Mockito's code generation for more information. class MockAddress extends _i1.Mock implements _i3.Address { @override - _i4.BdkBitcoinAddress get ptr => (super.noSuchMethod( + _i2.Address get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeBdkBitcoinAddress_17( + returnValue: _FakeAddress_17( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeBdkBitcoinAddress_17( + returnValueForMissingStub: _FakeAddress_17( this, Invocation.getter(#ptr), ), - ) as _i4.BdkBitcoinAddress); + ) as _i2.Address); @override - _i9.Future<_i3.ScriptBuf> scriptPubkey() => (super.noSuchMethod( + _i4.Future<_i3.ScriptBuf> scriptPubkey() => (super.noSuchMethod( Invocation.method( #scriptPubkey, [], ), - returnValue: _i9.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( + returnValue: _i4.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( this, Invocation.method( #scriptPubkey, @@ -1963,122 +2003,104 @@ class MockAddress extends _i1.Mock implements _i3.Address { ), )), returnValueForMissingStub: - _i9.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( + _i4.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( this, Invocation.method( #scriptPubkey, [], ), )), - ) as _i9.Future<_i3.ScriptBuf>); + ) as _i4.Future<_i3.ScriptBuf>); @override - _i9.Future asString({dynamic hint}) => (super.noSuchMethod( + String toQrUri() => (super.noSuchMethod( Invocation.method( - #asString, + #toQrUri, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.method( - #asString, + #toQrUri, [], - {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( - #asString, + #toQrUri, [], - {#hint: hint}, ), - )), - ) as _i9.Future); + ), + ) as String); @override - _i9.Future isValidForNetwork({ - required _i4.Network? network, - dynamic hint, - }) => + _i4.Future isValidForNetwork({required _i3.Network? network}) => (super.noSuchMethod( Invocation.method( #isValidForNetwork, [], - { - #network: network, - #hint: hint, - }, + {#network: network}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future<_i4.Network> network({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.Network> network() => (super.noSuchMethod( Invocation.method( #network, [], - {#hint: hint}, ), - returnValue: _i9.Future<_i4.Network>.value(_i4.Network.testnet), + returnValue: _i4.Future<_i3.Network>.value(_i3.Network.testnet), returnValueForMissingStub: - _i9.Future<_i4.Network>.value(_i4.Network.testnet), - ) as _i9.Future<_i4.Network>); + _i4.Future<_i3.Network>.value(_i3.Network.testnet), + ) as _i4.Future<_i3.Network>); @override - _i9.Future<_i4.Payload> payload({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.Payload> payload() => (super.noSuchMethod( Invocation.method( #payload, [], - {#hint: hint}, ), - returnValue: _i9.Future<_i4.Payload>.value(_i10.dummyValue<_i4.Payload>( + returnValue: _i4.Future<_i3.Payload>.value(_i6.dummyValue<_i3.Payload>( this, Invocation.method( #payload, [], - {#hint: hint}, ), )), returnValueForMissingStub: - _i9.Future<_i4.Payload>.value(_i10.dummyValue<_i4.Payload>( + _i4.Future<_i3.Payload>.value(_i6.dummyValue<_i3.Payload>( this, Invocation.method( #payload, [], - {#hint: hint}, ), )), - ) as _i9.Future<_i4.Payload>); + ) as _i4.Future<_i3.Payload>); @override - _i9.Future toQrUri({dynamic hint}) => (super.noSuchMethod( + String asString() => (super.noSuchMethod( Invocation.method( - #toQrUri, + #asString, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.method( - #toQrUri, + #asString, [], - {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( - #toQrUri, + #asString, [], - {#hint: hint}, ), - )), - ) as _i9.Future); + ), + ) as String); } /// A class which mocks [DerivationPath]. @@ -2086,23 +2108,45 @@ class MockAddress extends _i1.Mock implements _i3.Address { /// See the documentation for Mockito's code generation for more information. class MockDerivationPath extends _i1.Mock implements _i3.DerivationPath { @override - _i8.BitcoinBip32DerivationPath get ptr => (super.noSuchMethod( + _i2.DerivationPath get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeBitcoinBip32DerivationPath_19( + returnValue: _FakeDerivationPath_19( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeBitcoinBip32DerivationPath_19( + returnValueForMissingStub: _FakeDerivationPath_19( this, Invocation.getter(#ptr), ), - ) as _i8.BitcoinBip32DerivationPath); + ) as _i2.DerivationPath); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [FeeRate]. /// /// See the documentation for Mockito's code generation for more information. -class MockFeeRate extends _i1.Mock implements _i4.FeeRate { +class MockFeeRate extends _i1.Mock implements _i3.FeeRate { @override double get satPerVb => (super.noSuchMethod( Invocation.getter(#satPerVb), @@ -2114,9 +2158,9 @@ class MockFeeRate extends _i1.Mock implements _i4.FeeRate { /// A class which mocks [LocalUtxo]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { +class MockLocalUtxo extends _i1.Mock implements _i3.LocalUtxo { @override - _i4.OutPoint get outpoint => (super.noSuchMethod( + _i3.OutPoint get outpoint => (super.noSuchMethod( Invocation.getter(#outpoint), returnValue: _FakeOutPoint_20( this, @@ -2126,10 +2170,10 @@ class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { this, Invocation.getter(#outpoint), ), - ) as _i4.OutPoint); + ) as _i3.OutPoint); @override - _i4.TxOut get txout => (super.noSuchMethod( + _i3.TxOut get txout => (super.noSuchMethod( Invocation.getter(#txout), returnValue: _FakeTxOut_21( this, @@ -2139,14 +2183,14 @@ class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { this, Invocation.getter(#txout), ), - ) as _i4.TxOut); + ) as _i3.TxOut); @override - _i4.KeychainKind get keychain => (super.noSuchMethod( + _i3.KeychainKind get keychain => (super.noSuchMethod( Invocation.getter(#keychain), - returnValue: _i4.KeychainKind.externalChain, - returnValueForMissingStub: _i4.KeychainKind.externalChain, - ) as _i4.KeychainKind); + returnValue: _i3.KeychainKind.externalChain, + returnValueForMissingStub: _i3.KeychainKind.externalChain, + ) as _i3.KeychainKind); @override bool get isSpent => (super.noSuchMethod( @@ -2160,31 +2204,43 @@ class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { /// /// See the documentation for Mockito's code generation for more information. class MockTransactionDetails extends _i1.Mock - implements _i4.TransactionDetails { + implements _i3.TransactionDetails { @override String get txid => (super.noSuchMethod( Invocation.getter(#txid), - returnValue: _i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.getter(#txid), ), - returnValueForMissingStub: _i10.dummyValue( + returnValueForMissingStub: _i6.dummyValue( this, Invocation.getter(#txid), ), ) as String); @override - int get received => (super.noSuchMethod( + BigInt get received => (super.noSuchMethod( Invocation.getter(#received), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + returnValue: _i6.dummyValue( + this, + Invocation.getter(#received), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.getter(#received), + ), + ) as BigInt); @override - int get sent => (super.noSuchMethod( + BigInt get sent => (super.noSuchMethod( Invocation.getter(#sent), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + returnValue: _i6.dummyValue( + this, + Invocation.getter(#sent), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.getter(#sent), + ), + ) as BigInt); } From c0a7519f315a014d72b0bd2e6dd92028a176f625 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 9 Jul 2024 20:30:00 -0400 Subject: [PATCH 13/35] Update BdkLibrary to reflect changes in plugin --- example/lib/bdk_library.dart | 9 +++++---- example/lib/multi_sig_wallet.dart | 4 ++-- example/lib/simple_wallet.dart | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/example/lib/bdk_library.dart b/example/lib/bdk_library.dart index 9722dba8..f177a6d2 100644 --- a/example/lib/bdk_library.dart +++ b/example/lib/bdk_library.dart @@ -21,9 +21,10 @@ class BdkLibrary { Future initializeBlockchain() async { return 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(10)))); } Future restoreWallet(Descriptor descriptor) async { @@ -90,7 +91,7 @@ class BdkLibrary { int blocks, Blockchain blockchain, ) async { - final feeRate = await blockchain.estimateFee(target: blocks); + final feeRate = await blockchain.estimateFee(target: BigInt.from(blocks)); return feeRate; } @@ -104,7 +105,7 @@ class BdkLibrary { final script = await address.scriptPubkey(); final feeRate = await estimateFeeRate(25, blockchain); final (psbt, _) = await txBuilder - .addRecipient(script, 750) + .addRecipient(script, BigInt.from(750)) .feeRate(feeRate.satPerVb) .finish(aliceWallet); final isFinalized = await aliceWallet.sign(psbt: psbt); diff --git a/example/lib/multi_sig_wallet.dart b/example/lib/multi_sig_wallet.dart index b3ade294..6cb74a89 100644 --- a/example/lib/multi_sig_wallet.dart +++ b/example/lib/multi_sig_wallet.dart @@ -61,9 +61,9 @@ class MultiSigWallet { final address = await Address.fromString( s: addressStr, network: (await aliceWallet.network())); final script = await address.scriptPubkey(); - final feeRate = await blockchain.estimateFee(target: 25); + final feeRate = await blockchain.estimateFee(target: BigInt.from(25)); final (psbt, _) = await txBuilder - .addRecipient(script, 1000) + .addRecipient(script, BigInt.from(1200)) .feeRate(feeRate.satPerVb) .finish(aliceWallet); await aliceWallet.sign( diff --git a/example/lib/simple_wallet.dart b/example/lib/simple_wallet.dart index 9c8544d0..9ea0d9e3 100644 --- a/example/lib/simple_wallet.dart +++ b/example/lib/simple_wallet.dart @@ -13,7 +13,7 @@ class SimpleWallet extends StatefulWidget { class _SimpleWalletState extends State { String displayText = ""; - int balance = 0; + BigInt balance = BigInt.zero; late Wallet aliceWallet; Blockchain? blockchain; BdkLibrary lib = BdkLibrary(); @@ -29,7 +29,7 @@ class _SimpleWalletState extends State { displayText = res.toString(); }); if (kDebugMode) { - print(await res.asString()); + print(res.toString()); } } @@ -49,7 +49,7 @@ class _SimpleWalletState extends State { } getNewAddress() async { - final res = (await (await lib.getAddress(aliceWallet)).address.asString()); + final res = (await lib.getAddress(aliceWallet)).address.toString(); debugPrint(res); setState(() { From e89904c45dd8bfa821011fb65c277ada687f7eb1 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 9 Jul 2024 20:31:00 -0400 Subject: [PATCH 14/35] fix(Transaction): renamed invalid variable --- lib/src/root.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/root.dart b/lib/src/root.dart index 9100d981..e3ad9d4c 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -688,7 +688,7 @@ class PartiallySignedTransaction extends BdkPsbt { Future extractTx() async { try { final res = await BdkPsbt.extractTx(ptr: this); - return Transaction._(inner: res.s); + return Transaction._(s: res.s); } on BdkError catch (e) { throw mapBdkError(e); } From cbe9fb7059db4403dc3d4d3c97f625cbb147548c Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 9 Jul 2024 20:46:00 -0400 Subject: [PATCH 15/35] version updated to 0.31.2 --- example/macos/Podfile.lock | 4 ++-- ios/bdk_flutter.podspec | 2 +- macos/bdk_flutter.podspec | 2 +- pubspec.yaml | 2 +- rust/Cargo.lock | 2 +- rust/Cargo.toml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index 441d04a6..55a89e94 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - bdk_flutter (0.31.2-dev.2): + - bdk_flutter (0.31.2): - FlutterMacOS - FlutterMacOS (1.0.0) @@ -14,7 +14,7 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral SPEC CHECKSUMS: - bdk_flutter: 5135d700e746fe36b8fb7e3e4dac539652aa3a2b + bdk_flutter: f31096ce6d28094dbbb43d2a3fb130f7c54683df FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 PODFILE CHECKSUM: 6acf97521436d16fc31cd5e1a02000905acdb3ae diff --git a/ios/bdk_flutter.podspec b/ios/bdk_flutter.podspec index 6bd3fd12..6d40826d 100644 --- a/ios/bdk_flutter.podspec +++ b/ios/bdk_flutter.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'bdk_flutter' - s.version = "0.31.2-dev.2" + s.version = "0.31.2" s.summary = 'A Flutter library for the Bitcoin Development Kit (https://bitcoindevkit.org/)' s.description = <<-DESC A new Flutter plugin project. diff --git a/macos/bdk_flutter.podspec b/macos/bdk_flutter.podspec index 2be23caa..5d5b3899 100644 --- a/macos/bdk_flutter.podspec +++ b/macos/bdk_flutter.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'bdk_flutter' - s.version = "0.31.2-dev.2" + s.version = "0.31.2" s.summary = 'A Flutter library for the Bitcoin Development Kit (https://bitcoindevkit.org/)' s.description = <<-DESC A new Flutter plugin project. diff --git a/pubspec.yaml b/pubspec.yaml index 4696d76d..ce7a8a43 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: bdk_flutter description: A Flutter library for the Bitcoin Development Kit(bdk) (https://bitcoindevkit.org/) -version: 0.31.2-dev.2 +version: 0.31.2 homepage: https://github.com/LtbLightning/bdk-flutter environment: diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 5cb8d99e..845c186e 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -185,7 +185,7 @@ dependencies = [ [[package]] name = "bdk_flutter" -version = "0.31.2-dev" +version = "0.31.2" dependencies = [ "anyhow", "assert_matches", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index de7a175e..00455be6 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bdk_flutter" -version = "0.31.2-dev" +version = "0.31.2" edition = "2021" [lib] From f3a659f815651ddbc2a2e59ddd2336511bd87446 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 9 Jul 2024 20:47:00 -0400 Subject: [PATCH 16/35] CHANGELOG.md updated --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c2e473f..4419bb5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [0.31.2] + ## [0.31.2-dev.2] #### Fixed - Thread `frb_workerpool` panicked on invalid `Fingerprint`. From 2f5fddd881507953b6c3a0ca9ece2884dc6d9a12 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 10 Jul 2024 20:47:00 -0400 Subject: [PATCH 17/35] README.md updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 47f5e6b2..3379893d 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ To use the `bdk_flutter` package in your project, add it as a dependency in your ```dart dependencies: - bdk_flutter: ^0.31.2-dev.2 + bdk_flutter: ^0.31.2 ``` ### Examples From c42283c9f464b8ba40463f7933ea3f892486de41 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 10 Jul 2024 20:52:00 -0400 Subject: [PATCH 18/35] code formated --- lib/src/root.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/root.dart b/lib/src/root.dart index e3ad9d4c..f369e79c 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -423,7 +423,6 @@ class Descriptor extends BdkDescriptor { } ///Return the public version of the output descriptor. - @override String toString() { return super.asString(); From d772e5960e21550ea46ff476ae5d2253014c674c Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 10 Jul 2024 20:52:00 -0400 Subject: [PATCH 19/35] README.md updated --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3379893d..0852f50e 100644 --- a/README.md +++ b/README.md @@ -86,8 +86,7 @@ final descriptorSecretKey = await DescriptorSecretKey.create( network: Network.t final externalDescriptor = await Descriptor.newBip44( secretKey: descriptorSecretKey, network: Network.testnet, keychain: KeychainKind.externalChain ); -final externalPublicDescriptorStr = await externalDescriptor.asString(); -final externalPublicDescriptor = await Descriptor.( descriptor: externalPublicDescriptorStr, +final externalPublicDescriptor = await Descriptor.create( descriptor: externalDescriptor.toString(), network: Network.testnet); ``` From da9d3e390728fac1cdbb5d4a9683f095e82fa77d Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Thu, 11 Jul 2024 22:03:00 -0400 Subject: [PATCH 20/35] reactor(DescriptorSecretKey): rename asPublic to toPublic --- CHANGELOG.md | 2 + README.md | 5 +- example/lib/bdk_library.dart | 21 +- example/lib/multi_sig_wallet.dart | 6 +- example/lib/simple_wallet.dart | 27 +- example/macos/Podfile.lock | 4 +- example/pubspec.lock | 28 +- flutter_rust_bridge.yaml | 8 +- ios/Classes/frb_generated.h | 668 ++--- ios/bdk_flutter.podspec | 2 +- lib/src/generated/api/blockchain.dart | 82 +- lib/src/generated/api/descriptor.dart | 182 +- lib/src/generated/api/error.dart | 32 +- lib/src/generated/api/error.freezed.dart | 1682 ++++++----- lib/src/generated/api/key.dart | 152 +- lib/src/generated/api/psbt.dart | 73 +- lib/src/generated/api/types.dart | 212 +- lib/src/generated/api/wallet.dart | 129 +- lib/src/generated/frb_generated.dart | 2361 ++++++++------- lib/src/generated/frb_generated.io.dart | 2079 ++++++------- lib/src/generated/frb_generated.web.dart | 3382 ---------------------- lib/src/generated/lib.dart | 52 + lib/src/root.dart | 187 +- lib/src/utils/exceptions.dart | 4 +- lib/src/utils/utils.dart | 4 +- macos/Classes/frb_generated.h | 668 ++--- macos/bdk_flutter.podspec | 2 +- makefile | 2 +- pubspec.lock | 12 +- pubspec.yaml | 10 +- rust/Cargo.lock | 1094 +------ rust/Cargo.toml | 12 +- rust/src/api/blockchain.rs | 39 +- rust/src/api/descriptor.rs | 30 +- rust/src/api/key.rs | 22 +- rust/src/api/psbt.rs | 36 +- rust/src/api/types.rs | 34 +- rust/src/api/wallet.rs | 19 +- rust/src/frb_generated.io.rs | 593 ++-- rust/src/frb_generated.rs | 1222 ++++---- rust/src/frb_generated.web.rs | 2241 -------------- test/bdk_flutter_test.dart | 36 +- test/bdk_flutter_test.mocks.dart | 918 +++--- 43 files changed, 6264 insertions(+), 12110 deletions(-) delete mode 100644 lib/src/generated/frb_generated.web.dart create mode 100644 lib/src/generated/lib.dart delete mode 100644 rust/src/frb_generated.web.rs diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c2e473f..4419bb5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [0.31.2] + ## [0.31.2-dev.2] #### Fixed - Thread `frb_workerpool` panicked on invalid `Fingerprint`. diff --git a/README.md b/README.md index 47f5e6b2..0852f50e 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ To use the `bdk_flutter` package in your project, add it as a dependency in your ```dart dependencies: - bdk_flutter: ^0.31.2-dev.2 + bdk_flutter: ^0.31.2 ``` ### Examples @@ -86,8 +86,7 @@ final descriptorSecretKey = await DescriptorSecretKey.create( network: Network.t final externalDescriptor = await Descriptor.newBip44( secretKey: descriptorSecretKey, network: Network.testnet, keychain: KeychainKind.externalChain ); -final externalPublicDescriptorStr = await externalDescriptor.asString(); -final externalPublicDescriptor = await Descriptor.( descriptor: externalPublicDescriptorStr, +final externalPublicDescriptor = await Descriptor.create( descriptor: externalDescriptor.toString(), network: Network.testnet); ``` diff --git a/example/lib/bdk_library.dart b/example/lib/bdk_library.dart index b7a50b12..95c6d902 100644 --- a/example/lib/bdk_library.dart +++ b/example/lib/bdk_library.dart @@ -12,6 +12,9 @@ class BdkLibrary { network: Network.signet, mnemonic: mnemonic, ); + print(descriptorSecretKey.toPublic()); + print(descriptorSecretKey.secretBytes()); + print(descriptorSecretKey); final descriptor = await Descriptor.newBip84( secretKey: descriptorSecretKey, network: Network.signet, @@ -20,7 +23,11 @@ class BdkLibrary { } Future initializeBlockchain() async { - return Blockchain.createMutinynet(); + return await Blockchain.create( + config: BlockchainConfig.esplora( + config: EsploraConfig( + baseUrl: 'https://mutinynet.com/api', + stopGap: BigInt.from(10)))); } Future restoreWallet(Descriptor descriptor) async { @@ -87,16 +94,12 @@ class BdkLibrary { int blocks, Blockchain blockchain, ) async { - final feeRate = await blockchain.estimateFee(target: blocks); + final feeRate = await blockchain.estimateFee(target: BigInt.from(blocks)); return feeRate; } sendBitcoin( - Blockchain blockchain, - Wallet aliceWallet, - String addressStr, - int amountSat, - ) async { + Blockchain blockchain, Wallet aliceWallet, String addressStr) async { try { final txBuilder = TxBuilder(); final address = await Address.fromString( @@ -105,12 +108,12 @@ class BdkLibrary { final script = await address.scriptPubkey(); final feeRate = await estimateFeeRate(25, blockchain); final (psbt, _) = await txBuilder - .addRecipient(script, amountSat) + .addRecipient(script, BigInt.from(750)) .feeRate(feeRate.satPerVb) .finish(aliceWallet); final isFinalized = await aliceWallet.sign(psbt: psbt); if (isFinalized) { - final tx = await psbt.extractTx(); + final tx = psbt.extractTx(); final res = await blockchain.broadcast(transaction: tx); debugPrint(res); } else { diff --git a/example/lib/multi_sig_wallet.dart b/example/lib/multi_sig_wallet.dart index b3ade294..57aa28a2 100644 --- a/example/lib/multi_sig_wallet.dart +++ b/example/lib/multi_sig_wallet.dart @@ -7,7 +7,7 @@ class MultiSigWallet { for (var e in mnemonics) { final secret = await DescriptorSecretKey.create( network: Network.testnet, mnemonic: e); - final public = await secret.asPublic(); + final public = secret.toPublic(); descriptorInfos.add(DescriptorKeyInfo(secret, public)); } final alice = @@ -61,9 +61,9 @@ class MultiSigWallet { final address = await Address.fromString( s: addressStr, network: (await aliceWallet.network())); final script = await address.scriptPubkey(); - final feeRate = await blockchain.estimateFee(target: 25); + final feeRate = await blockchain.estimateFee(target: BigInt.from(25)); final (psbt, _) = await txBuilder - .addRecipient(script, 1000) + .addRecipient(script, BigInt.from(1200)) .feeRate(feeRate.satPerVb) .finish(aliceWallet); await aliceWallet.sign( diff --git a/example/lib/simple_wallet.dart b/example/lib/simple_wallet.dart index 42027761..9ea0d9e3 100644 --- a/example/lib/simple_wallet.dart +++ b/example/lib/simple_wallet.dart @@ -13,7 +13,7 @@ class SimpleWallet extends StatefulWidget { class _SimpleWalletState extends State { String displayText = ""; - int balance = 0; + BigInt balance = BigInt.zero; late Wallet aliceWallet; Blockchain? blockchain; BdkLibrary lib = BdkLibrary(); @@ -25,12 +25,11 @@ class _SimpleWalletState extends State { generateMnemonicKeys() async { final res = await lib.createMnemonic(); - final mnemonic = await res.asString(); setState(() { - displayText = mnemonic; + displayText = res.toString(); }); if (kDebugMode) { - print(mnemonic); + print(res.toString()); } } @@ -50,13 +49,11 @@ class _SimpleWalletState extends State { } getNewAddress() async { - final addressInfo = await lib.getAddress(aliceWallet); - final address = await addressInfo.address.asString(); - - debugPrint(address); + final res = (await lib.getAddress(aliceWallet)).address.toString(); + debugPrint(res); setState(() { - displayText = "Address: $address \n Index: ${addressInfo.index}"; + displayText = "Address: $res"; }); } @@ -155,13 +152,9 @@ class _SimpleWalletState extends State { } } - sendBit(int amountSat) async { + sendBit() async { await lib.sendBitcoin( - blockchain!, - aliceWallet, - "tb1qyhssajdx5vfxuatt082m9tsfmxrxludgqwe52f", - amountSat, - ); + blockchain!, aliceWallet, "tb1qyhssajdx5vfxuatt082m9tsfmxrxludgqwe52f"); } @override @@ -293,9 +286,9 @@ class _SimpleWalletState extends State { fontWeight: FontWeight.w800), )), TextButton( - onPressed: () => sendBit(100000), + onPressed: () => sendBit(), child: const Text( - 'Press to send 100k sats', + 'Press to send 1200 satoshi', style: TextStyle( color: Colors.indigoAccent, fontSize: 12, diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index 441d04a6..55a89e94 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - bdk_flutter (0.31.2-dev.2): + - bdk_flutter (0.31.2): - FlutterMacOS - FlutterMacOS (1.0.0) @@ -14,7 +14,7 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral SPEC CHECKSUMS: - bdk_flutter: 5135d700e746fe36b8fb7e3e4dac539652aa3a2b + bdk_flutter: f31096ce6d28094dbbb43d2a3fb130f7c54683df FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 PODFILE CHECKSUM: 6acf97521436d16fc31cd5e1a02000905acdb3ae diff --git a/example/pubspec.lock b/example/pubspec.lock index b754aae5..42f35cef 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -39,7 +39,7 @@ packages: path: ".." relative: true source: path - version: "0.31.2-dev.2" + version: "0.31.2" boolean_selector: dependency: transitive description: @@ -193,10 +193,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 @@ -206,10 +206,10 @@ packages: dependency: transitive description: name: freezed_annotation - sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d + sha256: f54946fdb1fa7b01f780841937b1a80783a20b393485f3f6cdf336fd6f4705f2 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" glob: dependency: transitive description: @@ -218,14 +218,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.2" - js: - dependency: transitive - description: - name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" json_annotation: dependency: transitive description: @@ -439,6 +431,14 @@ 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" yaml: dependency: transitive description: @@ -448,5 +448,5 @@ packages: source: hosted version: "3.1.2" 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/flutter_rust_bridge.yaml b/flutter_rust_bridge.yaml index b7fadedc..0a112455 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/ full_dep: true +web: false +dart3: true +enable_lifetime: true c_output: ios/Classes/frb_generated.h duplicated_c_output: [macos/Classes/frb_generated.h] -dart_entrypoint_class_name: CApi \ 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 0564a94d..60575588 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -24,7 +24,7 @@ typedef struct wire_cst_list_prim_u_8_strict { } wire_cst_list_prim_u_8_strict; typedef struct wire_cst_bdk_transaction { - struct wire_cst_list_prim_u_8_strict *inner; + struct wire_cst_list_prim_u_8_strict *s; } wire_cst_bdk_transaction; typedef struct wire_cst_electrum_config { @@ -722,340 +722,337 @@ typedef struct wire_cst_record_bdk_psbt_transaction_details { struct wire_cst_transaction_details field1; } wire_cst_record_bdk_psbt_transaction_details; -void frbgen_bdk_flutter_wire_bdk_blockchain_broadcast(int64_t port_, - struct wire_cst_bdk_blockchain *that, - struct wire_cst_bdk_transaction *transaction); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast(int64_t port_, + struct wire_cst_bdk_blockchain *that, + struct wire_cst_bdk_transaction *transaction); + +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create(int64_t port_, + struct wire_cst_blockchain_config *blockchain_config); -void frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint64_t target); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint64_t target); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint32_t height); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint32_t height); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_height(int64_t port_, - struct wire_cst_bdk_blockchain *that); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height(int64_t port_, + struct wire_cst_bdk_blockchain *that); -void frbgen_bdk_flutter_wire_bdk_blockchain_new(int64_t port_, - struct wire_cst_blockchain_config *blockchain_config); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string(int64_t port_, - struct wire_cst_bdk_descriptor *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new(int64_t port_, + struct wire_cst_list_prim_u_8_strict *descriptor, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new(int64_t port_, - struct wire_cst_list_prim_u_8_strict *descriptor, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string(struct wire_cst_bdk_derivation_path *that); -void frbgen_bdk_flutter_wire_bdk_derivation_path_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string(struct wire_cst_bdk_descriptor_public_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *public_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *public_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public(struct wire_cst_bdk_descriptor_secret_key *ptr); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string(struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create(int64_t port_, - int32_t network, - struct wire_cst_bdk_mnemonic *mnemonic, - struct wire_cst_list_prim_u_8_strict *password); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create(int64_t port_, + int32_t network, + struct wire_cst_bdk_mnemonic *mnemonic, + struct wire_cst_list_prim_u_8_strict *password); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *secret_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *secret_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes(struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_as_string(int64_t port_, - struct wire_cst_bdk_mnemonic *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string(struct wire_cst_bdk_mnemonic *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy(int64_t port_, - struct wire_cst_list_prim_u_8_loose *entropy); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy(int64_t port_, + struct wire_cst_list_prim_u_8_loose *entropy); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *mnemonic); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *mnemonic); -void frbgen_bdk_flutter_wire_bdk_mnemonic_new(int64_t port_, int32_t word_count); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new(int64_t port_, int32_t word_count); -void frbgen_bdk_flutter_wire_bdk_psbt_combine(int64_t port_, - struct wire_cst_bdk_psbt *ptr, - struct wire_cst_bdk_psbt *other); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_extract_tx(int64_t port_, struct wire_cst_bdk_psbt *ptr); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine(int64_t port_, + struct wire_cst_bdk_psbt *ptr, + struct wire_cst_bdk_psbt *other); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_amount(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx(struct wire_cst_bdk_psbt *ptr); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_rate(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_from_str(int64_t port_, - struct wire_cst_list_prim_u_8_strict *psbt_base64); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_json_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *psbt_base64); -void frbgen_bdk_flutter_wire_bdk_psbt_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_txid(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_as_string(int64_t port_, - struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_from_script(int64_t port_, - struct wire_cst_bdk_script_buf *script, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *address, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script(int64_t port_, + struct wire_cst_bdk_script_buf *script, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network(int64_t port_, - struct wire_cst_bdk_address *that, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *address, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_network(int64_t port_, struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network(struct wire_cst_bdk_address *that, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_payload(int64_t port_, struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_script(int64_t port_, struct wire_cst_bdk_address *ptr); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_to_qr_uri(int64_t port_, - struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script(struct wire_cst_bdk_address *ptr); -void frbgen_bdk_flutter_wire_bdk_script_buf_empty(int64_t port_); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_from_hex(int64_t port_, - struct wire_cst_list_prim_u_8_strict *s); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string(struct wire_cst_bdk_script_buf *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity(int64_t port_, uintptr_t capacity); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty(void); -void frbgen_bdk_flutter_wire_bdk_transaction_from_bytes(int64_t port_, - struct wire_cst_list_prim_u_8_loose *transaction_bytes); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_bdk_flutter_wire_bdk_transaction_input(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity(int64_t port_, + uintptr_t capacity); -void frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes(int64_t port_, + struct wire_cst_list_prim_u_8_loose *transaction_bytes); -void frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_lock_time(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_new(int64_t port_, - int32_t version, - struct wire_cst_lock_time *lock_time, - struct wire_cst_list_tx_in *input, - struct wire_cst_list_tx_out *output); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_output(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_serialize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new(int64_t port_, + int32_t version, + struct wire_cst_lock_time *lock_time, + struct wire_cst_list_tx_in *input, + struct wire_cst_list_tx_out *output); -void frbgen_bdk_flutter_wire_bdk_transaction_size(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_txid(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_version(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_vsize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_weight(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_balance(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - int32_t keychain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_local_utxo *utxo, - bool only_witness_utxo, - struct wire_cst_psbt_sig_hash_type *sighash_type); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + int32_t keychain); -void frbgen_bdk_flutter_wire_bdk_wallet_is_mine(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_bdk_script_buf *script); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_list_transactions(int64_t port_, - struct wire_cst_bdk_wallet *that, - bool include_raw); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_local_utxo *utxo, + bool only_witness_utxo, + struct wire_cst_psbt_sig_hash_type *sighash_type); -void frbgen_bdk_flutter_wire_bdk_wallet_list_unspent(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_bdk_script_buf *script); -void frbgen_bdk_flutter_wire_bdk_wallet_network(int64_t port_, struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(int64_t port_, + struct wire_cst_bdk_wallet *that, + bool include_raw); -void frbgen_bdk_flutter_wire_bdk_wallet_new(int64_t port_, - struct wire_cst_bdk_descriptor *descriptor, - struct wire_cst_bdk_descriptor *change_descriptor, - int32_t network, - struct wire_cst_database_config *database_config); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sign(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_psbt *psbt, - struct wire_cst_sign_options *sign_options); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sync(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_blockchain *blockchain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new(int64_t port_, + struct wire_cst_bdk_descriptor *descriptor, + struct wire_cst_bdk_descriptor *change_descriptor, + int32_t network, + struct wire_cst_database_config *database_config); -void frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder(int64_t port_, - struct wire_cst_list_prim_u_8_strict *txid, - float fee_rate, - struct wire_cst_bdk_address *allow_shrinking, - struct wire_cst_bdk_wallet *wallet, - bool enable_rbf, - uint32_t *n_sequence); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_psbt *psbt, + struct wire_cst_sign_options *sign_options); -void frbgen_bdk_flutter_wire_tx_builder_finish(int64_t port_, - struct wire_cst_bdk_wallet *wallet, - struct wire_cst_list_script_amount *recipients, - struct wire_cst_list_out_point *utxos, - struct wire_cst_record_out_point_input_usize *foreign_utxo, - struct wire_cst_list_out_point *un_spendable, - int32_t change_policy, - bool manually_selected_only, - float *fee_rate, - uint64_t *fee_absolute, - bool drain_wallet, - struct wire_cst_bdk_script_buf *drain_to, - struct wire_cst_rbf_value *rbf, - struct wire_cst_list_prim_u_8_loose *data); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_blockchain *blockchain); + +void frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder(int64_t port_, + struct wire_cst_list_prim_u_8_strict *txid, + float fee_rate, + struct wire_cst_bdk_address *allow_shrinking, + struct wire_cst_bdk_wallet *wallet, + bool enable_rbf, + uint32_t *n_sequence); + +void frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish(int64_t port_, + struct wire_cst_bdk_wallet *wallet, + struct wire_cst_list_script_amount *recipients, + struct wire_cst_list_out_point *utxos, + struct wire_cst_record_out_point_input_usize *foreign_utxo, + struct wire_cst_list_out_point *un_spendable, + int32_t change_policy, + bool manually_selected_only, + float *fee_rate, + uint64_t *fee_absolute, + bool drain_wallet, + struct wire_cst_bdk_script_buf *drain_to, + struct wire_cst_rbf_value *rbf, + struct wire_cst_list_prim_u_8_loose *data); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); struct wire_cst_address_error *frbgen_bdk_flutter_cst_new_box_autoadd_address_error(void); @@ -1196,106 +1193,109 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_transaction_details); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_in); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_out); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_payload); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_to_qr_uri); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_broadcast); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_height); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_derivation_path_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_combine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_extract_tx); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_amount); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_rate); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_from_str); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_json_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_empty); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_from_hex); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_from_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_lock_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_output); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_size); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_version); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_vsize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_balance); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_is_mine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_transactions); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_unspent); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sign); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sync); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_tx_builder_finish); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish); dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); return dummy_var; } diff --git a/ios/bdk_flutter.podspec b/ios/bdk_flutter.podspec index 6bd3fd12..6d40826d 100644 --- a/ios/bdk_flutter.podspec +++ b/ios/bdk_flutter.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'bdk_flutter' - s.version = "0.31.2-dev.2" + s.version = "0.31.2" s.summary = 'A Flutter library for the Bitcoin Development Kit (https://bitcoindevkit.org/)' s.description = <<-DESC A new Flutter plugin project. diff --git a/lib/src/generated/api/blockchain.dart b/lib/src/generated/api/blockchain.dart index d66bd784..f4be0008 100644 --- a/lib/src/generated/api/blockchain.dart +++ b/lib/src/generated/api/blockchain.dart @@ -1,34 +1,18 @@ // 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 'error.dart'; -import 'package:collection/collection.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:freezed_annotation/freezed_annotation.dart' hide protected; import 'types.dart'; part 'blockchain.freezed.dart'; -// Rust type: RustOpaqueNom -@sealed -class AnyBlockchain extends RustOpaque { - AnyBlockchain.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - AnyBlockchain.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_AnyBlockchain, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_AnyBlockchain, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_AnyBlockchainPtr, - ); -} +// These functions are ignored because they are not marked as `pub`: `get_blockchain` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `from`, `from`, `from` @freezed sealed class Auth with _$Auth { @@ -60,27 +44,25 @@ class BdkBlockchain { required this.ptr, }); - Future broadcast( - {required BdkTransaction transaction, dynamic hint}) => - CApi.instance.api.bdkBlockchainBroadcast( - that: this, transaction: transaction, hint: hint); + Future broadcast({required BdkTransaction transaction}) => + core.instance.api.crateApiBlockchainBdkBlockchainBroadcast( + that: this, transaction: transaction); - Future estimateFee({required int target, dynamic hint}) => - CApi.instance.api - .bdkBlockchainEstimateFee(that: this, target: target, hint: hint); + static Future create( + {required BlockchainConfig blockchainConfig}) => + core.instance.api.crateApiBlockchainBdkBlockchainCreate( + blockchainConfig: blockchainConfig); - Future getBlockHash({required int height, dynamic hint}) => - CApi.instance.api - .bdkBlockchainGetBlockHash(that: this, height: height, hint: hint); + Future estimateFee({required BigInt target}) => core.instance.api + .crateApiBlockchainBdkBlockchainEstimateFee(that: this, target: target); - Future getHeight({dynamic hint}) => - CApi.instance.api.bdkBlockchainGetHeight(that: this, hint: hint); + Future getBlockHash({required int height}) => core.instance.api + .crateApiBlockchainBdkBlockchainGetBlockHash(that: this, height: height); - // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. - static Future newInstance( - {required BlockchainConfig blockchainConfig, dynamic hint}) => - CApi.instance.api - .bdkBlockchainNew(blockchainConfig: blockchainConfig, hint: hint); + Future getHeight() => + core.instance.api.crateApiBlockchainBdkBlockchainGetHeight( + that: this, + ); @override int get hashCode => ptr.hashCode; @@ -129,7 +111,7 @@ class ElectrumConfig { final int? timeout; /// Stop searching addresses for transactions after finding an unused gap of this length - final int stopGap; + final BigInt stopGap; /// Validate the domain when using SSL final bool validateDomain; @@ -184,10 +166,10 @@ class EsploraConfig { final int? concurrency; /// Stop searching addresses for transactions after finding an unused gap of this length. - final int stopGap; + final BigInt stopGap; /// Socket timeout. - final int? timeout; + final BigInt? timeout; const EsploraConfig({ required this.baseUrl, @@ -269,16 +251,16 @@ class RpcConfig { /// how the `importdescriptors` RPC calls are to be made. class RpcSyncParams { /// The minimum number of scripts to scan for on initial sync. - final int startScriptCount; + final BigInt startScriptCount; /// Time in unix seconds in which initial sync will start scanning from (0 to start from genesis). - final int startTime; + final BigInt startTime; /// Forces every sync to use `start_time` as import timestamp. final bool forceStartTime; /// RPC poll rate (in seconds) to get state updates. - final int pollRateSec; + final BigInt pollRateSec; const RpcSyncParams({ required this.startScriptCount, @@ -304,17 +286,3 @@ class RpcSyncParams { forceStartTime == other.forceStartTime && pollRateSec == other.pollRateSec; } - -class U8Array4 extends NonGrowableListView { - static const arraySize = 4; - - @internal - Uint8List get inner => _inner; - final Uint8List _inner; - - U8Array4(this._inner) - : assert(_inner.length == arraySize), - super(_inner); - - U8Array4.init() : this(Uint8List(arraySize)); -} diff --git a/lib/src/generated/api/descriptor.dart b/lib/src/generated/api/descriptor.dart index 4691f4dc..83ace5cf 100644 --- a/lib/src/generated/api/descriptor.dart +++ b/lib/src/generated/api/descriptor.dart @@ -1,212 +1,118 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'error.dart'; import 'key.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'types.dart'; -// Rust type: RustOpaqueNom -@sealed -class ExtendedDescriptor extends RustOpaque { - ExtendedDescriptor.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ExtendedDescriptor.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_ExtendedDescriptor, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptor, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptorPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysDescriptorPublicKey extends RustOpaque { - KeysDescriptorPublicKey.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysDescriptorPublicKey.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi - .instance.api.rust_arc_increment_strong_count_KeysDescriptorPublicKey, - rustArcDecrementStrongCount: CApi - .instance.api.rust_arc_decrement_strong_count_KeysDescriptorPublicKey, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysDescriptorSecretKey extends RustOpaque { - KeysDescriptorSecretKey.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysDescriptorSecretKey.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi - .instance.api.rust_arc_increment_strong_count_KeysDescriptorSecretKey, - rustArcDecrementStrongCount: CApi - .instance.api.rust_arc_decrement_strong_count_KeysDescriptorSecretKey, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysKeyMap extends RustOpaque { - KeysKeyMap.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysKeyMap.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_KeysKeyMap, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_KeysKeyMap, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_KeysKeyMapPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt` class BdkDescriptor { final ExtendedDescriptor extendedDescriptor; - final KeysKeyMap keyMap; + final KeyMap keyMap; const BdkDescriptor({ required this.extendedDescriptor, required this.keyMap, }); - Future asString({dynamic hint}) => - CApi.instance.api.bdkDescriptorAsString(that: this, hint: hint); + String asString() => + core.instance.api.crateApiDescriptorBdkDescriptorAsString( + that: this, + ); - Future asStringPrivate({dynamic hint}) => - CApi.instance.api.bdkDescriptorAsStringPrivate(that: this, hint: hint); - - Future maxSatisfactionWeight({dynamic hint}) => CApi.instance.api - .bdkDescriptorMaxSatisfactionWeight(that: this, hint: hint); + BigInt maxSatisfactionWeight() => + core.instance.api.crateApiDescriptorBdkDescriptorMaxSatisfactionWeight( + that: this, + ); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. static Future newInstance( - {required String descriptor, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNew( - descriptor: descriptor, network: network, hint: hint); + {required String descriptor, required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNew( + descriptor: descriptor, network: network); static Future newBip44( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip44( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip44( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip44Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip44Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip44Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); static Future newBip49( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip49( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip49( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip49Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip49Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip49Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); static Future newBip84( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip84( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip84( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip84Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip84Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip84Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); static Future newBip86( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip86( - secretKey: secretKey, - keychainKind: keychainKind, - network: network, - hint: hint); + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip86( + secretKey: secretKey, keychainKind: keychainKind, network: network); static Future newBip86Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) => - CApi.instance.api.bdkDescriptorNewBip86Public( + required Network network}) => + core.instance.api.crateApiDescriptorBdkDescriptorNewBip86Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, - network: network, - hint: hint); + network: network); + + String toStringPrivate() => + core.instance.api.crateApiDescriptorBdkDescriptorToStringPrivate( + that: this, + ); @override int get hashCode => extendedDescriptor.hashCode ^ keyMap.hashCode; diff --git a/lib/src/generated/api/error.dart b/lib/src/generated/api/error.dart index 6b61d216..c02c6f53 100644 --- a/lib/src/generated/api/error.dart +++ b/lib/src/generated/api/error.dart @@ -1,15 +1,17 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:freezed_annotation/freezed_annotation.dart' hide protected; import 'types.dart'; part 'error.freezed.dart'; +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from` + @freezed sealed class AddressError with _$AddressError { const AddressError._(); @@ -35,10 +37,10 @@ sealed class AddressError with _$AddressError { const factory AddressError.malformedWitnessVersion() = AddressError_MalformedWitnessVersion; const factory AddressError.invalidWitnessProgramLength( - int field0, + BigInt field0, ) = AddressError_InvalidWitnessProgramLength; const factory AddressError.invalidSegwitV0ProgramLength( - int field0, + BigInt field0, ) = AddressError_InvalidSegwitV0ProgramLength; const factory AddressError.uncompressedPubkey() = AddressError_UncompressedPubkey; @@ -105,16 +107,16 @@ sealed class BdkError with _$BdkError implements FrbException { /// Output created is under the dust limit, 546 satoshis const factory BdkError.outputBelowDustLimit( - int field0, + BigInt field0, ) = BdkError_OutputBelowDustLimit; /// Wallet's UTXO set is not enough to cover recipient's requested plus fee const factory BdkError.insufficientFunds({ /// Sats needed for some transaction - required int needed, + required BigInt needed, /// Sats available for spending - required int available, + required BigInt available, }) = BdkError_InsufficientFunds; /// Branch and bound coin selection possible attempts with sufficiently big UTXO set could grow @@ -148,7 +150,7 @@ sealed class BdkError with _$BdkError implements FrbException { /// When bumping a tx the absolute fee requested is lower than replaced tx absolute fee const factory BdkError.feeTooLow({ /// Required fee absolute value (satoshi) - required int needed, + required BigInt needed, }) = BdkError_FeeTooLow; /// Node doesn't have data to estimate a fee rate @@ -242,8 +244,8 @@ sealed class BdkError with _$BdkError implements FrbException { /// sync attempt failed due to missing scripts in cache which /// are needed to satisfy `stop_gap`. const factory BdkError.missingCachedScripts( - int field0, - int field1, + BigInt field0, + BigInt field1, ) = BdkError_MissingCachedScripts; /// Electrum client error @@ -289,8 +291,8 @@ sealed class ConsensusError with _$ConsensusError { String field0, ) = ConsensusError_Io; const factory ConsensusError.oversizedVectorAllocation({ - required int requested, - required int max, + required BigInt requested, + required BigInt max, }) = ConsensusError_OversizedVectorAllocation; const factory ConsensusError.invalidChecksum({ required U8Array4 expected, @@ -351,10 +353,10 @@ sealed class HexError with _$HexError { int field0, ) = HexError_InvalidChar; const factory HexError.oddLengthString( - int field0, + BigInt field0, ) = HexError_OddLengthString; const factory HexError.invalidLength( - int field0, - int field1, + BigInt field0, + BigInt field1, ) = HexError_InvalidLength; } diff --git a/lib/src/generated/api/error.freezed.dart b/lib/src/generated/api/error.freezed.dart index d6360231..72d8139e 100644 --- a/lib/src/generated/api/error.freezed.dart +++ b/lib/src/generated/api/error.freezed.dart @@ -26,8 +26,8 @@ mixin _$AddressError { required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -46,8 +46,8 @@ mixin _$AddressError { TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -66,8 +66,8 @@ mixin _$AddressError { TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -256,8 +256,8 @@ class _$AddressError_Base58Impl extends AddressError_Base58 { required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -279,8 +279,8 @@ class _$AddressError_Base58Impl extends AddressError_Base58 { TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -302,8 +302,8 @@ class _$AddressError_Base58Impl extends AddressError_Base58 { TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -501,8 +501,8 @@ class _$AddressError_Bech32Impl extends AddressError_Bech32 { required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -524,8 +524,8 @@ class _$AddressError_Bech32Impl extends AddressError_Bech32 { TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -547,8 +547,8 @@ class _$AddressError_Bech32Impl extends AddressError_Bech32 { TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -724,8 +724,8 @@ class _$AddressError_EmptyBech32PayloadImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -747,8 +747,8 @@ class _$AddressError_EmptyBech32PayloadImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -770,8 +770,8 @@ class _$AddressError_EmptyBech32PayloadImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -980,8 +980,8 @@ class _$AddressError_InvalidBech32VariantImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1003,8 +1003,8 @@ class _$AddressError_InvalidBech32VariantImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1026,8 +1026,8 @@ class _$AddressError_InvalidBech32VariantImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1233,8 +1233,8 @@ class _$AddressError_InvalidWitnessVersionImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1256,8 +1256,8 @@ class _$AddressError_InvalidWitnessVersionImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1279,8 +1279,8 @@ class _$AddressError_InvalidWitnessVersionImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1484,8 +1484,8 @@ class _$AddressError_UnparsableWitnessVersionImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1507,8 +1507,8 @@ class _$AddressError_UnparsableWitnessVersionImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1530,8 +1530,8 @@ class _$AddressError_UnparsableWitnessVersionImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1708,8 +1708,8 @@ class _$AddressError_MalformedWitnessVersionImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1731,8 +1731,8 @@ class _$AddressError_MalformedWitnessVersionImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -1754,8 +1754,8 @@ class _$AddressError_MalformedWitnessVersionImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -1882,7 +1882,7 @@ abstract class _$$AddressError_InvalidWitnessProgramLengthImplCopyWith<$Res> { $Res Function(_$AddressError_InvalidWitnessProgramLengthImpl) then) = __$$AddressError_InvalidWitnessProgramLengthImplCopyWithImpl<$Res>; @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -1904,7 +1904,7 @@ class __$$AddressError_InvalidWitnessProgramLengthImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -1916,7 +1916,7 @@ class _$AddressError_InvalidWitnessProgramLengthImpl const _$AddressError_InvalidWitnessProgramLengthImpl(this.field0) : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -1954,8 +1954,8 @@ class _$AddressError_InvalidWitnessProgramLengthImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -1977,8 +1977,8 @@ class _$AddressError_InvalidWitnessProgramLengthImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2000,8 +2000,8 @@ class _$AddressError_InvalidWitnessProgramLengthImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2116,11 +2116,11 @@ class _$AddressError_InvalidWitnessProgramLengthImpl } abstract class AddressError_InvalidWitnessProgramLength extends AddressError { - const factory AddressError_InvalidWitnessProgramLength(final int field0) = + const factory AddressError_InvalidWitnessProgramLength(final BigInt field0) = _$AddressError_InvalidWitnessProgramLengthImpl; const AddressError_InvalidWitnessProgramLength._() : super._(); - int get field0; + BigInt get field0; @JsonKey(ignore: true) _$$AddressError_InvalidWitnessProgramLengthImplCopyWith< _$AddressError_InvalidWitnessProgramLengthImpl> @@ -2134,7 +2134,7 @@ abstract class _$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWith<$Res> { $Res Function(_$AddressError_InvalidSegwitV0ProgramLengthImpl) then) = __$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWithImpl<$Res>; @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -2156,7 +2156,7 @@ class __$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -2169,7 +2169,7 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -2208,8 +2208,8 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2231,8 +2231,8 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2254,8 +2254,8 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2370,11 +2370,11 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl } abstract class AddressError_InvalidSegwitV0ProgramLength extends AddressError { - const factory AddressError_InvalidSegwitV0ProgramLength(final int field0) = + const factory AddressError_InvalidSegwitV0ProgramLength(final BigInt field0) = _$AddressError_InvalidSegwitV0ProgramLengthImpl; const AddressError_InvalidSegwitV0ProgramLength._() : super._(); - int get field0; + BigInt get field0; @JsonKey(ignore: true) _$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWith< _$AddressError_InvalidSegwitV0ProgramLengthImpl> @@ -2432,8 +2432,8 @@ class _$AddressError_UncompressedPubkeyImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2455,8 +2455,8 @@ class _$AddressError_UncompressedPubkeyImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2478,8 +2478,8 @@ class _$AddressError_UncompressedPubkeyImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2650,8 +2650,8 @@ class _$AddressError_ExcessiveScriptSizeImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2673,8 +2673,8 @@ class _$AddressError_ExcessiveScriptSizeImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2696,8 +2696,8 @@ class _$AddressError_ExcessiveScriptSizeImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -2868,8 +2868,8 @@ class _$AddressError_UnrecognizedScriptImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -2891,8 +2891,8 @@ class _$AddressError_UnrecognizedScriptImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -2914,8 +2914,8 @@ class _$AddressError_UnrecognizedScriptImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -3113,8 +3113,8 @@ class _$AddressError_UnknownAddressTypeImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -3136,8 +3136,8 @@ class _$AddressError_UnknownAddressTypeImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -3159,8 +3159,8 @@ class _$AddressError_UnknownAddressTypeImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -3387,8 +3387,8 @@ class _$AddressError_NetworkValidationImpl required TResult Function(int field0) invalidWitnessVersion, required TResult Function(String field0) unparsableWitnessVersion, required TResult Function() malformedWitnessVersion, - required TResult Function(int field0) invalidWitnessProgramLength, - required TResult Function(int field0) invalidSegwitV0ProgramLength, + required TResult Function(BigInt field0) invalidWitnessProgramLength, + required TResult Function(BigInt field0) invalidSegwitV0ProgramLength, required TResult Function() uncompressedPubkey, required TResult Function() excessiveScriptSize, required TResult Function() unrecognizedScript, @@ -3410,8 +3410,8 @@ class _$AddressError_NetworkValidationImpl TResult? Function(int field0)? invalidWitnessVersion, TResult? Function(String field0)? unparsableWitnessVersion, TResult? Function()? malformedWitnessVersion, - TResult? Function(int field0)? invalidWitnessProgramLength, - TResult? Function(int field0)? invalidSegwitV0ProgramLength, + TResult? Function(BigInt field0)? invalidWitnessProgramLength, + TResult? Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult? Function()? uncompressedPubkey, TResult? Function()? excessiveScriptSize, TResult? Function()? unrecognizedScript, @@ -3433,8 +3433,8 @@ class _$AddressError_NetworkValidationImpl TResult Function(int field0)? invalidWitnessVersion, TResult Function(String field0)? unparsableWitnessVersion, TResult Function()? malformedWitnessVersion, - TResult Function(int field0)? invalidWitnessProgramLength, - TResult Function(int field0)? invalidSegwitV0ProgramLength, + TResult Function(BigInt field0)? invalidWitnessProgramLength, + TResult Function(BigInt field0)? invalidSegwitV0ProgramLength, TResult Function()? uncompressedPubkey, TResult Function()? excessiveScriptSize, TResult Function()? unrecognizedScript, @@ -3578,8 +3578,9 @@ mixin _$BdkError { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -3587,7 +3588,7 @@ mixin _$BdkError { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -3606,7 +3607,8 @@ mixin _$BdkError { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -3629,8 +3631,8 @@ mixin _$BdkError { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -3638,7 +3640,7 @@ mixin _$BdkError { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -3657,7 +3659,7 @@ mixin _$BdkError { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -3680,8 +3682,8 @@ mixin _$BdkError { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -3689,7 +3691,7 @@ mixin _$BdkError { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -3708,7 +3710,7 @@ mixin _$BdkError { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -4003,8 +4005,9 @@ class _$BdkError_HexImpl extends BdkError_Hex { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -4012,7 +4015,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -4031,7 +4034,8 @@ class _$BdkError_HexImpl extends BdkError_Hex { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -4057,8 +4061,8 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -4066,7 +4070,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -4085,7 +4089,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -4111,8 +4115,8 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -4120,7 +4124,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -4139,7 +4143,7 @@ class _$BdkError_HexImpl extends BdkError_Hex { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -4444,8 +4448,9 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -4453,7 +4458,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -4472,7 +4477,8 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -4498,8 +4504,8 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -4507,7 +4513,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -4526,7 +4532,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -4552,8 +4558,8 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -4561,7 +4567,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -4580,7 +4586,7 @@ class _$BdkError_ConsensusImpl extends BdkError_Consensus { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -4878,8 +4884,9 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -4887,7 +4894,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -4906,7 +4913,8 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -4932,8 +4940,8 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -4941,7 +4949,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -4960,7 +4968,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -4986,8 +4994,8 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -4995,7 +5003,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -5014,7 +5022,7 @@ class _$BdkError_VerifyTransactionImpl extends BdkError_VerifyTransaction { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -5320,8 +5328,9 @@ class _$BdkError_AddressImpl extends BdkError_Address { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -5329,7 +5338,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -5348,7 +5357,8 @@ class _$BdkError_AddressImpl extends BdkError_Address { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -5374,8 +5384,8 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -5383,7 +5393,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -5402,7 +5412,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -5428,8 +5438,8 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -5437,7 +5447,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -5456,7 +5466,7 @@ class _$BdkError_AddressImpl extends BdkError_Address { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -5762,8 +5772,9 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -5771,7 +5782,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -5790,7 +5801,8 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -5816,8 +5828,8 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -5825,7 +5837,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -5844,7 +5856,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -5870,8 +5882,8 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -5879,7 +5891,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -5898,7 +5910,7 @@ class _$BdkError_DescriptorImpl extends BdkError_Descriptor { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -6197,8 +6209,9 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -6206,7 +6219,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -6225,7 +6238,8 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -6251,8 +6265,8 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -6260,7 +6274,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -6279,7 +6293,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -6305,8 +6319,8 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -6314,7 +6328,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -6333,7 +6347,7 @@ class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -6629,8 +6643,9 @@ class _$BdkError_GenericImpl extends BdkError_Generic { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -6638,7 +6653,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -6657,7 +6672,8 @@ class _$BdkError_GenericImpl extends BdkError_Generic { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -6683,8 +6699,8 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -6692,7 +6708,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -6711,7 +6727,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -6737,8 +6753,8 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -6746,7 +6762,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -6765,7 +6781,7 @@ class _$BdkError_GenericImpl extends BdkError_Generic { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -7038,8 +7054,9 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -7047,7 +7064,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -7066,7 +7083,8 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -7092,8 +7110,8 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -7101,7 +7119,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -7120,7 +7138,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -7146,8 +7164,8 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -7155,7 +7173,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -7174,7 +7192,7 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -7440,8 +7458,9 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -7449,7 +7468,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -7468,7 +7487,8 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -7494,8 +7514,8 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -7503,7 +7523,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -7522,7 +7542,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -7548,8 +7568,8 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -7557,7 +7577,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -7576,7 +7596,7 @@ class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -7842,8 +7862,9 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -7851,7 +7872,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -7870,7 +7891,8 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -7896,8 +7918,8 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -7905,7 +7927,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -7924,7 +7946,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -7950,8 +7972,8 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -7959,7 +7981,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -7978,7 +8000,7 @@ class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -8200,7 +8222,7 @@ abstract class _$$BdkError_OutputBelowDustLimitImplCopyWith<$Res> { $Res Function(_$BdkError_OutputBelowDustLimitImpl) then) = __$$BdkError_OutputBelowDustLimitImplCopyWithImpl<$Res>; @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -8221,7 +8243,7 @@ class __$$BdkError_OutputBelowDustLimitImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -8233,7 +8255,7 @@ class _$BdkError_OutputBelowDustLimitImpl const _$BdkError_OutputBelowDustLimitImpl(this.field0) : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -8272,8 +8294,9 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -8281,7 +8304,7 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -8300,7 +8323,8 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -8326,8 +8350,8 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -8335,7 +8359,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -8354,7 +8378,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -8380,8 +8404,8 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -8389,7 +8413,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -8408,7 +8432,7 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -8619,11 +8643,11 @@ class _$BdkError_OutputBelowDustLimitImpl } abstract class BdkError_OutputBelowDustLimit extends BdkError { - const factory BdkError_OutputBelowDustLimit(final int field0) = + const factory BdkError_OutputBelowDustLimit(final BigInt field0) = _$BdkError_OutputBelowDustLimitImpl; const BdkError_OutputBelowDustLimit._() : super._(); - int get field0; + BigInt get field0; @JsonKey(ignore: true) _$$BdkError_OutputBelowDustLimitImplCopyWith< _$BdkError_OutputBelowDustLimitImpl> @@ -8637,7 +8661,7 @@ abstract class _$$BdkError_InsufficientFundsImplCopyWith<$Res> { $Res Function(_$BdkError_InsufficientFundsImpl) then) = __$$BdkError_InsufficientFundsImplCopyWithImpl<$Res>; @useResult - $Res call({int needed, int available}); + $Res call({BigInt needed, BigInt available}); } /// @nodoc @@ -8659,11 +8683,11 @@ class __$$BdkError_InsufficientFundsImplCopyWithImpl<$Res> needed: null == needed ? _value.needed : needed // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, available: null == available ? _value.available : available // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -8677,11 +8701,11 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { /// Sats needed for some transaction @override - final int needed; + final BigInt needed; /// Sats available for spending @override - final int available; + final BigInt available; @override String toString() { @@ -8721,8 +8745,9 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -8730,7 +8755,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -8749,7 +8774,8 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -8775,8 +8801,8 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -8784,7 +8810,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -8803,7 +8829,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -8829,8 +8855,8 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -8838,7 +8864,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -8857,7 +8883,7 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -9069,15 +9095,15 @@ class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { abstract class BdkError_InsufficientFunds extends BdkError { const factory BdkError_InsufficientFunds( - {required final int needed, - required final int available}) = _$BdkError_InsufficientFundsImpl; + {required final BigInt needed, + required final BigInt available}) = _$BdkError_InsufficientFundsImpl; const BdkError_InsufficientFunds._() : super._(); /// Sats needed for some transaction - int get needed; + BigInt get needed; /// Sats available for spending - int get available; + BigInt get available; @JsonKey(ignore: true) _$$BdkError_InsufficientFundsImplCopyWith<_$BdkError_InsufficientFundsImpl> get copyWith => throw _privateConstructorUsedError; @@ -9135,8 +9161,9 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -9144,7 +9171,7 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -9163,7 +9190,8 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -9189,8 +9217,8 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -9198,7 +9226,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -9217,7 +9245,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -9243,8 +9271,8 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -9252,7 +9280,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -9271,7 +9299,7 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -9538,8 +9566,9 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -9547,7 +9576,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -9566,7 +9595,8 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -9592,8 +9622,8 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -9601,7 +9631,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -9620,7 +9650,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -9646,8 +9676,8 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -9655,7 +9685,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -9674,7 +9704,7 @@ class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -9938,8 +9968,9 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -9947,7 +9978,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -9966,7 +9997,8 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -9992,8 +10024,8 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -10001,7 +10033,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -10020,7 +10052,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -10046,8 +10078,8 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -10055,7 +10087,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -10074,7 +10106,7 @@ class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -10340,8 +10372,9 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -10349,7 +10382,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -10368,7 +10401,8 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -10394,8 +10428,8 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -10403,7 +10437,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -10422,7 +10456,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -10448,8 +10482,8 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -10457,7 +10491,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -10476,7 +10510,7 @@ class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -10744,8 +10778,9 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -10753,7 +10788,7 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -10772,7 +10807,8 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -10798,8 +10834,8 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -10807,7 +10843,7 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -10826,7 +10862,7 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -10852,8 +10888,8 @@ class _$BdkError_TransactionConfirmedImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -10861,7 +10897,7 @@ class _$BdkError_TransactionConfirmedImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -10880,7 +10916,7 @@ class _$BdkError_TransactionConfirmedImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -11149,8 +11185,9 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -11158,7 +11195,7 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -11177,7 +11214,8 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -11203,8 +11241,8 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -11212,7 +11250,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -11231,7 +11269,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -11257,8 +11295,8 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -11266,7 +11304,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -11285,7 +11323,7 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -11579,8 +11617,9 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -11588,7 +11627,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -11607,7 +11646,8 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -11633,8 +11673,8 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -11642,7 +11682,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -11661,7 +11701,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -11687,8 +11727,8 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -11696,7 +11736,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -11715,7 +11755,7 @@ class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -11943,7 +11983,7 @@ abstract class _$$BdkError_FeeTooLowImplCopyWith<$Res> { $Res Function(_$BdkError_FeeTooLowImpl) then) = __$$BdkError_FeeTooLowImplCopyWithImpl<$Res>; @useResult - $Res call({int needed}); + $Res call({BigInt needed}); } /// @nodoc @@ -11963,7 +12003,7 @@ class __$$BdkError_FeeTooLowImplCopyWithImpl<$Res> needed: null == needed ? _value.needed : needed // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -11975,7 +12015,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { /// Required fee absolute value (satoshi) @override - final int needed; + final BigInt needed; @override String toString() { @@ -12013,8 +12053,9 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -12022,7 +12063,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -12041,7 +12082,8 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -12067,8 +12109,8 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -12076,7 +12118,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -12095,7 +12137,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -12121,8 +12163,8 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -12130,7 +12172,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -12149,7 +12191,7 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -12360,12 +12402,12 @@ class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { } abstract class BdkError_FeeTooLow extends BdkError { - const factory BdkError_FeeTooLow({required final int needed}) = + const factory BdkError_FeeTooLow({required final BigInt needed}) = _$BdkError_FeeTooLowImpl; const BdkError_FeeTooLow._() : super._(); /// Required fee absolute value (satoshi) - int get needed; + BigInt get needed; @JsonKey(ignore: true) _$$BdkError_FeeTooLowImplCopyWith<_$BdkError_FeeTooLowImpl> get copyWith => throw _privateConstructorUsedError; @@ -12422,8 +12464,9 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -12431,7 +12474,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -12450,7 +12493,8 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -12476,8 +12520,8 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -12485,7 +12529,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -12504,7 +12548,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -12530,8 +12574,8 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -12539,7 +12583,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -12558,7 +12602,7 @@ class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -12851,8 +12895,9 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -12860,7 +12905,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -12879,7 +12924,8 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -12905,8 +12951,8 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -12914,7 +12960,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -12933,7 +12979,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -12959,8 +13005,8 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -12968,7 +13014,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -12987,7 +13033,7 @@ class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -13282,8 +13328,9 @@ class _$BdkError_KeyImpl extends BdkError_Key { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -13291,7 +13338,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -13310,7 +13357,8 @@ class _$BdkError_KeyImpl extends BdkError_Key { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -13336,8 +13384,8 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -13345,7 +13393,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -13364,7 +13412,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -13390,8 +13438,8 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -13399,7 +13447,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -13418,7 +13466,7 @@ class _$BdkError_KeyImpl extends BdkError_Key { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -13689,8 +13737,9 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -13698,7 +13747,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -13717,7 +13766,8 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -13743,8 +13793,8 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -13752,7 +13802,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -13771,7 +13821,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -13797,8 +13847,8 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -13806,7 +13856,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -13825,7 +13875,7 @@ class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -14119,8 +14169,9 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -14128,7 +14179,7 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -14147,7 +14198,8 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -14173,8 +14225,8 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -14182,7 +14234,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -14201,7 +14253,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -14227,8 +14279,8 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -14236,7 +14288,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -14255,7 +14307,7 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -14556,8 +14608,9 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -14565,7 +14618,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -14584,7 +14637,8 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -14610,8 +14664,8 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -14619,7 +14673,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -14638,7 +14692,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -14664,8 +14718,8 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -14673,7 +14727,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -14692,7 +14746,7 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -14989,8 +15043,9 @@ class _$BdkError_SignerImpl extends BdkError_Signer { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -14998,7 +15053,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -15017,7 +15072,8 @@ class _$BdkError_SignerImpl extends BdkError_Signer { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -15043,8 +15099,8 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -15052,7 +15108,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -15071,7 +15127,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -15097,8 +15153,8 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -15106,7 +15162,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -15125,7 +15181,7 @@ class _$BdkError_SignerImpl extends BdkError_Signer { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -15436,8 +15492,9 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -15445,7 +15502,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -15464,7 +15521,8 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -15490,8 +15548,8 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -15499,7 +15557,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -15518,7 +15576,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -15544,8 +15602,8 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -15553,7 +15611,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -15572,7 +15630,7 @@ class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -15875,8 +15933,9 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -15884,7 +15943,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -15903,7 +15962,8 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -15929,8 +15989,8 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -15938,7 +15998,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -15957,7 +16017,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -15983,8 +16043,8 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -15992,7 +16052,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -16011,7 +16071,7 @@ class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -16307,8 +16367,9 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -16316,7 +16377,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -16335,7 +16396,8 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -16361,8 +16423,8 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -16370,7 +16432,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -16389,7 +16451,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -16415,8 +16477,8 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -16424,7 +16486,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -16443,7 +16505,7 @@ class _$BdkError_EncodeImpl extends BdkError_Encode { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -16738,8 +16800,9 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -16747,7 +16810,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -16766,7 +16829,8 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -16792,8 +16856,8 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -16801,7 +16865,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -16820,7 +16884,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -16846,8 +16910,8 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -16855,7 +16919,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -16874,7 +16938,7 @@ class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -17172,8 +17236,9 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -17181,7 +17246,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -17200,7 +17265,8 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -17226,8 +17292,8 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -17235,7 +17301,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -17254,7 +17320,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -17280,8 +17346,8 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -17289,7 +17355,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -17308,7 +17374,7 @@ class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -17604,8 +17670,9 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -17613,7 +17680,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -17632,7 +17699,8 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -17658,8 +17726,8 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -17667,7 +17735,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -17686,7 +17754,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -17712,8 +17780,8 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -17721,7 +17789,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -17740,7 +17808,7 @@ class _$BdkError_Bip32Impl extends BdkError_Bip32 { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -18035,8 +18103,9 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -18044,7 +18113,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -18063,7 +18132,8 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -18089,8 +18159,8 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -18098,7 +18168,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -18117,7 +18187,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -18143,8 +18213,8 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -18152,7 +18222,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -18171,7 +18241,7 @@ class _$BdkError_Bip39Impl extends BdkError_Bip39 { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -18466,8 +18536,9 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -18475,7 +18546,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -18494,7 +18565,8 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -18520,8 +18592,8 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -18529,7 +18601,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -18548,7 +18620,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -18574,8 +18646,8 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -18583,7 +18655,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -18602,7 +18674,7 @@ class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -18897,8 +18969,9 @@ class _$BdkError_JsonImpl extends BdkError_Json { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -18906,7 +18979,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -18925,7 +18998,8 @@ class _$BdkError_JsonImpl extends BdkError_Json { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -18951,8 +19025,8 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -18960,7 +19034,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -18979,7 +19053,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -19005,8 +19079,8 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -19014,7 +19088,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -19033,7 +19107,7 @@ class _$BdkError_JsonImpl extends BdkError_Json { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -19327,8 +19401,9 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -19336,7 +19411,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -19355,7 +19430,8 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -19381,8 +19457,8 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -19390,7 +19466,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -19409,7 +19485,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -19435,8 +19511,8 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -19444,7 +19520,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -19463,7 +19539,7 @@ class _$BdkError_PsbtImpl extends BdkError_Psbt { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -19758,8 +19834,9 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -19767,7 +19844,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -19786,7 +19863,8 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -19812,8 +19890,8 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -19821,7 +19899,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -19840,7 +19918,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -19866,8 +19944,8 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -19875,7 +19953,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -19894,7 +19972,7 @@ class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -20122,7 +20200,7 @@ abstract class _$$BdkError_MissingCachedScriptsImplCopyWith<$Res> { $Res Function(_$BdkError_MissingCachedScriptsImpl) then) = __$$BdkError_MissingCachedScriptsImplCopyWithImpl<$Res>; @useResult - $Res call({int field0, int field1}); + $Res call({BigInt field0, BigInt field1}); } /// @nodoc @@ -20144,11 +20222,11 @@ class __$$BdkError_MissingCachedScriptsImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, null == field1 ? _value.field1 : field1 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -20161,9 +20239,9 @@ class _$BdkError_MissingCachedScriptsImpl : super._(); @override - final int field0; + final BigInt field0; @override - final int field1; + final BigInt field1; @override String toString() { @@ -20203,8 +20281,9 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -20212,7 +20291,7 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -20231,7 +20310,8 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -20257,8 +20337,8 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -20266,7 +20346,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -20285,7 +20365,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -20311,8 +20391,8 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -20320,7 +20400,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -20339,7 +20419,7 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -20551,11 +20631,12 @@ class _$BdkError_MissingCachedScriptsImpl abstract class BdkError_MissingCachedScripts extends BdkError { const factory BdkError_MissingCachedScripts( - final int field0, final int field1) = _$BdkError_MissingCachedScriptsImpl; + final BigInt field0, final BigInt field1) = + _$BdkError_MissingCachedScriptsImpl; const BdkError_MissingCachedScripts._() : super._(); - int get field0; - int get field1; + BigInt get field0; + BigInt get field1; @JsonKey(ignore: true) _$$BdkError_MissingCachedScriptsImplCopyWith< _$BdkError_MissingCachedScriptsImpl> @@ -20637,8 +20718,9 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -20646,7 +20728,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -20665,7 +20747,8 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -20691,8 +20774,8 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -20700,7 +20783,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -20719,7 +20802,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -20745,8 +20828,8 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -20754,7 +20837,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -20773,7 +20856,7 @@ class _$BdkError_ElectrumImpl extends BdkError_Electrum { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -21069,8 +21152,9 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -21078,7 +21162,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -21097,7 +21181,8 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -21123,8 +21208,8 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -21132,7 +21217,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -21151,7 +21236,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -21177,8 +21262,8 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -21186,7 +21271,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -21205,7 +21290,7 @@ class _$BdkError_EsploraImpl extends BdkError_Esplora { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -21499,8 +21584,9 @@ class _$BdkError_SledImpl extends BdkError_Sled { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -21508,7 +21594,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -21527,7 +21613,8 @@ class _$BdkError_SledImpl extends BdkError_Sled { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -21553,8 +21640,8 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -21562,7 +21649,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -21581,7 +21668,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -21607,8 +21694,8 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -21616,7 +21703,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -21635,7 +21722,7 @@ class _$BdkError_SledImpl extends BdkError_Sled { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -21929,8 +22016,9 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -21938,7 +22026,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -21957,7 +22045,8 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -21983,8 +22072,8 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -21992,7 +22081,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -22011,7 +22100,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -22037,8 +22126,8 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -22046,7 +22135,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -22065,7 +22154,7 @@ class _$BdkError_RpcImpl extends BdkError_Rpc { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -22360,8 +22449,9 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -22369,7 +22459,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -22388,7 +22478,8 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -22414,8 +22505,8 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -22423,7 +22514,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -22442,7 +22533,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -22468,8 +22559,8 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -22477,7 +22568,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -22496,7 +22587,7 @@ class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -22793,8 +22884,9 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -22802,7 +22894,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -22821,7 +22913,8 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -22847,8 +22940,8 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -22856,7 +22949,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -22875,7 +22968,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -22901,8 +22994,8 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -22910,7 +23003,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -22929,7 +23022,7 @@ class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -23227,8 +23320,9 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -23236,7 +23330,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -23255,7 +23349,8 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -23281,8 +23376,8 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -23290,7 +23385,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -23309,7 +23404,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -23335,8 +23430,8 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -23344,7 +23439,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -23363,7 +23458,7 @@ class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -23661,8 +23756,9 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { required TResult Function() scriptDoesntHaveAddressForm, required TResult Function() noRecipients, required TResult Function() noUtxosSelected, - required TResult Function(int field0) outputBelowDustLimit, - required TResult Function(int needed, int available) insufficientFunds, + required TResult Function(BigInt field0) outputBelowDustLimit, + required TResult Function(BigInt needed, BigInt available) + insufficientFunds, required TResult Function() bnBTotalTriesExceeded, required TResult Function() bnBNoExactMatch, required TResult Function() unknownUtxo, @@ -23670,7 +23766,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { required TResult Function() transactionConfirmed, required TResult Function() irreplaceableTransaction, required TResult Function(double needed) feeRateTooLow, - required TResult Function(int needed) feeTooLow, + required TResult Function(BigInt needed) feeTooLow, required TResult Function() feeRateUnavailable, required TResult Function(String field0) missingKeyOrigin, required TResult Function(String field0) key, @@ -23689,7 +23785,8 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { required TResult Function(String field0) json, required TResult Function(String field0) psbt, required TResult Function(String field0) psbtParse, - required TResult Function(int field0, int field1) missingCachedScripts, + required TResult Function(BigInt field0, BigInt field1) + missingCachedScripts, required TResult Function(String field0) electrum, required TResult Function(String field0) esplora, required TResult Function(String field0) sled, @@ -23715,8 +23812,8 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult? Function()? scriptDoesntHaveAddressForm, TResult? Function()? noRecipients, TResult? Function()? noUtxosSelected, - TResult? Function(int field0)? outputBelowDustLimit, - TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function(BigInt field0)? outputBelowDustLimit, + TResult? Function(BigInt needed, BigInt available)? insufficientFunds, TResult? Function()? bnBTotalTriesExceeded, TResult? Function()? bnBNoExactMatch, TResult? Function()? unknownUtxo, @@ -23724,7 +23821,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult? Function()? transactionConfirmed, TResult? Function()? irreplaceableTransaction, TResult? Function(double needed)? feeRateTooLow, - TResult? Function(int needed)? feeTooLow, + TResult? Function(BigInt needed)? feeTooLow, TResult? Function()? feeRateUnavailable, TResult? Function(String field0)? missingKeyOrigin, TResult? Function(String field0)? key, @@ -23743,7 +23840,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult? Function(String field0)? json, TResult? Function(String field0)? psbt, TResult? Function(String field0)? psbtParse, - TResult? Function(int field0, int field1)? missingCachedScripts, + TResult? Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult? Function(String field0)? electrum, TResult? Function(String field0)? esplora, TResult? Function(String field0)? sled, @@ -23769,8 +23866,8 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult Function()? scriptDoesntHaveAddressForm, TResult Function()? noRecipients, TResult Function()? noUtxosSelected, - TResult Function(int field0)? outputBelowDustLimit, - TResult Function(int needed, int available)? insufficientFunds, + TResult Function(BigInt field0)? outputBelowDustLimit, + TResult Function(BigInt needed, BigInt available)? insufficientFunds, TResult Function()? bnBTotalTriesExceeded, TResult Function()? bnBNoExactMatch, TResult Function()? unknownUtxo, @@ -23778,7 +23875,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult Function()? transactionConfirmed, TResult Function()? irreplaceableTransaction, TResult Function(double needed)? feeRateTooLow, - TResult Function(int needed)? feeTooLow, + TResult Function(BigInt needed)? feeTooLow, TResult Function()? feeRateUnavailable, TResult Function(String field0)? missingKeyOrigin, TResult Function(String field0)? key, @@ -23797,7 +23894,7 @@ class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { TResult Function(String field0)? json, TResult Function(String field0)? psbt, TResult Function(String field0)? psbtParse, - TResult Function(int field0, int field1)? missingCachedScripts, + TResult Function(BigInt field0, BigInt field1)? missingCachedScripts, TResult Function(String field0)? electrum, TResult Function(String field0)? esplora, TResult Function(String field0)? sled, @@ -24023,7 +24120,8 @@ mixin _$ConsensusError { @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24034,7 +24132,7 @@ mixin _$ConsensusError { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24044,7 +24142,7 @@ mixin _$ConsensusError { @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24177,7 +24275,8 @@ class _$ConsensusError_IoImpl extends ConsensusError_Io { @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24191,7 +24290,7 @@ class _$ConsensusError_IoImpl extends ConsensusError_Io { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24204,7 +24303,7 @@ class _$ConsensusError_IoImpl extends ConsensusError_Io { @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24287,7 +24386,7 @@ abstract class _$$ConsensusError_OversizedVectorAllocationImplCopyWith<$Res> { $Res Function(_$ConsensusError_OversizedVectorAllocationImpl) then) = __$$ConsensusError_OversizedVectorAllocationImplCopyWithImpl<$Res>; @useResult - $Res call({int requested, int max}); + $Res call({BigInt requested, BigInt max}); } /// @nodoc @@ -24310,11 +24409,11 @@ class __$$ConsensusError_OversizedVectorAllocationImplCopyWithImpl<$Res> requested: null == requested ? _value.requested : requested // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, max: null == max ? _value.max : max // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -24328,9 +24427,9 @@ class _$ConsensusError_OversizedVectorAllocationImpl : super._(); @override - final int requested; + final BigInt requested; @override - final int max; + final BigInt max; @override String toString() { @@ -24363,7 +24462,8 @@ class _$ConsensusError_OversizedVectorAllocationImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24377,7 +24477,7 @@ class _$ConsensusError_OversizedVectorAllocationImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24390,7 +24490,7 @@ class _$ConsensusError_OversizedVectorAllocationImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24457,12 +24557,12 @@ class _$ConsensusError_OversizedVectorAllocationImpl abstract class ConsensusError_OversizedVectorAllocation extends ConsensusError { const factory ConsensusError_OversizedVectorAllocation( - {required final int requested, - required final int max}) = _$ConsensusError_OversizedVectorAllocationImpl; + {required final BigInt requested, required final BigInt max}) = + _$ConsensusError_OversizedVectorAllocationImpl; const ConsensusError_OversizedVectorAllocation._() : super._(); - int get requested; - int get max; + BigInt get requested; + BigInt get max; @JsonKey(ignore: true) _$$ConsensusError_OversizedVectorAllocationImplCopyWith< _$ConsensusError_OversizedVectorAllocationImpl> @@ -24553,7 +24653,8 @@ class _$ConsensusError_InvalidChecksumImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24567,7 +24668,7 @@ class _$ConsensusError_InvalidChecksumImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24580,7 +24681,7 @@ class _$ConsensusError_InvalidChecksumImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24703,7 +24804,8 @@ class _$ConsensusError_NonMinimalVarIntImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24717,7 +24819,7 @@ class _$ConsensusError_NonMinimalVarIntImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24730,7 +24832,7 @@ class _$ConsensusError_NonMinimalVarIntImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -24869,7 +24971,8 @@ class _$ConsensusError_ParseFailedImpl extends ConsensusError_ParseFailed { @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -24883,7 +24986,7 @@ class _$ConsensusError_ParseFailedImpl extends ConsensusError_ParseFailed { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -24896,7 +24999,7 @@ class _$ConsensusError_ParseFailedImpl extends ConsensusError_ParseFailed { @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -25043,7 +25146,8 @@ class _$ConsensusError_UnsupportedSegwitFlagImpl @optionalTypeArgs TResult when({ required TResult Function(String field0) io, - required TResult Function(int requested, int max) oversizedVectorAllocation, + required TResult Function(BigInt requested, BigInt max) + oversizedVectorAllocation, required TResult Function(U8Array4 expected, U8Array4 actual) invalidChecksum, required TResult Function() nonMinimalVarInt, @@ -25057,7 +25161,7 @@ class _$ConsensusError_UnsupportedSegwitFlagImpl @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String field0)? io, - TResult? Function(int requested, int max)? oversizedVectorAllocation, + TResult? Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult? Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult? Function()? nonMinimalVarInt, TResult? Function(String field0)? parseFailed, @@ -25070,7 +25174,7 @@ class _$ConsensusError_UnsupportedSegwitFlagImpl @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? io, - TResult Function(int requested, int max)? oversizedVectorAllocation, + TResult Function(BigInt requested, BigInt max)? oversizedVectorAllocation, TResult Function(U8Array4 expected, U8Array4 actual)? invalidChecksum, TResult Function()? nonMinimalVarInt, TResult Function(String field0)? parseFailed, @@ -27660,26 +27764,26 @@ abstract class DescriptorError_Hex extends DescriptorError { /// @nodoc mixin _$HexError { - int get field0 => throw _privateConstructorUsedError; + Object get field0 => throw _privateConstructorUsedError; @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -27705,18 +27809,12 @@ mixin _$HexError { required TResult orElse(), }) => throw _privateConstructorUsedError; - - @JsonKey(ignore: true) - $HexErrorCopyWith get copyWith => - throw _privateConstructorUsedError; } /// @nodoc abstract class $HexErrorCopyWith<$Res> { factory $HexErrorCopyWith(HexError value, $Res Function(HexError) then) = _$HexErrorCopyWithImpl<$Res, HexError>; - @useResult - $Res call({int field0}); } /// @nodoc @@ -27728,28 +27826,13 @@ class _$HexErrorCopyWithImpl<$Res, $Val extends HexError> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? field0 = null, - }) { - return _then(_value.copyWith( - field0: null == field0 - ? _value.field0 - : field0 // ignore: cast_nullable_to_non_nullable - as int, - ) as $Val); - } } /// @nodoc -abstract class _$$HexError_InvalidCharImplCopyWith<$Res> - implements $HexErrorCopyWith<$Res> { +abstract class _$$HexError_InvalidCharImplCopyWith<$Res> { factory _$$HexError_InvalidCharImplCopyWith(_$HexError_InvalidCharImpl value, $Res Function(_$HexError_InvalidCharImpl) then) = __$$HexError_InvalidCharImplCopyWithImpl<$Res>; - @override @useResult $Res call({int field0}); } @@ -27812,8 +27895,8 @@ class _$HexError_InvalidCharImpl extends HexError_InvalidChar { @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) { return invalidChar(field0); } @@ -27822,8 +27905,8 @@ class _$HexError_InvalidCharImpl extends HexError_InvalidChar { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) { return invalidChar?.call(field0); } @@ -27832,8 +27915,8 @@ class _$HexError_InvalidCharImpl extends HexError_InvalidChar { @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) { if (invalidChar != null) { @@ -27884,22 +27967,19 @@ abstract class HexError_InvalidChar extends HexError { @override int get field0; - @override @JsonKey(ignore: true) _$$HexError_InvalidCharImplCopyWith<_$HexError_InvalidCharImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$HexError_OddLengthStringImplCopyWith<$Res> - implements $HexErrorCopyWith<$Res> { +abstract class _$$HexError_OddLengthStringImplCopyWith<$Res> { factory _$$HexError_OddLengthStringImplCopyWith( _$HexError_OddLengthStringImpl value, $Res Function(_$HexError_OddLengthStringImpl) then) = __$$HexError_OddLengthStringImplCopyWithImpl<$Res>; - @override @useResult - $Res call({int field0}); + $Res call({BigInt field0}); } /// @nodoc @@ -27920,7 +28000,7 @@ class __$$HexError_OddLengthStringImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -27931,7 +28011,7 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { const _$HexError_OddLengthStringImpl(this.field0) : super._(); @override - final int field0; + final BigInt field0; @override String toString() { @@ -27960,8 +28040,8 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) { return oddLengthString(field0); } @@ -27970,8 +28050,8 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) { return oddLengthString?.call(field0); } @@ -27980,8 +28060,8 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) { if (oddLengthString != null) { @@ -28026,28 +28106,25 @@ class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { } abstract class HexError_OddLengthString extends HexError { - const factory HexError_OddLengthString(final int field0) = + const factory HexError_OddLengthString(final BigInt field0) = _$HexError_OddLengthStringImpl; const HexError_OddLengthString._() : super._(); @override - int get field0; - @override + BigInt get field0; @JsonKey(ignore: true) _$$HexError_OddLengthStringImplCopyWith<_$HexError_OddLengthStringImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$HexError_InvalidLengthImplCopyWith<$Res> - implements $HexErrorCopyWith<$Res> { +abstract class _$$HexError_InvalidLengthImplCopyWith<$Res> { factory _$$HexError_InvalidLengthImplCopyWith( _$HexError_InvalidLengthImpl value, $Res Function(_$HexError_InvalidLengthImpl) then) = __$$HexError_InvalidLengthImplCopyWithImpl<$Res>; - @override @useResult - $Res call({int field0, int field1}); + $Res call({BigInt field0, BigInt field1}); } /// @nodoc @@ -28069,11 +28146,11 @@ class __$$HexError_InvalidLengthImplCopyWithImpl<$Res> null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, null == field1 ? _value.field1 : field1 // ignore: cast_nullable_to_non_nullable - as int, + as BigInt, )); } } @@ -28084,9 +28161,9 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { const _$HexError_InvalidLengthImpl(this.field0, this.field1) : super._(); @override - final int field0; + final BigInt field0; @override - final int field1; + final BigInt field1; @override String toString() { @@ -28116,8 +28193,8 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { @optionalTypeArgs TResult when({ required TResult Function(int field0) invalidChar, - required TResult Function(int field0) oddLengthString, - required TResult Function(int field0, int field1) invalidLength, + required TResult Function(BigInt field0) oddLengthString, + required TResult Function(BigInt field0, BigInt field1) invalidLength, }) { return invalidLength(field0, field1); } @@ -28126,8 +28203,8 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { @optionalTypeArgs TResult? whenOrNull({ TResult? Function(int field0)? invalidChar, - TResult? Function(int field0)? oddLengthString, - TResult? Function(int field0, int field1)? invalidLength, + TResult? Function(BigInt field0)? oddLengthString, + TResult? Function(BigInt field0, BigInt field1)? invalidLength, }) { return invalidLength?.call(field0, field1); } @@ -28136,8 +28213,8 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { @optionalTypeArgs TResult maybeWhen({ TResult Function(int field0)? invalidChar, - TResult Function(int field0)? oddLengthString, - TResult Function(int field0, int field1)? invalidLength, + TResult Function(BigInt field0)? oddLengthString, + TResult Function(BigInt field0, BigInt field1)? invalidLength, required TResult orElse(), }) { if (invalidLength != null) { @@ -28182,14 +28259,13 @@ class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { } abstract class HexError_InvalidLength extends HexError { - const factory HexError_InvalidLength(final int field0, final int field1) = - _$HexError_InvalidLengthImpl; + const factory HexError_InvalidLength( + final BigInt field0, final BigInt field1) = _$HexError_InvalidLengthImpl; const HexError_InvalidLength._() : super._(); @override - int get field0; - int get field1; - @override + BigInt get field0; + BigInt get field1; @JsonKey(ignore: true) _$$HexError_InvalidLengthImplCopyWith<_$HexError_InvalidLengthImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/lib/src/generated/api/key.dart b/lib/src/generated/api/key.dart index 41cd51f9..627cde71 100644 --- a/lib/src/generated/api/key.dart +++ b/lib/src/generated/api/key.dart @@ -1,63 +1,29 @@ // 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 'blockchain.dart'; -import 'descriptor.dart'; +import '../lib.dart'; import 'error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'types.dart'; -// Rust type: RustOpaqueNom -@sealed -class BitcoinBip32DerivationPath extends RustOpaque { - BitcoinBip32DerivationPath.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - BitcoinBip32DerivationPath.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi.instance.api - .rust_arc_increment_strong_count_BitcoinBip32DerivationPath, - rustArcDecrementStrongCount: CApi.instance.api - .rust_arc_decrement_strong_count_BitcoinBip32DerivationPath, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr, - ); -} - -// Rust type: RustOpaqueNom -@sealed -class KeysBip39Mnemonic extends RustOpaque { - KeysBip39Mnemonic.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - KeysBip39Mnemonic.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_KeysBip39Mnemonic, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_KeysBip39Mnemonic, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_KeysBip39MnemonicPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt`, `fmt`, `from`, `from`, `from`, `from` class BdkDerivationPath { - final BitcoinBip32DerivationPath ptr; + final DerivationPath ptr; const BdkDerivationPath({ required this.ptr, }); - static Future fromString( - {required String path, dynamic hint}) => - CApi.instance.api.bdkDerivationPathFromString(path: path, hint: hint); + String asString() => core.instance.api.crateApiKeyBdkDerivationPathAsString( + that: this, + ); + + static Future fromString({required String path}) => + core.instance.api.crateApiKeyBdkDerivationPathFromString(path: path); @override int get hashCode => ptr.hashCode; @@ -71,33 +37,33 @@ class BdkDerivationPath { } class BdkDescriptorPublicKey { - final KeysDescriptorPublicKey ptr; + final DescriptorPublicKey ptr; const BdkDescriptorPublicKey({ required this.ptr, }); - Future asString({dynamic hint}) => - CApi.instance.api.bdkDescriptorPublicKeyAsString(that: this, hint: hint); + String asString() => + core.instance.api.crateApiKeyBdkDescriptorPublicKeyAsString( + that: this, + ); static Future derive( {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorPublicKeyDerive(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorPublicKeyDerive(ptr: ptr, path: path); static Future extend( {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorPublicKeyExtend(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorPublicKeyExtend(ptr: ptr, path: path); static Future fromString( - {required String publicKey, dynamic hint}) => - CApi.instance.api - .bdkDescriptorPublicKeyFromString(publicKey: publicKey, hint: hint); + {required String publicKey}) => + core.instance.api + .crateApiKeyBdkDescriptorPublicKeyFromString(publicKey: publicKey); @override int get hashCode => ptr.hashCode; @@ -111,49 +77,50 @@ class BdkDescriptorPublicKey { } class BdkDescriptorSecretKey { - final KeysDescriptorSecretKey ptr; + final DescriptorSecretKey ptr; const BdkDescriptorSecretKey({ required this.ptr, }); - static Future asPublic( - {required BdkDescriptorSecretKey ptr, dynamic hint}) => - CApi.instance.api.bdkDescriptorSecretKeyAsPublic(ptr: ptr, hint: hint); + static BdkDescriptorPublicKey asPublic( + {required BdkDescriptorSecretKey ptr}) => + core.instance.api.crateApiKeyBdkDescriptorSecretKeyAsPublic(ptr: ptr); - Future asString({dynamic hint}) => - CApi.instance.api.bdkDescriptorSecretKeyAsString(that: this, hint: hint); + String asString() => + core.instance.api.crateApiKeyBdkDescriptorSecretKeyAsString( + that: this, + ); static Future create( {required Network network, required BdkMnemonic mnemonic, - String? password, - dynamic hint}) => - CApi.instance.api.bdkDescriptorSecretKeyCreate( - network: network, mnemonic: mnemonic, password: password, hint: hint); + String? password}) => + core.instance.api.crateApiKeyBdkDescriptorSecretKeyCreate( + network: network, mnemonic: mnemonic, password: password); static Future derive( {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorSecretKeyDerive(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorSecretKeyDerive(ptr: ptr, path: path); static Future extend( {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) => - CApi.instance.api - .bdkDescriptorSecretKeyExtend(ptr: ptr, path: path, hint: hint); + required BdkDerivationPath path}) => + core.instance.api + .crateApiKeyBdkDescriptorSecretKeyExtend(ptr: ptr, path: path); static Future fromString( - {required String secretKey, dynamic hint}) => - CApi.instance.api - .bdkDescriptorSecretKeyFromString(secretKey: secretKey, hint: hint); + {required String secretKey}) => + core.instance.api + .crateApiKeyBdkDescriptorSecretKeyFromString(secretKey: secretKey); /// Get the private key as bytes. - Future secretBytes({dynamic hint}) => CApi.instance.api - .bdkDescriptorSecretKeySecretBytes(that: this, hint: hint); + Uint8List secretBytes() => + core.instance.api.crateApiKeyBdkDescriptorSecretKeySecretBytes( + that: this, + ); @override int get hashCode => ptr.hashCode; @@ -167,32 +134,29 @@ class BdkDescriptorSecretKey { } class BdkMnemonic { - final KeysBip39Mnemonic ptr; + final Mnemonic ptr; const BdkMnemonic({ required this.ptr, }); - /// Returns Mnemonic as string - Future asString({dynamic hint}) => - CApi.instance.api.bdkMnemonicAsString(that: this, hint: hint); + String asString() => core.instance.api.crateApiKeyBdkMnemonicAsString( + that: this, + ); /// Create a new Mnemonic in the specified language from the given entropy. /// Entropy must be a multiple of 32 bits (4 bytes) and 128-256 bits in length. - static Future fromEntropy( - {required List entropy, dynamic hint}) => - CApi.instance.api.bdkMnemonicFromEntropy(entropy: entropy, hint: hint); + static Future fromEntropy({required List entropy}) => + core.instance.api.crateApiKeyBdkMnemonicFromEntropy(entropy: entropy); /// Parse a Mnemonic with given string - static Future fromString( - {required String mnemonic, dynamic hint}) => - CApi.instance.api.bdkMnemonicFromString(mnemonic: mnemonic, hint: hint); + static Future fromString({required String mnemonic}) => + core.instance.api.crateApiKeyBdkMnemonicFromString(mnemonic: mnemonic); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. /// Generates Mnemonic with a random entropy - static Future newInstance( - {required WordCount wordCount, dynamic hint}) => - CApi.instance.api.bdkMnemonicNew(wordCount: wordCount, hint: hint); + static Future newInstance({required WordCount wordCount}) => + core.instance.api.crateApiKeyBdkMnemonicNew(wordCount: wordCount); @override int get hashCode => ptr.hashCode; diff --git a/lib/src/generated/api/psbt.dart b/lib/src/generated/api/psbt.dart index 67a75d30..2ca20acf 100644 --- a/lib/src/generated/api/psbt.dart +++ b/lib/src/generated/api/psbt.dart @@ -1,32 +1,15 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'types.dart'; -// Rust type: RustOpaqueNom> -@sealed -class MutexPartiallySignedTransaction extends RustOpaque { - MutexPartiallySignedTransaction.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - MutexPartiallySignedTransaction.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi.instance.api - .rust_arc_increment_strong_count_MutexPartiallySignedTransaction, - rustArcDecrementStrongCount: CApi.instance.api - .rust_arc_decrement_strong_count_MutexPartiallySignedTransaction, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt`, `from` class BdkPsbt { final MutexPartiallySignedTransaction ptr; @@ -35,42 +18,54 @@ class BdkPsbt { required this.ptr, }); + String asString() => core.instance.api.crateApiPsbtBdkPsbtAsString( + that: this, + ); + /// Combines this PartiallySignedTransaction with other PSBT as described by BIP 174. /// /// In accordance with BIP 174 this function is commutative i.e., `A.combine(B) == B.combine(A)` static Future combine( - {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}) => - CApi.instance.api.bdkPsbtCombine(ptr: ptr, other: other, hint: hint); + {required BdkPsbt ptr, required BdkPsbt other}) => + core.instance.api.crateApiPsbtBdkPsbtCombine(ptr: ptr, other: other); /// Return the transaction. - static Future extractTx( - {required BdkPsbt ptr, dynamic hint}) => - CApi.instance.api.bdkPsbtExtractTx(ptr: ptr, hint: hint); + static BdkTransaction extractTx({required BdkPsbt ptr}) => + core.instance.api.crateApiPsbtBdkPsbtExtractTx(ptr: ptr); /// The total transaction fee amount, sum of input amounts minus sum of output amounts, in Sats. /// If the PSBT is missing a TxOut for an input returns None. - Future feeAmount({dynamic hint}) => - CApi.instance.api.bdkPsbtFeeAmount(that: this, hint: hint); + BigInt? feeAmount() => core.instance.api.crateApiPsbtBdkPsbtFeeAmount( + that: this, + ); /// The transaction's fee rate. This value will only be accurate if calculated AFTER the /// `PartiallySignedTransaction` is finalized and all witness/signature data is added to the /// transaction. /// If the PSBT is missing a TxOut for an input returns None. - Future feeRate({dynamic hint}) => - CApi.instance.api.bdkPsbtFeeRate(that: this, hint: hint); + FeeRate? feeRate() => core.instance.api.crateApiPsbtBdkPsbtFeeRate( + that: this, + ); - static Future fromStr({required String psbtBase64, dynamic hint}) => - CApi.instance.api.bdkPsbtFromStr(psbtBase64: psbtBase64, hint: hint); + static Future fromStr({required String psbtBase64}) => + core.instance.api.crateApiPsbtBdkPsbtFromStr(psbtBase64: psbtBase64); /// Serialize the PSBT data structure as a String of JSON. - Future jsonSerialize({dynamic hint}) => - CApi.instance.api.bdkPsbtJsonSerialize(that: this, hint: hint); - - Future serialize({dynamic hint}) => - CApi.instance.api.bdkPsbtSerialize(that: this, hint: hint); - - Future txid({dynamic hint}) => - CApi.instance.api.bdkPsbtTxid(that: this, hint: hint); + String jsonSerialize() => core.instance.api.crateApiPsbtBdkPsbtJsonSerialize( + that: this, + ); + + ///Serialize as raw binary data + Uint8List serialize() => core.instance.api.crateApiPsbtBdkPsbtSerialize( + that: this, + ); + + ///Computes the `Txid`. + /// Hashes the transaction excluding the segwit data (i. e. the marker, flag bytes, and the witness fields themselves). + /// For non-segwit transactions which do not have any segwit data, this will be equal to transaction.wtxid(). + String txid() => core.instance.api.crateApiPsbtBdkPsbtTxid( + that: this, + ); @override int get hashCode => ptr.hashCode; diff --git a/lib/src/generated/api/types.dart b/lib/src/generated/api/types.dart index 380a2283..bbeb65ad 100644 --- a/lib/src/generated/api/types.dart +++ b/lib/src/generated/api/types.dart @@ -1,33 +1,16 @@ // 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 'blockchain.dart'; +import '../lib.dart'; import 'error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:freezed_annotation/freezed_annotation.dart' hide protected; part 'types.freezed.dart'; -// Rust type: RustOpaqueNom -@sealed -class BdkBitcoinAddress extends RustOpaque { - BdkBitcoinAddress.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - BdkBitcoinAddress.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - CApi.instance.api.rust_arc_increment_strong_count_BdkBitcoinAddress, - rustArcDecrementStrongCount: - CApi.instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddress, - rustArcDecrementStrongCountPtr: - CApi.instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddressPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `default`, `default`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `hash`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from` @freezed sealed class AddressIndex with _$AddressIndex { @@ -62,22 +45,22 @@ sealed class AddressIndex with _$AddressIndex { /// Local Wallet's Balance class Balance { - final int immature; + final BigInt immature; /// Unconfirmed UTXOs generated by a wallet tx - final int trustedPending; + final BigInt trustedPending; /// Unconfirmed UTXOs received from an external wallet - final int untrustedPending; + final BigInt untrustedPending; /// Confirmed and immediately spendable balance - final int confirmed; + final BigInt confirmed; /// Get sum of trusted_pending and confirmed coins - final int spendable; + final BigInt spendable; /// Get the whole balance visible to the wallet - final int total; + final BigInt total; const Balance({ required this.immature, @@ -111,44 +94,43 @@ class Balance { } class BdkAddress { - final BdkBitcoinAddress ptr; + final Address ptr; const BdkAddress({ required this.ptr, }); - Future asString({dynamic hint}) => - CApi.instance.api.bdkAddressAsString(that: this, hint: hint); + String asString() => core.instance.api.crateApiTypesBdkAddressAsString( + that: this, + ); static Future fromScript( - {required BdkScriptBuf script, - required Network network, - dynamic hint}) => - CApi.instance.api - .bdkAddressFromScript(script: script, network: network, hint: hint); + {required BdkScriptBuf script, required Network network}) => + core.instance.api + .crateApiTypesBdkAddressFromScript(script: script, network: network); static Future fromString( - {required String address, required Network network, dynamic hint}) => - CApi.instance.api - .bdkAddressFromString(address: address, network: network, hint: hint); + {required String address, required Network network}) => + core.instance.api.crateApiTypesBdkAddressFromString( + address: address, network: network); - Future isValidForNetwork({required Network network, dynamic hint}) => - CApi.instance.api.bdkAddressIsValidForNetwork( - that: this, network: network, hint: hint); + bool isValidForNetwork({required Network network}) => core.instance.api + .crateApiTypesBdkAddressIsValidForNetwork(that: this, network: network); - ///The network on which this address is usable. - Future network({dynamic hint}) => - CApi.instance.api.bdkAddressNetwork(that: this, hint: hint); + Network network() => core.instance.api.crateApiTypesBdkAddressNetwork( + that: this, + ); - Future payload({dynamic hint}) => - CApi.instance.api.bdkAddressPayload(that: this, hint: hint); + Payload payload() => core.instance.api.crateApiTypesBdkAddressPayload( + that: this, + ); - static Future script({required BdkAddress ptr, dynamic hint}) => - CApi.instance.api.bdkAddressScript(ptr: ptr, hint: hint); + static BdkScriptBuf script({required BdkAddress ptr}) => + core.instance.api.crateApiTypesBdkAddressScript(ptr: ptr); - ///Creates a URI string bitcoin:address optimized to be encoded in QR codes. - Future toQrUri({dynamic hint}) => - CApi.instance.api.bdkAddressToQrUri(that: this, hint: hint); + String toQrUri() => core.instance.api.crateApiTypesBdkAddressToQrUri( + that: this, + ); @override int get hashCode => ptr.hashCode; @@ -168,18 +150,21 @@ class BdkScriptBuf { required this.bytes, }); + String asString() => core.instance.api.crateApiTypesBdkScriptBufAsString( + that: this, + ); + ///Creates a new empty script. - static Future empty({dynamic hint}) => - CApi.instance.api.bdkScriptBufEmpty(hint: hint); + static BdkScriptBuf empty() => + core.instance.api.crateApiTypesBdkScriptBufEmpty(); - static Future fromHex({required String s, dynamic hint}) => - CApi.instance.api.bdkScriptBufFromHex(s: s, hint: hint); + static Future fromHex({required String s}) => + core.instance.api.crateApiTypesBdkScriptBufFromHex(s: s); ///Creates a new empty script with pre-allocated capacity. - static Future withCapacity( - {required int capacity, dynamic hint}) => - CApi.instance.api - .bdkScriptBufWithCapacity(capacity: capacity, hint: hint); + static Future withCapacity({required BigInt capacity}) => + core.instance.api + .crateApiTypesBdkScriptBufWithCapacity(capacity: capacity); @override int get hashCode => bytes.hashCode; @@ -193,91 +178,106 @@ class BdkScriptBuf { } class BdkTransaction { - final String inner; + final String s; const BdkTransaction({ - required this.inner, + required this.s, }); static Future fromBytes( - {required List transactionBytes, dynamic hint}) => - CApi.instance.api.bdkTransactionFromBytes( - transactionBytes: transactionBytes, hint: hint); + {required List transactionBytes}) => + core.instance.api.crateApiTypesBdkTransactionFromBytes( + transactionBytes: transactionBytes); ///List of transaction inputs. - Future> input({dynamic hint}) => - CApi.instance.api.bdkTransactionInput(that: this, hint: hint); + Future> input() => + core.instance.api.crateApiTypesBdkTransactionInput( + that: this, + ); ///Is this a coin base transaction? - Future isCoinBase({dynamic hint}) => - CApi.instance.api.bdkTransactionIsCoinBase(that: this, hint: hint); + Future isCoinBase() => + core.instance.api.crateApiTypesBdkTransactionIsCoinBase( + that: this, + ); ///Returns true if the transaction itself opted in to be BIP-125-replaceable (RBF). /// This does not cover the case where a transaction becomes replaceable due to ancestors being RBF. - Future isExplicitlyRbf({dynamic hint}) => - CApi.instance.api.bdkTransactionIsExplicitlyRbf(that: this, hint: hint); + Future isExplicitlyRbf() => + core.instance.api.crateApiTypesBdkTransactionIsExplicitlyRbf( + that: this, + ); ///Returns true if this transactions nLockTime is enabled (BIP-65 ). - Future isLockTimeEnabled({dynamic hint}) => - CApi.instance.api.bdkTransactionIsLockTimeEnabled(that: this, hint: hint); + Future isLockTimeEnabled() => + core.instance.api.crateApiTypesBdkTransactionIsLockTimeEnabled( + that: this, + ); ///Block height or timestamp. Transaction cannot be included in a block until this height/time. - Future lockTime({dynamic hint}) => - CApi.instance.api.bdkTransactionLockTime(that: this, hint: hint); + Future lockTime() => + core.instance.api.crateApiTypesBdkTransactionLockTime( + that: this, + ); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. static Future newInstance( {required int version, required LockTime lockTime, required List input, - required List output, - dynamic hint}) => - CApi.instance.api.bdkTransactionNew( - version: version, - lockTime: lockTime, - input: input, - output: output, - hint: hint); + required List output}) => + core.instance.api.crateApiTypesBdkTransactionNew( + version: version, lockTime: lockTime, input: input, output: output); ///List of transaction outputs. - Future> output({dynamic hint}) => - CApi.instance.api.bdkTransactionOutput(that: this, hint: hint); + Future> output() => + core.instance.api.crateApiTypesBdkTransactionOutput( + that: this, + ); ///Encodes an object into a vector. - Future serialize({dynamic hint}) => - CApi.instance.api.bdkTransactionSerialize(that: this, hint: hint); + Future serialize() => + core.instance.api.crateApiTypesBdkTransactionSerialize( + that: this, + ); ///Returns the regular byte-wise consensus-serialized size of this transaction. - Future size({dynamic hint}) => - CApi.instance.api.bdkTransactionSize(that: this, hint: hint); + Future size() => core.instance.api.crateApiTypesBdkTransactionSize( + that: this, + ); ///Computes the txid. For non-segwit transactions this will be identical to the output of wtxid(), /// but for segwit transactions, this will give the correct txid (not including witnesses) while wtxid will also hash witnesses. - Future txid({dynamic hint}) => - CApi.instance.api.bdkTransactionTxid(that: this, hint: hint); + Future txid() => core.instance.api.crateApiTypesBdkTransactionTxid( + that: this, + ); ///The protocol version, is currently expected to be 1 or 2 (BIP 68). - Future version({dynamic hint}) => - CApi.instance.api.bdkTransactionVersion(that: this, hint: hint); + Future version() => core.instance.api.crateApiTypesBdkTransactionVersion( + that: this, + ); ///Returns the “virtual size” (vsize) of this transaction. /// - Future vsize({dynamic hint}) => - CApi.instance.api.bdkTransactionVsize(that: this, hint: hint); + Future vsize() => core.instance.api.crateApiTypesBdkTransactionVsize( + that: this, + ); ///Returns the regular byte-wise consensus-serialized size of this transaction. - Future weight({dynamic hint}) => - CApi.instance.api.bdkTransactionWeight(that: this, hint: hint); + Future weight() => + core.instance.api.crateApiTypesBdkTransactionWeight( + that: this, + ); @override - int get hashCode => inner.hashCode; + int get hashCode => s.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is BdkTransaction && runtimeType == other.runtimeType && - inner == other.inner; + s == other.s; } ///Block height and timestamp of a block @@ -286,7 +286,7 @@ class BlockTime { final int height; ///Confirmation block timestamp - final int timestamp; + final BigInt timestamp; const BlockTime({ required this.height, @@ -309,6 +309,7 @@ enum ChangeSpendPolicy { changeAllowed, onlyChange, changeForbidden, + ; } @freezed @@ -369,6 +370,7 @@ enum KeychainKind { ///Internal, usually used for change outputs internalChain, + ; } ///Unspent outputs of this wallet @@ -425,6 +427,7 @@ enum Network { ///Bitcoin’s signet signet, + ; } /// A reference to a transaction output. @@ -507,7 +510,7 @@ sealed class RbfValue with _$RbfValue { /// A output script and an amount of satoshis. class ScriptAmount { final BdkScriptBuf script; - final int amount; + final BigInt amount; const ScriptAmount({ required this.script, @@ -667,17 +670,17 @@ class TransactionDetails { /// Received value (sats) /// Sum of owned outputs of this transaction. - final int received; + final BigInt received; /// Sent value (sats) /// Sum of owned inputs of this transaction. - final int sent; + final BigInt sent; /// Fee value (sats) if confirmed. /// The availability of the fee depends on the backend. It's never None with an Electrum /// Server backend, but it could be None with a Bitcoin RPC node without txindex that receive /// funds while offline. - final int? fee; + final BigInt? fee; /// If the transaction is confirmed, contains height and timestamp of the block containing the /// transaction, unconfirmed transaction contains `None`. @@ -748,7 +751,7 @@ class TxIn { ///A transaction output, which defines new coins to be created from old ones. class TxOut { /// The value of the output, in satoshis. - final int value; + final BigInt value; /// The address of the output. final BdkScriptBuf scriptPubkey; @@ -773,6 +776,7 @@ class TxOut { enum Variant { bech32, bech32M, + ; } enum WitnessVersion { @@ -826,6 +830,7 @@ enum WitnessVersion { /// Future (unsupported) version of witness program. v16, + ; } ///Type describing entropy length (aka word count) in the mnemonic @@ -838,4 +843,5 @@ enum WordCount { ///24 words mnemonic (256 bits entropy) words24, + ; } diff --git a/lib/src/generated/api/wallet.dart b/lib/src/generated/api/wallet.dart index 51b15058..abdf547b 100644 --- a/lib/src/generated/api/wallet.dart +++ b/lib/src/generated/api/wallet.dart @@ -1,9 +1,10 @@ // 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 'blockchain.dart'; import 'descriptor.dart'; import 'error.dart'; @@ -11,39 +12,39 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'psbt.dart'; import 'types.dart'; +// These functions are ignored because they are not marked as `pub`: `get_wallet` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `fmt` + Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( {required String txid, required double feeRate, BdkAddress? allowShrinking, required BdkWallet wallet, required bool enableRbf, - int? nSequence, - dynamic hint}) => - CApi.instance.api.finishBumpFeeTxBuilder( + int? nSequence}) => + core.instance.api.crateApiWalletFinishBumpFeeTxBuilder( txid: txid, feeRate: feeRate, allowShrinking: allowShrinking, wallet: wallet, enableRbf: enableRbf, - nSequence: nSequence, - hint: hint); + nSequence: nSequence); Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( {required BdkWallet wallet, required List recipients, required List utxos, - (OutPoint, Input, int)? foreignUtxo, + (OutPoint, Input, BigInt)? foreignUtxo, required List unSpendable, required ChangeSpendPolicy changePolicy, required bool manuallySelectedOnly, double? feeRate, - int? feeAbsolute, + BigInt? feeAbsolute, required bool drainWallet, BdkScriptBuf? drainTo, RbfValue? rbf, - required List data, - dynamic hint}) => - CApi.instance.api.txBuilderFinish( + required List data}) => + core.instance.api.crateApiWalletTxBuilderFinish( wallet: wallet, recipients: recipients, utxos: utxos, @@ -56,30 +57,10 @@ Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( drainWallet: drainWallet, drainTo: drainTo, rbf: rbf, - data: data, - hint: hint); - -// Rust type: RustOpaqueNom >> -@sealed -class MutexBdkWalletAnyDatabase extends RustOpaque { - MutexBdkWalletAnyDatabase.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - MutexBdkWalletAnyDatabase.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: CApi - .instance.api.rust_arc_increment_strong_count_MutexBdkWalletAnyDatabase, - rustArcDecrementStrongCount: CApi - .instance.api.rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabase, - rustArcDecrementStrongCountPtr: CApi.instance.api - .rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr, - ); -} + data: data); class BdkWallet { - final MutexBdkWalletAnyDatabase ptr; + final MutexWalletAnyDatabase ptr; const BdkWallet({ required this.ptr, @@ -89,24 +70,22 @@ class BdkWallet { /// strategies. If none of the keys in the descriptor are derivable (i.e. the descriptor does not end with a * character) /// then the same address will always be returned for any AddressIndex. static Future<(BdkAddress, int)> getAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) => - CApi.instance.api.bdkWalletGetAddress( - ptr: ptr, addressIndex: addressIndex, hint: hint); + {required BdkWallet ptr, required AddressIndex addressIndex}) => + core.instance.api.crateApiWalletBdkWalletGetAddress( + ptr: ptr, addressIndex: addressIndex); /// Return the balance, meaning the sum of this wallet’s unspent outputs’ values. Note that this method only operates /// on the internal database, which first needs to be Wallet.sync manually. - Future getBalance({dynamic hint}) => - CApi.instance.api.bdkWalletGetBalance(that: this, hint: hint); + Future getBalance() => + core.instance.api.crateApiWalletBdkWalletGetBalance( + that: this, + ); ///Returns the descriptor used to create addresses for a particular keychain. static Future getDescriptorForKeychain( - {required BdkWallet ptr, - required KeychainKind keychain, - dynamic hint}) => - CApi.instance.api.bdkWalletGetDescriptorForKeychain( - ptr: ptr, keychain: keychain, hint: hint); + {required BdkWallet ptr, required KeychainKind keychain}) => + core.instance.api.crateApiWalletBdkWalletGetDescriptorForKeychain( + ptr: ptr, keychain: keychain); /// Return a derived address using the internal (change) descriptor. /// @@ -116,57 +95,54 @@ class BdkWallet { /// in the descriptor are derivable (i.e. does not end with /*) then the same address will always /// be returned for any [AddressIndex]. static Future<(BdkAddress, int)> getInternalAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) => - CApi.instance.api.bdkWalletGetInternalAddress( - ptr: ptr, addressIndex: addressIndex, hint: hint); + {required BdkWallet ptr, required AddressIndex addressIndex}) => + core.instance.api.crateApiWalletBdkWalletGetInternalAddress( + ptr: ptr, addressIndex: addressIndex); ///get the corresponding PSBT Input for a LocalUtxo Future getPsbtInput( {required LocalUtxo utxo, required bool onlyWitnessUtxo, - PsbtSigHashType? sighashType, - dynamic hint}) => - CApi.instance.api.bdkWalletGetPsbtInput( + PsbtSigHashType? sighashType}) => + core.instance.api.crateApiWalletBdkWalletGetPsbtInput( that: this, utxo: utxo, onlyWitnessUtxo: onlyWitnessUtxo, - sighashType: sighashType, - hint: hint); + sighashType: sighashType); /// Return whether or not a script is part of this wallet (either internal or external). - Future isMine({required BdkScriptBuf script, dynamic hint}) => - CApi.instance.api.bdkWalletIsMine(that: this, script: script, hint: hint); + Future isMine({required BdkScriptBuf script}) => core.instance.api + .crateApiWalletBdkWalletIsMine(that: this, script: script); /// Return the list of transactions made and received by the wallet. Note that this method only operate on the internal database, which first needs to be [Wallet.sync] manually. Future> listTransactions( - {required bool includeRaw, dynamic hint}) => - CApi.instance.api.bdkWalletListTransactions( - that: this, includeRaw: includeRaw, hint: hint); + {required bool includeRaw}) => + core.instance.api.crateApiWalletBdkWalletListTransactions( + that: this, includeRaw: includeRaw); /// Return the list of unspent outputs of this wallet. Note that this method only operates on the internal database, /// which first needs to be Wallet.sync manually. - Future> listUnspent({dynamic hint}) => - CApi.instance.api.bdkWalletListUnspent(that: this, hint: hint); + Future> listUnspent() => + core.instance.api.crateApiWalletBdkWalletListUnspent( + that: this, + ); /// Get the Bitcoin network the wallet is using. - Future network({dynamic hint}) => - CApi.instance.api.bdkWalletNetwork(that: this, hint: hint); + Future network() => core.instance.api.crateApiWalletBdkWalletNetwork( + that: this, + ); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. static Future newInstance( {required BdkDescriptor descriptor, BdkDescriptor? changeDescriptor, required Network network, - required DatabaseConfig databaseConfig, - dynamic hint}) => - CApi.instance.api.bdkWalletNew( + required DatabaseConfig databaseConfig}) => + core.instance.api.crateApiWalletBdkWalletNew( descriptor: descriptor, changeDescriptor: changeDescriptor, network: network, - databaseConfig: databaseConfig, - hint: hint); + databaseConfig: databaseConfig); /// Sign a transaction with all the wallet's signers. This function returns an encapsulated bool that /// has the value true if the PSBT was finalized, or false otherwise. @@ -178,18 +154,15 @@ class BdkWallet { static Future sign( {required BdkWallet ptr, required BdkPsbt psbt, - SignOptions? signOptions, - dynamic hint}) => - CApi.instance.api.bdkWalletSign( - ptr: ptr, psbt: psbt, signOptions: signOptions, hint: hint); + SignOptions? signOptions}) => + core.instance.api.crateApiWalletBdkWalletSign( + ptr: ptr, psbt: psbt, signOptions: signOptions); /// Sync the internal database with the blockchain. static Future sync( - {required BdkWallet ptr, - required BdkBlockchain blockchain, - dynamic hint}) => - CApi.instance.api - .bdkWalletSync(ptr: ptr, blockchain: blockchain, hint: hint); + {required BdkWallet ptr, required BdkBlockchain blockchain}) => + core.instance.api + .crateApiWalletBdkWalletSync(ptr: ptr, blockchain: blockchain); @override int get hashCode => ptr.hashCode; diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index 581cb8c1..b21b3b4d 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.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 @@ -12,19 +12,22 @@ import 'api/types.dart'; import 'api/wallet.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'; /// Main entrypoint of the Rust API -class CApi extends BaseEntrypoint { +class core extends BaseEntrypoint { @internal - static final instance = CApi._(); + static final instance = core._(); - CApi._(); + core._(); /// Initialize flutter_rust_bridge static Future init({ - CApiApi? api, + coreApi? api, BaseHandler? handler, ExternalLibrary? externalLibrary, }) async { @@ -42,11 +45,11 @@ class CApi extends BaseEntrypoint { static void dispose() => instance.disposeImpl(); @override - ApiImplConstructor get apiImplConstructor => - CApiApiImpl.new; + ApiImplConstructor get apiImplConstructor => + coreApiImpl.new; @override - WireConstructor get wireConstructor => CApiWire.fromExternalLibrary; + WireConstructor get wireConstructor => coreWire.fromExternalLibrary; @override Future executeRustInitializers() async {} @@ -56,7 +59,10 @@ class CApi extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.0.0-dev.31'; + String get codegenVersion => '2.0.0'; + + @override + int get rustContentHash => 1897842111; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -66,402 +72,371 @@ class CApi extends BaseEntrypoint { ); } -abstract class CApiApi extends BaseApi { - Future bdkBlockchainBroadcast( - {required BdkBlockchain that, - required BdkTransaction transaction, - dynamic hint}); +abstract class coreApi extends BaseApi { + Future crateApiBlockchainBdkBlockchainBroadcast( + {required BdkBlockchain that, required BdkTransaction transaction}); - Future bdkBlockchainEstimateFee( - {required BdkBlockchain that, required int target, dynamic hint}); + Future crateApiBlockchainBdkBlockchainCreate( + {required BlockchainConfig blockchainConfig}); - Future bdkBlockchainGetBlockHash( - {required BdkBlockchain that, required int height, dynamic hint}); + Future crateApiBlockchainBdkBlockchainEstimateFee( + {required BdkBlockchain that, required BigInt target}); - Future bdkBlockchainGetHeight( - {required BdkBlockchain that, dynamic hint}); + Future crateApiBlockchainBdkBlockchainGetBlockHash( + {required BdkBlockchain that, required int height}); - Future bdkBlockchainNew( - {required BlockchainConfig blockchainConfig, dynamic hint}); + Future crateApiBlockchainBdkBlockchainGetHeight( + {required BdkBlockchain that}); - Future bdkDescriptorAsString( - {required BdkDescriptor that, dynamic hint}); + String crateApiDescriptorBdkDescriptorAsString({required BdkDescriptor that}); - Future bdkDescriptorAsStringPrivate( - {required BdkDescriptor that, dynamic hint}); + BigInt crateApiDescriptorBdkDescriptorMaxSatisfactionWeight( + {required BdkDescriptor that}); - Future bdkDescriptorMaxSatisfactionWeight( - {required BdkDescriptor that, dynamic hint}); + Future crateApiDescriptorBdkDescriptorNew( + {required String descriptor, required Network network}); - Future bdkDescriptorNew( - {required String descriptor, required Network network, dynamic hint}); - - Future bdkDescriptorNewBip44( + Future crateApiDescriptorBdkDescriptorNewBip44( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip44Public( + Future crateApiDescriptorBdkDescriptorNewBip44Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip49( + Future crateApiDescriptorBdkDescriptorNewBip49( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip49Public( + Future crateApiDescriptorBdkDescriptorNewBip49Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip84( + Future crateApiDescriptorBdkDescriptorNewBip84( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip84Public( + Future crateApiDescriptorBdkDescriptorNewBip84Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip86( + Future crateApiDescriptorBdkDescriptorNewBip86( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); - Future bdkDescriptorNewBip86Public( + Future crateApiDescriptorBdkDescriptorNewBip86Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}); + required Network network}); + + String crateApiDescriptorBdkDescriptorToStringPrivate( + {required BdkDescriptor that}); + + String crateApiKeyBdkDerivationPathAsString( + {required BdkDerivationPath that}); - Future bdkDerivationPathFromString( - {required String path, dynamic hint}); + Future crateApiKeyBdkDerivationPathFromString( + {required String path}); - Future bdkDescriptorPublicKeyAsString( - {required BdkDescriptorPublicKey that, dynamic hint}); + String crateApiKeyBdkDescriptorPublicKeyAsString( + {required BdkDescriptorPublicKey that}); - Future bdkDescriptorPublicKeyDerive( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}); + Future crateApiKeyBdkDescriptorPublicKeyDerive( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}); - Future bdkDescriptorPublicKeyExtend( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}); + Future crateApiKeyBdkDescriptorPublicKeyExtend( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}); - Future bdkDescriptorPublicKeyFromString( - {required String publicKey, dynamic hint}); + Future crateApiKeyBdkDescriptorPublicKeyFromString( + {required String publicKey}); - Future bdkDescriptorSecretKeyAsPublic( - {required BdkDescriptorSecretKey ptr, dynamic hint}); + BdkDescriptorPublicKey crateApiKeyBdkDescriptorSecretKeyAsPublic( + {required BdkDescriptorSecretKey ptr}); - Future bdkDescriptorSecretKeyAsString( - {required BdkDescriptorSecretKey that, dynamic hint}); + String crateApiKeyBdkDescriptorSecretKeyAsString( + {required BdkDescriptorSecretKey that}); - Future bdkDescriptorSecretKeyCreate( + Future crateApiKeyBdkDescriptorSecretKeyCreate( {required Network network, required BdkMnemonic mnemonic, - String? password, - dynamic hint}); + String? password}); - Future bdkDescriptorSecretKeyDerive( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}); + Future crateApiKeyBdkDescriptorSecretKeyDerive( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}); - Future bdkDescriptorSecretKeyExtend( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}); + Future crateApiKeyBdkDescriptorSecretKeyExtend( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}); - Future bdkDescriptorSecretKeyFromString( - {required String secretKey, dynamic hint}); + Future crateApiKeyBdkDescriptorSecretKeyFromString( + {required String secretKey}); - Future bdkDescriptorSecretKeySecretBytes( - {required BdkDescriptorSecretKey that, dynamic hint}); + Uint8List crateApiKeyBdkDescriptorSecretKeySecretBytes( + {required BdkDescriptorSecretKey that}); - Future bdkMnemonicAsString({required BdkMnemonic that, dynamic hint}); + String crateApiKeyBdkMnemonicAsString({required BdkMnemonic that}); - Future bdkMnemonicFromEntropy( - {required List entropy, dynamic hint}); + Future crateApiKeyBdkMnemonicFromEntropy( + {required List entropy}); - Future bdkMnemonicFromString( - {required String mnemonic, dynamic hint}); + Future crateApiKeyBdkMnemonicFromString( + {required String mnemonic}); - Future bdkMnemonicNew( - {required WordCount wordCount, dynamic hint}); + Future crateApiKeyBdkMnemonicNew({required WordCount wordCount}); - Future bdkPsbtCombine( - {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}); + String crateApiPsbtBdkPsbtAsString({required BdkPsbt that}); - Future bdkPsbtExtractTx({required BdkPsbt ptr, dynamic hint}); + Future crateApiPsbtBdkPsbtCombine( + {required BdkPsbt ptr, required BdkPsbt other}); - Future bdkPsbtFeeAmount({required BdkPsbt that, dynamic hint}); + BdkTransaction crateApiPsbtBdkPsbtExtractTx({required BdkPsbt ptr}); - Future bdkPsbtFeeRate({required BdkPsbt that, dynamic hint}); + BigInt? crateApiPsbtBdkPsbtFeeAmount({required BdkPsbt that}); - Future bdkPsbtFromStr({required String psbtBase64, dynamic hint}); + FeeRate? crateApiPsbtBdkPsbtFeeRate({required BdkPsbt that}); - Future bdkPsbtJsonSerialize({required BdkPsbt that, dynamic hint}); + Future crateApiPsbtBdkPsbtFromStr({required String psbtBase64}); - Future bdkPsbtSerialize({required BdkPsbt that, dynamic hint}); + String crateApiPsbtBdkPsbtJsonSerialize({required BdkPsbt that}); - Future bdkPsbtTxid({required BdkPsbt that, dynamic hint}); + Uint8List crateApiPsbtBdkPsbtSerialize({required BdkPsbt that}); - Future bdkAddressAsString({required BdkAddress that, dynamic hint}); + String crateApiPsbtBdkPsbtTxid({required BdkPsbt that}); - Future bdkAddressFromScript( - {required BdkScriptBuf script, required Network network, dynamic hint}); + String crateApiTypesBdkAddressAsString({required BdkAddress that}); - Future bdkAddressFromString( - {required String address, required Network network, dynamic hint}); + Future crateApiTypesBdkAddressFromScript( + {required BdkScriptBuf script, required Network network}); - Future bdkAddressIsValidForNetwork( - {required BdkAddress that, required Network network, dynamic hint}); + Future crateApiTypesBdkAddressFromString( + {required String address, required Network network}); - Future bdkAddressNetwork({required BdkAddress that, dynamic hint}); + bool crateApiTypesBdkAddressIsValidForNetwork( + {required BdkAddress that, required Network network}); - Future bdkAddressPayload({required BdkAddress that, dynamic hint}); + Network crateApiTypesBdkAddressNetwork({required BdkAddress that}); - Future bdkAddressScript( - {required BdkAddress ptr, dynamic hint}); + Payload crateApiTypesBdkAddressPayload({required BdkAddress that}); - Future bdkAddressToQrUri({required BdkAddress that, dynamic hint}); + BdkScriptBuf crateApiTypesBdkAddressScript({required BdkAddress ptr}); - Future bdkScriptBufEmpty({dynamic hint}); + String crateApiTypesBdkAddressToQrUri({required BdkAddress that}); - Future bdkScriptBufFromHex({required String s, dynamic hint}); + String crateApiTypesBdkScriptBufAsString({required BdkScriptBuf that}); - Future bdkScriptBufWithCapacity( - {required int capacity, dynamic hint}); + BdkScriptBuf crateApiTypesBdkScriptBufEmpty(); - Future bdkTransactionFromBytes( - {required List transactionBytes, dynamic hint}); + Future crateApiTypesBdkScriptBufFromHex({required String s}); - Future> bdkTransactionInput( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkScriptBufWithCapacity( + {required BigInt capacity}); - Future bdkTransactionIsCoinBase( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionFromBytes( + {required List transactionBytes}); - Future bdkTransactionIsExplicitlyRbf( - {required BdkTransaction that, dynamic hint}); + Future> crateApiTypesBdkTransactionInput( + {required BdkTransaction that}); - Future bdkTransactionIsLockTimeEnabled( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionIsCoinBase( + {required BdkTransaction that}); - Future bdkTransactionLockTime( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionIsExplicitlyRbf( + {required BdkTransaction that}); - Future bdkTransactionNew( + Future crateApiTypesBdkTransactionIsLockTimeEnabled( + {required BdkTransaction that}); + + Future crateApiTypesBdkTransactionLockTime( + {required BdkTransaction that}); + + Future crateApiTypesBdkTransactionNew( {required int version, required LockTime lockTime, required List input, - required List output, - dynamic hint}); + required List output}); - Future> bdkTransactionOutput( - {required BdkTransaction that, dynamic hint}); + Future> crateApiTypesBdkTransactionOutput( + {required BdkTransaction that}); - Future bdkTransactionSerialize( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionSerialize( + {required BdkTransaction that}); - Future bdkTransactionSize({required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionSize( + {required BdkTransaction that}); - Future bdkTransactionTxid( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionTxid( + {required BdkTransaction that}); - Future bdkTransactionVersion( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionVersion( + {required BdkTransaction that}); - Future bdkTransactionVsize({required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionVsize( + {required BdkTransaction that}); - Future bdkTransactionWeight( - {required BdkTransaction that, dynamic hint}); + Future crateApiTypesBdkTransactionWeight( + {required BdkTransaction that}); - Future<(BdkAddress, int)> bdkWalletGetAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}); + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}); - Future bdkWalletGetBalance({required BdkWallet that, dynamic hint}); + Future crateApiWalletBdkWalletGetBalance({required BdkWallet that}); - Future bdkWalletGetDescriptorForKeychain( - {required BdkWallet ptr, required KeychainKind keychain, dynamic hint}); + Future crateApiWalletBdkWalletGetDescriptorForKeychain( + {required BdkWallet ptr, required KeychainKind keychain}); - Future<(BdkAddress, int)> bdkWalletGetInternalAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}); + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetInternalAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}); - Future bdkWalletGetPsbtInput( + Future crateApiWalletBdkWalletGetPsbtInput( {required BdkWallet that, required LocalUtxo utxo, required bool onlyWitnessUtxo, - PsbtSigHashType? sighashType, - dynamic hint}); + PsbtSigHashType? sighashType}); - Future bdkWalletIsMine( - {required BdkWallet that, required BdkScriptBuf script, dynamic hint}); + Future crateApiWalletBdkWalletIsMine( + {required BdkWallet that, required BdkScriptBuf script}); - Future> bdkWalletListTransactions( - {required BdkWallet that, required bool includeRaw, dynamic hint}); + Future> crateApiWalletBdkWalletListTransactions( + {required BdkWallet that, required bool includeRaw}); - Future> bdkWalletListUnspent( - {required BdkWallet that, dynamic hint}); + Future> crateApiWalletBdkWalletListUnspent( + {required BdkWallet that}); - Future bdkWalletNetwork({required BdkWallet that, dynamic hint}); + Future crateApiWalletBdkWalletNetwork({required BdkWallet that}); - Future bdkWalletNew( + Future crateApiWalletBdkWalletNew( {required BdkDescriptor descriptor, BdkDescriptor? changeDescriptor, required Network network, - required DatabaseConfig databaseConfig, - dynamic hint}); + required DatabaseConfig databaseConfig}); - Future bdkWalletSign( + Future crateApiWalletBdkWalletSign( {required BdkWallet ptr, required BdkPsbt psbt, - SignOptions? signOptions, - dynamic hint}); + SignOptions? signOptions}); - Future bdkWalletSync( - {required BdkWallet ptr, - required BdkBlockchain blockchain, - dynamic hint}); + Future crateApiWalletBdkWalletSync( + {required BdkWallet ptr, required BdkBlockchain blockchain}); - Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletFinishBumpFeeTxBuilder( {required String txid, required double feeRate, BdkAddress? allowShrinking, required BdkWallet wallet, required bool enableRbf, - int? nSequence, - dynamic hint}); + int? nSequence}); - Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletTxBuilderFinish( {required BdkWallet wallet, required List recipients, required List utxos, - (OutPoint, Input, int)? foreignUtxo, + (OutPoint, Input, BigInt)? foreignUtxo, required List unSpendable, required ChangeSpendPolicy changePolicy, required bool manuallySelectedOnly, double? feeRate, - int? feeAbsolute, + BigInt? feeAbsolute, required bool drainWallet, BdkScriptBuf? drainTo, RbfValue? rbf, - required List data, - dynamic hint}); + required List data}); - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_AnyBlockchain; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Address; - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_AnyBlockchain; + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Address; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_AnyBlockchainPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_AddressPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ExtendedDescriptor; + get rust_arc_increment_strong_count_DerivationPath; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ExtendedDescriptor; + get rust_arc_decrement_strong_count_DerivationPath; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ExtendedDescriptorPtr; + get rust_arc_decrement_strong_count_DerivationPathPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexPartiallySignedTransaction; + get rust_arc_increment_strong_count_AnyBlockchain; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction; + get rust_arc_decrement_strong_count_AnyBlockchain; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr; + get rust_arc_decrement_strong_count_AnyBlockchainPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexBdkWalletAnyDatabase; + get rust_arc_increment_strong_count_ExtendedDescriptor; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabase; + get rust_arc_decrement_strong_count_ExtendedDescriptor; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr; + get rust_arc_decrement_strong_count_ExtendedDescriptorPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BdkBitcoinAddress; + get rust_arc_increment_strong_count_DescriptorPublicKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BdkBitcoinAddress; + get rust_arc_decrement_strong_count_DescriptorPublicKey; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BdkBitcoinAddressPtr; + get rust_arc_decrement_strong_count_DescriptorPublicKeyPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BitcoinBip32DerivationPath; + get rust_arc_increment_strong_count_DescriptorSecretKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPath; + get rust_arc_decrement_strong_count_DescriptorSecretKey; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr; + get rust_arc_decrement_strong_count_DescriptorSecretKeyPtr; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorPublicKey; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_KeyMap; - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorPublicKey; + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_KeyMap; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeyMapPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorSecretKey; + get rust_arc_increment_strong_count_Mnemonic; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorSecretKey; + get rust_arc_decrement_strong_count_Mnemonic; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MnemonicPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysKeyMap; + get rust_arc_increment_strong_count_MutexWalletAnyDatabase; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysKeyMap; + get rust_arc_decrement_strong_count_MutexWalletAnyDatabase; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeysKeyMapPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_MutexWalletAnyDatabasePtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysBip39Mnemonic; + get rust_arc_increment_strong_count_MutexPartiallySignedTransaction; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysBip39Mnemonic; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysBip39MnemonicPtr; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr; } -class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { - CApiApiImpl({ +class coreApiImpl extends coreApiImplPlatform implements coreApi { + coreApiImpl({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, @@ -469,1944 +444,2017 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { }); @override - Future bdkBlockchainBroadcast( - {required BdkBlockchain that, - required BdkTransaction transaction, - dynamic hint}) { + Future crateApiBlockchainBdkBlockchainBroadcast( + {required BdkBlockchain that, required BdkTransaction transaction}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); var arg1 = cst_encode_box_autoadd_bdk_transaction(transaction); - return wire.wire_bdk_blockchain_broadcast(port_, arg0, arg1); + return wire.wire__crate__api__blockchain__bdk_blockchain_broadcast( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainBroadcastConstMeta, + constMeta: kCrateApiBlockchainBdkBlockchainBroadcastConstMeta, argValues: [that, transaction], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainBroadcastConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiBlockchainBdkBlockchainBroadcastConstMeta => + const TaskConstMeta( debugName: "bdk_blockchain_broadcast", argNames: ["that", "transaction"], ); @override - Future bdkBlockchainEstimateFee( - {required BdkBlockchain that, required int target, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainCreate( + {required BlockchainConfig blockchainConfig}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); - var arg1 = cst_encode_u_64(target); - return wire.wire_bdk_blockchain_estimate_fee(port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_blockchain_config(blockchainConfig); + return wire.wire__crate__api__blockchain__bdk_blockchain_create( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_fee_rate, + decodeSuccessData: dco_decode_bdk_blockchain, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainEstimateFeeConstMeta, - argValues: [that, target], + constMeta: kCrateApiBlockchainBdkBlockchainCreateConstMeta, + argValues: [blockchainConfig], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainEstimateFeeConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_estimate_fee", - argNames: ["that", "target"], + TaskConstMeta get kCrateApiBlockchainBdkBlockchainCreateConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_create", + argNames: ["blockchainConfig"], ); @override - Future bdkBlockchainGetBlockHash( - {required BdkBlockchain that, required int height, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainEstimateFee( + {required BdkBlockchain that, required BigInt target}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); - var arg1 = cst_encode_u_32(height); - return wire.wire_bdk_blockchain_get_block_hash(port_, arg0, arg1); + var arg1 = cst_encode_u_64(target); + return wire.wire__crate__api__blockchain__bdk_blockchain_estimate_fee( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_String, + decodeSuccessData: dco_decode_fee_rate, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainGetBlockHashConstMeta, - argValues: [that, height], + constMeta: kCrateApiBlockchainBdkBlockchainEstimateFeeConstMeta, + argValues: [that, target], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainGetBlockHashConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_get_block_hash", - argNames: ["that", "height"], + TaskConstMeta get kCrateApiBlockchainBdkBlockchainEstimateFeeConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_estimate_fee", + argNames: ["that", "target"], ); @override - Future bdkBlockchainGetHeight( - {required BdkBlockchain that, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainGetBlockHash( + {required BdkBlockchain that, required int height}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); - return wire.wire_bdk_blockchain_get_height(port_, arg0); + var arg1 = cst_encode_u_32(height); + return wire.wire__crate__api__blockchain__bdk_blockchain_get_block_hash( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_u_32, + decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainGetHeightConstMeta, - argValues: [that], + constMeta: kCrateApiBlockchainBdkBlockchainGetBlockHashConstMeta, + argValues: [that, height], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkBlockchainGetHeightConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_get_height", - argNames: ["that"], + TaskConstMeta get kCrateApiBlockchainBdkBlockchainGetBlockHashConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_get_block_hash", + argNames: ["that", "height"], ); @override - Future bdkBlockchainNew( - {required BlockchainConfig blockchainConfig, dynamic hint}) { + Future crateApiBlockchainBdkBlockchainGetHeight( + {required BdkBlockchain that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_blockchain_config(blockchainConfig); - return wire.wire_bdk_blockchain_new(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); + return wire.wire__crate__api__blockchain__bdk_blockchain_get_height( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_bdk_blockchain, + decodeSuccessData: dco_decode_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkBlockchainNewConstMeta, - argValues: [blockchainConfig], - apiImpl: this, - hint: hint, - )); - } - - TaskConstMeta get kBdkBlockchainNewConstMeta => const TaskConstMeta( - debugName: "bdk_blockchain_new", - argNames: ["blockchainConfig"], - ); - - @override - Future bdkDescriptorAsString( - {required BdkDescriptor that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); - return wire.wire_bdk_descriptor_as_string(port_, arg0); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_String, - decodeErrorData: null, - ), - constMeta: kBdkDescriptorAsStringConstMeta, + constMeta: kCrateApiBlockchainBdkBlockchainGetHeightConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorAsStringConstMeta => const TaskConstMeta( - debugName: "bdk_descriptor_as_string", + TaskConstMeta get kCrateApiBlockchainBdkBlockchainGetHeightConstMeta => + const TaskConstMeta( + debugName: "bdk_blockchain_get_height", argNames: ["that"], ); @override - Future bdkDescriptorAsStringPrivate( - {required BdkDescriptor that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiDescriptorBdkDescriptorAsString( + {required BdkDescriptor that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); - return wire.wire_bdk_descriptor_as_string_private(port_, arg0); + return wire + .wire__crate__api__descriptor__bdk_descriptor_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkDescriptorAsStringPrivateConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorAsStringPrivateConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorAsStringConstMeta => const TaskConstMeta( - debugName: "bdk_descriptor_as_string_private", + debugName: "bdk_descriptor_as_string", argNames: ["that"], ); @override - Future bdkDescriptorMaxSatisfactionWeight( - {required BdkDescriptor that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + BigInt crateApiDescriptorBdkDescriptorMaxSatisfactionWeight( + {required BdkDescriptor that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); - return wire.wire_bdk_descriptor_max_satisfaction_weight(port_, arg0); + return wire + .wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( + arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_usize, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorMaxSatisfactionWeightConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorMaxSatisfactionWeightConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorMaxSatisfactionWeightConstMeta => - const TaskConstMeta( - debugName: "bdk_descriptor_max_satisfaction_weight", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiDescriptorBdkDescriptorMaxSatisfactionWeightConstMeta => + const TaskConstMeta( + debugName: "bdk_descriptor_max_satisfaction_weight", + argNames: ["that"], + ); @override - Future bdkDescriptorNew( - {required String descriptor, required Network network, dynamic hint}) { + Future crateApiDescriptorBdkDescriptorNew( + {required String descriptor, required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(descriptor); var arg1 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new(port_, arg0, arg1); + return wire.wire__crate__api__descriptor__bdk_descriptor_new( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewConstMeta, argValues: [descriptor, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new", argNames: ["descriptor", "network"], ); @override - Future bdkDescriptorNewBip44( + Future crateApiDescriptorBdkDescriptorNewBip44( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip44(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip44( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip44ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip44ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip44ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip44ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip44", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip44Public( + Future crateApiDescriptorBdkDescriptorNewBip44Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip44_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip44PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip44PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip44PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip44PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip44_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip49( + Future crateApiDescriptorBdkDescriptorNewBip49( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip49(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip49( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip49ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip49ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip49ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip49ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip49", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip49Public( + Future crateApiDescriptorBdkDescriptorNewBip49Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip49_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip49PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip49PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip49PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip49PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip49_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip84( + Future crateApiDescriptorBdkDescriptorNewBip84( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip84(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip84( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip84ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip84ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip84ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip84ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip84", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip84Public( + Future crateApiDescriptorBdkDescriptorNewBip84Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip84_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip84PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip84PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip84PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip84PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip84_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip86( + Future crateApiDescriptorBdkDescriptorNewBip86( {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(secretKey); var arg1 = cst_encode_keychain_kind(keychainKind); var arg2 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip86(port_, arg0, arg1, arg2); + return wire.wire__crate__api__descriptor__bdk_descriptor_new_bip86( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip86ConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip86ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip86ConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip86ConstMeta => + const TaskConstMeta( debugName: "bdk_descriptor_new_bip86", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future bdkDescriptorNewBip86Public( + Future crateApiDescriptorBdkDescriptorNewBip86Public( {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, - required Network network, - dynamic hint}) { + required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(publicKey); var arg1 = cst_encode_String(fingerprint); var arg2 = cst_encode_keychain_kind(keychainKind); var arg3 = cst_encode_network(network); - return wire.wire_bdk_descriptor_new_bip86_public( - port_, arg0, arg1, arg2, arg3); + return wire + .wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorNewBip86PublicConstMeta, + constMeta: kCrateApiDescriptorBdkDescriptorNewBip86PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorNewBip86PublicConstMeta => + TaskConstMeta get kCrateApiDescriptorBdkDescriptorNewBip86PublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_new_bip86_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future bdkDerivationPathFromString( - {required String path, dynamic hint}) { + String crateApiDescriptorBdkDescriptorToStringPrivate( + {required BdkDescriptor that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); + return wire + .wire__crate__api__descriptor__bdk_descriptor_to_string_private( + arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiDescriptorBdkDescriptorToStringPrivateConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiDescriptorBdkDescriptorToStringPrivateConstMeta => + const TaskConstMeta( + debugName: "bdk_descriptor_to_string_private", + argNames: ["that"], + ); + + @override + String crateApiKeyBdkDerivationPathAsString( + {required BdkDerivationPath that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_derivation_path(that); + return wire.wire__crate__api__key__bdk_derivation_path_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiKeyBdkDerivationPathAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiKeyBdkDerivationPathAsStringConstMeta => + const TaskConstMeta( + debugName: "bdk_derivation_path_as_string", + argNames: ["that"], + ); + + @override + Future crateApiKeyBdkDerivationPathFromString( + {required String path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(path); - return wire.wire_bdk_derivation_path_from_string(port_, arg0); + return wire.wire__crate__api__key__bdk_derivation_path_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_derivation_path, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDerivationPathFromStringConstMeta, + constMeta: kCrateApiKeyBdkDerivationPathFromStringConstMeta, argValues: [path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDerivationPathFromStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDerivationPathFromStringConstMeta => const TaskConstMeta( debugName: "bdk_derivation_path_from_string", argNames: ["path"], ); @override - Future bdkDescriptorPublicKeyAsString( - {required BdkDescriptorPublicKey that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiKeyBdkDescriptorPublicKeyAsString( + {required BdkDescriptorPublicKey that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(that); - return wire.wire_bdk_descriptor_public_key_as_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_public_key_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkDescriptorPublicKeyAsStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyAsStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyAsStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_as_string", argNames: ["that"], ); @override - Future bdkDescriptorPublicKeyDerive( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorPublicKeyDerive( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_public_key_derive(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_public_key_derive( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorPublicKeyDeriveConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyDeriveConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyDeriveConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyDeriveConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_derive", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorPublicKeyExtend( - {required BdkDescriptorPublicKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorPublicKeyExtend( + {required BdkDescriptorPublicKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_public_key_extend(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_public_key_extend( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorPublicKeyExtendConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyExtendConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyExtendConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyExtendConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_extend", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorPublicKeyFromString( - {required String publicKey, dynamic hint}) { + Future crateApiKeyBdkDescriptorPublicKeyFromString( + {required String publicKey}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(publicKey); - return wire.wire_bdk_descriptor_public_key_from_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_public_key_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorPublicKeyFromStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorPublicKeyFromStringConstMeta, argValues: [publicKey], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorPublicKeyFromStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorPublicKeyFromStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_public_key_from_string", argNames: ["publicKey"], ); @override - Future bdkDescriptorSecretKeyAsPublic( - {required BdkDescriptorSecretKey ptr, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + BdkDescriptorPublicKey crateApiKeyBdkDescriptorSecretKeyAsPublic( + {required BdkDescriptorSecretKey ptr}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(ptr); - return wire.wire_bdk_descriptor_secret_key_as_public(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_secret_key_as_public(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyAsPublicConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyAsPublicConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyAsPublicConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyAsPublicConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_as_public", argNames: ["ptr"], ); @override - Future bdkDescriptorSecretKeyAsString( - {required BdkDescriptorSecretKey that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiKeyBdkDescriptorSecretKeyAsString( + {required BdkDescriptorSecretKey that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(that); - return wire.wire_bdk_descriptor_secret_key_as_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_secret_key_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkDescriptorSecretKeyAsStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyAsStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyAsStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_as_string", argNames: ["that"], ); @override - Future bdkDescriptorSecretKeyCreate( + Future crateApiKeyBdkDescriptorSecretKeyCreate( {required Network network, required BdkMnemonic mnemonic, - String? password, - dynamic hint}) { + String? password}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_network(network); var arg1 = cst_encode_box_autoadd_bdk_mnemonic(mnemonic); var arg2 = cst_encode_opt_String(password); - return wire.wire_bdk_descriptor_secret_key_create( + return wire.wire__crate__api__key__bdk_descriptor_secret_key_create( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyCreateConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyCreateConstMeta, argValues: [network, mnemonic, password], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyCreateConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyCreateConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_create", argNames: ["network", "mnemonic", "password"], ); @override - Future bdkDescriptorSecretKeyDerive( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeyDerive( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_secret_key_derive(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_secret_key_derive( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyDeriveConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyDeriveConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyDeriveConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyDeriveConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_derive", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorSecretKeyExtend( - {required BdkDescriptorSecretKey ptr, - required BdkDerivationPath path, - dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeyExtend( + {required BdkDescriptorSecretKey ptr, required BdkDerivationPath path}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(ptr); var arg1 = cst_encode_box_autoadd_bdk_derivation_path(path); - return wire.wire_bdk_descriptor_secret_key_extend(port_, arg0, arg1); + return wire.wire__crate__api__key__bdk_descriptor_secret_key_extend( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyExtendConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyExtendConstMeta, argValues: [ptr, path], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyExtendConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyExtendConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_extend", argNames: ["ptr", "path"], ); @override - Future bdkDescriptorSecretKeyFromString( - {required String secretKey, dynamic hint}) { + Future crateApiKeyBdkDescriptorSecretKeyFromString( + {required String secretKey}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(secretKey); - return wire.wire_bdk_descriptor_secret_key_from_string(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_secret_key_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeyFromStringConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeyFromStringConstMeta, argValues: [secretKey], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeyFromStringConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeyFromStringConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_from_string", argNames: ["secretKey"], ); @override - Future bdkDescriptorSecretKeySecretBytes( - {required BdkDescriptorSecretKey that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + Uint8List crateApiKeyBdkDescriptorSecretKeySecretBytes( + {required BdkDescriptorSecretKey that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(that); - return wire.wire_bdk_descriptor_secret_key_secret_bytes(port_, arg0); + return wire + .wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( + arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkDescriptorSecretKeySecretBytesConstMeta, + constMeta: kCrateApiKeyBdkDescriptorSecretKeySecretBytesConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkDescriptorSecretKeySecretBytesConstMeta => + TaskConstMeta get kCrateApiKeyBdkDescriptorSecretKeySecretBytesConstMeta => const TaskConstMeta( debugName: "bdk_descriptor_secret_key_secret_bytes", argNames: ["that"], ); @override - Future bdkMnemonicAsString( - {required BdkMnemonic that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiKeyBdkMnemonicAsString({required BdkMnemonic that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_mnemonic(that); - return wire.wire_bdk_mnemonic_as_string(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkMnemonicAsStringConstMeta, + constMeta: kCrateApiKeyBdkMnemonicAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicAsStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicAsStringConstMeta => + const TaskConstMeta( debugName: "bdk_mnemonic_as_string", argNames: ["that"], ); @override - Future bdkMnemonicFromEntropy( - {required List entropy, dynamic hint}) { + Future crateApiKeyBdkMnemonicFromEntropy( + {required List entropy}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_list_prim_u_8_loose(entropy); - return wire.wire_bdk_mnemonic_from_entropy(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_from_entropy( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkMnemonicFromEntropyConstMeta, + constMeta: kCrateApiKeyBdkMnemonicFromEntropyConstMeta, argValues: [entropy], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicFromEntropyConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicFromEntropyConstMeta => + const TaskConstMeta( debugName: "bdk_mnemonic_from_entropy", argNames: ["entropy"], ); @override - Future bdkMnemonicFromString( - {required String mnemonic, dynamic hint}) { + Future crateApiKeyBdkMnemonicFromString( + {required String mnemonic}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(mnemonic); - return wire.wire_bdk_mnemonic_from_string(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_from_string( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkMnemonicFromStringConstMeta, + constMeta: kCrateApiKeyBdkMnemonicFromStringConstMeta, argValues: [mnemonic], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicFromStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicFromStringConstMeta => + const TaskConstMeta( debugName: "bdk_mnemonic_from_string", argNames: ["mnemonic"], ); @override - Future bdkMnemonicNew( - {required WordCount wordCount, dynamic hint}) { + Future crateApiKeyBdkMnemonicNew( + {required WordCount wordCount}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_word_count(wordCount); - return wire.wire_bdk_mnemonic_new(port_, arg0); + return wire.wire__crate__api__key__bdk_mnemonic_new(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkMnemonicNewConstMeta, + constMeta: kCrateApiKeyBdkMnemonicNewConstMeta, argValues: [wordCount], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkMnemonicNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiKeyBdkMnemonicNewConstMeta => const TaskConstMeta( debugName: "bdk_mnemonic_new", argNames: ["wordCount"], ); @override - Future bdkPsbtCombine( - {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}) { + String crateApiPsbtBdkPsbtAsString({required BdkPsbt that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_psbt(that); + return wire.wire__crate__api__psbt__bdk_psbt_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiPsbtBdkPsbtAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiPsbtBdkPsbtAsStringConstMeta => + const TaskConstMeta( + debugName: "bdk_psbt_as_string", + argNames: ["that"], + ); + + @override + Future crateApiPsbtBdkPsbtCombine( + {required BdkPsbt ptr, required BdkPsbt other}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_psbt(ptr); var arg1 = cst_encode_box_autoadd_bdk_psbt(other); - return wire.wire_bdk_psbt_combine(port_, arg0, arg1); + return wire.wire__crate__api__psbt__bdk_psbt_combine(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_psbt, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkPsbtCombineConstMeta, + constMeta: kCrateApiPsbtBdkPsbtCombineConstMeta, argValues: [ptr, other], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtCombineConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtCombineConstMeta => const TaskConstMeta( debugName: "bdk_psbt_combine", argNames: ["ptr", "other"], ); @override - Future bdkPsbtExtractTx( - {required BdkPsbt ptr, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + BdkTransaction crateApiPsbtBdkPsbtExtractTx({required BdkPsbt ptr}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_psbt(ptr); - return wire.wire_bdk_psbt_extract_tx(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_extract_tx(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_transaction, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkPsbtExtractTxConstMeta, + constMeta: kCrateApiPsbtBdkPsbtExtractTxConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtExtractTxConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtExtractTxConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_extract_tx", argNames: ["ptr"], ); @override - Future bdkPsbtFeeAmount({required BdkPsbt that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + BigInt? crateApiPsbtBdkPsbtFeeAmount({required BdkPsbt that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_fee_amount(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_fee_amount(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_u_64, decodeErrorData: null, ), - constMeta: kBdkPsbtFeeAmountConstMeta, + constMeta: kCrateApiPsbtBdkPsbtFeeAmountConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtFeeAmountConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtFeeAmountConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_fee_amount", argNames: ["that"], ); @override - Future bdkPsbtFeeRate({required BdkPsbt that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + FeeRate? crateApiPsbtBdkPsbtFeeRate({required BdkPsbt that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_fee_rate(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_fee_rate(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_fee_rate, decodeErrorData: null, ), - constMeta: kBdkPsbtFeeRateConstMeta, + constMeta: kCrateApiPsbtBdkPsbtFeeRateConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtFeeRateConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtFeeRateConstMeta => const TaskConstMeta( debugName: "bdk_psbt_fee_rate", argNames: ["that"], ); @override - Future bdkPsbtFromStr({required String psbtBase64, dynamic hint}) { + Future crateApiPsbtBdkPsbtFromStr({required String psbtBase64}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(psbtBase64); - return wire.wire_bdk_psbt_from_str(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_from_str(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_psbt, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkPsbtFromStrConstMeta, + constMeta: kCrateApiPsbtBdkPsbtFromStrConstMeta, argValues: [psbtBase64], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtFromStrConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtFromStrConstMeta => const TaskConstMeta( debugName: "bdk_psbt_from_str", argNames: ["psbtBase64"], ); @override - Future bdkPsbtJsonSerialize({required BdkPsbt that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiPsbtBdkPsbtJsonSerialize({required BdkPsbt that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_json_serialize(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_json_serialize(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkPsbtJsonSerializeConstMeta, + constMeta: kCrateApiPsbtBdkPsbtJsonSerializeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtJsonSerializeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtJsonSerializeConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_json_serialize", argNames: ["that"], ); @override - Future bdkPsbtSerialize({required BdkPsbt that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + Uint8List crateApiPsbtBdkPsbtSerialize({required BdkPsbt that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_serialize(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_serialize(arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_String, + decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: null, ), - constMeta: kBdkPsbtSerializeConstMeta, + constMeta: kCrateApiPsbtBdkPsbtSerializeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtSerializeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtSerializeConstMeta => + const TaskConstMeta( debugName: "bdk_psbt_serialize", argNames: ["that"], ); @override - Future bdkPsbtTxid({required BdkPsbt that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiPsbtBdkPsbtTxid({required BdkPsbt that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_psbt(that); - return wire.wire_bdk_psbt_txid(port_, arg0); + return wire.wire__crate__api__psbt__bdk_psbt_txid(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkPsbtTxidConstMeta, + constMeta: kCrateApiPsbtBdkPsbtTxidConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkPsbtTxidConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiPsbtBdkPsbtTxidConstMeta => const TaskConstMeta( debugName: "bdk_psbt_txid", argNames: ["that"], ); @override - Future bdkAddressAsString({required BdkAddress that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiTypesBdkAddressAsString({required BdkAddress that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_as_string(port_, arg0); + return wire.wire__crate__api__types__bdk_address_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkAddressAsStringConstMeta, + constMeta: kCrateApiTypesBdkAddressAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressAsStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressAsStringConstMeta => + const TaskConstMeta( debugName: "bdk_address_as_string", argNames: ["that"], ); @override - Future bdkAddressFromScript( - {required BdkScriptBuf script, required Network network, dynamic hint}) { + Future crateApiTypesBdkAddressFromScript( + {required BdkScriptBuf script, required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_script_buf(script); var arg1 = cst_encode_network(network); - return wire.wire_bdk_address_from_script(port_, arg0, arg1); + return wire.wire__crate__api__types__bdk_address_from_script( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_address, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkAddressFromScriptConstMeta, + constMeta: kCrateApiTypesBdkAddressFromScriptConstMeta, argValues: [script, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressFromScriptConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressFromScriptConstMeta => + const TaskConstMeta( debugName: "bdk_address_from_script", argNames: ["script", "network"], ); @override - Future bdkAddressFromString( - {required String address, required Network network, dynamic hint}) { + Future crateApiTypesBdkAddressFromString( + {required String address, required Network network}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(address); var arg1 = cst_encode_network(network); - return wire.wire_bdk_address_from_string(port_, arg0, arg1); + return wire.wire__crate__api__types__bdk_address_from_string( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_address, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkAddressFromStringConstMeta, + constMeta: kCrateApiTypesBdkAddressFromStringConstMeta, argValues: [address, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressFromStringConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressFromStringConstMeta => + const TaskConstMeta( debugName: "bdk_address_from_string", argNames: ["address", "network"], ); @override - Future bdkAddressIsValidForNetwork( - {required BdkAddress that, required Network network, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + bool crateApiTypesBdkAddressIsValidForNetwork( + {required BdkAddress that, required Network network}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(that); var arg1 = cst_encode_network(network); - return wire.wire_bdk_address_is_valid_for_network(port_, arg0, arg1); + return wire.wire__crate__api__types__bdk_address_is_valid_for_network( + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: null, ), - constMeta: kBdkAddressIsValidForNetworkConstMeta, + constMeta: kCrateApiTypesBdkAddressIsValidForNetworkConstMeta, argValues: [that, network], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressIsValidForNetworkConstMeta => + TaskConstMeta get kCrateApiTypesBdkAddressIsValidForNetworkConstMeta => const TaskConstMeta( debugName: "bdk_address_is_valid_for_network", argNames: ["that", "network"], ); @override - Future bdkAddressNetwork({required BdkAddress that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + Network crateApiTypesBdkAddressNetwork({required BdkAddress that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_network(port_, arg0); + return wire.wire__crate__api__types__bdk_address_network(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_network, decodeErrorData: null, ), - constMeta: kBdkAddressNetworkConstMeta, + constMeta: kCrateApiTypesBdkAddressNetworkConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressNetworkConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressNetworkConstMeta => + const TaskConstMeta( debugName: "bdk_address_network", argNames: ["that"], ); @override - Future bdkAddressPayload({required BdkAddress that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + Payload crateApiTypesBdkAddressPayload({required BdkAddress that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_payload(port_, arg0); + return wire.wire__crate__api__types__bdk_address_payload(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_payload, decodeErrorData: null, ), - constMeta: kBdkAddressPayloadConstMeta, + constMeta: kCrateApiTypesBdkAddressPayloadConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressPayloadConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressPayloadConstMeta => + const TaskConstMeta( debugName: "bdk_address_payload", argNames: ["that"], ); @override - Future bdkAddressScript( - {required BdkAddress ptr, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + BdkScriptBuf crateApiTypesBdkAddressScript({required BdkAddress ptr}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(ptr); - return wire.wire_bdk_address_script(port_, arg0); + return wire.wire__crate__api__types__bdk_address_script(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kBdkAddressScriptConstMeta, + constMeta: kCrateApiTypesBdkAddressScriptConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressScriptConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressScriptConstMeta => + const TaskConstMeta( debugName: "bdk_address_script", argNames: ["ptr"], ); @override - Future bdkAddressToQrUri({required BdkAddress that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + String crateApiTypesBdkAddressToQrUri({required BdkAddress that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_address(that); - return wire.wire_bdk_address_to_qr_uri(port_, arg0); + return wire.wire__crate__api__types__bdk_address_to_qr_uri(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kBdkAddressToQrUriConstMeta, + constMeta: kCrateApiTypesBdkAddressToQrUriConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkAddressToQrUriConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkAddressToQrUriConstMeta => + const TaskConstMeta( debugName: "bdk_address_to_qr_uri", argNames: ["that"], ); @override - Future bdkScriptBufEmpty({dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - return wire.wire_bdk_script_buf_empty(port_); + String crateApiTypesBdkScriptBufAsString({required BdkScriptBuf that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_bdk_script_buf(that); + return wire.wire__crate__api__types__bdk_script_buf_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiTypesBdkScriptBufAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiTypesBdkScriptBufAsStringConstMeta => + const TaskConstMeta( + debugName: "bdk_script_buf_as_string", + argNames: ["that"], + ); + + @override + BdkScriptBuf crateApiTypesBdkScriptBufEmpty() { + return handler.executeSync(SyncTask( + callFfi: () { + return wire.wire__crate__api__types__bdk_script_buf_empty(); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kBdkScriptBufEmptyConstMeta, + constMeta: kCrateApiTypesBdkScriptBufEmptyConstMeta, argValues: [], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkScriptBufEmptyConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkScriptBufEmptyConstMeta => + const TaskConstMeta( debugName: "bdk_script_buf_empty", argNames: [], ); @override - Future bdkScriptBufFromHex({required String s, dynamic hint}) { + Future crateApiTypesBdkScriptBufFromHex({required String s}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(s); - return wire.wire_bdk_script_buf_from_hex(port_, arg0); + return wire.wire__crate__api__types__bdk_script_buf_from_hex( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkScriptBufFromHexConstMeta, + constMeta: kCrateApiTypesBdkScriptBufFromHexConstMeta, argValues: [s], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkScriptBufFromHexConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkScriptBufFromHexConstMeta => + const TaskConstMeta( debugName: "bdk_script_buf_from_hex", argNames: ["s"], ); @override - Future bdkScriptBufWithCapacity( - {required int capacity, dynamic hint}) { + Future crateApiTypesBdkScriptBufWithCapacity( + {required BigInt capacity}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_usize(capacity); - return wire.wire_bdk_script_buf_with_capacity(port_, arg0); + return wire.wire__crate__api__types__bdk_script_buf_with_capacity( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kBdkScriptBufWithCapacityConstMeta, + constMeta: kCrateApiTypesBdkScriptBufWithCapacityConstMeta, argValues: [capacity], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkScriptBufWithCapacityConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkScriptBufWithCapacityConstMeta => + const TaskConstMeta( debugName: "bdk_script_buf_with_capacity", argNames: ["capacity"], ); @override - Future bdkTransactionFromBytes( - {required List transactionBytes, dynamic hint}) { + Future crateApiTypesBdkTransactionFromBytes( + {required List transactionBytes}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_list_prim_u_8_loose(transactionBytes); - return wire.wire_bdk_transaction_from_bytes(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_from_bytes( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_transaction, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionFromBytesConstMeta, + constMeta: kCrateApiTypesBdkTransactionFromBytesConstMeta, argValues: [transactionBytes], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionFromBytesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionFromBytesConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_from_bytes", argNames: ["transactionBytes"], ); @override - Future> bdkTransactionInput( - {required BdkTransaction that, dynamic hint}) { + Future> crateApiTypesBdkTransactionInput( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_input(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_input(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_tx_in, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionInputConstMeta, + constMeta: kCrateApiTypesBdkTransactionInputConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionInputConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionInputConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_input", argNames: ["that"], ); @override - Future bdkTransactionIsCoinBase( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionIsCoinBase( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_is_coin_base(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_is_coin_base( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionIsCoinBaseConstMeta, + constMeta: kCrateApiTypesBdkTransactionIsCoinBaseConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionIsCoinBaseConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionIsCoinBaseConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_is_coin_base", argNames: ["that"], ); @override - Future bdkTransactionIsExplicitlyRbf( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionIsExplicitlyRbf( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_is_explicitly_rbf(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_is_explicitly_rbf( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionIsExplicitlyRbfConstMeta, + constMeta: kCrateApiTypesBdkTransactionIsExplicitlyRbfConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionIsExplicitlyRbfConstMeta => + TaskConstMeta get kCrateApiTypesBdkTransactionIsExplicitlyRbfConstMeta => const TaskConstMeta( debugName: "bdk_transaction_is_explicitly_rbf", argNames: ["that"], ); @override - Future bdkTransactionIsLockTimeEnabled( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionIsLockTimeEnabled( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_is_lock_time_enabled(port_, arg0); + return wire + .wire__crate__api__types__bdk_transaction_is_lock_time_enabled( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionIsLockTimeEnabledConstMeta, + constMeta: kCrateApiTypesBdkTransactionIsLockTimeEnabledConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionIsLockTimeEnabledConstMeta => + TaskConstMeta get kCrateApiTypesBdkTransactionIsLockTimeEnabledConstMeta => const TaskConstMeta( debugName: "bdk_transaction_is_lock_time_enabled", argNames: ["that"], ); @override - Future bdkTransactionLockTime( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionLockTime( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_lock_time(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_lock_time( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_lock_time, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionLockTimeConstMeta, + constMeta: kCrateApiTypesBdkTransactionLockTimeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionLockTimeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionLockTimeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_lock_time", argNames: ["that"], ); @override - Future bdkTransactionNew( + Future crateApiTypesBdkTransactionNew( {required int version, required LockTime lockTime, required List input, - required List output, - dynamic hint}) { + required List output}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_i_32(version); var arg1 = cst_encode_box_autoadd_lock_time(lockTime); var arg2 = cst_encode_list_tx_in(input); var arg3 = cst_encode_list_tx_out(output); - return wire.wire_bdk_transaction_new(port_, arg0, arg1, arg2, arg3); + return wire.wire__crate__api__types__bdk_transaction_new( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_transaction, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionNewConstMeta, + constMeta: kCrateApiTypesBdkTransactionNewConstMeta, argValues: [version, lockTime, input, output], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionNewConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_new", argNames: ["version", "lockTime", "input", "output"], ); @override - Future> bdkTransactionOutput( - {required BdkTransaction that, dynamic hint}) { + Future> crateApiTypesBdkTransactionOutput( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_output(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_output( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_tx_out, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionOutputConstMeta, + constMeta: kCrateApiTypesBdkTransactionOutputConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionOutputConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionOutputConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_output", argNames: ["that"], ); @override - Future bdkTransactionSerialize( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionSerialize( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_serialize(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_serialize( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionSerializeConstMeta, + constMeta: kCrateApiTypesBdkTransactionSerializeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionSerializeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionSerializeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_serialize", argNames: ["that"], ); @override - Future bdkTransactionSize({required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionSize( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_size(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_size(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionSizeConstMeta, + constMeta: kCrateApiTypesBdkTransactionSizeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionSizeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionSizeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_size", argNames: ["that"], ); @override - Future bdkTransactionTxid( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionTxid( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_txid(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_txid(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionTxidConstMeta, + constMeta: kCrateApiTypesBdkTransactionTxidConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionTxidConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionTxidConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_txid", argNames: ["that"], ); @override - Future bdkTransactionVersion( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionVersion( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_version(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_version( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_i_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionVersionConstMeta, + constMeta: kCrateApiTypesBdkTransactionVersionConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionVersionConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionVersionConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_version", argNames: ["that"], ); @override - Future bdkTransactionVsize( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionVsize( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_vsize(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_vsize(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionVsizeConstMeta, + constMeta: kCrateApiTypesBdkTransactionVsizeConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionVsizeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionVsizeConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_vsize", argNames: ["that"], ); @override - Future bdkTransactionWeight( - {required BdkTransaction that, dynamic hint}) { + Future crateApiTypesBdkTransactionWeight( + {required BdkTransaction that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_transaction(that); - return wire.wire_bdk_transaction_weight(port_, arg0); + return wire.wire__crate__api__types__bdk_transaction_weight( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkTransactionWeightConstMeta, + constMeta: kCrateApiTypesBdkTransactionWeightConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkTransactionWeightConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiTypesBdkTransactionWeightConstMeta => + const TaskConstMeta( debugName: "bdk_transaction_weight", argNames: ["that"], ); @override - Future<(BdkAddress, int)> bdkWalletGetAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) { + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); - return wire.wire_bdk_wallet_get_address(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_get_address( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_address_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetAddressConstMeta, + constMeta: kCrateApiWalletBdkWalletGetAddressConstMeta, argValues: [ptr, addressIndex], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetAddressConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletGetAddressConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_get_address", argNames: ["ptr", "addressIndex"], ); @override - Future bdkWalletGetBalance({required BdkWallet that, dynamic hint}) { + Future crateApiWalletBdkWalletGetBalance({required BdkWallet that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire_bdk_wallet_get_balance(port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_get_balance( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_balance, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetBalanceConstMeta, + constMeta: kCrateApiWalletBdkWalletGetBalanceConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetBalanceConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletGetBalanceConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_get_balance", argNames: ["that"], ); @override - Future bdkWalletGetDescriptorForKeychain( - {required BdkWallet ptr, required KeychainKind keychain, dynamic hint}) { + Future crateApiWalletBdkWalletGetDescriptorForKeychain( + {required BdkWallet ptr, required KeychainKind keychain}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_keychain_kind(keychain); - return wire.wire_bdk_wallet_get_descriptor_for_keychain( - port_, arg0, arg1); + return wire + .wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetDescriptorForKeychainConstMeta, + constMeta: kCrateApiWalletBdkWalletGetDescriptorForKeychainConstMeta, argValues: [ptr, keychain], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetDescriptorForKeychainConstMeta => + TaskConstMeta get kCrateApiWalletBdkWalletGetDescriptorForKeychainConstMeta => const TaskConstMeta( debugName: "bdk_wallet_get_descriptor_for_keychain", argNames: ["ptr", "keychain"], ); @override - Future<(BdkAddress, int)> bdkWalletGetInternalAddress( - {required BdkWallet ptr, - required AddressIndex addressIndex, - dynamic hint}) { + Future<(BdkAddress, int)> crateApiWalletBdkWalletGetInternalAddress( + {required BdkWallet ptr, required AddressIndex addressIndex}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); - return wire.wire_bdk_wallet_get_internal_address(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_get_internal_address( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_address_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetInternalAddressConstMeta, + constMeta: kCrateApiWalletBdkWalletGetInternalAddressConstMeta, argValues: [ptr, addressIndex], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetInternalAddressConstMeta => + TaskConstMeta get kCrateApiWalletBdkWalletGetInternalAddressConstMeta => const TaskConstMeta( debugName: "bdk_wallet_get_internal_address", argNames: ["ptr", "addressIndex"], ); @override - Future bdkWalletGetPsbtInput( + Future crateApiWalletBdkWalletGetPsbtInput( {required BdkWallet that, required LocalUtxo utxo, required bool onlyWitnessUtxo, - PsbtSigHashType? sighashType, - dynamic hint}) { + PsbtSigHashType? sighashType}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_box_autoadd_local_utxo(utxo); var arg2 = cst_encode_bool(onlyWitnessUtxo); var arg3 = cst_encode_opt_box_autoadd_psbt_sig_hash_type(sighashType); - return wire.wire_bdk_wallet_get_psbt_input( + return wire.wire__crate__api__wallet__bdk_wallet_get_psbt_input( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_input, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletGetPsbtInputConstMeta, + constMeta: kCrateApiWalletBdkWalletGetPsbtInputConstMeta, argValues: [that, utxo, onlyWitnessUtxo, sighashType], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletGetPsbtInputConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletGetPsbtInputConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_get_psbt_input", argNames: ["that", "utxo", "onlyWitnessUtxo", "sighashType"], ); @override - Future bdkWalletIsMine( - {required BdkWallet that, required BdkScriptBuf script, dynamic hint}) { + Future crateApiWalletBdkWalletIsMine( + {required BdkWallet that, required BdkScriptBuf script}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_box_autoadd_bdk_script_buf(script); - return wire.wire_bdk_wallet_is_mine(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_is_mine( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletIsMineConstMeta, + constMeta: kCrateApiWalletBdkWalletIsMineConstMeta, argValues: [that, script], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletIsMineConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletIsMineConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_is_mine", argNames: ["that", "script"], ); @override - Future> bdkWalletListTransactions( - {required BdkWallet that, required bool includeRaw, dynamic hint}) { + Future> crateApiWalletBdkWalletListTransactions( + {required BdkWallet that, required bool includeRaw}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_bool(includeRaw); - return wire.wire_bdk_wallet_list_transactions(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_list_transactions( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_transaction_details, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletListTransactionsConstMeta, + constMeta: kCrateApiWalletBdkWalletListTransactionsConstMeta, argValues: [that, includeRaw], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletListTransactionsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletListTransactionsConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_list_transactions", argNames: ["that", "includeRaw"], ); @override - Future> bdkWalletListUnspent( - {required BdkWallet that, dynamic hint}) { + Future> crateApiWalletBdkWalletListUnspent( + {required BdkWallet that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire_bdk_wallet_list_unspent(port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_list_unspent( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_local_utxo, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletListUnspentConstMeta, + constMeta: kCrateApiWalletBdkWalletListUnspentConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletListUnspentConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletListUnspentConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_list_unspent", argNames: ["that"], ); @override - Future bdkWalletNetwork({required BdkWallet that, dynamic hint}) { + Future crateApiWalletBdkWalletNetwork({required BdkWallet that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire_bdk_wallet_network(port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_network(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_network, decodeErrorData: null, ), - constMeta: kBdkWalletNetworkConstMeta, + constMeta: kCrateApiWalletBdkWalletNetworkConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletNetworkConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletNetworkConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_network", argNames: ["that"], ); @override - Future bdkWalletNew( + Future crateApiWalletBdkWalletNew( {required BdkDescriptor descriptor, BdkDescriptor? changeDescriptor, required Network network, - required DatabaseConfig databaseConfig, - dynamic hint}) { + required DatabaseConfig databaseConfig}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_descriptor(descriptor); var arg1 = cst_encode_opt_box_autoadd_bdk_descriptor(changeDescriptor); var arg2 = cst_encode_network(network); var arg3 = cst_encode_box_autoadd_database_config(databaseConfig); - return wire.wire_bdk_wallet_new(port_, arg0, arg1, arg2, arg3); + return wire.wire__crate__api__wallet__bdk_wallet_new( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_wallet, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletNewConstMeta, + constMeta: kCrateApiWalletBdkWalletNewConstMeta, argValues: [descriptor, changeDescriptor, network, databaseConfig], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletNewConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletNewConstMeta => const TaskConstMeta( debugName: "bdk_wallet_new", argNames: [ "descriptor", @@ -2417,70 +2465,68 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { ); @override - Future bdkWalletSign( + Future crateApiWalletBdkWalletSign( {required BdkWallet ptr, required BdkPsbt psbt, - SignOptions? signOptions, - dynamic hint}) { + SignOptions? signOptions}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_bdk_psbt(psbt); var arg2 = cst_encode_opt_box_autoadd_sign_options(signOptions); - return wire.wire_bdk_wallet_sign(port_, arg0, arg1, arg2); + return wire.wire__crate__api__wallet__bdk_wallet_sign( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletSignConstMeta, + constMeta: kCrateApiWalletBdkWalletSignConstMeta, argValues: [ptr, psbt, signOptions], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletSignConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletSignConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_sign", argNames: ["ptr", "psbt", "signOptions"], ); @override - Future bdkWalletSync( - {required BdkWallet ptr, - required BdkBlockchain blockchain, - dynamic hint}) { + Future crateApiWalletBdkWalletSync( + {required BdkWallet ptr, required BdkBlockchain blockchain}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_bdk_blockchain(blockchain); - return wire.wire_bdk_wallet_sync(port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_sync( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBdkWalletSyncConstMeta, + constMeta: kCrateApiWalletBdkWalletSyncConstMeta, argValues: [ptr, blockchain], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kBdkWalletSyncConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletBdkWalletSyncConstMeta => + const TaskConstMeta( debugName: "bdk_wallet_sync", argNames: ["ptr", "blockchain"], ); @override - Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletFinishBumpFeeTxBuilder( {required String txid, required double feeRate, BdkAddress? allowShrinking, required BdkWallet wallet, required bool enableRbf, - int? nSequence, - dynamic hint}) { + int? nSequence}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(txid); @@ -2489,21 +2535,21 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { var arg3 = cst_encode_box_autoadd_bdk_wallet(wallet); var arg4 = cst_encode_bool(enableRbf); var arg5 = cst_encode_opt_box_autoadd_u_32(nSequence); - return wire.wire_finish_bump_fee_tx_builder( + return wire.wire__crate__api__wallet__finish_bump_fee_tx_builder( port_, arg0, arg1, arg2, arg3, arg4, arg5); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_psbt_transaction_details, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kFinishBumpFeeTxBuilderConstMeta, + constMeta: kCrateApiWalletFinishBumpFeeTxBuilderConstMeta, argValues: [txid, feeRate, allowShrinking, wallet, enableRbf, nSequence], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kFinishBumpFeeTxBuilderConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletFinishBumpFeeTxBuilderConstMeta => + const TaskConstMeta( debugName: "finish_bump_fee_tx_builder", argNames: [ "txid", @@ -2516,21 +2562,20 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { ); @override - Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( + Future<(BdkPsbt, TransactionDetails)> crateApiWalletTxBuilderFinish( {required BdkWallet wallet, required List recipients, required List utxos, - (OutPoint, Input, int)? foreignUtxo, + (OutPoint, Input, BigInt)? foreignUtxo, required List unSpendable, required ChangeSpendPolicy changePolicy, required bool manuallySelectedOnly, double? feeRate, - int? feeAbsolute, + BigInt? feeAbsolute, required bool drainWallet, BdkScriptBuf? drainTo, RbfValue? rbf, - required List data, - dynamic hint}) { + required List data}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_bdk_wallet(wallet); @@ -2547,14 +2592,27 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { var arg10 = cst_encode_opt_box_autoadd_bdk_script_buf(drainTo); var arg11 = cst_encode_opt_box_autoadd_rbf_value(rbf); var arg12 = cst_encode_list_prim_u_8_loose(data); - return wire.wire_tx_builder_finish(port_, arg0, arg1, arg2, arg3, arg4, - arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + return wire.wire__crate__api__wallet__tx_builder_finish( + port_, + arg0, + arg1, + arg2, + arg3, + arg4, + arg5, + arg6, + arg7, + arg8, + arg9, + arg10, + arg11, + arg12); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_psbt_transaction_details, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTxBuilderFinishConstMeta, + constMeta: kCrateApiWalletTxBuilderFinishConstMeta, argValues: [ wallet, recipients, @@ -2571,11 +2629,11 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { data ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kTxBuilderFinishConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWalletTxBuilderFinishConstMeta => + const TaskConstMeta( debugName: "tx_builder_finish", argNames: [ "wallet", @@ -2595,148 +2653,153 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { ); RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_AnyBlockchain => - wire.rust_arc_increment_strong_count_RustOpaque_AnyBlockchain; + get rust_arc_increment_strong_count_Address => + wire.rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_AnyBlockchain => - wire.rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain; + get rust_arc_decrement_strong_count_Address => + wire.rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ExtendedDescriptor => - wire.rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor; + get rust_arc_increment_strong_count_DerivationPath => wire + .rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ExtendedDescriptor => - wire.rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor; + get rust_arc_decrement_strong_count_DerivationPath => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexPartiallySignedTransaction => wire - .rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction; + get rust_arc_increment_strong_count_AnyBlockchain => wire + .rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction => wire - .rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction; + get rust_arc_decrement_strong_count_AnyBlockchain => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexBdkWalletAnyDatabase => wire - .rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase; + get rust_arc_increment_strong_count_ExtendedDescriptor => wire + .rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabase => wire - .rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase; + get rust_arc_decrement_strong_count_ExtendedDescriptor => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BdkBitcoinAddress => - wire.rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress; + get rust_arc_increment_strong_count_DescriptorPublicKey => wire + .rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BdkBitcoinAddress => - wire.rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress; + get rust_arc_decrement_strong_count_DescriptorPublicKey => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_BitcoinBip32DerivationPath => wire - .rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath; + get rust_arc_increment_strong_count_DescriptorSecretKey => wire + .rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPath => wire - .rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath; + get rust_arc_decrement_strong_count_DescriptorSecretKey => wire + .rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorPublicKey => wire - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey; + get rust_arc_increment_strong_count_KeyMap => + wire.rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorPublicKey => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey; + get rust_arc_decrement_strong_count_KeyMap => + wire.rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysDescriptorSecretKey => wire - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey; + get rust_arc_increment_strong_count_Mnemonic => + wire.rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysDescriptorSecretKey => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey; + get rust_arc_decrement_strong_count_Mnemonic => + wire.rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysKeyMap => - wire.rust_arc_increment_strong_count_RustOpaque_keysKeyMap; + get rust_arc_increment_strong_count_MutexWalletAnyDatabase => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysKeyMap => - wire.rust_arc_decrement_strong_count_RustOpaque_keysKeyMap; + get rust_arc_decrement_strong_count_MutexWalletAnyDatabase => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_KeysBip39Mnemonic => - wire.rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic; + get rust_arc_increment_strong_count_MutexPartiallySignedTransaction => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_KeysBip39Mnemonic => - wire.rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransaction => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction; @protected - AnyBlockchain dco_decode_RustOpaque_AnyBlockchain(dynamic raw) { + Address dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return AnyBlockchain.dcoDecode(raw as List); + return AddressImpl.frbInternalDcoDecode(raw as List); } @protected - ExtendedDescriptor dco_decode_RustOpaque_ExtendedDescriptor(dynamic raw) { + DerivationPath dco_decode_RustOpaque_bdkbitcoinbip32DerivationPath( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ExtendedDescriptor.dcoDecode(raw as List); + return DerivationPathImpl.frbInternalDcoDecode(raw as List); } @protected - MutexPartiallySignedTransaction - dco_decode_RustOpaque_MutexPartiallySignedTransaction(dynamic raw) { + AnyBlockchain dco_decode_RustOpaque_bdkblockchainAnyBlockchain(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return MutexPartiallySignedTransaction.dcoDecode(raw as List); + return AnyBlockchainImpl.frbInternalDcoDecode(raw as List); } @protected - MutexBdkWalletAnyDatabase dco_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor dco_decode_RustOpaque_bdkdescriptorExtendedDescriptor( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return MutexBdkWalletAnyDatabase.dcoDecode(raw as List); + return ExtendedDescriptorImpl.frbInternalDcoDecode(raw as List); } @protected - BdkBitcoinAddress dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw) { + DescriptorPublicKey dco_decode_RustOpaque_bdkkeysDescriptorPublicKey( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return BdkBitcoinAddress.dcoDecode(raw as List); + return DescriptorPublicKeyImpl.frbInternalDcoDecode(raw as List); } @protected - BitcoinBip32DerivationPath dco_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey dco_decode_RustOpaque_bdkkeysDescriptorSecretKey( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return BitcoinBip32DerivationPath.dcoDecode(raw as List); + return DescriptorSecretKeyImpl.frbInternalDcoDecode(raw as List); } @protected - KeysDescriptorPublicKey dco_decode_RustOpaque_keysDescriptorPublicKey( - dynamic raw) { + KeyMap dco_decode_RustOpaque_bdkkeysKeyMap(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysDescriptorPublicKey.dcoDecode(raw as List); + return KeyMapImpl.frbInternalDcoDecode(raw as List); } @protected - KeysDescriptorSecretKey dco_decode_RustOpaque_keysDescriptorSecretKey( - dynamic raw) { + Mnemonic dco_decode_RustOpaque_bdkkeysbip39Mnemonic(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysDescriptorSecretKey.dcoDecode(raw as List); + return MnemonicImpl.frbInternalDcoDecode(raw as List); } @protected - KeysKeyMap dco_decode_RustOpaque_keysKeyMap(dynamic raw) { + MutexWalletAnyDatabase + dco_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysKeyMap.dcoDecode(raw as List); + return MutexWalletAnyDatabaseImpl.frbInternalDcoDecode( + raw as List); } @protected - KeysBip39Mnemonic dco_decode_RustOpaque_keysbip39Mnemonic(dynamic raw) { + MutexPartiallySignedTransaction + dco_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return KeysBip39Mnemonic.dcoDecode(raw as List); + return MutexPartiallySignedTransactionImpl.frbInternalDcoDecode( + raw as List); } @protected @@ -2878,7 +2941,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkBlockchain( - ptr: dco_decode_RustOpaque_AnyBlockchain(arr[0]), + ptr: dco_decode_RustOpaque_bdkblockchainAnyBlockchain(arr[0]), ); } @@ -2889,7 +2952,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkDerivationPath( - ptr: dco_decode_RustOpaque_bitcoinbip32DerivationPath(arr[0]), + ptr: dco_decode_RustOpaque_bdkbitcoinbip32DerivationPath(arr[0]), ); } @@ -2900,8 +2963,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return BdkDescriptor( - extendedDescriptor: dco_decode_RustOpaque_ExtendedDescriptor(arr[0]), - keyMap: dco_decode_RustOpaque_keysKeyMap(arr[1]), + extendedDescriptor: + dco_decode_RustOpaque_bdkdescriptorExtendedDescriptor(arr[0]), + keyMap: dco_decode_RustOpaque_bdkkeysKeyMap(arr[1]), ); } @@ -2912,7 +2976,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkDescriptorPublicKey( - ptr: dco_decode_RustOpaque_keysDescriptorPublicKey(arr[0]), + ptr: dco_decode_RustOpaque_bdkkeysDescriptorPublicKey(arr[0]), ); } @@ -2923,7 +2987,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkDescriptorSecretKey( - ptr: dco_decode_RustOpaque_keysDescriptorSecretKey(arr[0]), + ptr: dco_decode_RustOpaque_bdkkeysDescriptorSecretKey(arr[0]), ); } @@ -3112,7 +3176,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkMnemonic( - ptr: dco_decode_RustOpaque_keysbip39Mnemonic(arr[0]), + ptr: dco_decode_RustOpaque_bdkkeysbip39Mnemonic(arr[0]), ); } @@ -3123,7 +3187,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkPsbt( - ptr: dco_decode_RustOpaque_MutexPartiallySignedTransaction(arr[0]), + ptr: + dco_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + arr[0]), ); } @@ -3145,7 +3211,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkTransaction( - inner: dco_decode_String(arr[0]), + s: dco_decode_String(arr[0]), ); } @@ -3156,7 +3222,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); return BdkWallet( - ptr: dco_decode_RustOpaque_MutexbdkWalletAnyDatabase(arr[0]), + ptr: dco_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + arr[0]), ); } @@ -3370,10 +3437,10 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) dco_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) dco_decode_box_autoadd_record_out_point_input_usize( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as (OutPoint, Input, int); + return raw as (OutPoint, Input, BigInt); } @protected @@ -3415,7 +3482,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int dco_decode_box_autoadd_u_64(dynamic raw) { + BigInt dco_decode_box_autoadd_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return dco_decode_u_64(raw); } @@ -3778,7 +3845,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? dco_decode_opt_box_autoadd_record_out_point_input_usize(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null @@ -3805,7 +3872,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw) { + BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null ? null : dco_decode_box_autoadd_u_64(raw); } @@ -3904,7 +3971,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw) { + (OutPoint, Input, BigInt) dco_decode_record_out_point_input_usize( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 3) { @@ -4047,9 +4115,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @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 @@ -4071,9 +4139,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int dco_decode_usize(dynamic raw) { + BigInt dco_decode_usize(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + return dcoDecodeU64(raw); } @protected @@ -4095,82 +4163,83 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - AnyBlockchain sse_decode_RustOpaque_AnyBlockchain( + Address sse_decode_RustOpaque_bdkbitcoinAddress( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return AnyBlockchain.sseDecode( + return AddressImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ExtendedDescriptor sse_decode_RustOpaque_ExtendedDescriptor( + DerivationPath sse_decode_RustOpaque_bdkbitcoinbip32DerivationPath( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ExtendedDescriptor.sseDecode( + return DerivationPathImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - MutexPartiallySignedTransaction - sse_decode_RustOpaque_MutexPartiallySignedTransaction( - SseDeserializer deserializer) { + AnyBlockchain sse_decode_RustOpaque_bdkblockchainAnyBlockchain( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return MutexPartiallySignedTransaction.sseDecode( + return AnyBlockchainImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - MutexBdkWalletAnyDatabase sse_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor sse_decode_RustOpaque_bdkdescriptorExtendedDescriptor( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return MutexBdkWalletAnyDatabase.sseDecode( + return ExtendedDescriptorImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - BdkBitcoinAddress sse_decode_RustOpaque_bdkbitcoinAddress( + DescriptorPublicKey sse_decode_RustOpaque_bdkkeysDescriptorPublicKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return BdkBitcoinAddress.sseDecode( + return DescriptorPublicKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - BitcoinBip32DerivationPath sse_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey sse_decode_RustOpaque_bdkkeysDescriptorSecretKey( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return BitcoinBip32DerivationPath.sseDecode( + return DescriptorSecretKeyImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysDescriptorPublicKey sse_decode_RustOpaque_keysDescriptorPublicKey( - SseDeserializer deserializer) { + KeyMap sse_decode_RustOpaque_bdkkeysKeyMap(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysDescriptorPublicKey.sseDecode( + return KeyMapImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysDescriptorSecretKey sse_decode_RustOpaque_keysDescriptorSecretKey( + Mnemonic sse_decode_RustOpaque_bdkkeysbip39Mnemonic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysDescriptorSecretKey.sseDecode( + return MnemonicImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysKeyMap sse_decode_RustOpaque_keysKeyMap(SseDeserializer deserializer) { + MutexWalletAnyDatabase + sse_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysKeyMap.sseDecode( + return MutexWalletAnyDatabaseImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - KeysBip39Mnemonic sse_decode_RustOpaque_keysbip39Mnemonic( - SseDeserializer deserializer) { + MutexPartiallySignedTransaction + sse_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return KeysBip39Mnemonic.sseDecode( + return MutexPartiallySignedTransactionImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @@ -4305,7 +4374,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected BdkBlockchain sse_decode_bdk_blockchain(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_AnyBlockchain(deserializer); + var var_ptr = + sse_decode_RustOpaque_bdkblockchainAnyBlockchain(deserializer); return BdkBlockchain(ptr: var_ptr); } @@ -4314,7 +4384,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_ptr = - sse_decode_RustOpaque_bitcoinbip32DerivationPath(deserializer); + sse_decode_RustOpaque_bdkbitcoinbip32DerivationPath(deserializer); return BdkDerivationPath(ptr: var_ptr); } @@ -4322,8 +4392,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkDescriptor sse_decode_bdk_descriptor(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_extendedDescriptor = - sse_decode_RustOpaque_ExtendedDescriptor(deserializer); - var var_keyMap = sse_decode_RustOpaque_keysKeyMap(deserializer); + sse_decode_RustOpaque_bdkdescriptorExtendedDescriptor(deserializer); + var var_keyMap = sse_decode_RustOpaque_bdkkeysKeyMap(deserializer); return BdkDescriptor( extendedDescriptor: var_extendedDescriptor, keyMap: var_keyMap); } @@ -4332,7 +4402,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkDescriptorPublicKey sse_decode_bdk_descriptor_public_key( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysDescriptorPublicKey(deserializer); + var var_ptr = + sse_decode_RustOpaque_bdkkeysDescriptorPublicKey(deserializer); return BdkDescriptorPublicKey(ptr: var_ptr); } @@ -4340,7 +4411,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkDescriptorSecretKey sse_decode_bdk_descriptor_secret_key( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysDescriptorSecretKey(deserializer); + var var_ptr = + sse_decode_RustOpaque_bdkkeysDescriptorSecretKey(deserializer); return BdkDescriptorSecretKey(ptr: var_ptr); } @@ -4493,7 +4565,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected BdkMnemonic sse_decode_bdk_mnemonic(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysbip39Mnemonic(deserializer); + var var_ptr = sse_decode_RustOpaque_bdkkeysbip39Mnemonic(deserializer); return BdkMnemonic(ptr: var_ptr); } @@ -4501,7 +4573,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { BdkPsbt sse_decode_bdk_psbt(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_ptr = - sse_decode_RustOpaque_MutexPartiallySignedTransaction(deserializer); + sse_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + deserializer); return BdkPsbt(ptr: var_ptr); } @@ -4515,14 +4588,16 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected BdkTransaction sse_decode_bdk_transaction(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_inner = sse_decode_String(deserializer); - return BdkTransaction(inner: var_inner); + var var_s = sse_decode_String(deserializer); + return BdkTransaction(s: var_s); } @protected BdkWallet sse_decode_bdk_wallet(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_MutexbdkWalletAnyDatabase(deserializer); + var var_ptr = + sse_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + deserializer); return BdkWallet(ptr: var_ptr); } @@ -4746,7 +4821,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) sse_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_record_out_point_input_usize(deserializer)); @@ -4793,7 +4868,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { + BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_u_64(deserializer)); } @@ -5252,7 +5327,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? sse_decode_opt_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5301,7 +5376,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { + BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -5394,7 +5469,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_record_out_point_input_usize( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_field0 = sse_decode_out_point(deserializer); @@ -5529,9 +5604,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int sse_decode_u_64(SseDeserializer deserializer) { + BigInt sse_decode_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + return deserializer.buffer.getBigUint64(); } @protected @@ -5553,9 +5628,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int sse_decode_usize(SseDeserializer deserializer) { + BigInt sse_decode_usize(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + return deserializer.buffer.getBigUint64(); } @protected @@ -5580,78 +5655,78 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw) { + int cst_encode_RustOpaque_bdkbitcoinAddress(Address raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as AddressImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_ExtendedDescriptor(ExtendedDescriptor raw) { + int cst_encode_RustOpaque_bdkbitcoinbip32DerivationPath(DerivationPath raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as DerivationPathImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction raw) { + int cst_encode_RustOpaque_bdkblockchainAnyBlockchain(AnyBlockchain raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as AnyBlockchainImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase raw) { + int cst_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ExtendedDescriptorImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_bdkbitcoinAddress(BdkBitcoinAddress raw) { + int cst_encode_RustOpaque_bdkkeysDescriptorPublicKey( + DescriptorPublicKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as DescriptorPublicKeyImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath raw) { + int cst_encode_RustOpaque_bdkkeysDescriptorSecretKey( + DescriptorSecretKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as DescriptorSecretKeyImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey raw) { + int cst_encode_RustOpaque_bdkkeysKeyMap(KeyMap raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as KeyMapImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey raw) { + int cst_encode_RustOpaque_bdkkeysbip39Mnemonic(Mnemonic raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MnemonicImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysKeyMap(KeysKeyMap raw) { + int cst_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MutexWalletAnyDatabaseImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_keysbip39Mnemonic(KeysBip39Mnemonic raw) { + int cst_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MutexPartiallySignedTransactionImpl).frbInternalCstEncode(); } @protected @@ -5708,12 +5783,6 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { return raw; } - @protected - int cst_encode_usize(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; - } - @protected int cst_encode_variant(Variant raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -5733,73 +5802,92 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_RustOpaque_AnyBlockchain( - AnyBlockchain self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkbitcoinAddress( + Address 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 AddressImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_ExtendedDescriptor( - ExtendedDescriptor self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkbitcoinbip32DerivationPath( + DerivationPath 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 DerivationPathImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkblockchainAnyBlockchain( + AnyBlockchain 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 AnyBlockchainImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor 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 ExtendedDescriptorImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_bdkbitcoinAddress( - BdkBitcoinAddress self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysDescriptorPublicKey( + DescriptorPublicKey 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 DescriptorPublicKeyImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysDescriptorSecretKey( + DescriptorSecretKey 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 DescriptorSecretKeyImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysKeyMap( + KeyMap 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 KeyMapImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey self, SseSerializer serializer) { + void sse_encode_RustOpaque_bdkkeysbip39Mnemonic( + Mnemonic 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 MnemonicImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_keysKeyMap( - KeysKeyMap self, SseSerializer serializer) { + void sse_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase 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 MutexWalletAnyDatabaseImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_keysbip39Mnemonic( - KeysBip39Mnemonic self, SseSerializer serializer) { + void + sse_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction 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 MutexPartiallySignedTransactionImpl) + .frbInternalSseEncode(move: null), + serializer); } @protected @@ -5859,6 +5947,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_network(networkRequired, serializer); sse_encode_network(networkFound, serializer); sse_encode_String(address, serializer); + default: + throw UnimplementedError(''); } } @@ -5876,6 +5966,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case AddressIndex_Reset(index: final index): sse_encode_i_32(3, serializer); sse_encode_u_32(index, serializer); + default: + throw UnimplementedError(''); } } @@ -5892,6 +5984,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case Auth_Cookie(file: final file): sse_encode_i_32(2, serializer); sse_encode_String(file, serializer); + default: + throw UnimplementedError(''); } } @@ -5915,36 +6009,36 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_bdk_blockchain(BdkBlockchain self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_AnyBlockchain(self.ptr, serializer); + sse_encode_RustOpaque_bdkblockchainAnyBlockchain(self.ptr, serializer); } @protected void sse_encode_bdk_derivation_path( BdkDerivationPath self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_bitcoinbip32DerivationPath(self.ptr, serializer); + sse_encode_RustOpaque_bdkbitcoinbip32DerivationPath(self.ptr, serializer); } @protected void sse_encode_bdk_descriptor(BdkDescriptor self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_ExtendedDescriptor( + sse_encode_RustOpaque_bdkdescriptorExtendedDescriptor( self.extendedDescriptor, serializer); - sse_encode_RustOpaque_keysKeyMap(self.keyMap, serializer); + sse_encode_RustOpaque_bdkkeysKeyMap(self.keyMap, serializer); } @protected void sse_encode_bdk_descriptor_public_key( BdkDescriptorPublicKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysDescriptorPublicKey(self.ptr, serializer); + sse_encode_RustOpaque_bdkkeysDescriptorPublicKey(self.ptr, serializer); } @protected void sse_encode_bdk_descriptor_secret_key( BdkDescriptorSecretKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysDescriptorSecretKey(self.ptr, serializer); + sse_encode_RustOpaque_bdkkeysDescriptorSecretKey(self.ptr, serializer); } @protected @@ -6093,19 +6187,22 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case BdkError_InvalidTransaction(field0: final field0): sse_encode_i_32(46, serializer); sse_encode_String(field0, serializer); + default: + throw UnimplementedError(''); } } @protected void sse_encode_bdk_mnemonic(BdkMnemonic self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysbip39Mnemonic(self.ptr, serializer); + sse_encode_RustOpaque_bdkkeysbip39Mnemonic(self.ptr, serializer); } @protected void sse_encode_bdk_psbt(BdkPsbt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_MutexPartiallySignedTransaction(self.ptr, serializer); + sse_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + self.ptr, serializer); } @protected @@ -6118,13 +6215,14 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { void sse_encode_bdk_transaction( BdkTransaction self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_String(self.inner, serializer); + sse_encode_String(self.s, serializer); } @protected void sse_encode_bdk_wallet(BdkWallet self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_MutexbdkWalletAnyDatabase(self.ptr, serializer); + sse_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + self.ptr, serializer); } @protected @@ -6148,6 +6246,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case BlockchainConfig_Rpc(config: final config): sse_encode_i_32(2, serializer); sse_encode_box_autoadd_rpc_config(config, serializer); + default: + throw UnimplementedError(''); } } @@ -6352,7 +6452,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer) { + (OutPoint, Input, BigInt) self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_record_out_point_input_usize(self, serializer); } @@ -6399,7 +6499,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer) { + void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_u_64(self, serializer); } @@ -6447,6 +6547,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case ConsensusError_UnsupportedSegwitFlag(field0: final field0): sse_encode_i_32(5, serializer); sse_encode_u_8(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6463,6 +6565,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case DatabaseConfig_Sled(config: final config): sse_encode_i_32(2, serializer); sse_encode_box_autoadd_sled_db_configuration(config, serializer); + default: + throw UnimplementedError(''); } } @@ -6503,6 +6607,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case DescriptorError_Hex(field0: final field0): sse_encode_i_32(11, serializer); sse_encode_String(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6554,6 +6660,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_i_32(2, serializer); sse_encode_usize(field0, serializer); sse_encode_usize(field1, serializer); + default: + throw UnimplementedError(''); } } @@ -6679,6 +6787,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case LockTime_Seconds(field0: final field0): sse_encode_i_32(1, serializer); sse_encode_u_32(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6798,7 +6908,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? self, SseSerializer serializer) { + (OutPoint, Input, BigInt)? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -6840,7 +6950,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -6883,6 +6993,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_i_32(2, serializer); sse_encode_witness_version(version, serializer); sse_encode_list_prim_u_8_strict(program, serializer); + default: + throw UnimplementedError(''); } } @@ -6902,6 +7014,8 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { case RbfValue_Value(field0: final field0): sse_encode_i_32(1, serializer); sse_encode_u_32(field0, serializer); + default: + throw UnimplementedError(''); } } @@ -6923,7 +7037,7 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { @protected void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer) { + (OutPoint, Input, BigInt) self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_out_point(self.$1, serializer); sse_encode_input(self.$2, serializer); @@ -7019,9 +7133,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @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 @@ -7042,9 +7156,9 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { } @protected - void sse_encode_usize(int self, SseSerializer serializer) { + void sse_encode_usize(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint64(self); + serializer.buffer.putBigUint64(self); } @protected @@ -7066,3 +7180,212 @@ class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { sse_encode_i_32(self.index, serializer); } } + +@sealed +class AddressImpl extends RustOpaque implements Address { + // Not to be used by end users + AddressImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + AddressImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_Address, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_Address, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_AddressPtr, + ); +} + +@sealed +class AnyBlockchainImpl extends RustOpaque implements AnyBlockchain { + // Not to be used by end users + AnyBlockchainImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + AnyBlockchainImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_AnyBlockchain, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_AnyBlockchain, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_AnyBlockchainPtr, + ); +} + +@sealed +class DerivationPathImpl extends RustOpaque implements DerivationPath { + // Not to be used by end users + DerivationPathImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + DerivationPathImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_DerivationPath, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_DerivationPath, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_DerivationPathPtr, + ); +} + +@sealed +class DescriptorPublicKeyImpl extends RustOpaque + implements DescriptorPublicKey { + // Not to be used by end users + DescriptorPublicKeyImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + DescriptorPublicKeyImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_DescriptorPublicKey, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_DescriptorPublicKey, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_DescriptorPublicKeyPtr, + ); +} + +@sealed +class DescriptorSecretKeyImpl extends RustOpaque + implements DescriptorSecretKey { + // Not to be used by end users + DescriptorSecretKeyImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + DescriptorSecretKeyImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_DescriptorSecretKey, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_DescriptorSecretKey, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_DescriptorSecretKeyPtr, + ); +} + +@sealed +class ExtendedDescriptorImpl extends RustOpaque implements ExtendedDescriptor { + // Not to be used by end users + ExtendedDescriptorImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ExtendedDescriptorImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_ExtendedDescriptor, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptor, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptorPtr, + ); +} + +@sealed +class KeyMapImpl extends RustOpaque implements KeyMap { + // Not to be used by end users + KeyMapImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + KeyMapImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_KeyMap, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_KeyMap, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_KeyMapPtr, + ); +} + +@sealed +class MnemonicImpl extends RustOpaque implements Mnemonic { + // Not to be used by end users + MnemonicImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MnemonicImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_Mnemonic, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_Mnemonic, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_MnemonicPtr, + ); +} + +@sealed +class MutexPartiallySignedTransactionImpl extends RustOpaque + implements MutexPartiallySignedTransaction { + // Not to be used by end users + MutexPartiallySignedTransactionImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MutexPartiallySignedTransactionImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: core.instance.api + .rust_arc_increment_strong_count_MutexPartiallySignedTransaction, + rustArcDecrementStrongCount: core.instance.api + .rust_arc_decrement_strong_count_MutexPartiallySignedTransaction, + rustArcDecrementStrongCountPtr: core.instance.api + .rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr, + ); +} + +@sealed +class MutexWalletAnyDatabaseImpl extends RustOpaque + implements MutexWalletAnyDatabase { + // Not to be used by end users + MutexWalletAnyDatabaseImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MutexWalletAnyDatabaseImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: core + .instance.api.rust_arc_increment_strong_count_MutexWalletAnyDatabase, + rustArcDecrementStrongCount: core + .instance.api.rust_arc_decrement_strong_count_MutexWalletAnyDatabase, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_MutexWalletAnyDatabasePtr, + ); +} diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 4e9def27..d7f18a6a 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.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 @@ -14,89 +14,91 @@ 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'; -abstract class CApiApiImplPlatform extends BaseApiImpl { - CApiApiImplPlatform({ +abstract class coreApiImplPlatform extends BaseApiImpl { + coreApiImplPlatform({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, required super.portManager, }); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_AnyBlockchainPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_AnyBlockchainPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_AddressPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ExtendedDescriptorPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptorPtr; + get rust_arc_decrement_strong_count_DerivationPathPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr; + get rust_arc_decrement_strong_count_AnyBlockchainPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr; + get rust_arc_decrement_strong_count_ExtendedDescriptorPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BdkBitcoinAddressPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr; + get rust_arc_decrement_strong_count_DescriptorPublicKeyPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr; + get rust_arc_decrement_strong_count_DescriptorSecretKeyPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeyMapPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMapPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKeyPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MnemonicPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeysKeyMapPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_keysKeyMapPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_MutexWalletAnyDatabasePtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysBip39MnemonicPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_keysbip39MnemonicPtr; + get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr; @protected - AnyBlockchain dco_decode_RustOpaque_AnyBlockchain(dynamic raw); + Address dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw); @protected - ExtendedDescriptor dco_decode_RustOpaque_ExtendedDescriptor(dynamic raw); + DerivationPath dco_decode_RustOpaque_bdkbitcoinbip32DerivationPath( + dynamic raw); @protected - MutexPartiallySignedTransaction - dco_decode_RustOpaque_MutexPartiallySignedTransaction(dynamic raw); + AnyBlockchain dco_decode_RustOpaque_bdkblockchainAnyBlockchain(dynamic raw); @protected - MutexBdkWalletAnyDatabase dco_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor dco_decode_RustOpaque_bdkdescriptorExtendedDescriptor( dynamic raw); @protected - BdkBitcoinAddress dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw); + DescriptorPublicKey dco_decode_RustOpaque_bdkkeysDescriptorPublicKey( + dynamic raw); @protected - BitcoinBip32DerivationPath dco_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey dco_decode_RustOpaque_bdkkeysDescriptorSecretKey( dynamic raw); @protected - KeysDescriptorPublicKey dco_decode_RustOpaque_keysDescriptorPublicKey( - dynamic raw); + KeyMap dco_decode_RustOpaque_bdkkeysKeyMap(dynamic raw); @protected - KeysDescriptorSecretKey dco_decode_RustOpaque_keysDescriptorSecretKey( - dynamic raw); + Mnemonic dco_decode_RustOpaque_bdkkeysbip39Mnemonic(dynamic raw); @protected - KeysKeyMap dco_decode_RustOpaque_keysKeyMap(dynamic raw); + MutexWalletAnyDatabase + dco_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + dynamic raw); @protected - KeysBip39Mnemonic dco_decode_RustOpaque_keysbip39Mnemonic(dynamic raw); + MutexPartiallySignedTransaction + dco_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + dynamic raw); @protected String dco_decode_String(dynamic raw); @@ -245,7 +247,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue dco_decode_box_autoadd_rbf_value(dynamic raw); @protected - (OutPoint, Input, int) dco_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) dco_decode_box_autoadd_record_out_point_input_usize( dynamic raw); @protected @@ -268,7 +270,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int dco_decode_box_autoadd_u_32(dynamic raw); @protected - int dco_decode_box_autoadd_u_64(dynamic raw); + BigInt dco_decode_box_autoadd_u_64(dynamic raw); @protected int dco_decode_box_autoadd_u_8(dynamic raw); @@ -376,7 +378,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue? dco_decode_opt_box_autoadd_rbf_value(dynamic raw); @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? dco_decode_opt_box_autoadd_record_out_point_input_usize(dynamic raw); @protected @@ -389,7 +391,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int? dco_decode_opt_box_autoadd_u_32(dynamic raw); @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw); + BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw); @protected int? dco_decode_opt_box_autoadd_u_8(dynamic raw); @@ -414,7 +416,8 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { dynamic raw); @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw); + (OutPoint, Input, BigInt) dco_decode_record_out_point_input_usize( + dynamic raw); @protected RpcConfig dco_decode_rpc_config(dynamic raw); @@ -447,7 +450,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int dco_decode_u_32(dynamic raw); @protected - int dco_decode_u_64(dynamic raw); + BigInt dco_decode_u_64(dynamic raw); @protected int dco_decode_u_8(dynamic raw); @@ -459,7 +462,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void dco_decode_unit(dynamic raw); @protected - int dco_decode_usize(dynamic raw); + BigInt dco_decode_usize(dynamic raw); @protected Variant dco_decode_variant(dynamic raw); @@ -471,44 +474,44 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { WordCount dco_decode_word_count(dynamic raw); @protected - AnyBlockchain sse_decode_RustOpaque_AnyBlockchain( - SseDeserializer deserializer); + Address sse_decode_RustOpaque_bdkbitcoinAddress(SseDeserializer deserializer); @protected - ExtendedDescriptor sse_decode_RustOpaque_ExtendedDescriptor( + DerivationPath sse_decode_RustOpaque_bdkbitcoinbip32DerivationPath( SseDeserializer deserializer); @protected - MutexPartiallySignedTransaction - sse_decode_RustOpaque_MutexPartiallySignedTransaction( - SseDeserializer deserializer); + AnyBlockchain sse_decode_RustOpaque_bdkblockchainAnyBlockchain( + SseDeserializer deserializer); @protected - MutexBdkWalletAnyDatabase sse_decode_RustOpaque_MutexbdkWalletAnyDatabase( + ExtendedDescriptor sse_decode_RustOpaque_bdkdescriptorExtendedDescriptor( SseDeserializer deserializer); @protected - BdkBitcoinAddress sse_decode_RustOpaque_bdkbitcoinAddress( + DescriptorPublicKey sse_decode_RustOpaque_bdkkeysDescriptorPublicKey( SseDeserializer deserializer); @protected - BitcoinBip32DerivationPath sse_decode_RustOpaque_bitcoinbip32DerivationPath( + DescriptorSecretKey sse_decode_RustOpaque_bdkkeysDescriptorSecretKey( SseDeserializer deserializer); @protected - KeysDescriptorPublicKey sse_decode_RustOpaque_keysDescriptorPublicKey( - SseDeserializer deserializer); + KeyMap sse_decode_RustOpaque_bdkkeysKeyMap(SseDeserializer deserializer); @protected - KeysDescriptorSecretKey sse_decode_RustOpaque_keysDescriptorSecretKey( + Mnemonic sse_decode_RustOpaque_bdkkeysbip39Mnemonic( SseDeserializer deserializer); @protected - KeysKeyMap sse_decode_RustOpaque_keysKeyMap(SseDeserializer deserializer); + MutexWalletAnyDatabase + sse_decode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + SseDeserializer deserializer); @protected - KeysBip39Mnemonic sse_decode_RustOpaque_keysbip39Mnemonic( - SseDeserializer deserializer); + MutexPartiallySignedTransaction + sse_decode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + SseDeserializer deserializer); @protected String sse_decode_String(SseDeserializer deserializer); @@ -674,7 +677,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue sse_decode_box_autoadd_rbf_value(SseDeserializer deserializer); @protected - (OutPoint, Input, int) sse_decode_box_autoadd_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer); @protected @@ -699,7 +702,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int sse_decode_box_autoadd_u_32(SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer); @protected int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); @@ -817,7 +820,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { RbfValue? sse_decode_opt_box_autoadd_rbf_value(SseDeserializer deserializer); @protected - (OutPoint, Input, int)? + (OutPoint, Input, BigInt)? sse_decode_opt_box_autoadd_record_out_point_input_usize( SseDeserializer deserializer); @@ -833,7 +836,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int? sse_decode_opt_box_autoadd_u_32(SseDeserializer deserializer); @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); + BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); @protected int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer); @@ -859,7 +862,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( + (OutPoint, Input, BigInt) sse_decode_record_out_point_input_usize( SseDeserializer deserializer); @protected @@ -896,7 +899,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int sse_decode_u_32(SseDeserializer deserializer); @protected - int sse_decode_u_64(SseDeserializer deserializer); + BigInt sse_decode_u_64(SseDeserializer deserializer); @protected int sse_decode_u_8(SseDeserializer deserializer); @@ -908,7 +911,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_decode_unit(SseDeserializer deserializer); @protected - int sse_decode_usize(SseDeserializer deserializer); + BigInt sse_decode_usize(SseDeserializer deserializer); @protected Variant sse_decode_variant(SseDeserializer deserializer); @@ -1177,7 +1180,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer cst_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) raw) { + (OutPoint, Input, BigInt) raw) { // Codec=Cst (C-struct based), see doc to use other codecs final ptr = wire.cst_new_box_autoadd_record_out_point_input_usize(); cst_api_fill_to_wire_record_out_point_input_usize(raw, ptr.ref); @@ -1237,7 +1240,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_box_autoadd_u_64(int raw) { + ffi.Pointer cst_encode_box_autoadd_u_64(BigInt raw) { // Codec=Cst (C-struct based), see doc to use other codecs return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw)); } @@ -1421,7 +1424,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer cst_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? raw) { + (OutPoint, Input, BigInt)? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr @@ -1451,7 +1454,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_opt_box_autoadd_u_64(int? raw) { + ffi.Pointer cst_encode_opt_box_autoadd_u_64(BigInt? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw); } @@ -1463,9 +1466,9 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - int cst_encode_u_64(int raw) { + int cst_encode_u_64(BigInt raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return raw.toInt(); + return raw.toSigned(64).toInt(); } @protected @@ -1477,6 +1480,12 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { return ans; } + @protected + int cst_encode_usize(BigInt raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw.toSigned(64).toInt(); + } + @protected void cst_api_fill_to_wire_address_error( AddressError apiObj, wire_cst_address_error wireObj) { @@ -1628,35 +1637,37 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_bdk_blockchain( BdkBlockchain apiObj, wire_cst_bdk_blockchain wireObj) { - wireObj.ptr = cst_encode_RustOpaque_AnyBlockchain(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkblockchainAnyBlockchain(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_derivation_path( BdkDerivationPath apiObj, wire_cst_bdk_derivation_path wireObj) { - wireObj.ptr = cst_encode_RustOpaque_bitcoinbip32DerivationPath(apiObj.ptr); + wireObj.ptr = + cst_encode_RustOpaque_bdkbitcoinbip32DerivationPath(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_descriptor( BdkDescriptor apiObj, wire_cst_bdk_descriptor wireObj) { wireObj.extended_descriptor = - cst_encode_RustOpaque_ExtendedDescriptor(apiObj.extendedDescriptor); - wireObj.key_map = cst_encode_RustOpaque_keysKeyMap(apiObj.keyMap); + cst_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + apiObj.extendedDescriptor); + wireObj.key_map = cst_encode_RustOpaque_bdkkeysKeyMap(apiObj.keyMap); } @protected void cst_api_fill_to_wire_bdk_descriptor_public_key( BdkDescriptorPublicKey apiObj, wire_cst_bdk_descriptor_public_key wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysDescriptorPublicKey(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkkeysDescriptorPublicKey(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_descriptor_secret_key( BdkDescriptorSecretKey apiObj, wire_cst_bdk_descriptor_secret_key wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysDescriptorSecretKey(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkkeysDescriptorSecretKey(apiObj.ptr); } @protected @@ -1933,14 +1944,15 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_bdk_mnemonic( BdkMnemonic apiObj, wire_cst_bdk_mnemonic wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysbip39Mnemonic(apiObj.ptr); + wireObj.ptr = cst_encode_RustOpaque_bdkkeysbip39Mnemonic(apiObj.ptr); } @protected void cst_api_fill_to_wire_bdk_psbt( BdkPsbt apiObj, wire_cst_bdk_psbt wireObj) { wireObj.ptr = - cst_encode_RustOpaque_MutexPartiallySignedTransaction(apiObj.ptr); + cst_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + apiObj.ptr); } @protected @@ -1952,13 +1964,15 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_bdk_transaction( BdkTransaction apiObj, wire_cst_bdk_transaction wireObj) { - wireObj.inner = cst_encode_String(apiObj.inner); + wireObj.s = cst_encode_String(apiObj.s); } @protected void cst_api_fill_to_wire_bdk_wallet( BdkWallet apiObj, wire_cst_bdk_wallet wireObj) { - wireObj.ptr = cst_encode_RustOpaque_MutexbdkWalletAnyDatabase(apiObj.ptr); + wireObj.ptr = + cst_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + apiObj.ptr); } @protected @@ -2160,7 +2174,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) apiObj, + (OutPoint, Input, BigInt) apiObj, ffi.Pointer wireObj) { cst_api_fill_to_wire_record_out_point_input_usize(apiObj, wireObj.ref); } @@ -2484,7 +2498,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_record_out_point_input_usize( - (OutPoint, Input, int) apiObj, + (OutPoint, Input, BigInt) apiObj, wire_cst_record_out_point_input_usize wireObj) { cst_api_fill_to_wire_out_point(apiObj.$1, wireObj.field0); cst_api_fill_to_wire_input(apiObj.$2, wireObj.field1); @@ -2575,39 +2589,37 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { } @protected - int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw); + int cst_encode_RustOpaque_bdkbitcoinAddress(Address raw); @protected - int cst_encode_RustOpaque_ExtendedDescriptor(ExtendedDescriptor raw); + int cst_encode_RustOpaque_bdkbitcoinbip32DerivationPath(DerivationPath raw); @protected - int cst_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction raw); + int cst_encode_RustOpaque_bdkblockchainAnyBlockchain(AnyBlockchain raw); @protected - int cst_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase raw); + int cst_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor raw); @protected - int cst_encode_RustOpaque_bdkbitcoinAddress(BdkBitcoinAddress raw); + int cst_encode_RustOpaque_bdkkeysDescriptorPublicKey(DescriptorPublicKey raw); @protected - int cst_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath raw); + int cst_encode_RustOpaque_bdkkeysDescriptorSecretKey(DescriptorSecretKey raw); @protected - int cst_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey raw); + int cst_encode_RustOpaque_bdkkeysKeyMap(KeyMap raw); @protected - int cst_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey raw); + int cst_encode_RustOpaque_bdkkeysbip39Mnemonic(Mnemonic raw); @protected - int cst_encode_RustOpaque_keysKeyMap(KeysKeyMap raw); + int cst_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase raw); @protected - int cst_encode_RustOpaque_keysbip39Mnemonic(KeysBip39Mnemonic raw); + int cst_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction raw); @protected bool cst_encode_bool(bool raw); @@ -2636,9 +2648,6 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void cst_encode_unit(void raw); - @protected - int cst_encode_usize(int raw); - @protected int cst_encode_variant(Variant raw); @@ -2649,44 +2658,45 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { int cst_encode_word_count(WordCount raw); @protected - void sse_encode_RustOpaque_AnyBlockchain( - AnyBlockchain self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkbitcoinAddress( + Address self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_ExtendedDescriptor( - ExtendedDescriptor self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkbitcoinbip32DerivationPath( + DerivationPath self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkblockchainAnyBlockchain( + AnyBlockchain self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkdescriptorExtendedDescriptor( + ExtendedDescriptor self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_bdkbitcoinAddress( - BdkBitcoinAddress self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysDescriptorPublicKey( + DescriptorPublicKey self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysDescriptorSecretKey( + DescriptorSecretKey self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysKeyMap( + KeyMap self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey self, SseSerializer serializer); + void sse_encode_RustOpaque_bdkkeysbip39Mnemonic( + Mnemonic self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysKeyMap( - KeysKeyMap self, SseSerializer serializer); + void sse_encode_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( + MutexWalletAnyDatabase self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_keysbip39Mnemonic( - KeysBip39Mnemonic self, SseSerializer serializer); + void + sse_encode_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( + MutexPartiallySignedTransaction self, SseSerializer serializer); @protected void sse_encode_String(String self, SseSerializer serializer); @@ -2864,7 +2874,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); + (OutPoint, Input, BigInt) self, SseSerializer serializer); @protected void sse_encode_box_autoadd_rpc_config( @@ -2890,7 +2900,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_u_32(int self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer); + void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer); @protected void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); @@ -3017,7 +3027,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void sse_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? self, SseSerializer serializer); + (OutPoint, Input, BigInt)? self, SseSerializer serializer); @protected void sse_encode_opt_box_autoadd_rpc_sync_params( @@ -3031,7 +3041,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_opt_box_autoadd_u_32(int? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer); @protected void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer); @@ -3059,7 +3069,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { @protected void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); + (OutPoint, Input, BigInt) self, SseSerializer serializer); @protected void sse_encode_rpc_config(RpcConfig self, SseSerializer serializer); @@ -3095,7 +3105,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_u_32(int self, SseSerializer serializer); @protected - void sse_encode_u_64(int self, SseSerializer serializer); + void sse_encode_u_64(BigInt self, SseSerializer serializer); @protected void sse_encode_u_8(int self, SseSerializer serializer); @@ -3107,7 +3117,7 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { void sse_encode_unit(void self, SseSerializer serializer); @protected - void sse_encode_usize(int self, SseSerializer serializer); + void sse_encode_usize(BigInt self, SseSerializer serializer); @protected void sse_encode_variant(Variant self, SseSerializer serializer); @@ -3129,19 +3139,19 @@ abstract class CApiApiImplPlatform extends BaseApiImpl { // ignore_for_file: type=lint /// generated by flutter_rust_bridge -class CApiWire implements BaseWire { - factory CApiWire.fromExternalLibrary(ExternalLibrary lib) => - CApiWire(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]. - CApiWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + coreWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - CApiWire.fromLookup( + coreWire.fromLookup( ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; @@ -3160,191 +3170,179 @@ class CApiWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); - void wire_bdk_blockchain_broadcast( + void wire__crate__api__blockchain__bdk_blockchain_broadcast( int port_, ffi.Pointer that, ffi.Pointer transaction, ) { - return _wire_bdk_blockchain_broadcast( + return _wire__crate__api__blockchain__bdk_blockchain_broadcast( port_, that, transaction, ); } - late final _wire_bdk_blockchain_broadcastPtr = _lookup< + late final _wire__crate__api__blockchain__bdk_blockchain_broadcastPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_broadcast'); - late final _wire_bdk_blockchain_broadcast = - _wire_bdk_blockchain_broadcastPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast'); + late final _wire__crate__api__blockchain__bdk_blockchain_broadcast = + _wire__crate__api__blockchain__bdk_blockchain_broadcastPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_blockchain_estimate_fee( + void wire__crate__api__blockchain__bdk_blockchain_create( int port_, - ffi.Pointer that, - int target, + ffi.Pointer blockchain_config, ) { - return _wire_bdk_blockchain_estimate_fee( + return _wire__crate__api__blockchain__bdk_blockchain_create( port_, - that, - target, + blockchain_config, ); } - late final _wire_bdk_blockchain_estimate_feePtr = _lookup< + late final _wire__crate__api__blockchain__bdk_blockchain_createPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Uint64)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee'); - late final _wire_bdk_blockchain_estimate_fee = - _wire_bdk_blockchain_estimate_feePtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create'); + late final _wire__crate__api__blockchain__bdk_blockchain_create = + _wire__crate__api__blockchain__bdk_blockchain_createPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_blockchain_get_block_hash( + void wire__crate__api__blockchain__bdk_blockchain_estimate_fee( int port_, ffi.Pointer that, - int height, + int target, ) { - return _wire_bdk_blockchain_get_block_hash( + return _wire__crate__api__blockchain__bdk_blockchain_estimate_fee( port_, that, - height, + target, ); } - late final _wire_bdk_blockchain_get_block_hashPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Uint32)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash'); - late final _wire_bdk_blockchain_get_block_hash = - _wire_bdk_blockchain_get_block_hashPtr.asFunction< + late final _wire__crate__api__blockchain__bdk_blockchain_estimate_feePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Uint64)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee'); + late final _wire__crate__api__blockchain__bdk_blockchain_estimate_fee = + _wire__crate__api__blockchain__bdk_blockchain_estimate_feePtr.asFunction< void Function(int, ffi.Pointer, int)>(); - void wire_bdk_blockchain_get_height( + void wire__crate__api__blockchain__bdk_blockchain_get_block_hash( int port_, ffi.Pointer that, + int height, ) { - return _wire_bdk_blockchain_get_height( + return _wire__crate__api__blockchain__bdk_blockchain_get_block_hash( port_, that, + height, ); } - late final _wire_bdk_blockchain_get_heightPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_get_height'); - late final _wire_bdk_blockchain_get_height = - _wire_bdk_blockchain_get_heightPtr.asFunction< - void Function(int, ffi.Pointer)>(); - - void wire_bdk_blockchain_new( - int port_, - ffi.Pointer blockchain_config, - ) { - return _wire_bdk_blockchain_new( - port_, - blockchain_config, - ); - } - - late final _wire_bdk_blockchain_newPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_blockchain_new'); - late final _wire_bdk_blockchain_new = _wire_bdk_blockchain_newPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__blockchain__bdk_blockchain_get_block_hashPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Uint32)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash'); + late final _wire__crate__api__blockchain__bdk_blockchain_get_block_hash = + _wire__crate__api__blockchain__bdk_blockchain_get_block_hashPtr + .asFunction< + void Function(int, ffi.Pointer, int)>(); - void wire_bdk_descriptor_as_string( + void wire__crate__api__blockchain__bdk_blockchain_get_height( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_bdk_descriptor_as_string( + return _wire__crate__api__blockchain__bdk_blockchain_get_height( port_, that, ); } - late final _wire_bdk_descriptor_as_stringPtr = _lookup< + late final _wire__crate__api__blockchain__bdk_blockchain_get_heightPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_as_string'); - late final _wire_bdk_descriptor_as_string = _wire_bdk_descriptor_as_stringPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height'); + late final _wire__crate__api__blockchain__bdk_blockchain_get_height = + _wire__crate__api__blockchain__bdk_blockchain_get_heightPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_as_string_private( - int port_, + WireSyncRust2DartDco wire__crate__api__descriptor__bdk_descriptor_as_string( ffi.Pointer that, ) { - return _wire_bdk_descriptor_as_string_private( - port_, + return _wire__crate__api__descriptor__bdk_descriptor_as_string( that, ); } - late final _wire_bdk_descriptor_as_string_privatePtr = _lookup< + late final _wire__crate__api__descriptor__bdk_descriptor_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private'); - late final _wire_bdk_descriptor_as_string_private = - _wire_bdk_descriptor_as_string_privatePtr.asFunction< - void Function(int, ffi.Pointer)>(); - - void wire_bdk_descriptor_max_satisfaction_weight( - int port_, + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string'); + late final _wire__crate__api__descriptor__bdk_descriptor_as_string = + _wire__crate__api__descriptor__bdk_descriptor_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + WireSyncRust2DartDco + wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( ffi.Pointer that, ) { - return _wire_bdk_descriptor_max_satisfaction_weight( - port_, + return _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( that, ); } - late final _wire_bdk_descriptor_max_satisfaction_weightPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight'); - late final _wire_bdk_descriptor_max_satisfaction_weight = - _wire_bdk_descriptor_max_satisfaction_weightPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weightPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight'); + late final _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight = + _wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weightPtr + .asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_descriptor_new( + void wire__crate__api__descriptor__bdk_descriptor_new( int port_, ffi.Pointer descriptor, int network, ) { - return _wire_bdk_descriptor_new( + return _wire__crate__api__descriptor__bdk_descriptor_new( port_, descriptor, network, ); } - late final _wire_bdk_descriptor_newPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new'); - late final _wire_bdk_descriptor_new = _wire_bdk_descriptor_newPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + late final _wire__crate__api__descriptor__bdk_descriptor_newPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new'); + late final _wire__crate__api__descriptor__bdk_descriptor_new = + _wire__crate__api__descriptor__bdk_descriptor_newPtr.asFunction< + void Function( + int, ffi.Pointer, int)>(); - void wire_bdk_descriptor_new_bip44( + void wire__crate__api__descriptor__bdk_descriptor_new_bip44( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip44( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip44( port_, secret_key, keychain_kind, @@ -3352,26 +3350,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip44Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44'); - late final _wire_bdk_descriptor_new_bip44 = - _wire_bdk_descriptor_new_bip44Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip44Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip44_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip44_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( port_, public_key, fingerprint, @@ -3380,27 +3379,33 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip44_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip44_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip44_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public'); - late final _wire_bdk_descriptor_new_bip44_public = - _wire_bdk_descriptor_new_bip44_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); - void wire_bdk_descriptor_new_bip49( + void wire__crate__api__descriptor__bdk_descriptor_new_bip49( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip49( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip49( port_, secret_key, keychain_kind, @@ -3408,26 +3413,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip49Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49'); - late final _wire_bdk_descriptor_new_bip49 = - _wire_bdk_descriptor_new_bip49Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip49Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip49_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip49_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( port_, public_key, fingerprint, @@ -3436,27 +3442,33 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip49_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip49_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip49_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public'); - late final _wire_bdk_descriptor_new_bip49_public = - _wire_bdk_descriptor_new_bip49_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); - void wire_bdk_descriptor_new_bip84( + void wire__crate__api__descriptor__bdk_descriptor_new_bip84( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip84( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip84( port_, secret_key, keychain_kind, @@ -3464,26 +3476,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip84Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84'); - late final _wire_bdk_descriptor_new_bip84 = - _wire_bdk_descriptor_new_bip84Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip84Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip84_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip84_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( port_, public_key, fingerprint, @@ -3492,27 +3505,33 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip84_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip84_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip84_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public'); - late final _wire_bdk_descriptor_new_bip84_public = - _wire_bdk_descriptor_new_bip84_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); - void wire_bdk_descriptor_new_bip86( + void wire__crate__api__descriptor__bdk_descriptor_new_bip86( int port_, ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip86( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip86( port_, secret_key, keychain_kind, @@ -3520,26 +3539,27 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip86Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86'); - late final _wire_bdk_descriptor_new_bip86 = - _wire_bdk_descriptor_new_bip86Ptr.asFunction< + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86 = + _wire__crate__api__descriptor__bdk_descriptor_new_bip86Ptr.asFunction< void Function(int, ffi.Pointer, int, int)>(); - void wire_bdk_descriptor_new_bip86_public( + void wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( int port_, ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_bdk_descriptor_new_bip86_public( + return _wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( port_, public_key, fingerprint, @@ -3548,173 +3568,220 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_new_bip86_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86_publicPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public'); + late final _wire__crate__api__descriptor__bdk_descriptor_new_bip86_public = + _wire__crate__api__descriptor__bdk_descriptor_new_bip86_publicPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public'); - late final _wire_bdk_descriptor_new_bip86_public = - _wire_bdk_descriptor_new_bip86_publicPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int)>(); + + WireSyncRust2DartDco + wire__crate__api__descriptor__bdk_descriptor_to_string_private( + ffi.Pointer that, + ) { + return _wire__crate__api__descriptor__bdk_descriptor_to_string_private( + that, + ); + } + + late final _wire__crate__api__descriptor__bdk_descriptor_to_string_privatePtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private'); + late final _wire__crate__api__descriptor__bdk_descriptor_to_string_private = + _wire__crate__api__descriptor__bdk_descriptor_to_string_privatePtr + .asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__key__bdk_derivation_path_as_string( + ffi.Pointer that, + ) { + return _wire__crate__api__key__bdk_derivation_path_as_string( + that, + ); + } + + late final _wire__crate__api__key__bdk_derivation_path_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string'); + late final _wire__crate__api__key__bdk_derivation_path_as_string = + _wire__crate__api__key__bdk_derivation_path_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_derivation_path_from_string( + void wire__crate__api__key__bdk_derivation_path_from_string( int port_, ffi.Pointer path, ) { - return _wire_bdk_derivation_path_from_string( + return _wire__crate__api__key__bdk_derivation_path_from_string( port_, path, ); } - late final _wire_bdk_derivation_path_from_stringPtr = _lookup< + late final _wire__crate__api__key__bdk_derivation_path_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_derivation_path_from_string'); - late final _wire_bdk_derivation_path_from_string = - _wire_bdk_derivation_path_from_stringPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string'); + late final _wire__crate__api__key__bdk_derivation_path_from_string = + _wire__crate__api__key__bdk_derivation_path_from_stringPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_as_string( - int port_, + WireSyncRust2DartDco + wire__crate__api__key__bdk_descriptor_public_key_as_string( ffi.Pointer that, ) { - return _wire_bdk_descriptor_public_key_as_string( - port_, + return _wire__crate__api__key__bdk_descriptor_public_key_as_string( that, ); } - late final _wire_bdk_descriptor_public_key_as_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string'); - late final _wire_bdk_descriptor_public_key_as_string = - _wire_bdk_descriptor_public_key_as_stringPtr.asFunction< - void Function( - int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_public_key_as_stringPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string'); + late final _wire__crate__api__key__bdk_descriptor_public_key_as_string = + _wire__crate__api__key__bdk_descriptor_public_key_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_derive( + void wire__crate__api__key__bdk_descriptor_public_key_derive( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_public_key_derive( + return _wire__crate__api__key__bdk_descriptor_public_key_derive( port_, ptr, path, ); } - late final _wire_bdk_descriptor_public_key_derivePtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_public_key_derivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive'); - late final _wire_bdk_descriptor_public_key_derive = - _wire_bdk_descriptor_public_key_derivePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive'); + late final _wire__crate__api__key__bdk_descriptor_public_key_derive = + _wire__crate__api__key__bdk_descriptor_public_key_derivePtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_extend( + void wire__crate__api__key__bdk_descriptor_public_key_extend( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_public_key_extend( + return _wire__crate__api__key__bdk_descriptor_public_key_extend( port_, ptr, path, ); } - late final _wire_bdk_descriptor_public_key_extendPtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_public_key_extendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend'); - late final _wire_bdk_descriptor_public_key_extend = - _wire_bdk_descriptor_public_key_extendPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend'); + late final _wire__crate__api__key__bdk_descriptor_public_key_extend = + _wire__crate__api__key__bdk_descriptor_public_key_extendPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_public_key_from_string( + void wire__crate__api__key__bdk_descriptor_public_key_from_string( int port_, ffi.Pointer public_key, ) { - return _wire_bdk_descriptor_public_key_from_string( + return _wire__crate__api__key__bdk_descriptor_public_key_from_string( port_, public_key, ); } - late final _wire_bdk_descriptor_public_key_from_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string'); - late final _wire_bdk_descriptor_public_key_from_string = - _wire_bdk_descriptor_public_key_from_stringPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_public_key_from_stringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string'); + late final _wire__crate__api__key__bdk_descriptor_public_key_from_string = + _wire__crate__api__key__bdk_descriptor_public_key_from_stringPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_as_public( - int port_, + WireSyncRust2DartDco + wire__crate__api__key__bdk_descriptor_secret_key_as_public( ffi.Pointer ptr, ) { - return _wire_bdk_descriptor_secret_key_as_public( - port_, + return _wire__crate__api__key__bdk_descriptor_secret_key_as_public( ptr, ); } - late final _wire_bdk_descriptor_secret_key_as_publicPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public'); - late final _wire_bdk_descriptor_secret_key_as_public = - _wire_bdk_descriptor_secret_key_as_publicPtr.asFunction< - void Function( - int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_publicPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_public = + _wire__crate__api__key__bdk_descriptor_secret_key_as_publicPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_as_string( - int port_, + WireSyncRust2DartDco + wire__crate__api__key__bdk_descriptor_secret_key_as_string( ffi.Pointer that, ) { - return _wire_bdk_descriptor_secret_key_as_string( - port_, + return _wire__crate__api__key__bdk_descriptor_secret_key_as_string( that, ); } - late final _wire_bdk_descriptor_secret_key_as_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string'); - late final _wire_bdk_descriptor_secret_key_as_string = - _wire_bdk_descriptor_secret_key_as_stringPtr.asFunction< - void Function( - int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_stringPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_as_string = + _wire__crate__api__key__bdk_descriptor_secret_key_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_create( + void wire__crate__api__key__bdk_descriptor_secret_key_create( int port_, int network, ffi.Pointer mnemonic, ffi.Pointer password, ) { - return _wire_bdk_descriptor_secret_key_create( + return _wire__crate__api__key__bdk_descriptor_secret_key_create( port_, network, mnemonic, @@ -3722,639 +3789,674 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_descriptor_secret_key_createPtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_secret_key_createPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Int32, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create'); - late final _wire_bdk_descriptor_secret_key_create = - _wire_bdk_descriptor_secret_key_createPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_create = + _wire__crate__api__key__bdk_descriptor_secret_key_createPtr.asFunction< void Function(int, int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_derive( + void wire__crate__api__key__bdk_descriptor_secret_key_derive( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_secret_key_derive( + return _wire__crate__api__key__bdk_descriptor_secret_key_derive( port_, ptr, path, ); } - late final _wire_bdk_descriptor_secret_key_derivePtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_secret_key_derivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive'); - late final _wire_bdk_descriptor_secret_key_derive = - _wire_bdk_descriptor_secret_key_derivePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_derive = + _wire__crate__api__key__bdk_descriptor_secret_key_derivePtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_extend( + void wire__crate__api__key__bdk_descriptor_secret_key_extend( int port_, ffi.Pointer ptr, ffi.Pointer path, ) { - return _wire_bdk_descriptor_secret_key_extend( + return _wire__crate__api__key__bdk_descriptor_secret_key_extend( port_, ptr, path, ); } - late final _wire_bdk_descriptor_secret_key_extendPtr = _lookup< + late final _wire__crate__api__key__bdk_descriptor_secret_key_extendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend'); - late final _wire_bdk_descriptor_secret_key_extend = - _wire_bdk_descriptor_secret_key_extendPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_extend = + _wire__crate__api__key__bdk_descriptor_secret_key_extendPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_from_string( + void wire__crate__api__key__bdk_descriptor_secret_key_from_string( int port_, ffi.Pointer secret_key, ) { - return _wire_bdk_descriptor_secret_key_from_string( + return _wire__crate__api__key__bdk_descriptor_secret_key_from_string( port_, secret_key, ); } - late final _wire_bdk_descriptor_secret_key_from_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string'); - late final _wire_bdk_descriptor_secret_key_from_string = - _wire_bdk_descriptor_secret_key_from_stringPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_secret_key_from_stringPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_from_string = + _wire__crate__api__key__bdk_descriptor_secret_key_from_stringPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_descriptor_secret_key_secret_bytes( - int port_, + WireSyncRust2DartDco + wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( ffi.Pointer that, ) { - return _wire_bdk_descriptor_secret_key_secret_bytes( - port_, + return _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( that, ); } - late final _wire_bdk_descriptor_secret_key_secret_bytesPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes'); - late final _wire_bdk_descriptor_secret_key_secret_bytes = - _wire_bdk_descriptor_secret_key_secret_bytesPtr.asFunction< - void Function( - int, ffi.Pointer)>(); + late final _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytesPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes'); + late final _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes = + _wire__crate__api__key__bdk_descriptor_secret_key_secret_bytesPtr + .asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); - void wire_bdk_mnemonic_as_string( - int port_, + WireSyncRust2DartDco wire__crate__api__key__bdk_mnemonic_as_string( ffi.Pointer that, ) { - return _wire_bdk_mnemonic_as_string( - port_, + return _wire__crate__api__key__bdk_mnemonic_as_string( that, ); } - late final _wire_bdk_mnemonic_as_stringPtr = _lookup< + late final _wire__crate__api__key__bdk_mnemonic_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_as_string'); - late final _wire_bdk_mnemonic_as_string = _wire_bdk_mnemonic_as_stringPtr - .asFunction)>(); - - void wire_bdk_mnemonic_from_entropy( + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string'); + late final _wire__crate__api__key__bdk_mnemonic_as_string = + _wire__crate__api__key__bdk_mnemonic_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + void wire__crate__api__key__bdk_mnemonic_from_entropy( int port_, ffi.Pointer entropy, ) { - return _wire_bdk_mnemonic_from_entropy( + return _wire__crate__api__key__bdk_mnemonic_from_entropy( port_, entropy, ); } - late final _wire_bdk_mnemonic_from_entropyPtr = _lookup< + late final _wire__crate__api__key__bdk_mnemonic_from_entropyPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy'); - late final _wire_bdk_mnemonic_from_entropy = - _wire_bdk_mnemonic_from_entropyPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy'); + late final _wire__crate__api__key__bdk_mnemonic_from_entropy = + _wire__crate__api__key__bdk_mnemonic_from_entropyPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_mnemonic_from_string( + void wire__crate__api__key__bdk_mnemonic_from_string( int port_, ffi.Pointer mnemonic, ) { - return _wire_bdk_mnemonic_from_string( + return _wire__crate__api__key__bdk_mnemonic_from_string( port_, mnemonic, ); } - late final _wire_bdk_mnemonic_from_stringPtr = _lookup< + late final _wire__crate__api__key__bdk_mnemonic_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_from_string'); - late final _wire_bdk_mnemonic_from_string = - _wire_bdk_mnemonic_from_stringPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string'); + late final _wire__crate__api__key__bdk_mnemonic_from_string = + _wire__crate__api__key__bdk_mnemonic_from_stringPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_mnemonic_new( + void wire__crate__api__key__bdk_mnemonic_new( int port_, int word_count, ) { - return _wire_bdk_mnemonic_new( + return _wire__crate__api__key__bdk_mnemonic_new( port_, word_count, ); } - late final _wire_bdk_mnemonic_newPtr = + late final _wire__crate__api__key__bdk_mnemonic_newPtr = _lookup>( - 'frbgen_bdk_flutter_wire_bdk_mnemonic_new'); - late final _wire_bdk_mnemonic_new = - _wire_bdk_mnemonic_newPtr.asFunction(); + 'frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new'); + late final _wire__crate__api__key__bdk_mnemonic_new = + _wire__crate__api__key__bdk_mnemonic_newPtr + .asFunction(); + + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_as_string( + ffi.Pointer that, + ) { + return _wire__crate__api__psbt__bdk_psbt_as_string( + that, + ); + } - void wire_bdk_psbt_combine( + late final _wire__crate__api__psbt__bdk_psbt_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string'); + late final _wire__crate__api__psbt__bdk_psbt_as_string = + _wire__crate__api__psbt__bdk_psbt_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + void wire__crate__api__psbt__bdk_psbt_combine( int port_, ffi.Pointer ptr, ffi.Pointer other, ) { - return _wire_bdk_psbt_combine( + return _wire__crate__api__psbt__bdk_psbt_combine( port_, ptr, other, ); } - late final _wire_bdk_psbt_combinePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_combinePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_combine'); - late final _wire_bdk_psbt_combine = _wire_bdk_psbt_combinePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine'); + late final _wire__crate__api__psbt__bdk_psbt_combine = + _wire__crate__api__psbt__bdk_psbt_combinePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_bdk_psbt_extract_tx( - int port_, + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_extract_tx( ffi.Pointer ptr, ) { - return _wire_bdk_psbt_extract_tx( - port_, + return _wire__crate__api__psbt__bdk_psbt_extract_tx( ptr, ); } - late final _wire_bdk_psbt_extract_txPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_extract_txPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_extract_tx'); - late final _wire_bdk_psbt_extract_tx = _wire_bdk_psbt_extract_txPtr - .asFunction)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx'); + late final _wire__crate__api__psbt__bdk_psbt_extract_tx = + _wire__crate__api__psbt__bdk_psbt_extract_txPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_bdk_psbt_fee_amount( - int port_, + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_fee_amount( ffi.Pointer that, ) { - return _wire_bdk_psbt_fee_amount( - port_, + return _wire__crate__api__psbt__bdk_psbt_fee_amount( that, ); } - late final _wire_bdk_psbt_fee_amountPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_fee_amountPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_fee_amount'); - late final _wire_bdk_psbt_fee_amount = _wire_bdk_psbt_fee_amountPtr - .asFunction)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount'); + late final _wire__crate__api__psbt__bdk_psbt_fee_amount = + _wire__crate__api__psbt__bdk_psbt_fee_amountPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_bdk_psbt_fee_rate( - int port_, + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_fee_rate( ffi.Pointer that, ) { - return _wire_bdk_psbt_fee_rate( - port_, + return _wire__crate__api__psbt__bdk_psbt_fee_rate( that, ); } - late final _wire_bdk_psbt_fee_ratePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_fee_ratePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_fee_rate'); - late final _wire_bdk_psbt_fee_rate = _wire_bdk_psbt_fee_ratePtr - .asFunction)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate'); + late final _wire__crate__api__psbt__bdk_psbt_fee_rate = + _wire__crate__api__psbt__bdk_psbt_fee_ratePtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_bdk_psbt_from_str( + void wire__crate__api__psbt__bdk_psbt_from_str( int port_, ffi.Pointer psbt_base64, ) { - return _wire_bdk_psbt_from_str( + return _wire__crate__api__psbt__bdk_psbt_from_str( port_, psbt_base64, ); } - late final _wire_bdk_psbt_from_strPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_from_strPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_from_str'); - late final _wire_bdk_psbt_from_str = _wire_bdk_psbt_from_strPtr.asFunction< - void Function(int, ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str'); + late final _wire__crate__api__psbt__bdk_psbt_from_str = + _wire__crate__api__psbt__bdk_psbt_from_strPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_psbt_json_serialize( - int port_, + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_json_serialize( ffi.Pointer that, ) { - return _wire_bdk_psbt_json_serialize( - port_, + return _wire__crate__api__psbt__bdk_psbt_json_serialize( that, ); } - late final _wire_bdk_psbt_json_serializePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_json_serializePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_json_serialize'); - late final _wire_bdk_psbt_json_serialize = _wire_bdk_psbt_json_serializePtr - .asFunction)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize'); + late final _wire__crate__api__psbt__bdk_psbt_json_serialize = + _wire__crate__api__psbt__bdk_psbt_json_serializePtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_bdk_psbt_serialize( - int port_, + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_serialize( ffi.Pointer that, ) { - return _wire_bdk_psbt_serialize( - port_, + return _wire__crate__api__psbt__bdk_psbt_serialize( that, ); } - late final _wire_bdk_psbt_serializePtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_serializePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_serialize'); - late final _wire_bdk_psbt_serialize = _wire_bdk_psbt_serializePtr - .asFunction)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize'); + late final _wire__crate__api__psbt__bdk_psbt_serialize = + _wire__crate__api__psbt__bdk_psbt_serializePtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_bdk_psbt_txid( - int port_, + WireSyncRust2DartDco wire__crate__api__psbt__bdk_psbt_txid( ffi.Pointer that, ) { - return _wire_bdk_psbt_txid( - port_, + return _wire__crate__api__psbt__bdk_psbt_txid( that, ); } - late final _wire_bdk_psbt_txidPtr = _lookup< + late final _wire__crate__api__psbt__bdk_psbt_txidPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_psbt_txid'); - late final _wire_bdk_psbt_txid = _wire_bdk_psbt_txidPtr - .asFunction)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid'); + late final _wire__crate__api__psbt__bdk_psbt_txid = + _wire__crate__api__psbt__bdk_psbt_txidPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_bdk_address_as_string( - int port_, + WireSyncRust2DartDco wire__crate__api__types__bdk_address_as_string( ffi.Pointer that, ) { - return _wire_bdk_address_as_string( - port_, + return _wire__crate__api__types__bdk_address_as_string( that, ); } - late final _wire_bdk_address_as_stringPtr = _lookup< + late final _wire__crate__api__types__bdk_address_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_as_string'); - late final _wire_bdk_address_as_string = _wire_bdk_address_as_stringPtr - .asFunction)>(); - - void wire_bdk_address_from_script( + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string'); + late final _wire__crate__api__types__bdk_address_as_string = + _wire__crate__api__types__bdk_address_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + void wire__crate__api__types__bdk_address_from_script( int port_, ffi.Pointer script, int network, ) { - return _wire_bdk_address_from_script( + return _wire__crate__api__types__bdk_address_from_script( port_, script, network, ); } - late final _wire_bdk_address_from_scriptPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_address_from_script'); - late final _wire_bdk_address_from_script = - _wire_bdk_address_from_scriptPtr.asFunction< + late final _wire__crate__api__types__bdk_address_from_scriptPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script'); + late final _wire__crate__api__types__bdk_address_from_script = + _wire__crate__api__types__bdk_address_from_scriptPtr.asFunction< void Function(int, ffi.Pointer, int)>(); - void wire_bdk_address_from_string( + void wire__crate__api__types__bdk_address_from_string( int port_, ffi.Pointer address, int network, ) { - return _wire_bdk_address_from_string( + return _wire__crate__api__types__bdk_address_from_string( port_, address, network, ); } - late final _wire_bdk_address_from_stringPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_address_from_string'); - late final _wire_bdk_address_from_string = - _wire_bdk_address_from_stringPtr.asFunction< + late final _wire__crate__api__types__bdk_address_from_stringPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string'); + late final _wire__crate__api__types__bdk_address_from_string = + _wire__crate__api__types__bdk_address_from_stringPtr.asFunction< void Function( int, ffi.Pointer, int)>(); - void wire_bdk_address_is_valid_for_network( - int port_, + WireSyncRust2DartDco + wire__crate__api__types__bdk_address_is_valid_for_network( ffi.Pointer that, int network, ) { - return _wire_bdk_address_is_valid_for_network( - port_, + return _wire__crate__api__types__bdk_address_is_valid_for_network( that, network, ); } - late final _wire_bdk_address_is_valid_for_networkPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network'); - late final _wire_bdk_address_is_valid_for_network = - _wire_bdk_address_is_valid_for_networkPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + late final _wire__crate__api__types__bdk_address_is_valid_for_networkPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network'); + late final _wire__crate__api__types__bdk_address_is_valid_for_network = + _wire__crate__api__types__bdk_address_is_valid_for_networkPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, int)>(); - void wire_bdk_address_network( - int port_, + WireSyncRust2DartDco wire__crate__api__types__bdk_address_network( ffi.Pointer that, ) { - return _wire_bdk_address_network( - port_, + return _wire__crate__api__types__bdk_address_network( that, ); } - late final _wire_bdk_address_networkPtr = _lookup< + late final _wire__crate__api__types__bdk_address_networkPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_network'); - late final _wire_bdk_address_network = _wire_bdk_address_networkPtr - .asFunction)>(); - - void wire_bdk_address_payload( - int port_, + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network'); + late final _wire__crate__api__types__bdk_address_network = + _wire__crate__api__types__bdk_address_networkPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__types__bdk_address_payload( ffi.Pointer that, ) { - return _wire_bdk_address_payload( - port_, + return _wire__crate__api__types__bdk_address_payload( that, ); } - late final _wire_bdk_address_payloadPtr = _lookup< + late final _wire__crate__api__types__bdk_address_payloadPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_payload'); - late final _wire_bdk_address_payload = _wire_bdk_address_payloadPtr - .asFunction)>(); - - void wire_bdk_address_script( - int port_, + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload'); + late final _wire__crate__api__types__bdk_address_payload = + _wire__crate__api__types__bdk_address_payloadPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__types__bdk_address_script( ffi.Pointer ptr, ) { - return _wire_bdk_address_script( - port_, + return _wire__crate__api__types__bdk_address_script( ptr, ); } - late final _wire_bdk_address_scriptPtr = _lookup< + late final _wire__crate__api__types__bdk_address_scriptPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_script'); - late final _wire_bdk_address_script = _wire_bdk_address_scriptPtr - .asFunction)>(); - - void wire_bdk_address_to_qr_uri( - int port_, + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script'); + late final _wire__crate__api__types__bdk_address_script = + _wire__crate__api__types__bdk_address_scriptPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__types__bdk_address_to_qr_uri( ffi.Pointer that, ) { - return _wire_bdk_address_to_qr_uri( - port_, + return _wire__crate__api__types__bdk_address_to_qr_uri( that, ); } - late final _wire_bdk_address_to_qr_uriPtr = _lookup< + late final _wire__crate__api__types__bdk_address_to_qr_uriPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_address_to_qr_uri'); - late final _wire_bdk_address_to_qr_uri = _wire_bdk_address_to_qr_uriPtr - .asFunction)>(); - - void wire_bdk_script_buf_empty( - int port_, + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri'); + late final _wire__crate__api__types__bdk_address_to_qr_uri = + _wire__crate__api__types__bdk_address_to_qr_uriPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__types__bdk_script_buf_as_string( + ffi.Pointer that, ) { - return _wire_bdk_script_buf_empty( - port_, + return _wire__crate__api__types__bdk_script_buf_as_string( + that, ); } - late final _wire_bdk_script_buf_emptyPtr = - _lookup>( - 'frbgen_bdk_flutter_wire_bdk_script_buf_empty'); - late final _wire_bdk_script_buf_empty = - _wire_bdk_script_buf_emptyPtr.asFunction(); + late final _wire__crate__api__types__bdk_script_buf_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string'); + late final _wire__crate__api__types__bdk_script_buf_as_string = + _wire__crate__api__types__bdk_script_buf_as_stringPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__types__bdk_script_buf_empty() { + return _wire__crate__api__types__bdk_script_buf_empty(); + } + + late final _wire__crate__api__types__bdk_script_buf_emptyPtr = + _lookup>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty'); + late final _wire__crate__api__types__bdk_script_buf_empty = + _wire__crate__api__types__bdk_script_buf_emptyPtr + .asFunction(); - void wire_bdk_script_buf_from_hex( + void wire__crate__api__types__bdk_script_buf_from_hex( int port_, ffi.Pointer s, ) { - return _wire_bdk_script_buf_from_hex( + return _wire__crate__api__types__bdk_script_buf_from_hex( port_, s, ); } - late final _wire_bdk_script_buf_from_hexPtr = _lookup< + late final _wire__crate__api__types__bdk_script_buf_from_hexPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_script_buf_from_hex'); - late final _wire_bdk_script_buf_from_hex = - _wire_bdk_script_buf_from_hexPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex'); + late final _wire__crate__api__types__bdk_script_buf_from_hex = + _wire__crate__api__types__bdk_script_buf_from_hexPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_script_buf_with_capacity( + void wire__crate__api__types__bdk_script_buf_with_capacity( int port_, int capacity, ) { - return _wire_bdk_script_buf_with_capacity( + return _wire__crate__api__types__bdk_script_buf_with_capacity( port_, capacity, ); } - late final _wire_bdk_script_buf_with_capacityPtr = - _lookup>( - 'frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity'); - late final _wire_bdk_script_buf_with_capacity = - _wire_bdk_script_buf_with_capacityPtr + late final _wire__crate__api__types__bdk_script_buf_with_capacityPtr = _lookup< + ffi.NativeFunction>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity'); + late final _wire__crate__api__types__bdk_script_buf_with_capacity = + _wire__crate__api__types__bdk_script_buf_with_capacityPtr .asFunction(); - void wire_bdk_transaction_from_bytes( + void wire__crate__api__types__bdk_transaction_from_bytes( int port_, ffi.Pointer transaction_bytes, ) { - return _wire_bdk_transaction_from_bytes( + return _wire__crate__api__types__bdk_transaction_from_bytes( port_, transaction_bytes, ); } - late final _wire_bdk_transaction_from_bytesPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_from_bytesPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_from_bytes'); - late final _wire_bdk_transaction_from_bytes = - _wire_bdk_transaction_from_bytesPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes'); + late final _wire__crate__api__types__bdk_transaction_from_bytes = + _wire__crate__api__types__bdk_transaction_from_bytesPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_input( + void wire__crate__api__types__bdk_transaction_input( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_input( + return _wire__crate__api__types__bdk_transaction_input( port_, that, ); } - late final _wire_bdk_transaction_inputPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_input'); - late final _wire_bdk_transaction_input = _wire_bdk_transaction_inputPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input'); + late final _wire__crate__api__types__bdk_transaction_input = + _wire__crate__api__types__bdk_transaction_inputPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_is_coin_base( + void wire__crate__api__types__bdk_transaction_is_coin_base( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_is_coin_base( + return _wire__crate__api__types__bdk_transaction_is_coin_base( port_, that, ); } - late final _wire_bdk_transaction_is_coin_basePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_is_coin_basePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base'); - late final _wire_bdk_transaction_is_coin_base = - _wire_bdk_transaction_is_coin_basePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base'); + late final _wire__crate__api__types__bdk_transaction_is_coin_base = + _wire__crate__api__types__bdk_transaction_is_coin_basePtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_is_explicitly_rbf( + void wire__crate__api__types__bdk_transaction_is_explicitly_rbf( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_is_explicitly_rbf( + return _wire__crate__api__types__bdk_transaction_is_explicitly_rbf( port_, that, ); } - late final _wire_bdk_transaction_is_explicitly_rbfPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf'); - late final _wire_bdk_transaction_is_explicitly_rbf = - _wire_bdk_transaction_is_explicitly_rbfPtr.asFunction< + late final _wire__crate__api__types__bdk_transaction_is_explicitly_rbfPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf'); + late final _wire__crate__api__types__bdk_transaction_is_explicitly_rbf = + _wire__crate__api__types__bdk_transaction_is_explicitly_rbfPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_is_lock_time_enabled( + void wire__crate__api__types__bdk_transaction_is_lock_time_enabled( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_is_lock_time_enabled( + return _wire__crate__api__types__bdk_transaction_is_lock_time_enabled( port_, that, ); } - late final _wire_bdk_transaction_is_lock_time_enabledPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled'); - late final _wire_bdk_transaction_is_lock_time_enabled = - _wire_bdk_transaction_is_lock_time_enabledPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__types__bdk_transaction_is_lock_time_enabledPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled'); + late final _wire__crate__api__types__bdk_transaction_is_lock_time_enabled = + _wire__crate__api__types__bdk_transaction_is_lock_time_enabledPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_lock_time( + void wire__crate__api__types__bdk_transaction_lock_time( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_lock_time( + return _wire__crate__api__types__bdk_transaction_lock_time( port_, that, ); } - late final _wire_bdk_transaction_lock_timePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_lock_timePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_lock_time'); - late final _wire_bdk_transaction_lock_time = - _wire_bdk_transaction_lock_timePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time'); + late final _wire__crate__api__types__bdk_transaction_lock_time = + _wire__crate__api__types__bdk_transaction_lock_timePtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_new( + void wire__crate__api__types__bdk_transaction_new( int port_, int version, ffi.Pointer lock_time, ffi.Pointer input, ffi.Pointer output, ) { - return _wire_bdk_transaction_new( + return _wire__crate__api__types__bdk_transaction_new( port_, version, lock_time, @@ -4363,7 +4465,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_transaction_newPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4371,9 +4473,9 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_new'); - late final _wire_bdk_transaction_new = - _wire_bdk_transaction_newPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new'); + late final _wire__crate__api__types__bdk_transaction_new = + _wire__crate__api__types__bdk_transaction_newPtr.asFunction< void Function( int, int, @@ -4381,223 +4483,233 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_transaction_output( + void wire__crate__api__types__bdk_transaction_output( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_output( + return _wire__crate__api__types__bdk_transaction_output( port_, that, ); } - late final _wire_bdk_transaction_outputPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_outputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_output'); - late final _wire_bdk_transaction_output = _wire_bdk_transaction_outputPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output'); + late final _wire__crate__api__types__bdk_transaction_output = + _wire__crate__api__types__bdk_transaction_outputPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_serialize( + void wire__crate__api__types__bdk_transaction_serialize( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_serialize( + return _wire__crate__api__types__bdk_transaction_serialize( port_, that, ); } - late final _wire_bdk_transaction_serializePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_serializePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_serialize'); - late final _wire_bdk_transaction_serialize = - _wire_bdk_transaction_serializePtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize'); + late final _wire__crate__api__types__bdk_transaction_serialize = + _wire__crate__api__types__bdk_transaction_serializePtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_size( + void wire__crate__api__types__bdk_transaction_size( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_size( + return _wire__crate__api__types__bdk_transaction_size( port_, that, ); } - late final _wire_bdk_transaction_sizePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_sizePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_size'); - late final _wire_bdk_transaction_size = _wire_bdk_transaction_sizePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size'); + late final _wire__crate__api__types__bdk_transaction_size = + _wire__crate__api__types__bdk_transaction_sizePtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_txid( + void wire__crate__api__types__bdk_transaction_txid( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_txid( + return _wire__crate__api__types__bdk_transaction_txid( port_, that, ); } - late final _wire_bdk_transaction_txidPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_txidPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_txid'); - late final _wire_bdk_transaction_txid = _wire_bdk_transaction_txidPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid'); + late final _wire__crate__api__types__bdk_transaction_txid = + _wire__crate__api__types__bdk_transaction_txidPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_version( + void wire__crate__api__types__bdk_transaction_version( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_version( + return _wire__crate__api__types__bdk_transaction_version( port_, that, ); } - late final _wire_bdk_transaction_versionPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_versionPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_version'); - late final _wire_bdk_transaction_version = _wire_bdk_transaction_versionPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version'); + late final _wire__crate__api__types__bdk_transaction_version = + _wire__crate__api__types__bdk_transaction_versionPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_vsize( + void wire__crate__api__types__bdk_transaction_vsize( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_vsize( + return _wire__crate__api__types__bdk_transaction_vsize( port_, that, ); } - late final _wire_bdk_transaction_vsizePtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_vsizePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_vsize'); - late final _wire_bdk_transaction_vsize = _wire_bdk_transaction_vsizePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize'); + late final _wire__crate__api__types__bdk_transaction_vsize = + _wire__crate__api__types__bdk_transaction_vsizePtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_transaction_weight( + void wire__crate__api__types__bdk_transaction_weight( int port_, ffi.Pointer that, ) { - return _wire_bdk_transaction_weight( + return _wire__crate__api__types__bdk_transaction_weight( port_, that, ); } - late final _wire_bdk_transaction_weightPtr = _lookup< + late final _wire__crate__api__types__bdk_transaction_weightPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_transaction_weight'); - late final _wire_bdk_transaction_weight = _wire_bdk_transaction_weightPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight'); + late final _wire__crate__api__types__bdk_transaction_weight = + _wire__crate__api__types__bdk_transaction_weightPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_bdk_wallet_get_address( + void wire__crate__api__wallet__bdk_wallet_get_address( int port_, ffi.Pointer ptr, ffi.Pointer address_index, ) { - return _wire_bdk_wallet_get_address( + return _wire__crate__api__wallet__bdk_wallet_get_address( port_, ptr, address_index, ); } - late final _wire_bdk_wallet_get_addressPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_get_addressPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_address'); - late final _wire_bdk_wallet_get_address = - _wire_bdk_wallet_get_addressPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address'); + late final _wire__crate__api__wallet__bdk_wallet_get_address = + _wire__crate__api__wallet__bdk_wallet_get_addressPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_wallet_get_balance( + void wire__crate__api__wallet__bdk_wallet_get_balance( int port_, ffi.Pointer that, ) { - return _wire_bdk_wallet_get_balance( + return _wire__crate__api__wallet__bdk_wallet_get_balance( port_, that, ); } - late final _wire_bdk_wallet_get_balancePtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_get_balancePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_balance'); - late final _wire_bdk_wallet_get_balance = _wire_bdk_wallet_get_balancePtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance'); + late final _wire__crate__api__wallet__bdk_wallet_get_balance = + _wire__crate__api__wallet__bdk_wallet_get_balancePtr + .asFunction)>(); - void wire_bdk_wallet_get_descriptor_for_keychain( + void wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( int port_, ffi.Pointer ptr, int keychain, ) { - return _wire_bdk_wallet_get_descriptor_for_keychain( + return _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( port_, ptr, keychain, ); } - late final _wire_bdk_wallet_get_descriptor_for_keychainPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain'); - late final _wire_bdk_wallet_get_descriptor_for_keychain = - _wire_bdk_wallet_get_descriptor_for_keychainPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + late final _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychainPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer, ffi.Int32)>>( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain'); + late final _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain = + _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychainPtr + .asFunction< + void Function(int, ffi.Pointer, int)>(); - void wire_bdk_wallet_get_internal_address( + void wire__crate__api__wallet__bdk_wallet_get_internal_address( int port_, ffi.Pointer ptr, ffi.Pointer address_index, ) { - return _wire_bdk_wallet_get_internal_address( + return _wire__crate__api__wallet__bdk_wallet_get_internal_address( port_, ptr, address_index, ); } - late final _wire_bdk_wallet_get_internal_addressPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address'); - late final _wire_bdk_wallet_get_internal_address = - _wire_bdk_wallet_get_internal_addressPtr.asFunction< + late final _wire__crate__api__wallet__bdk_wallet_get_internal_addressPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address'); + late final _wire__crate__api__wallet__bdk_wallet_get_internal_address = + _wire__crate__api__wallet__bdk_wallet_get_internal_addressPtr.asFunction< void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_bdk_wallet_get_psbt_input( + void wire__crate__api__wallet__bdk_wallet_get_psbt_input( int port_, ffi.Pointer that, ffi.Pointer utxo, bool only_witness_utxo, ffi.Pointer sighash_type, ) { - return _wire_bdk_wallet_get_psbt_input( + return _wire__crate__api__wallet__bdk_wallet_get_psbt_input( port_, that, utxo, @@ -4606,7 +4718,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_wallet_get_psbt_inputPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_get_psbt_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4614,9 +4726,9 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Bool, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input'); - late final _wire_bdk_wallet_get_psbt_input = - _wire_bdk_wallet_get_psbt_inputPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input'); + late final _wire__crate__api__wallet__bdk_wallet_get_psbt_input = + _wire__crate__api__wallet__bdk_wallet_get_psbt_inputPtr.asFunction< void Function( int, ffi.Pointer, @@ -4624,90 +4736,93 @@ class CApiWire implements BaseWire { bool, ffi.Pointer)>(); - void wire_bdk_wallet_is_mine( + void wire__crate__api__wallet__bdk_wallet_is_mine( int port_, ffi.Pointer that, ffi.Pointer script, ) { - return _wire_bdk_wallet_is_mine( + return _wire__crate__api__wallet__bdk_wallet_is_mine( port_, that, script, ); } - late final _wire_bdk_wallet_is_minePtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_is_minePtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_is_mine'); - late final _wire_bdk_wallet_is_mine = _wire_bdk_wallet_is_minePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine'); + late final _wire__crate__api__wallet__bdk_wallet_is_mine = + _wire__crate__api__wallet__bdk_wallet_is_minePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_bdk_wallet_list_transactions( + void wire__crate__api__wallet__bdk_wallet_list_transactions( int port_, ffi.Pointer that, bool include_raw, ) { - return _wire_bdk_wallet_list_transactions( + return _wire__crate__api__wallet__bdk_wallet_list_transactions( port_, that, include_raw, ); } - late final _wire_bdk_wallet_list_transactionsPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_list_transactionsPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Bool)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_list_transactions'); - late final _wire_bdk_wallet_list_transactions = - _wire_bdk_wallet_list_transactionsPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions'); + late final _wire__crate__api__wallet__bdk_wallet_list_transactions = + _wire__crate__api__wallet__bdk_wallet_list_transactionsPtr.asFunction< void Function(int, ffi.Pointer, bool)>(); - void wire_bdk_wallet_list_unspent( + void wire__crate__api__wallet__bdk_wallet_list_unspent( int port_, ffi.Pointer that, ) { - return _wire_bdk_wallet_list_unspent( + return _wire__crate__api__wallet__bdk_wallet_list_unspent( port_, that, ); } - late final _wire_bdk_wallet_list_unspentPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_list_unspentPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_list_unspent'); - late final _wire_bdk_wallet_list_unspent = _wire_bdk_wallet_list_unspentPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent'); + late final _wire__crate__api__wallet__bdk_wallet_list_unspent = + _wire__crate__api__wallet__bdk_wallet_list_unspentPtr + .asFunction)>(); - void wire_bdk_wallet_network( + void wire__crate__api__wallet__bdk_wallet_network( int port_, ffi.Pointer that, ) { - return _wire_bdk_wallet_network( + return _wire__crate__api__wallet__bdk_wallet_network( port_, that, ); } - late final _wire_bdk_wallet_networkPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_networkPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_network'); - late final _wire_bdk_wallet_network = _wire_bdk_wallet_networkPtr - .asFunction)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network'); + late final _wire__crate__api__wallet__bdk_wallet_network = + _wire__crate__api__wallet__bdk_wallet_networkPtr + .asFunction)>(); - void wire_bdk_wallet_new( + void wire__crate__api__wallet__bdk_wallet_new( int port_, ffi.Pointer descriptor, ffi.Pointer change_descriptor, int network, ffi.Pointer database_config, ) { - return _wire_bdk_wallet_new( + return _wire__crate__api__wallet__bdk_wallet_new( port_, descriptor, change_descriptor, @@ -4716,7 +4831,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_wallet_newPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4724,22 +4839,23 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Int32, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_new'); - late final _wire_bdk_wallet_new = _wire_bdk_wallet_newPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - void wire_bdk_wallet_sign( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new'); + late final _wire__crate__api__wallet__bdk_wallet_new = + _wire__crate__api__wallet__bdk_wallet_newPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + void wire__crate__api__wallet__bdk_wallet_sign( int port_, ffi.Pointer ptr, ffi.Pointer psbt, ffi.Pointer sign_options, ) { - return _wire_bdk_wallet_sign( + return _wire__crate__api__wallet__bdk_wallet_sign( port_, ptr, psbt, @@ -4747,43 +4863,45 @@ class CApiWire implements BaseWire { ); } - late final _wire_bdk_wallet_signPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_signPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_sign'); - late final _wire_bdk_wallet_sign = _wire_bdk_wallet_signPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - void wire_bdk_wallet_sync( + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign'); + late final _wire__crate__api__wallet__bdk_wallet_sign = + _wire__crate__api__wallet__bdk_wallet_signPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__wallet__bdk_wallet_sync( int port_, ffi.Pointer ptr, ffi.Pointer blockchain, ) { - return _wire_bdk_wallet_sync( + return _wire__crate__api__wallet__bdk_wallet_sync( port_, ptr, blockchain, ); } - late final _wire_bdk_wallet_syncPtr = _lookup< + late final _wire__crate__api__wallet__bdk_wallet_syncPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_bdk_wallet_sync'); - late final _wire_bdk_wallet_sync = _wire_bdk_wallet_syncPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync'); + late final _wire__crate__api__wallet__bdk_wallet_sync = + _wire__crate__api__wallet__bdk_wallet_syncPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_finish_bump_fee_tx_builder( + void wire__crate__api__wallet__finish_bump_fee_tx_builder( int port_, ffi.Pointer txid, double fee_rate, @@ -4792,7 +4910,7 @@ class CApiWire implements BaseWire { bool enable_rbf, ffi.Pointer n_sequence, ) { - return _wire_finish_bump_fee_tx_builder( + return _wire__crate__api__wallet__finish_bump_fee_tx_builder( port_, txid, fee_rate, @@ -4803,7 +4921,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_finish_bump_fee_tx_builderPtr = _lookup< + late final _wire__crate__api__wallet__finish_bump_fee_tx_builderPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4813,9 +4931,9 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Bool, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder'); - late final _wire_finish_bump_fee_tx_builder = - _wire_finish_bump_fee_tx_builderPtr.asFunction< + 'frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder'); + late final _wire__crate__api__wallet__finish_bump_fee_tx_builder = + _wire__crate__api__wallet__finish_bump_fee_tx_builderPtr.asFunction< void Function( int, ffi.Pointer, @@ -4825,7 +4943,7 @@ class CApiWire implements BaseWire { bool, ffi.Pointer)>(); - void wire_tx_builder_finish( + void wire__crate__api__wallet__tx_builder_finish( int port_, ffi.Pointer wallet, ffi.Pointer recipients, @@ -4841,7 +4959,7 @@ class CApiWire implements BaseWire { ffi.Pointer rbf, ffi.Pointer data, ) { - return _wire_tx_builder_finish( + return _wire__crate__api__wallet__tx_builder_finish( port_, wallet, recipients, @@ -4859,7 +4977,7 @@ class CApiWire implements BaseWire { ); } - late final _wire_tx_builder_finishPtr = _lookup< + late final _wire__crate__api__wallet__tx_builder_finishPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, @@ -4876,324 +4994,329 @@ class CApiWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_tx_builder_finish'); - late final _wire_tx_builder_finish = _wire_tx_builder_finishPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - bool, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - void rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( + 'frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish'); + late final _wire__crate__api__wallet__tx_builder_finish = + _wire__crate__api__wallet__tx_builder_finishPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + bool, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( + return _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_AnyBlockchainPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain'); - late final _rust_arc_increment_strong_count_RustOpaque_AnyBlockchain = - _rust_arc_increment_strong_count_RustOpaque_AnyBlockchainPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress = + _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( + void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( + return _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchainPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain'); - late final _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain = - _rust_arc_decrement_strong_count_RustOpaque_AnyBlockchainPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress = + _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( + void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( + return _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptorPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor'); - late final _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor = - _rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptorPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath = + _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( + void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( + return _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptorPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor'); - late final _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor = - _rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptorPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath = + _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPathPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( + void rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( + return _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction'); - late final _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction = - _rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain = + _rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr .asFunction)>(); - void - rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( + void rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( + return _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction'); - late final _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction = - _rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransactionPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain = + _rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchainPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + void + rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + return _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase'); - late final _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase = - _rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor = + _rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + void + rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( + return _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase'); - late final _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase = - _rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabasePtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor = + _rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptorPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress'); - late final _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress = - _rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddressPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress'); - late final _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress = - _rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddressPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKeyPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath'); - late final _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath = - _rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath'); - late final _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath = - _rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPathPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKeyPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKeyPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMapPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey'); - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey = - _rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKeyPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMapPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKeyPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMapPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey = - _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKeyPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMapPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( + void rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( + return _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKeyPtr = + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey'); - late final _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey = - _rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKeyPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic'); + late final _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic = + _rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( + void rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( + return _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKeyPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey = - _rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKeyPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic'); + late final _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic = + _rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39MnemonicPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysKeyMap( + void + rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysKeyMap( + return _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysKeyMapPtr = _lookup< - ffi.NativeFunction)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap'); - late final _rust_arc_increment_strong_count_RustOpaque_keysKeyMap = - _rust_arc_increment_strong_count_RustOpaque_keysKeyMapPtr + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr = + _lookup)>>( + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase = + _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysKeyMapPtr = _lookup< - ffi.NativeFunction)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysKeyMap = - _rust_arc_decrement_strong_count_RustOpaque_keysKeyMapPtr + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr = + _lookup)>>( + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabasePtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( + void + rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( + return _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_keysbip39MnemonicPtr = + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic'); - late final _rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic = - _rust_arc_increment_strong_count_RustOpaque_keysbip39MnemonicPtr + 'frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction = + _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_keysbip39MnemonicPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr = _lookup)>>( - 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic'); - late final _rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic = - _rust_arc_decrement_strong_count_RustOpaque_keysbip39MnemonicPtr + 'frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransactionPtr .asFunction)>(); ffi.Pointer cst_new_box_autoadd_address_error() { @@ -5779,10 +5902,14 @@ class CApiWire implements BaseWire { _dummy_method_to_enforce_bundlingPtr.asFunction(); } -typedef DartPostCObjectFnType = ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(DartPort port_id, ffi.Pointer message)>>; +typedef DartPostCObjectFnType + = ffi.Pointer>; +typedef DartPostCObjectFnTypeFunction = ffi.Bool Function( + DartPort port_id, ffi.Pointer message); +typedef DartDartPostCObjectFnTypeFunction = bool Function( + DartDartPort port_id, ffi.Pointer message); typedef DartPort = ffi.Int64; +typedef DartDartPort = int; final class wire_cst_bdk_blockchain extends ffi.Struct { @ffi.UintPtr() @@ -5797,7 +5924,7 @@ final class wire_cst_list_prim_u_8_strict extends ffi.Struct { } final class wire_cst_bdk_transaction extends ffi.Struct { - external ffi.Pointer inner; + external ffi.Pointer s; } final class wire_cst_electrum_config extends ffi.Struct { diff --git a/lib/src/generated/frb_generated.web.dart b/lib/src/generated/frb_generated.web.dart deleted file mode 100644 index 15b52176..00000000 --- a/lib/src/generated/frb_generated.web.dart +++ /dev/null @@ -1,3382 +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/blockchain.dart'; -import 'api/descriptor.dart'; -import 'api/error.dart'; -import 'api/key.dart'; -import 'api/psbt.dart'; -import 'api/types.dart'; -import 'api/wallet.dart'; -import 'dart:async'; -import 'dart:convert'; -import 'frb_generated.dart'; -import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_web.dart'; - -abstract class CApiApiImplPlatform extends BaseApiImpl { - CApiApiImplPlatform({ - required super.handler, - required super.wire, - required super.generalizedFrbRustBinding, - required super.portManager, - }); - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_AnyBlockchainPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ExtendedDescriptorPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr => wire - .rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BdkBitcoinAddressPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey; - - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_KeysKeyMapPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_keysKeyMap; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_KeysBip39MnemonicPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic; - - @protected - AnyBlockchain dco_decode_RustOpaque_AnyBlockchain(dynamic raw); - - @protected - ExtendedDescriptor dco_decode_RustOpaque_ExtendedDescriptor(dynamic raw); - - @protected - MutexPartiallySignedTransaction - dco_decode_RustOpaque_MutexPartiallySignedTransaction(dynamic raw); - - @protected - MutexBdkWalletAnyDatabase dco_decode_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic raw); - - @protected - BdkBitcoinAddress dco_decode_RustOpaque_bdkbitcoinAddress(dynamic raw); - - @protected - BitcoinBip32DerivationPath dco_decode_RustOpaque_bitcoinbip32DerivationPath( - dynamic raw); - - @protected - KeysDescriptorPublicKey dco_decode_RustOpaque_keysDescriptorPublicKey( - dynamic raw); - - @protected - KeysDescriptorSecretKey dco_decode_RustOpaque_keysDescriptorSecretKey( - dynamic raw); - - @protected - KeysKeyMap dco_decode_RustOpaque_keysKeyMap(dynamic raw); - - @protected - KeysBip39Mnemonic dco_decode_RustOpaque_keysbip39Mnemonic(dynamic raw); - - @protected - String dco_decode_String(dynamic raw); - - @protected - AddressError dco_decode_address_error(dynamic raw); - - @protected - AddressIndex dco_decode_address_index(dynamic raw); - - @protected - Auth dco_decode_auth(dynamic raw); - - @protected - Balance dco_decode_balance(dynamic raw); - - @protected - BdkAddress dco_decode_bdk_address(dynamic raw); - - @protected - BdkBlockchain dco_decode_bdk_blockchain(dynamic raw); - - @protected - BdkDerivationPath dco_decode_bdk_derivation_path(dynamic raw); - - @protected - BdkDescriptor dco_decode_bdk_descriptor(dynamic raw); - - @protected - BdkDescriptorPublicKey dco_decode_bdk_descriptor_public_key(dynamic raw); - - @protected - BdkDescriptorSecretKey dco_decode_bdk_descriptor_secret_key(dynamic raw); - - @protected - BdkError dco_decode_bdk_error(dynamic raw); - - @protected - BdkMnemonic dco_decode_bdk_mnemonic(dynamic raw); - - @protected - BdkPsbt dco_decode_bdk_psbt(dynamic raw); - - @protected - BdkScriptBuf dco_decode_bdk_script_buf(dynamic raw); - - @protected - BdkTransaction dco_decode_bdk_transaction(dynamic raw); - - @protected - BdkWallet dco_decode_bdk_wallet(dynamic raw); - - @protected - BlockTime dco_decode_block_time(dynamic raw); - - @protected - BlockchainConfig dco_decode_blockchain_config(dynamic raw); - - @protected - bool dco_decode_bool(dynamic raw); - - @protected - AddressError dco_decode_box_autoadd_address_error(dynamic raw); - - @protected - AddressIndex dco_decode_box_autoadd_address_index(dynamic raw); - - @protected - BdkAddress dco_decode_box_autoadd_bdk_address(dynamic raw); - - @protected - BdkBlockchain dco_decode_box_autoadd_bdk_blockchain(dynamic raw); - - @protected - BdkDerivationPath dco_decode_box_autoadd_bdk_derivation_path(dynamic raw); - - @protected - BdkDescriptor dco_decode_box_autoadd_bdk_descriptor(dynamic raw); - - @protected - BdkDescriptorPublicKey dco_decode_box_autoadd_bdk_descriptor_public_key( - dynamic raw); - - @protected - BdkDescriptorSecretKey dco_decode_box_autoadd_bdk_descriptor_secret_key( - dynamic raw); - - @protected - BdkMnemonic dco_decode_box_autoadd_bdk_mnemonic(dynamic raw); - - @protected - BdkPsbt dco_decode_box_autoadd_bdk_psbt(dynamic raw); - - @protected - BdkScriptBuf dco_decode_box_autoadd_bdk_script_buf(dynamic raw); - - @protected - BdkTransaction dco_decode_box_autoadd_bdk_transaction(dynamic raw); - - @protected - BdkWallet dco_decode_box_autoadd_bdk_wallet(dynamic raw); - - @protected - BlockTime dco_decode_box_autoadd_block_time(dynamic raw); - - @protected - BlockchainConfig dco_decode_box_autoadd_blockchain_config(dynamic raw); - - @protected - ConsensusError dco_decode_box_autoadd_consensus_error(dynamic raw); - - @protected - DatabaseConfig dco_decode_box_autoadd_database_config(dynamic raw); - - @protected - DescriptorError dco_decode_box_autoadd_descriptor_error(dynamic raw); - - @protected - ElectrumConfig dco_decode_box_autoadd_electrum_config(dynamic raw); - - @protected - EsploraConfig dco_decode_box_autoadd_esplora_config(dynamic raw); - - @protected - double dco_decode_box_autoadd_f_32(dynamic raw); - - @protected - FeeRate dco_decode_box_autoadd_fee_rate(dynamic raw); - - @protected - HexError dco_decode_box_autoadd_hex_error(dynamic raw); - - @protected - LocalUtxo dco_decode_box_autoadd_local_utxo(dynamic raw); - - @protected - LockTime dco_decode_box_autoadd_lock_time(dynamic raw); - - @protected - OutPoint dco_decode_box_autoadd_out_point(dynamic raw); - - @protected - PsbtSigHashType dco_decode_box_autoadd_psbt_sig_hash_type(dynamic raw); - - @protected - RbfValue dco_decode_box_autoadd_rbf_value(dynamic raw); - - @protected - (OutPoint, Input, int) dco_decode_box_autoadd_record_out_point_input_usize( - dynamic raw); - - @protected - RpcConfig dco_decode_box_autoadd_rpc_config(dynamic raw); - - @protected - RpcSyncParams dco_decode_box_autoadd_rpc_sync_params(dynamic raw); - - @protected - SignOptions dco_decode_box_autoadd_sign_options(dynamic raw); - - @protected - SledDbConfiguration dco_decode_box_autoadd_sled_db_configuration(dynamic raw); - - @protected - SqliteDbConfiguration dco_decode_box_autoadd_sqlite_db_configuration( - dynamic raw); - - @protected - int dco_decode_box_autoadd_u_32(dynamic raw); - - @protected - int dco_decode_box_autoadd_u_64(dynamic raw); - - @protected - int dco_decode_box_autoadd_u_8(dynamic raw); - - @protected - ChangeSpendPolicy dco_decode_change_spend_policy(dynamic raw); - - @protected - ConsensusError dco_decode_consensus_error(dynamic raw); - - @protected - DatabaseConfig dco_decode_database_config(dynamic raw); - - @protected - DescriptorError dco_decode_descriptor_error(dynamic raw); - - @protected - ElectrumConfig dco_decode_electrum_config(dynamic raw); - - @protected - EsploraConfig dco_decode_esplora_config(dynamic raw); - - @protected - double dco_decode_f_32(dynamic raw); - - @protected - FeeRate dco_decode_fee_rate(dynamic raw); - - @protected - HexError dco_decode_hex_error(dynamic raw); - - @protected - int dco_decode_i_32(dynamic raw); - - @protected - Input dco_decode_input(dynamic raw); - - @protected - KeychainKind dco_decode_keychain_kind(dynamic raw); - - @protected - List dco_decode_list_list_prim_u_8_strict(dynamic raw); - - @protected - List dco_decode_list_local_utxo(dynamic raw); - - @protected - List dco_decode_list_out_point(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 dco_decode_list_script_amount(dynamic raw); - - @protected - List dco_decode_list_transaction_details(dynamic raw); - - @protected - List dco_decode_list_tx_in(dynamic raw); - - @protected - List dco_decode_list_tx_out(dynamic raw); - - @protected - LocalUtxo dco_decode_local_utxo(dynamic raw); - - @protected - LockTime dco_decode_lock_time(dynamic raw); - - @protected - Network dco_decode_network(dynamic raw); - - @protected - String? dco_decode_opt_String(dynamic raw); - - @protected - BdkAddress? dco_decode_opt_box_autoadd_bdk_address(dynamic raw); - - @protected - BdkDescriptor? dco_decode_opt_box_autoadd_bdk_descriptor(dynamic raw); - - @protected - BdkScriptBuf? dco_decode_opt_box_autoadd_bdk_script_buf(dynamic raw); - - @protected - BdkTransaction? dco_decode_opt_box_autoadd_bdk_transaction(dynamic raw); - - @protected - BlockTime? dco_decode_opt_box_autoadd_block_time(dynamic raw); - - @protected - double? dco_decode_opt_box_autoadd_f_32(dynamic raw); - - @protected - FeeRate? dco_decode_opt_box_autoadd_fee_rate(dynamic raw); - - @protected - PsbtSigHashType? dco_decode_opt_box_autoadd_psbt_sig_hash_type(dynamic raw); - - @protected - RbfValue? dco_decode_opt_box_autoadd_rbf_value(dynamic raw); - - @protected - (OutPoint, Input, int)? - dco_decode_opt_box_autoadd_record_out_point_input_usize(dynamic raw); - - @protected - RpcSyncParams? dco_decode_opt_box_autoadd_rpc_sync_params(dynamic raw); - - @protected - SignOptions? dco_decode_opt_box_autoadd_sign_options(dynamic raw); - - @protected - int? dco_decode_opt_box_autoadd_u_32(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 - OutPoint dco_decode_out_point(dynamic raw); - - @protected - Payload dco_decode_payload(dynamic raw); - - @protected - PsbtSigHashType dco_decode_psbt_sig_hash_type(dynamic raw); - - @protected - RbfValue dco_decode_rbf_value(dynamic raw); - - @protected - (BdkAddress, int) dco_decode_record_bdk_address_u_32(dynamic raw); - - @protected - (BdkPsbt, TransactionDetails) dco_decode_record_bdk_psbt_transaction_details( - dynamic raw); - - @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw); - - @protected - RpcConfig dco_decode_rpc_config(dynamic raw); - - @protected - RpcSyncParams dco_decode_rpc_sync_params(dynamic raw); - - @protected - ScriptAmount dco_decode_script_amount(dynamic raw); - - @protected - SignOptions dco_decode_sign_options(dynamic raw); - - @protected - SledDbConfiguration dco_decode_sled_db_configuration(dynamic raw); - - @protected - SqliteDbConfiguration dco_decode_sqlite_db_configuration(dynamic raw); - - @protected - TransactionDetails dco_decode_transaction_details(dynamic raw); - - @protected - TxIn dco_decode_tx_in(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 - U8Array4 dco_decode_u_8_array_4(dynamic raw); - - @protected - void dco_decode_unit(dynamic raw); - - @protected - int dco_decode_usize(dynamic raw); - - @protected - Variant dco_decode_variant(dynamic raw); - - @protected - WitnessVersion dco_decode_witness_version(dynamic raw); - - @protected - WordCount dco_decode_word_count(dynamic raw); - - @protected - AnyBlockchain sse_decode_RustOpaque_AnyBlockchain( - SseDeserializer deserializer); - - @protected - ExtendedDescriptor sse_decode_RustOpaque_ExtendedDescriptor( - SseDeserializer deserializer); - - @protected - MutexPartiallySignedTransaction - sse_decode_RustOpaque_MutexPartiallySignedTransaction( - SseDeserializer deserializer); - - @protected - MutexBdkWalletAnyDatabase sse_decode_RustOpaque_MutexbdkWalletAnyDatabase( - SseDeserializer deserializer); - - @protected - BdkBitcoinAddress sse_decode_RustOpaque_bdkbitcoinAddress( - SseDeserializer deserializer); - - @protected - BitcoinBip32DerivationPath sse_decode_RustOpaque_bitcoinbip32DerivationPath( - SseDeserializer deserializer); - - @protected - KeysDescriptorPublicKey sse_decode_RustOpaque_keysDescriptorPublicKey( - SseDeserializer deserializer); - - @protected - KeysDescriptorSecretKey sse_decode_RustOpaque_keysDescriptorSecretKey( - SseDeserializer deserializer); - - @protected - KeysKeyMap sse_decode_RustOpaque_keysKeyMap(SseDeserializer deserializer); - - @protected - KeysBip39Mnemonic sse_decode_RustOpaque_keysbip39Mnemonic( - SseDeserializer deserializer); - - @protected - String sse_decode_String(SseDeserializer deserializer); - - @protected - AddressError sse_decode_address_error(SseDeserializer deserializer); - - @protected - AddressIndex sse_decode_address_index(SseDeserializer deserializer); - - @protected - Auth sse_decode_auth(SseDeserializer deserializer); - - @protected - Balance sse_decode_balance(SseDeserializer deserializer); - - @protected - BdkAddress sse_decode_bdk_address(SseDeserializer deserializer); - - @protected - BdkBlockchain sse_decode_bdk_blockchain(SseDeserializer deserializer); - - @protected - BdkDerivationPath sse_decode_bdk_derivation_path( - SseDeserializer deserializer); - - @protected - BdkDescriptor sse_decode_bdk_descriptor(SseDeserializer deserializer); - - @protected - BdkDescriptorPublicKey sse_decode_bdk_descriptor_public_key( - SseDeserializer deserializer); - - @protected - BdkDescriptorSecretKey sse_decode_bdk_descriptor_secret_key( - SseDeserializer deserializer); - - @protected - BdkError sse_decode_bdk_error(SseDeserializer deserializer); - - @protected - BdkMnemonic sse_decode_bdk_mnemonic(SseDeserializer deserializer); - - @protected - BdkPsbt sse_decode_bdk_psbt(SseDeserializer deserializer); - - @protected - BdkScriptBuf sse_decode_bdk_script_buf(SseDeserializer deserializer); - - @protected - BdkTransaction sse_decode_bdk_transaction(SseDeserializer deserializer); - - @protected - BdkWallet sse_decode_bdk_wallet(SseDeserializer deserializer); - - @protected - BlockTime sse_decode_block_time(SseDeserializer deserializer); - - @protected - BlockchainConfig sse_decode_blockchain_config(SseDeserializer deserializer); - - @protected - bool sse_decode_bool(SseDeserializer deserializer); - - @protected - AddressError sse_decode_box_autoadd_address_error( - SseDeserializer deserializer); - - @protected - AddressIndex sse_decode_box_autoadd_address_index( - SseDeserializer deserializer); - - @protected - BdkAddress sse_decode_box_autoadd_bdk_address(SseDeserializer deserializer); - - @protected - BdkBlockchain sse_decode_box_autoadd_bdk_blockchain( - SseDeserializer deserializer); - - @protected - BdkDerivationPath sse_decode_box_autoadd_bdk_derivation_path( - SseDeserializer deserializer); - - @protected - BdkDescriptor sse_decode_box_autoadd_bdk_descriptor( - SseDeserializer deserializer); - - @protected - BdkDescriptorPublicKey sse_decode_box_autoadd_bdk_descriptor_public_key( - SseDeserializer deserializer); - - @protected - BdkDescriptorSecretKey sse_decode_box_autoadd_bdk_descriptor_secret_key( - SseDeserializer deserializer); - - @protected - BdkMnemonic sse_decode_box_autoadd_bdk_mnemonic(SseDeserializer deserializer); - - @protected - BdkPsbt sse_decode_box_autoadd_bdk_psbt(SseDeserializer deserializer); - - @protected - BdkScriptBuf sse_decode_box_autoadd_bdk_script_buf( - SseDeserializer deserializer); - - @protected - BdkTransaction sse_decode_box_autoadd_bdk_transaction( - SseDeserializer deserializer); - - @protected - BdkWallet sse_decode_box_autoadd_bdk_wallet(SseDeserializer deserializer); - - @protected - BlockTime sse_decode_box_autoadd_block_time(SseDeserializer deserializer); - - @protected - BlockchainConfig sse_decode_box_autoadd_blockchain_config( - SseDeserializer deserializer); - - @protected - ConsensusError sse_decode_box_autoadd_consensus_error( - SseDeserializer deserializer); - - @protected - DatabaseConfig sse_decode_box_autoadd_database_config( - SseDeserializer deserializer); - - @protected - DescriptorError sse_decode_box_autoadd_descriptor_error( - SseDeserializer deserializer); - - @protected - ElectrumConfig sse_decode_box_autoadd_electrum_config( - SseDeserializer deserializer); - - @protected - EsploraConfig sse_decode_box_autoadd_esplora_config( - SseDeserializer deserializer); - - @protected - double sse_decode_box_autoadd_f_32(SseDeserializer deserializer); - - @protected - FeeRate sse_decode_box_autoadd_fee_rate(SseDeserializer deserializer); - - @protected - HexError sse_decode_box_autoadd_hex_error(SseDeserializer deserializer); - - @protected - LocalUtxo sse_decode_box_autoadd_local_utxo(SseDeserializer deserializer); - - @protected - LockTime sse_decode_box_autoadd_lock_time(SseDeserializer deserializer); - - @protected - OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); - - @protected - PsbtSigHashType sse_decode_box_autoadd_psbt_sig_hash_type( - SseDeserializer deserializer); - - @protected - RbfValue sse_decode_box_autoadd_rbf_value(SseDeserializer deserializer); - - @protected - (OutPoint, Input, int) sse_decode_box_autoadd_record_out_point_input_usize( - SseDeserializer deserializer); - - @protected - RpcConfig sse_decode_box_autoadd_rpc_config(SseDeserializer deserializer); - - @protected - RpcSyncParams sse_decode_box_autoadd_rpc_sync_params( - SseDeserializer deserializer); - - @protected - SignOptions sse_decode_box_autoadd_sign_options(SseDeserializer deserializer); - - @protected - SledDbConfiguration sse_decode_box_autoadd_sled_db_configuration( - SseDeserializer deserializer); - - @protected - SqliteDbConfiguration sse_decode_box_autoadd_sqlite_db_configuration( - SseDeserializer deserializer); - - @protected - int sse_decode_box_autoadd_u_32(SseDeserializer deserializer); - - @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); - - @protected - int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); - - @protected - ChangeSpendPolicy sse_decode_change_spend_policy( - SseDeserializer deserializer); - - @protected - ConsensusError sse_decode_consensus_error(SseDeserializer deserializer); - - @protected - DatabaseConfig sse_decode_database_config(SseDeserializer deserializer); - - @protected - DescriptorError sse_decode_descriptor_error(SseDeserializer deserializer); - - @protected - ElectrumConfig sse_decode_electrum_config(SseDeserializer deserializer); - - @protected - EsploraConfig sse_decode_esplora_config(SseDeserializer deserializer); - - @protected - double sse_decode_f_32(SseDeserializer deserializer); - - @protected - FeeRate sse_decode_fee_rate(SseDeserializer deserializer); - - @protected - HexError sse_decode_hex_error(SseDeserializer deserializer); - - @protected - int sse_decode_i_32(SseDeserializer deserializer); - - @protected - Input sse_decode_input(SseDeserializer deserializer); - - @protected - KeychainKind sse_decode_keychain_kind(SseDeserializer deserializer); - - @protected - List sse_decode_list_list_prim_u_8_strict( - SseDeserializer deserializer); - - @protected - List sse_decode_list_local_utxo(SseDeserializer deserializer); - - @protected - List sse_decode_list_out_point(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 sse_decode_list_script_amount( - SseDeserializer deserializer); - - @protected - List sse_decode_list_transaction_details( - SseDeserializer deserializer); - - @protected - List sse_decode_list_tx_in(SseDeserializer deserializer); - - @protected - List sse_decode_list_tx_out(SseDeserializer deserializer); - - @protected - LocalUtxo sse_decode_local_utxo(SseDeserializer deserializer); - - @protected - LockTime sse_decode_lock_time(SseDeserializer deserializer); - - @protected - Network sse_decode_network(SseDeserializer deserializer); - - @protected - String? sse_decode_opt_String(SseDeserializer deserializer); - - @protected - BdkAddress? sse_decode_opt_box_autoadd_bdk_address( - SseDeserializer deserializer); - - @protected - BdkDescriptor? sse_decode_opt_box_autoadd_bdk_descriptor( - SseDeserializer deserializer); - - @protected - BdkScriptBuf? sse_decode_opt_box_autoadd_bdk_script_buf( - SseDeserializer deserializer); - - @protected - BdkTransaction? sse_decode_opt_box_autoadd_bdk_transaction( - SseDeserializer deserializer); - - @protected - BlockTime? sse_decode_opt_box_autoadd_block_time( - SseDeserializer deserializer); - - @protected - double? sse_decode_opt_box_autoadd_f_32(SseDeserializer deserializer); - - @protected - FeeRate? sse_decode_opt_box_autoadd_fee_rate(SseDeserializer deserializer); - - @protected - PsbtSigHashType? sse_decode_opt_box_autoadd_psbt_sig_hash_type( - SseDeserializer deserializer); - - @protected - RbfValue? sse_decode_opt_box_autoadd_rbf_value(SseDeserializer deserializer); - - @protected - (OutPoint, Input, int)? - sse_decode_opt_box_autoadd_record_out_point_input_usize( - SseDeserializer deserializer); - - @protected - RpcSyncParams? sse_decode_opt_box_autoadd_rpc_sync_params( - SseDeserializer deserializer); - - @protected - SignOptions? sse_decode_opt_box_autoadd_sign_options( - SseDeserializer deserializer); - - @protected - int? sse_decode_opt_box_autoadd_u_32(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 - OutPoint sse_decode_out_point(SseDeserializer deserializer); - - @protected - Payload sse_decode_payload(SseDeserializer deserializer); - - @protected - PsbtSigHashType sse_decode_psbt_sig_hash_type(SseDeserializer deserializer); - - @protected - RbfValue sse_decode_rbf_value(SseDeserializer deserializer); - - @protected - (BdkAddress, int) sse_decode_record_bdk_address_u_32( - SseDeserializer deserializer); - - @protected - (BdkPsbt, TransactionDetails) sse_decode_record_bdk_psbt_transaction_details( - SseDeserializer deserializer); - - @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( - SseDeserializer deserializer); - - @protected - RpcConfig sse_decode_rpc_config(SseDeserializer deserializer); - - @protected - RpcSyncParams sse_decode_rpc_sync_params(SseDeserializer deserializer); - - @protected - ScriptAmount sse_decode_script_amount(SseDeserializer deserializer); - - @protected - SignOptions sse_decode_sign_options(SseDeserializer deserializer); - - @protected - SledDbConfiguration sse_decode_sled_db_configuration( - SseDeserializer deserializer); - - @protected - SqliteDbConfiguration sse_decode_sqlite_db_configuration( - SseDeserializer deserializer); - - @protected - TransactionDetails sse_decode_transaction_details( - SseDeserializer deserializer); - - @protected - TxIn sse_decode_tx_in(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 - U8Array4 sse_decode_u_8_array_4(SseDeserializer deserializer); - - @protected - void sse_decode_unit(SseDeserializer deserializer); - - @protected - int sse_decode_usize(SseDeserializer deserializer); - - @protected - Variant sse_decode_variant(SseDeserializer deserializer); - - @protected - WitnessVersion sse_decode_witness_version(SseDeserializer deserializer); - - @protected - WordCount sse_decode_word_count(SseDeserializer deserializer); - - @protected - String cst_encode_String(String raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; - } - - @protected - List cst_encode_address_error(AddressError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is AddressError_Base58) { - return [0, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_Bech32) { - return [1, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_EmptyBech32Payload) { - return [2]; - } - if (raw is AddressError_InvalidBech32Variant) { - return [ - 3, - cst_encode_variant(raw.expected), - cst_encode_variant(raw.found) - ]; - } - if (raw is AddressError_InvalidWitnessVersion) { - return [4, cst_encode_u_8(raw.field0)]; - } - if (raw is AddressError_UnparsableWitnessVersion) { - return [5, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_MalformedWitnessVersion) { - return [6]; - } - if (raw is AddressError_InvalidWitnessProgramLength) { - return [7, cst_encode_usize(raw.field0)]; - } - if (raw is AddressError_InvalidSegwitV0ProgramLength) { - return [8, cst_encode_usize(raw.field0)]; - } - if (raw is AddressError_UncompressedPubkey) { - return [9]; - } - if (raw is AddressError_ExcessiveScriptSize) { - return [10]; - } - if (raw is AddressError_UnrecognizedScript) { - return [11]; - } - if (raw is AddressError_UnknownAddressType) { - return [12, cst_encode_String(raw.field0)]; - } - if (raw is AddressError_NetworkValidation) { - return [ - 13, - cst_encode_network(raw.networkRequired), - cst_encode_network(raw.networkFound), - cst_encode_String(raw.address) - ]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_address_index(AddressIndex raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is AddressIndex_Increase) { - return [0]; - } - if (raw is AddressIndex_LastUnused) { - return [1]; - } - if (raw is AddressIndex_Peek) { - return [2, cst_encode_u_32(raw.index)]; - } - if (raw is AddressIndex_Reset) { - return [3, cst_encode_u_32(raw.index)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_auth(Auth raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is Auth_None) { - return [0]; - } - if (raw is Auth_UserPass) { - return [ - 1, - cst_encode_String(raw.username), - cst_encode_String(raw.password) - ]; - } - if (raw is Auth_Cookie) { - return [2, cst_encode_String(raw.file)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_balance(Balance raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_u_64(raw.immature), - cst_encode_u_64(raw.trustedPending), - cst_encode_u_64(raw.untrustedPending), - cst_encode_u_64(raw.confirmed), - cst_encode_u_64(raw.spendable), - cst_encode_u_64(raw.total) - ]; - } - - @protected - List cst_encode_bdk_address(BdkAddress raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_bdkbitcoinAddress(raw.ptr)]; - } - - @protected - List cst_encode_bdk_blockchain(BdkBlockchain raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_AnyBlockchain(raw.ptr)]; - } - - @protected - List cst_encode_bdk_derivation_path(BdkDerivationPath raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_bitcoinbip32DerivationPath(raw.ptr)]; - } - - @protected - List cst_encode_bdk_descriptor(BdkDescriptor raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_RustOpaque_ExtendedDescriptor(raw.extendedDescriptor), - cst_encode_RustOpaque_keysKeyMap(raw.keyMap) - ]; - } - - @protected - List cst_encode_bdk_descriptor_public_key( - BdkDescriptorPublicKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysDescriptorPublicKey(raw.ptr)]; - } - - @protected - List cst_encode_bdk_descriptor_secret_key( - BdkDescriptorSecretKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysDescriptorSecretKey(raw.ptr)]; - } - - @protected - List cst_encode_bdk_error(BdkError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is BdkError_Hex) { - return [0, cst_encode_box_autoadd_hex_error(raw.field0)]; - } - if (raw is BdkError_Consensus) { - return [1, cst_encode_box_autoadd_consensus_error(raw.field0)]; - } - if (raw is BdkError_VerifyTransaction) { - return [2, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Address) { - return [3, cst_encode_box_autoadd_address_error(raw.field0)]; - } - if (raw is BdkError_Descriptor) { - return [4, cst_encode_box_autoadd_descriptor_error(raw.field0)]; - } - if (raw is BdkError_InvalidU32Bytes) { - return [5, cst_encode_list_prim_u_8_strict(raw.field0)]; - } - if (raw is BdkError_Generic) { - return [6, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_ScriptDoesntHaveAddressForm) { - return [7]; - } - if (raw is BdkError_NoRecipients) { - return [8]; - } - if (raw is BdkError_NoUtxosSelected) { - return [9]; - } - if (raw is BdkError_OutputBelowDustLimit) { - return [10, cst_encode_usize(raw.field0)]; - } - if (raw is BdkError_InsufficientFunds) { - return [11, cst_encode_u_64(raw.needed), cst_encode_u_64(raw.available)]; - } - if (raw is BdkError_BnBTotalTriesExceeded) { - return [12]; - } - if (raw is BdkError_BnBNoExactMatch) { - return [13]; - } - if (raw is BdkError_UnknownUtxo) { - return [14]; - } - if (raw is BdkError_TransactionNotFound) { - return [15]; - } - if (raw is BdkError_TransactionConfirmed) { - return [16]; - } - if (raw is BdkError_IrreplaceableTransaction) { - return [17]; - } - if (raw is BdkError_FeeRateTooLow) { - return [18, cst_encode_f_32(raw.needed)]; - } - if (raw is BdkError_FeeTooLow) { - return [19, cst_encode_u_64(raw.needed)]; - } - if (raw is BdkError_FeeRateUnavailable) { - return [20]; - } - if (raw is BdkError_MissingKeyOrigin) { - return [21, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Key) { - return [22, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_ChecksumMismatch) { - return [23]; - } - if (raw is BdkError_SpendingPolicyRequired) { - return [24, cst_encode_keychain_kind(raw.field0)]; - } - if (raw is BdkError_InvalidPolicyPathError) { - return [25, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Signer) { - return [26, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidNetwork) { - return [ - 27, - cst_encode_network(raw.requested), - cst_encode_network(raw.found) - ]; - } - if (raw is BdkError_InvalidOutpoint) { - return [28, cst_encode_box_autoadd_out_point(raw.field0)]; - } - if (raw is BdkError_Encode) { - return [29, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Miniscript) { - return [30, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_MiniscriptPsbt) { - return [31, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Bip32) { - return [32, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Bip39) { - return [33, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Secp256k1) { - return [34, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Json) { - return [35, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Psbt) { - return [36, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_PsbtParse) { - return [37, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_MissingCachedScripts) { - return [38, cst_encode_usize(raw.field0), cst_encode_usize(raw.field1)]; - } - if (raw is BdkError_Electrum) { - return [39, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Esplora) { - return [40, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Sled) { - return [41, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Rpc) { - return [42, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_Rusqlite) { - return [43, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidInput) { - return [44, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidLockTime) { - return [45, cst_encode_String(raw.field0)]; - } - if (raw is BdkError_InvalidTransaction) { - return [46, cst_encode_String(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_bdk_mnemonic(BdkMnemonic raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysbip39Mnemonic(raw.ptr)]; - } - - @protected - List cst_encode_bdk_psbt(BdkPsbt raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_MutexPartiallySignedTransaction(raw.ptr)]; - } - - @protected - List cst_encode_bdk_script_buf(BdkScriptBuf raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_list_prim_u_8_strict(raw.bytes)]; - } - - @protected - List cst_encode_bdk_transaction(BdkTransaction raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.inner)]; - } - - @protected - List cst_encode_bdk_wallet(BdkWallet raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_MutexbdkWalletAnyDatabase(raw.ptr)]; - } - - @protected - List cst_encode_block_time(BlockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_u_32(raw.height), cst_encode_u_64(raw.timestamp)]; - } - - @protected - List cst_encode_blockchain_config(BlockchainConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is BlockchainConfig_Electrum) { - return [0, cst_encode_box_autoadd_electrum_config(raw.config)]; - } - if (raw is BlockchainConfig_Esplora) { - return [1, cst_encode_box_autoadd_esplora_config(raw.config)]; - } - if (raw is BlockchainConfig_Rpc) { - return [2, cst_encode_box_autoadd_rpc_config(raw.config)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_box_autoadd_address_error(AddressError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_address_error(raw); - } - - @protected - List cst_encode_box_autoadd_address_index(AddressIndex raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_address_index(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_address(BdkAddress raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_address(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_blockchain(BdkBlockchain raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_blockchain(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_derivation_path( - BdkDerivationPath raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_derivation_path(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_descriptor(BdkDescriptor raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_descriptor(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_descriptor_public_key( - BdkDescriptorPublicKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_descriptor_public_key(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_descriptor_secret_key( - BdkDescriptorSecretKey raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_descriptor_secret_key(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_mnemonic(BdkMnemonic raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_mnemonic(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_psbt(BdkPsbt raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_psbt(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_script_buf(BdkScriptBuf raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_script_buf(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_transaction(BdkTransaction raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_transaction(raw); - } - - @protected - List cst_encode_box_autoadd_bdk_wallet(BdkWallet raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_bdk_wallet(raw); - } - - @protected - List cst_encode_box_autoadd_block_time(BlockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_block_time(raw); - } - - @protected - List cst_encode_box_autoadd_blockchain_config(BlockchainConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_blockchain_config(raw); - } - - @protected - List cst_encode_box_autoadd_consensus_error(ConsensusError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_consensus_error(raw); - } - - @protected - List cst_encode_box_autoadd_database_config(DatabaseConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_database_config(raw); - } - - @protected - List cst_encode_box_autoadd_descriptor_error(DescriptorError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_descriptor_error(raw); - } - - @protected - List cst_encode_box_autoadd_electrum_config(ElectrumConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_electrum_config(raw); - } - - @protected - List cst_encode_box_autoadd_esplora_config(EsploraConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_esplora_config(raw); - } - - @protected - double cst_encode_box_autoadd_f_32(double raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_f_32(raw); - } - - @protected - List cst_encode_box_autoadd_fee_rate(FeeRate raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_fee_rate(raw); - } - - @protected - List cst_encode_box_autoadd_hex_error(HexError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_hex_error(raw); - } - - @protected - List cst_encode_box_autoadd_local_utxo(LocalUtxo raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_local_utxo(raw); - } - - @protected - List cst_encode_box_autoadd_lock_time(LockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_lock_time(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_psbt_sig_hash_type(PsbtSigHashType raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_psbt_sig_hash_type(raw); - } - - @protected - List cst_encode_box_autoadd_rbf_value(RbfValue raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_rbf_value(raw); - } - - @protected - List cst_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_record_out_point_input_usize(raw); - } - - @protected - List cst_encode_box_autoadd_rpc_config(RpcConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_rpc_config(raw); - } - - @protected - List cst_encode_box_autoadd_rpc_sync_params(RpcSyncParams raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_rpc_sync_params(raw); - } - - @protected - List cst_encode_box_autoadd_sign_options(SignOptions raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_sign_options(raw); - } - - @protected - List cst_encode_box_autoadd_sled_db_configuration( - SledDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_sled_db_configuration(raw); - } - - @protected - List cst_encode_box_autoadd_sqlite_db_configuration( - SqliteDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_sqlite_db_configuration(raw); - } - - @protected - int cst_encode_box_autoadd_u_32(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_u_32(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_consensus_error(ConsensusError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is ConsensusError_Io) { - return [0, cst_encode_String(raw.field0)]; - } - if (raw is ConsensusError_OversizedVectorAllocation) { - return [1, cst_encode_usize(raw.requested), cst_encode_usize(raw.max)]; - } - if (raw is ConsensusError_InvalidChecksum) { - return [ - 2, - cst_encode_u_8_array_4(raw.expected), - cst_encode_u_8_array_4(raw.actual) - ]; - } - if (raw is ConsensusError_NonMinimalVarInt) { - return [3]; - } - if (raw is ConsensusError_ParseFailed) { - return [4, cst_encode_String(raw.field0)]; - } - if (raw is ConsensusError_UnsupportedSegwitFlag) { - return [5, cst_encode_u_8(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_database_config(DatabaseConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is DatabaseConfig_Memory) { - return [0]; - } - if (raw is DatabaseConfig_Sqlite) { - return [1, cst_encode_box_autoadd_sqlite_db_configuration(raw.config)]; - } - if (raw is DatabaseConfig_Sled) { - return [2, cst_encode_box_autoadd_sled_db_configuration(raw.config)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_descriptor_error(DescriptorError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is DescriptorError_InvalidHdKeyPath) { - return [0]; - } - if (raw is DescriptorError_InvalidDescriptorChecksum) { - return [1]; - } - if (raw is DescriptorError_HardenedDerivationXpub) { - return [2]; - } - if (raw is DescriptorError_MultiPath) { - return [3]; - } - if (raw is DescriptorError_Key) { - return [4, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Policy) { - return [5, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_InvalidDescriptorCharacter) { - return [6, cst_encode_u_8(raw.field0)]; - } - if (raw is DescriptorError_Bip32) { - return [7, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Base58) { - return [8, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Pk) { - return [9, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Miniscript) { - return [10, cst_encode_String(raw.field0)]; - } - if (raw is DescriptorError_Hex) { - return [11, cst_encode_String(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_electrum_config(ElectrumConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_String(raw.url), - cst_encode_opt_String(raw.socks5), - cst_encode_u_8(raw.retry), - cst_encode_opt_box_autoadd_u_8(raw.timeout), - cst_encode_u_64(raw.stopGap), - cst_encode_bool(raw.validateDomain) - ]; - } - - @protected - List cst_encode_esplora_config(EsploraConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_String(raw.baseUrl), - cst_encode_opt_String(raw.proxy), - cst_encode_opt_box_autoadd_u_8(raw.concurrency), - cst_encode_u_64(raw.stopGap), - cst_encode_opt_box_autoadd_u_64(raw.timeout) - ]; - } - - @protected - List cst_encode_fee_rate(FeeRate raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_f_32(raw.satPerVb)]; - } - - @protected - List cst_encode_hex_error(HexError raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is HexError_InvalidChar) { - return [0, cst_encode_u_8(raw.field0)]; - } - if (raw is HexError_OddLengthString) { - return [1, cst_encode_usize(raw.field0)]; - } - if (raw is HexError_InvalidLength) { - return [2, cst_encode_usize(raw.field0), cst_encode_usize(raw.field1)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_input(Input raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.s)]; - } - - @protected - List cst_encode_list_list_prim_u_8_strict(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_list_prim_u_8_strict).toList(); - } - - @protected - List cst_encode_list_local_utxo(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_local_utxo).toList(); - } - - @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 - 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_script_amount(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_script_amount).toList(); - } - - @protected - List cst_encode_list_transaction_details( - List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_transaction_details).toList(); - } - - @protected - List cst_encode_list_tx_in(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_tx_in).toList(); - } - - @protected - List cst_encode_list_tx_out(List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw.map(cst_encode_tx_out).toList(); - } - - @protected - List cst_encode_local_utxo(LocalUtxo raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_out_point(raw.outpoint), - cst_encode_tx_out(raw.txout), - cst_encode_keychain_kind(raw.keychain), - cst_encode_bool(raw.isSpent) - ]; - } - - @protected - List cst_encode_lock_time(LockTime raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is LockTime_Blocks) { - return [0, cst_encode_u_32(raw.field0)]; - } - if (raw is LockTime_Seconds) { - return [1, cst_encode_u_32(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @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 - List? cst_encode_opt_box_autoadd_bdk_address(BdkAddress? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_address(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_bdk_descriptor(BdkDescriptor? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_descriptor(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_bdk_script_buf(BdkScriptBuf? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_script_buf(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_bdk_transaction( - BdkTransaction? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_bdk_transaction(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_block_time(BlockTime? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_block_time(raw); - } - - @protected - double? cst_encode_opt_box_autoadd_f_32(double? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_f_32(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_fee_rate(FeeRate? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_fee_rate(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_psbt_sig_hash_type( - PsbtSigHashType? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_psbt_sig_hash_type(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_rbf_value(RbfValue? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_rbf_value(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null - ? null - : cst_encode_box_autoadd_record_out_point_input_usize(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_rpc_sync_params( - RpcSyncParams? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_rpc_sync_params(raw); - } - - @protected - List? cst_encode_opt_box_autoadd_sign_options(SignOptions? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_sign_options(raw); - } - - @protected - int? cst_encode_opt_box_autoadd_u_32(int? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_u_32(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_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_payload(Payload raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is Payload_PubkeyHash) { - return [0, cst_encode_String(raw.pubkeyHash)]; - } - if (raw is Payload_ScriptHash) { - return [1, cst_encode_String(raw.scriptHash)]; - } - if (raw is Payload_WitnessProgram) { - return [ - 2, - cst_encode_witness_version(raw.version), - cst_encode_list_prim_u_8_strict(raw.program) - ]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_psbt_sig_hash_type(PsbtSigHashType raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_u_32(raw.inner)]; - } - - @protected - List cst_encode_rbf_value(RbfValue raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - if (raw is RbfValue_RbfDefault) { - return [0]; - } - if (raw is RbfValue_Value) { - return [1, cst_encode_u_32(raw.field0)]; - } - - throw Exception('unreachable'); - } - - @protected - List cst_encode_record_bdk_address_u_32((BdkAddress, int) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_bdk_address(raw.$1), cst_encode_u_32(raw.$2)]; - } - - @protected - List cst_encode_record_bdk_psbt_transaction_details( - (BdkPsbt, TransactionDetails) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_bdk_psbt(raw.$1), - cst_encode_transaction_details(raw.$2) - ]; - } - - @protected - List cst_encode_record_out_point_input_usize( - (OutPoint, Input, int) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_out_point(raw.$1), - cst_encode_input(raw.$2), - cst_encode_usize(raw.$3) - ]; - } - - @protected - List cst_encode_rpc_config(RpcConfig raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_String(raw.url), - cst_encode_auth(raw.auth), - cst_encode_network(raw.network), - cst_encode_String(raw.walletName), - cst_encode_opt_box_autoadd_rpc_sync_params(raw.syncParams) - ]; - } - - @protected - List cst_encode_rpc_sync_params(RpcSyncParams raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_u_64(raw.startScriptCount), - cst_encode_u_64(raw.startTime), - cst_encode_bool(raw.forceStartTime), - cst_encode_u_64(raw.pollRateSec) - ]; - } - - @protected - List cst_encode_script_amount(ScriptAmount raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_bdk_script_buf(raw.script), cst_encode_u_64(raw.amount)]; - } - - @protected - List cst_encode_sign_options(SignOptions raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_bool(raw.trustWitnessUtxo), - cst_encode_opt_box_autoadd_u_32(raw.assumeHeight), - cst_encode_bool(raw.allowAllSighashes), - cst_encode_bool(raw.removePartialSigs), - cst_encode_bool(raw.tryFinalize), - cst_encode_bool(raw.signWithTapInternalKey), - cst_encode_bool(raw.allowGrinding) - ]; - } - - @protected - List cst_encode_sled_db_configuration(SledDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.path), cst_encode_String(raw.treeName)]; - } - - @protected - List cst_encode_sqlite_db_configuration(SqliteDbConfiguration raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.path)]; - } - - @protected - List cst_encode_transaction_details(TransactionDetails raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_opt_box_autoadd_bdk_transaction(raw.transaction), - cst_encode_String(raw.txid), - cst_encode_u_64(raw.received), - cst_encode_u_64(raw.sent), - cst_encode_opt_box_autoadd_u_64(raw.fee), - cst_encode_opt_box_autoadd_block_time(raw.confirmationTime) - ]; - } - - @protected - List cst_encode_tx_in(TxIn raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_out_point(raw.previousOutput), - cst_encode_bdk_script_buf(raw.scriptSig), - cst_encode_u_32(raw.sequence), - cst_encode_list_list_prim_u_8_strict(raw.witness) - ]; - } - - @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_bdk_script_buf(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 - Uint8List cst_encode_u_8_array_4(U8Array4 raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return Uint8List.fromList(raw); - } - - @protected - int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw); - - @protected - int cst_encode_RustOpaque_ExtendedDescriptor(ExtendedDescriptor raw); - - @protected - int cst_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction raw); - - @protected - int cst_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase raw); - - @protected - int cst_encode_RustOpaque_bdkbitcoinAddress(BdkBitcoinAddress raw); - - @protected - int cst_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath raw); - - @protected - int cst_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey raw); - - @protected - int cst_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey raw); - - @protected - int cst_encode_RustOpaque_keysKeyMap(KeysKeyMap raw); - - @protected - int cst_encode_RustOpaque_keysbip39Mnemonic(KeysBip39Mnemonic raw); - - @protected - bool cst_encode_bool(bool raw); - - @protected - int cst_encode_change_spend_policy(ChangeSpendPolicy raw); - - @protected - double cst_encode_f_32(double raw); - - @protected - int cst_encode_i_32(int raw); - - @protected - int cst_encode_keychain_kind(KeychainKind raw); - - @protected - int cst_encode_network(Network 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 - int cst_encode_variant(Variant raw); - - @protected - int cst_encode_witness_version(WitnessVersion raw); - - @protected - int cst_encode_word_count(WordCount raw); - - @protected - void sse_encode_RustOpaque_AnyBlockchain( - AnyBlockchain self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_ExtendedDescriptor( - ExtendedDescriptor self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_MutexPartiallySignedTransaction( - MutexPartiallySignedTransaction self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_MutexbdkWalletAnyDatabase( - MutexBdkWalletAnyDatabase self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_bdkbitcoinAddress( - BdkBitcoinAddress self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_bitcoinbip32DerivationPath( - BitcoinBip32DerivationPath self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysDescriptorPublicKey( - KeysDescriptorPublicKey self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysDescriptorSecretKey( - KeysDescriptorSecretKey self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysKeyMap( - KeysKeyMap self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_keysbip39Mnemonic( - KeysBip39Mnemonic self, SseSerializer serializer); - - @protected - void sse_encode_String(String self, SseSerializer serializer); - - @protected - void sse_encode_address_error(AddressError self, SseSerializer serializer); - - @protected - void sse_encode_address_index(AddressIndex self, SseSerializer serializer); - - @protected - void sse_encode_auth(Auth self, SseSerializer serializer); - - @protected - void sse_encode_balance(Balance self, SseSerializer serializer); - - @protected - void sse_encode_bdk_address(BdkAddress self, SseSerializer serializer); - - @protected - void sse_encode_bdk_blockchain(BdkBlockchain self, SseSerializer serializer); - - @protected - void sse_encode_bdk_derivation_path( - BdkDerivationPath self, SseSerializer serializer); - - @protected - void sse_encode_bdk_descriptor(BdkDescriptor self, SseSerializer serializer); - - @protected - void sse_encode_bdk_descriptor_public_key( - BdkDescriptorPublicKey self, SseSerializer serializer); - - @protected - void sse_encode_bdk_descriptor_secret_key( - BdkDescriptorSecretKey self, SseSerializer serializer); - - @protected - void sse_encode_bdk_error(BdkError self, SseSerializer serializer); - - @protected - void sse_encode_bdk_mnemonic(BdkMnemonic self, SseSerializer serializer); - - @protected - void sse_encode_bdk_psbt(BdkPsbt self, SseSerializer serializer); - - @protected - void sse_encode_bdk_script_buf(BdkScriptBuf self, SseSerializer serializer); - - @protected - void sse_encode_bdk_transaction( - BdkTransaction self, SseSerializer serializer); - - @protected - void sse_encode_bdk_wallet(BdkWallet self, SseSerializer serializer); - - @protected - void sse_encode_block_time(BlockTime self, SseSerializer serializer); - - @protected - void sse_encode_blockchain_config( - BlockchainConfig self, SseSerializer serializer); - - @protected - void sse_encode_bool(bool self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_address_error( - AddressError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_address_index( - AddressIndex self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_address( - BdkAddress self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_blockchain( - BdkBlockchain self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_derivation_path( - BdkDerivationPath self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_descriptor( - BdkDescriptor self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_descriptor_public_key( - BdkDescriptorPublicKey self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_descriptor_secret_key( - BdkDescriptorSecretKey self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_mnemonic( - BdkMnemonic self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_psbt(BdkPsbt self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_script_buf( - BdkScriptBuf self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_transaction( - BdkTransaction self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_bdk_wallet( - BdkWallet self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_block_time( - BlockTime self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_blockchain_config( - BlockchainConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_consensus_error( - ConsensusError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_database_config( - DatabaseConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_descriptor_error( - DescriptorError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_electrum_config( - ElectrumConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_esplora_config( - EsploraConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_f_32(double self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_fee_rate(FeeRate self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_hex_error( - HexError self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_local_utxo( - LocalUtxo self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_lock_time( - LockTime self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_out_point( - OutPoint self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_psbt_sig_hash_type( - PsbtSigHashType self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_rbf_value( - RbfValue self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_rpc_config( - RpcConfig self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_rpc_sync_params( - RpcSyncParams self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_sign_options( - SignOptions self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_sled_db_configuration( - SledDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_sqlite_db_configuration( - SqliteDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_u_32(int 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_change_spend_policy( - ChangeSpendPolicy self, SseSerializer serializer); - - @protected - void sse_encode_consensus_error( - ConsensusError self, SseSerializer serializer); - - @protected - void sse_encode_database_config( - DatabaseConfig self, SseSerializer serializer); - - @protected - void sse_encode_descriptor_error( - DescriptorError self, SseSerializer serializer); - - @protected - void sse_encode_electrum_config( - ElectrumConfig self, SseSerializer serializer); - - @protected - void sse_encode_esplora_config(EsploraConfig self, SseSerializer serializer); - - @protected - void sse_encode_f_32(double self, SseSerializer serializer); - - @protected - void sse_encode_fee_rate(FeeRate self, SseSerializer serializer); - - @protected - void sse_encode_hex_error(HexError self, SseSerializer serializer); - - @protected - void sse_encode_i_32(int self, SseSerializer serializer); - - @protected - void sse_encode_input(Input self, SseSerializer serializer); - - @protected - void sse_encode_keychain_kind(KeychainKind self, SseSerializer serializer); - - @protected - void sse_encode_list_list_prim_u_8_strict( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_local_utxo( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_out_point(List 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_script_amount( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_transaction_details( - List self, SseSerializer serializer); - - @protected - void sse_encode_list_tx_in(List self, SseSerializer serializer); - - @protected - void sse_encode_list_tx_out(List self, SseSerializer serializer); - - @protected - void sse_encode_local_utxo(LocalUtxo self, SseSerializer serializer); - - @protected - void sse_encode_lock_time(LockTime self, SseSerializer serializer); - - @protected - void sse_encode_network(Network self, SseSerializer serializer); - - @protected - void sse_encode_opt_String(String? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_address( - BdkAddress? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_descriptor( - BdkDescriptor? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_script_buf( - BdkScriptBuf? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_bdk_transaction( - BdkTransaction? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_block_time( - BlockTime? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_f_32(double? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_fee_rate( - FeeRate? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_psbt_sig_hash_type( - PsbtSigHashType? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_rbf_value( - RbfValue? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_record_out_point_input_usize( - (OutPoint, Input, int)? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_rpc_sync_params( - RpcSyncParams? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_sign_options( - SignOptions? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_u_32(int? 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_out_point(OutPoint self, SseSerializer serializer); - - @protected - void sse_encode_payload(Payload self, SseSerializer serializer); - - @protected - void sse_encode_psbt_sig_hash_type( - PsbtSigHashType self, SseSerializer serializer); - - @protected - void sse_encode_rbf_value(RbfValue self, SseSerializer serializer); - - @protected - void sse_encode_record_bdk_address_u_32( - (BdkAddress, int) self, SseSerializer serializer); - - @protected - void sse_encode_record_bdk_psbt_transaction_details( - (BdkPsbt, TransactionDetails) self, SseSerializer serializer); - - @protected - void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); - - @protected - void sse_encode_rpc_config(RpcConfig self, SseSerializer serializer); - - @protected - void sse_encode_rpc_sync_params(RpcSyncParams self, SseSerializer serializer); - - @protected - void sse_encode_script_amount(ScriptAmount self, SseSerializer serializer); - - @protected - void sse_encode_sign_options(SignOptions self, SseSerializer serializer); - - @protected - void sse_encode_sled_db_configuration( - SledDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_sqlite_db_configuration( - SqliteDbConfiguration self, SseSerializer serializer); - - @protected - void sse_encode_transaction_details( - TransactionDetails self, SseSerializer serializer); - - @protected - void sse_encode_tx_in(TxIn 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_u_8_array_4(U8Array4 self, SseSerializer serializer); - - @protected - void sse_encode_unit(void self, SseSerializer serializer); - - @protected - void sse_encode_usize(int self, SseSerializer serializer); - - @protected - void sse_encode_variant(Variant self, SseSerializer serializer); - - @protected - void sse_encode_witness_version( - WitnessVersion self, SseSerializer serializer); - - @protected - void sse_encode_word_count(WordCount self, SseSerializer serializer); -} - -// Section: wire_class - -class CApiWire implements BaseWire { - CApiWire.fromExternalLibrary(ExternalLibrary lib); - - void wire_bdk_blockchain_broadcast(NativePortType port_, List that, - List transaction) => - wasmModule.wire_bdk_blockchain_broadcast(port_, that, transaction); - - void wire_bdk_blockchain_estimate_fee( - NativePortType port_, List that, Object target) => - wasmModule.wire_bdk_blockchain_estimate_fee(port_, that, target); - - void wire_bdk_blockchain_get_block_hash( - NativePortType port_, List that, int height) => - wasmModule.wire_bdk_blockchain_get_block_hash(port_, that, height); - - void wire_bdk_blockchain_get_height( - NativePortType port_, List that) => - wasmModule.wire_bdk_blockchain_get_height(port_, that); - - void wire_bdk_blockchain_new( - NativePortType port_, List blockchain_config) => - wasmModule.wire_bdk_blockchain_new(port_, blockchain_config); - - void wire_bdk_descriptor_as_string( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_as_string(port_, that); - - void wire_bdk_descriptor_as_string_private( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_as_string_private(port_, that); - - void wire_bdk_descriptor_max_satisfaction_weight( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_max_satisfaction_weight(port_, that); - - void wire_bdk_descriptor_new( - NativePortType port_, String descriptor, int network) => - wasmModule.wire_bdk_descriptor_new(port_, descriptor, network); - - void wire_bdk_descriptor_new_bip44(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip44( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip44_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip44_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_descriptor_new_bip49(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip49( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip49_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip49_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_descriptor_new_bip84(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip84( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip84_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip84_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_descriptor_new_bip86(NativePortType port_, - List secret_key, int keychain_kind, int network) => - wasmModule.wire_bdk_descriptor_new_bip86( - port_, secret_key, keychain_kind, network); - - void wire_bdk_descriptor_new_bip86_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network) => - wasmModule.wire_bdk_descriptor_new_bip86_public( - port_, public_key, fingerprint, keychain_kind, network); - - void wire_bdk_derivation_path_from_string( - NativePortType port_, String path) => - wasmModule.wire_bdk_derivation_path_from_string(port_, path); - - void wire_bdk_descriptor_public_key_as_string( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_public_key_as_string(port_, that); - - void wire_bdk_descriptor_public_key_derive( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_public_key_derive(port_, ptr, path); - - void wire_bdk_descriptor_public_key_extend( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_public_key_extend(port_, ptr, path); - - void wire_bdk_descriptor_public_key_from_string( - NativePortType port_, String public_key) => - wasmModule.wire_bdk_descriptor_public_key_from_string(port_, public_key); - - void wire_bdk_descriptor_secret_key_as_public( - NativePortType port_, List ptr) => - wasmModule.wire_bdk_descriptor_secret_key_as_public(port_, ptr); - - void wire_bdk_descriptor_secret_key_as_string( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_secret_key_as_string(port_, that); - - void wire_bdk_descriptor_secret_key_create(NativePortType port_, int network, - List mnemonic, String? password) => - wasmModule.wire_bdk_descriptor_secret_key_create( - port_, network, mnemonic, password); - - void wire_bdk_descriptor_secret_key_derive( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_secret_key_derive(port_, ptr, path); - - void wire_bdk_descriptor_secret_key_extend( - NativePortType port_, List ptr, List path) => - wasmModule.wire_bdk_descriptor_secret_key_extend(port_, ptr, path); - - void wire_bdk_descriptor_secret_key_from_string( - NativePortType port_, String secret_key) => - wasmModule.wire_bdk_descriptor_secret_key_from_string(port_, secret_key); - - void wire_bdk_descriptor_secret_key_secret_bytes( - NativePortType port_, List that) => - wasmModule.wire_bdk_descriptor_secret_key_secret_bytes(port_, that); - - void wire_bdk_mnemonic_as_string(NativePortType port_, List that) => - wasmModule.wire_bdk_mnemonic_as_string(port_, that); - - void wire_bdk_mnemonic_from_entropy( - NativePortType port_, List entropy) => - wasmModule.wire_bdk_mnemonic_from_entropy(port_, entropy); - - void wire_bdk_mnemonic_from_string(NativePortType port_, String mnemonic) => - wasmModule.wire_bdk_mnemonic_from_string(port_, mnemonic); - - void wire_bdk_mnemonic_new(NativePortType port_, int word_count) => - wasmModule.wire_bdk_mnemonic_new(port_, word_count); - - void wire_bdk_psbt_combine( - NativePortType port_, List ptr, List other) => - wasmModule.wire_bdk_psbt_combine(port_, ptr, other); - - void wire_bdk_psbt_extract_tx(NativePortType port_, List ptr) => - wasmModule.wire_bdk_psbt_extract_tx(port_, ptr); - - void wire_bdk_psbt_fee_amount(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_fee_amount(port_, that); - - void wire_bdk_psbt_fee_rate(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_fee_rate(port_, that); - - void wire_bdk_psbt_from_str(NativePortType port_, String psbt_base64) => - wasmModule.wire_bdk_psbt_from_str(port_, psbt_base64); - - void wire_bdk_psbt_json_serialize(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_json_serialize(port_, that); - - void wire_bdk_psbt_serialize(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_serialize(port_, that); - - void wire_bdk_psbt_txid(NativePortType port_, List that) => - wasmModule.wire_bdk_psbt_txid(port_, that); - - void wire_bdk_address_as_string(NativePortType port_, List that) => - wasmModule.wire_bdk_address_as_string(port_, that); - - void wire_bdk_address_from_script( - NativePortType port_, List script, int network) => - wasmModule.wire_bdk_address_from_script(port_, script, network); - - void wire_bdk_address_from_string( - NativePortType port_, String address, int network) => - wasmModule.wire_bdk_address_from_string(port_, address, network); - - void wire_bdk_address_is_valid_for_network( - NativePortType port_, List that, int network) => - wasmModule.wire_bdk_address_is_valid_for_network(port_, that, network); - - void wire_bdk_address_network(NativePortType port_, List that) => - wasmModule.wire_bdk_address_network(port_, that); - - void wire_bdk_address_payload(NativePortType port_, List that) => - wasmModule.wire_bdk_address_payload(port_, that); - - void wire_bdk_address_script(NativePortType port_, List ptr) => - wasmModule.wire_bdk_address_script(port_, ptr); - - void wire_bdk_address_to_qr_uri(NativePortType port_, List that) => - wasmModule.wire_bdk_address_to_qr_uri(port_, that); - - void wire_bdk_script_buf_empty(NativePortType port_) => - wasmModule.wire_bdk_script_buf_empty(port_); - - void wire_bdk_script_buf_from_hex(NativePortType port_, String s) => - wasmModule.wire_bdk_script_buf_from_hex(port_, s); - - void wire_bdk_script_buf_with_capacity(NativePortType port_, int capacity) => - wasmModule.wire_bdk_script_buf_with_capacity(port_, capacity); - - void wire_bdk_transaction_from_bytes( - NativePortType port_, List transaction_bytes) => - wasmModule.wire_bdk_transaction_from_bytes(port_, transaction_bytes); - - void wire_bdk_transaction_input(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_input(port_, that); - - void wire_bdk_transaction_is_coin_base( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_is_coin_base(port_, that); - - void wire_bdk_transaction_is_explicitly_rbf( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_is_explicitly_rbf(port_, that); - - void wire_bdk_transaction_is_lock_time_enabled( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_is_lock_time_enabled(port_, that); - - void wire_bdk_transaction_lock_time( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_lock_time(port_, that); - - void wire_bdk_transaction_new(NativePortType port_, int version, - List lock_time, List input, List output) => - wasmModule.wire_bdk_transaction_new( - port_, version, lock_time, input, output); - - void wire_bdk_transaction_output(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_output(port_, that); - - void wire_bdk_transaction_serialize( - NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_serialize(port_, that); - - void wire_bdk_transaction_size(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_size(port_, that); - - void wire_bdk_transaction_txid(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_txid(port_, that); - - void wire_bdk_transaction_version(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_version(port_, that); - - void wire_bdk_transaction_vsize(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_vsize(port_, that); - - void wire_bdk_transaction_weight(NativePortType port_, List that) => - wasmModule.wire_bdk_transaction_weight(port_, that); - - void wire_bdk_wallet_get_address(NativePortType port_, List ptr, - List address_index) => - wasmModule.wire_bdk_wallet_get_address(port_, ptr, address_index); - - void wire_bdk_wallet_get_balance(NativePortType port_, List that) => - wasmModule.wire_bdk_wallet_get_balance(port_, that); - - void wire_bdk_wallet_get_descriptor_for_keychain( - NativePortType port_, List ptr, int keychain) => - wasmModule.wire_bdk_wallet_get_descriptor_for_keychain( - port_, ptr, keychain); - - void wire_bdk_wallet_get_internal_address(NativePortType port_, - List ptr, List address_index) => - wasmModule.wire_bdk_wallet_get_internal_address( - port_, ptr, address_index); - - void wire_bdk_wallet_get_psbt_input( - NativePortType port_, - List that, - List utxo, - bool only_witness_utxo, - List? sighash_type) => - wasmModule.wire_bdk_wallet_get_psbt_input( - port_, that, utxo, only_witness_utxo, sighash_type); - - void wire_bdk_wallet_is_mine( - NativePortType port_, List that, List script) => - wasmModule.wire_bdk_wallet_is_mine(port_, that, script); - - void wire_bdk_wallet_list_transactions( - NativePortType port_, List that, bool include_raw) => - wasmModule.wire_bdk_wallet_list_transactions(port_, that, include_raw); - - void wire_bdk_wallet_list_unspent(NativePortType port_, List that) => - wasmModule.wire_bdk_wallet_list_unspent(port_, that); - - void wire_bdk_wallet_network(NativePortType port_, List that) => - wasmModule.wire_bdk_wallet_network(port_, that); - - void wire_bdk_wallet_new( - NativePortType port_, - List descriptor, - List? change_descriptor, - int network, - List database_config) => - wasmModule.wire_bdk_wallet_new( - port_, descriptor, change_descriptor, network, database_config); - - void wire_bdk_wallet_sign(NativePortType port_, List ptr, - List psbt, List? sign_options) => - wasmModule.wire_bdk_wallet_sign(port_, ptr, psbt, sign_options); - - void wire_bdk_wallet_sync( - NativePortType port_, List ptr, List blockchain) => - wasmModule.wire_bdk_wallet_sync(port_, ptr, blockchain); - - void wire_finish_bump_fee_tx_builder( - NativePortType port_, - String txid, - double fee_rate, - List? allow_shrinking, - List wallet, - bool enable_rbf, - int? n_sequence) => - wasmModule.wire_finish_bump_fee_tx_builder(port_, txid, fee_rate, - allow_shrinking, wallet, enable_rbf, n_sequence); - - void wire_tx_builder_finish( - NativePortType port_, - List wallet, - List recipients, - List utxos, - List? foreign_utxo, - List un_spendable, - int change_policy, - bool manually_selected_only, - double? fee_rate, - Object? fee_absolute, - bool drain_wallet, - List? drain_to, - List? rbf, - List data) => - wasmModule.wire_tx_builder_finish( - port_, - wallet, - recipients, - utxos, - foreign_utxo, - un_spendable, - change_policy, - manually_selected_only, - fee_rate, - fee_absolute, - drain_wallet, - drain_to, - rbf, - data); - - void rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(dynamic ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(dynamic ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(ptr); - - void rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(ptr); - - void rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(ptr); - - void rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysKeyMap(dynamic ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_keysKeyMap(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(dynamic ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(ptr); - - void rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(ptr); -} - -@JS('wasm_bindgen') -external CApiWasmModule get wasmModule; - -@JS() -@anonymous -class CApiWasmModule implements WasmModule { - @override - external Object /* Promise */ call([String? moduleName]); - - @override - external CApiWasmModule bind(dynamic thisArg, String moduleName); - - external void wire_bdk_blockchain_broadcast( - NativePortType port_, List that, List transaction); - - external void wire_bdk_blockchain_estimate_fee( - NativePortType port_, List that, Object target); - - external void wire_bdk_blockchain_get_block_hash( - NativePortType port_, List that, int height); - - external void wire_bdk_blockchain_get_height( - NativePortType port_, List that); - - external void wire_bdk_blockchain_new( - NativePortType port_, List blockchain_config); - - external void wire_bdk_descriptor_as_string( - NativePortType port_, List that); - - external void wire_bdk_descriptor_as_string_private( - NativePortType port_, List that); - - external void wire_bdk_descriptor_max_satisfaction_weight( - NativePortType port_, List that); - - external void wire_bdk_descriptor_new( - NativePortType port_, String descriptor, int network); - - external void wire_bdk_descriptor_new_bip44(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip44_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_descriptor_new_bip49(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip49_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_descriptor_new_bip84(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip84_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_descriptor_new_bip86(NativePortType port_, - List secret_key, int keychain_kind, int network); - - external void wire_bdk_descriptor_new_bip86_public( - NativePortType port_, - List public_key, - String fingerprint, - int keychain_kind, - int network); - - external void wire_bdk_derivation_path_from_string( - NativePortType port_, String path); - - external void wire_bdk_descriptor_public_key_as_string( - NativePortType port_, List that); - - external void wire_bdk_descriptor_public_key_derive( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_public_key_extend( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_public_key_from_string( - NativePortType port_, String public_key); - - external void wire_bdk_descriptor_secret_key_as_public( - NativePortType port_, List ptr); - - external void wire_bdk_descriptor_secret_key_as_string( - NativePortType port_, List that); - - external void wire_bdk_descriptor_secret_key_create(NativePortType port_, - int network, List mnemonic, String? password); - - external void wire_bdk_descriptor_secret_key_derive( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_secret_key_extend( - NativePortType port_, List ptr, List path); - - external void wire_bdk_descriptor_secret_key_from_string( - NativePortType port_, String secret_key); - - external void wire_bdk_descriptor_secret_key_secret_bytes( - NativePortType port_, List that); - - external void wire_bdk_mnemonic_as_string( - NativePortType port_, List that); - - external void wire_bdk_mnemonic_from_entropy( - NativePortType port_, List entropy); - - external void wire_bdk_mnemonic_from_string( - NativePortType port_, String mnemonic); - - external void wire_bdk_mnemonic_new(NativePortType port_, int word_count); - - external void wire_bdk_psbt_combine( - NativePortType port_, List ptr, List other); - - external void wire_bdk_psbt_extract_tx( - NativePortType port_, List ptr); - - external void wire_bdk_psbt_fee_amount( - NativePortType port_, List that); - - external void wire_bdk_psbt_fee_rate( - NativePortType port_, List that); - - external void wire_bdk_psbt_from_str( - NativePortType port_, String psbt_base64); - - external void wire_bdk_psbt_json_serialize( - NativePortType port_, List that); - - external void wire_bdk_psbt_serialize( - NativePortType port_, List that); - - external void wire_bdk_psbt_txid(NativePortType port_, List that); - - external void wire_bdk_address_as_string( - NativePortType port_, List that); - - external void wire_bdk_address_from_script( - NativePortType port_, List script, int network); - - external void wire_bdk_address_from_string( - NativePortType port_, String address, int network); - - external void wire_bdk_address_is_valid_for_network( - NativePortType port_, List that, int network); - - external void wire_bdk_address_network( - NativePortType port_, List that); - - external void wire_bdk_address_payload( - NativePortType port_, List that); - - external void wire_bdk_address_script( - NativePortType port_, List ptr); - - external void wire_bdk_address_to_qr_uri( - NativePortType port_, List that); - - external void wire_bdk_script_buf_empty(NativePortType port_); - - external void wire_bdk_script_buf_from_hex(NativePortType port_, String s); - - external void wire_bdk_script_buf_with_capacity( - NativePortType port_, int capacity); - - external void wire_bdk_transaction_from_bytes( - NativePortType port_, List transaction_bytes); - - external void wire_bdk_transaction_input( - NativePortType port_, List that); - - external void wire_bdk_transaction_is_coin_base( - NativePortType port_, List that); - - external void wire_bdk_transaction_is_explicitly_rbf( - NativePortType port_, List that); - - external void wire_bdk_transaction_is_lock_time_enabled( - NativePortType port_, List that); - - external void wire_bdk_transaction_lock_time( - NativePortType port_, List that); - - external void wire_bdk_transaction_new(NativePortType port_, int version, - List lock_time, List input, List output); - - external void wire_bdk_transaction_output( - NativePortType port_, List that); - - external void wire_bdk_transaction_serialize( - NativePortType port_, List that); - - external void wire_bdk_transaction_size( - NativePortType port_, List that); - - external void wire_bdk_transaction_txid( - NativePortType port_, List that); - - external void wire_bdk_transaction_version( - NativePortType port_, List that); - - external void wire_bdk_transaction_vsize( - NativePortType port_, List that); - - external void wire_bdk_transaction_weight( - NativePortType port_, List that); - - external void wire_bdk_wallet_get_address( - NativePortType port_, List ptr, List address_index); - - external void wire_bdk_wallet_get_balance( - NativePortType port_, List that); - - external void wire_bdk_wallet_get_descriptor_for_keychain( - NativePortType port_, List ptr, int keychain); - - external void wire_bdk_wallet_get_internal_address( - NativePortType port_, List ptr, List address_index); - - external void wire_bdk_wallet_get_psbt_input( - NativePortType port_, - List that, - List utxo, - bool only_witness_utxo, - List? sighash_type); - - external void wire_bdk_wallet_is_mine( - NativePortType port_, List that, List script); - - external void wire_bdk_wallet_list_transactions( - NativePortType port_, List that, bool include_raw); - - external void wire_bdk_wallet_list_unspent( - NativePortType port_, List that); - - external void wire_bdk_wallet_network( - NativePortType port_, List that); - - external void wire_bdk_wallet_new( - NativePortType port_, - List descriptor, - List? change_descriptor, - int network, - List database_config); - - external void wire_bdk_wallet_sign(NativePortType port_, List ptr, - List psbt, List? sign_options); - - external void wire_bdk_wallet_sync( - NativePortType port_, List ptr, List blockchain); - - external void wire_finish_bump_fee_tx_builder( - NativePortType port_, - String txid, - double fee_rate, - List? allow_shrinking, - List wallet, - bool enable_rbf, - int? n_sequence); - - external void wire_tx_builder_finish( - NativePortType port_, - List wallet, - List recipients, - List utxos, - List? foreign_utxo, - List un_spendable, - int change_policy, - bool manually_selected_only, - double? fee_rate, - Object? fee_absolute, - bool drain_wallet, - List? drain_to, - List? rbf, - List data); - - external void rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_keysKeyMap( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( - dynamic ptr); -} diff --git a/lib/src/generated/lib.dart b/lib/src/generated/lib.dart new file mode 100644 index 00000000..c4436031 --- /dev/null +++ b/lib/src/generated/lib.dart @@ -0,0 +1,52 @@ +// 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:collection/collection.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; + +// Rust type: RustOpaqueNom +abstract class Address implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class DerivationPath implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class AnyBlockchain implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class ExtendedDescriptor implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class DescriptorPublicKey implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class DescriptorSecretKey implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class KeyMap implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class Mnemonic implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom >> +abstract class MutexWalletAnyDatabase implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom> +abstract class MutexPartiallySignedTransaction implements RustOpaqueInterface {} + +class U8Array4 extends NonGrowableListView { + static const arraySize = 4; + + @internal + Uint8List get inner => _inner; + final Uint8List _inner; + + U8Array4(this._inner) + : assert(_inner.length == arraySize), + super(_inner); + + U8Array4.init() : this(Uint8List(arraySize)); +} diff --git a/lib/src/root.dart b/lib/src/root.dart index 74f57818..ba75dc11 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -1,5 +1,6 @@ import 'dart:typed_data'; +import 'package:bdk_flutter/bdk_flutter.dart'; import 'package:bdk_flutter/src/utils/utils.dart'; import 'generated/api/blockchain.dart'; @@ -13,6 +14,8 @@ import 'generated/api/wallet.dart'; ///A Bitcoin address. class Address extends BdkAddress { Address._({required super.ptr}); + + /// [Address] constructor static Future
fromScript( {required ScriptBuf script, required Network network}) async { try { @@ -24,6 +27,7 @@ class Address extends BdkAddress { } } + /// [Address] constructor static Future
fromString( {required String s, required Network network}) async { try { @@ -36,14 +40,64 @@ class Address extends BdkAddress { } ///Generates a script pubkey spending to this address - Future scriptPubkey() async { + ScriptBuf scriptPubkey() { try { - final res = await BdkAddress.script(ptr: this); - return ScriptBuf(bytes: res.bytes); + return ScriptBuf(bytes: BdkAddress.script(ptr: this).bytes); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + //Creates a URI string bitcoin:address optimized to be encoded in QR codes. + /// If the address is bech32, both the schema and the address become uppercase. If the address is base58, the schema is lowercase and the address is left mixed case. + /// Quoting BIP 173 "inside QR codes uppercase SHOULD be used, as those permit the use of alphanumeric mode, which is 45% more compact than the normal byte mode." + /// Note however that despite BIP21 explicitly stating that the bitcoin: prefix should be parsed as case-insensitive many wallets got this wrong and don't parse correctly. See compatibility table. + /// If you want to avoid allocation you can use alternate display instead: + @override + String toQrUri() { + try { + return super.toQrUri(); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + ///Parsed addresses do not always have one network. The problem is that legacy testnet, regtest and signet addresses use the same prefix instead of multiple different ones. + ///When parsing, such addresses are always assumed to be testnet addresses (the same is true for bech32 signet addresses). + ///So if one wants to check if an address belongs to a certain network a simple comparison is not enough anymore. Instead this function can be used. + @override + bool isValidForNetwork({required Network network}) { + try { + return super.isValidForNetwork(network: network); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + ///The network on which this address is usable. + @override + Network network() { + try { + return super.network(); } on BdkError catch (e) { throw mapBdkError(e); } } + + ///The type of the address. + @override + Payload payload() { + try { + return super.payload(); + } on BdkError catch (e) { + throw mapBdkError(e); + } + } + + @override + String toString() { + return super.asString(); + } } /// Blockchain backends module provides the implementation of a few commonly-used backends like Electrum, and Esplora. @@ -51,43 +105,20 @@ class Blockchain extends BdkBlockchain { Blockchain._({required super.ptr}); /// [Blockchain] constructor + static Future create({required BlockchainConfig config}) async { try { await Api.initialize(); - final res = await BdkBlockchain.newInstance(blockchainConfig: config); + final res = await BdkBlockchain.create(blockchainConfig: config); return Blockchain._(ptr: res.ptr); } on BdkError catch (e) { throw mapBdkError(e); } } - static Future createMutinynet({ - int stopGap = 20, - }) async { - final config = BlockchainConfig.esplora( - config: EsploraConfig( - baseUrl: 'https://mutinynet.ltbl.io/api', - stopGap: stopGap, - ), - ); - return create(config: config); - } - - static Future createTestnet({ - int stopGap = 20, - }) async { - final config = BlockchainConfig.esplora( - config: EsploraConfig( - baseUrl: 'https://testnet.ltbl.io/api', - stopGap: stopGap, - ), - ); - return create(config: config); - } - ///Estimate the fee rate required to confirm a transaction in a given target of blocks @override - Future estimateFee({required int target, hint}) async { + Future estimateFee({required BigInt target, hint}) async { try { return super.estimateFee(target: target); } on BdkError catch (e) { @@ -197,6 +228,11 @@ class DerivationPath extends BdkDerivationPath { throw mapBdkError(e); } } + + @override + String toString() { + return super.asString(); + } } ///Script descriptor @@ -387,19 +423,15 @@ class Descriptor extends BdkDescriptor { ///Return the public version of the output descriptor. @override - Future asString({hint}) async { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } ///Return the private version of the output descriptor if available, otherwise return the public version. @override - Future asStringPrivate({hint}) async { + String toStringPrivate({hint}) { try { - return super.asStringPrivate(); + return super.toStringPrivate(); } on BdkError catch (e) { throw mapBdkError(e); } @@ -407,7 +439,7 @@ class Descriptor extends BdkDescriptor { ///Computes an upper bound on the difference between a non-satisfied TxIn's segwit_weight and a satisfied TxIn's segwit_weight @override - Future maxSatisfactionWeight({hint}) async { + BigInt maxSatisfactionWeight({hint}) { try { return super.maxSatisfactionWeight(); } on BdkError catch (e) { @@ -433,12 +465,8 @@ class DescriptorPublicKey extends BdkDescriptorPublicKey { ///Get the public key as string. @override - Future asString({hint}) async { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } ///Derive a public descriptor at a given path. @@ -515,9 +543,9 @@ class DescriptorSecretKey extends BdkDescriptorSecretKey { } ///Returns the public version of this key. - Future asPublic() async { + DescriptorPublicKey toPublic() { try { - final res = await BdkDescriptorSecretKey.asPublic(ptr: this); + final res = BdkDescriptorSecretKey.asPublic(ptr: this); return DescriptorPublicKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapBdkError(e); @@ -526,17 +554,13 @@ class DescriptorSecretKey extends BdkDescriptorSecretKey { ///Get the private key as string. @override - Future asString({hint}) { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } ///Get the private key as bytes. @override - Future secretBytes({hint}) async { + Uint8List secretBytes({hint}) { try { return super.secretBytes(); } on BdkError catch (e) { @@ -591,12 +615,8 @@ class Mnemonic extends BdkMnemonic { ///Returns Mnemonic as string @override - Future asString({hint}) async { - try { - return super.asString(); - } on BdkError catch (e) { - throw mapBdkError(e); - } + String toString() { + return super.asString(); } } @@ -620,7 +640,7 @@ class PartiallySignedTransaction extends BdkPsbt { ///Return fee amount @override - Future feeAmount({hint}) { + BigInt? feeAmount({hint}) { try { return super.feeAmount(); } on BdkError catch (e) { @@ -630,7 +650,7 @@ class PartiallySignedTransaction extends BdkPsbt { ///Return fee rate @override - Future feeRate({hint}) { + FeeRate? feeRate({hint}) { try { return super.feeRate(); } on BdkError catch (e) { @@ -639,7 +659,7 @@ class PartiallySignedTransaction extends BdkPsbt { } @override - Future jsonSerialize({hint}) { + String jsonSerialize({hint}) { try { return super.jsonSerialize(); } on BdkError catch (e) { @@ -647,9 +667,14 @@ class PartiallySignedTransaction extends BdkPsbt { } } - ///Return psbt as string @override - Future serialize({hint}) { + String toString() { + return super.asString(); + } + + ///Serialize as raw binary data + @override + Uint8List serialize({hint}) { try { return super.serialize(); } on BdkError catch (e) { @@ -658,10 +683,10 @@ class PartiallySignedTransaction extends BdkPsbt { } ///Return the transaction as bytes. - Future extractTx() async { + Transaction extractTx() { try { - final res = await BdkPsbt.extractTx(ptr: this); - return Transaction._(inner: res.inner); + final res = BdkPsbt.extractTx(ptr: this); + return Transaction._(s: res.s); } on BdkError catch (e) { throw mapBdkError(e); } @@ -680,7 +705,7 @@ class PartiallySignedTransaction extends BdkPsbt { ///Returns the [PartiallySignedTransaction]'s transaction id @override - Future txid({hint}) { + String txid({hint}) { try { return super.txid(); } on BdkError catch (e) { @@ -698,15 +723,14 @@ class ScriptBuf extends BdkScriptBuf { static Future empty() async { try { await Api.initialize(); - final res = await BdkScriptBuf.empty(); - return ScriptBuf(bytes: res.bytes); + return ScriptBuf(bytes: BdkScriptBuf.empty().bytes); } on BdkError catch (e) { throw mapBdkError(e); } } ///Creates a new empty script with pre-allocated capacity. - static Future withCapacity(int capacity) async { + static Future withCapacity(BigInt capacity) async { try { await Api.initialize(); final res = await BdkScriptBuf.withCapacity(capacity: capacity); @@ -726,11 +750,16 @@ class ScriptBuf extends BdkScriptBuf { throw mapBdkError(e); } } + + @override + String toString() { + return super.asString(); + } } ///A bitcoin transaction. class Transaction extends BdkTransaction { - Transaction._({required super.inner}); + Transaction._({required super.s}); /// [Transaction] constructor /// Decode an object with a well-defined format. @@ -742,7 +771,7 @@ class Transaction extends BdkTransaction { await Api.initialize(); final res = await BdkTransaction.fromBytes(transactionBytes: transactionBytes); - return Transaction._(inner: res.inner); + return Transaction._(s: res.s); } on BdkError catch (e) { throw mapBdkError(e); } @@ -750,7 +779,7 @@ class Transaction extends BdkTransaction { @override String toString() { - return inner; + return s; } } @@ -762,11 +791,11 @@ class TxBuilder { final List _recipients = []; final List _utxos = []; final List _unSpendable = []; - (OutPoint, Input, int)? _foreignUtxo; + (OutPoint, Input, BigInt)? _foreignUtxo; bool _manuallySelectedOnly = false; double? _feeRate; ChangeSpendPolicy _changeSpendPolicy = ChangeSpendPolicy.changeAllowed; - int? _feeAbsolute; + BigInt? _feeAbsolute; bool _drainWallet = false; ScriptBuf? _drainTo; RbfValue? _rbfValue; @@ -779,7 +808,7 @@ class TxBuilder { } ///Add a recipient to the internal list - TxBuilder addRecipient(ScriptBuf script, int amount) { + TxBuilder addRecipient(ScriptBuf script, BigInt amount) { _recipients.add(ScriptAmount(script: script, amount: amount)); return this; } @@ -828,7 +857,7 @@ class TxBuilder { /// you into putting a value that is too high causing you to pay a fee that is too high. The party who is broadcasting the transaction can of course check the /// real input weight matches the expected weight prior to broadcasting. TxBuilder addForeignUtxo( - Input psbtInput, OutPoint outPoint, int satisfactionWeight) { + Input psbtInput, OutPoint outPoint, BigInt satisfactionWeight) { _foreignUtxo = (outPoint, psbtInput, satisfactionWeight); return this; } @@ -881,7 +910,7 @@ class TxBuilder { } ///Set an absolute fee - TxBuilder feeAbsolute(int feeAmount) { + TxBuilder feeAbsolute(BigInt feeAmount) { _feeAbsolute = feeAmount; return this; } diff --git a/lib/src/utils/exceptions.dart b/lib/src/utils/exceptions.dart index 2ecbeec5..05ae163d 100644 --- a/lib/src/utils/exceptions.dart +++ b/lib/src/utils/exceptions.dart @@ -296,9 +296,9 @@ Exception mapHexError(HexError error) { invalidChar: (e) => HexException(message: "Non-hexadecimal character $e"), oddLengthString: (e) => HexException(message: "Purported hex string had odd length $e"), - invalidLength: (int expected, int found) => HexException( + invalidLength: (BigInt expected, BigInt found) => HexException( message: - "Tried to parse fixed-length hash from a string with the wrong type; \n expected: $expected, found: $found.")); + "Tried to parse fixed-length hash from a string with the wrong type; \n expected: ${expected.toString()}, found: ${found.toString()}.")); } Exception mapAddressError(AddressError error) { diff --git a/lib/src/utils/utils.dart b/lib/src/utils/utils.dart index 08e25d0e..45294f8f 100644 --- a/lib/src/utils/utils.dart +++ b/lib/src/utils/utils.dart @@ -5,8 +5,8 @@ export 'exceptions.dart'; class Api { static Future initialize() async { try { - if (!CApi.instance.initialized) { - await CApi.init(); + if (!core.instance.initialized) { + await core.init(); } } catch (e) { throw Exception("Failed to initialize bdk-flutter"); diff --git a/macos/Classes/frb_generated.h b/macos/Classes/frb_generated.h index 0564a94d..60575588 100644 --- a/macos/Classes/frb_generated.h +++ b/macos/Classes/frb_generated.h @@ -24,7 +24,7 @@ typedef struct wire_cst_list_prim_u_8_strict { } wire_cst_list_prim_u_8_strict; typedef struct wire_cst_bdk_transaction { - struct wire_cst_list_prim_u_8_strict *inner; + struct wire_cst_list_prim_u_8_strict *s; } wire_cst_bdk_transaction; typedef struct wire_cst_electrum_config { @@ -722,340 +722,337 @@ typedef struct wire_cst_record_bdk_psbt_transaction_details { struct wire_cst_transaction_details field1; } wire_cst_record_bdk_psbt_transaction_details; -void frbgen_bdk_flutter_wire_bdk_blockchain_broadcast(int64_t port_, - struct wire_cst_bdk_blockchain *that, - struct wire_cst_bdk_transaction *transaction); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast(int64_t port_, + struct wire_cst_bdk_blockchain *that, + struct wire_cst_bdk_transaction *transaction); + +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create(int64_t port_, + struct wire_cst_blockchain_config *blockchain_config); -void frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint64_t target); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint64_t target); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash(int64_t port_, - struct wire_cst_bdk_blockchain *that, - uint32_t height); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash(int64_t port_, + struct wire_cst_bdk_blockchain *that, + uint32_t height); -void frbgen_bdk_flutter_wire_bdk_blockchain_get_height(int64_t port_, - struct wire_cst_bdk_blockchain *that); +void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height(int64_t port_, + struct wire_cst_bdk_blockchain *that); -void frbgen_bdk_flutter_wire_bdk_blockchain_new(int64_t port_, - struct wire_cst_blockchain_config *blockchain_config); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string(int64_t port_, - struct wire_cst_bdk_descriptor *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new(int64_t port_, + struct wire_cst_list_prim_u_8_strict *descriptor, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight(int64_t port_, - struct wire_cst_bdk_descriptor *that); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new(int64_t port_, - struct wire_cst_list_prim_u_8_strict *descriptor, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *secret_key, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *public_key, + struct wire_cst_list_prim_u_8_strict *fingerprint, + int32_t keychain_kind, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *secret_key, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private(struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *public_key, - struct wire_cst_list_prim_u_8_strict *fingerprint, - int32_t keychain_kind, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string(struct wire_cst_bdk_derivation_path *that); -void frbgen_bdk_flutter_wire_bdk_derivation_path_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string(struct wire_cst_bdk_descriptor_public_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_public_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *public_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *public_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public(struct wire_cst_bdk_descriptor_secret_key *ptr); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string(struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create(int64_t port_, - int32_t network, - struct wire_cst_bdk_mnemonic *mnemonic, - struct wire_cst_list_prim_u_8_strict *password); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create(int64_t port_, + int32_t network, + struct wire_cst_bdk_mnemonic *mnemonic, + struct wire_cst_list_prim_u_8_strict *password); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *ptr, - struct wire_cst_bdk_derivation_path *path); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *ptr, + struct wire_cst_bdk_derivation_path *path); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *secret_key); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *secret_key); -void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes(int64_t port_, - struct wire_cst_bdk_descriptor_secret_key *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes(struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_as_string(int64_t port_, - struct wire_cst_bdk_mnemonic *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string(struct wire_cst_bdk_mnemonic *that); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy(int64_t port_, - struct wire_cst_list_prim_u_8_loose *entropy); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy(int64_t port_, + struct wire_cst_list_prim_u_8_loose *entropy); -void frbgen_bdk_flutter_wire_bdk_mnemonic_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *mnemonic); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *mnemonic); -void frbgen_bdk_flutter_wire_bdk_mnemonic_new(int64_t port_, int32_t word_count); +void frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new(int64_t port_, int32_t word_count); -void frbgen_bdk_flutter_wire_bdk_psbt_combine(int64_t port_, - struct wire_cst_bdk_psbt *ptr, - struct wire_cst_bdk_psbt *other); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_extract_tx(int64_t port_, struct wire_cst_bdk_psbt *ptr); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine(int64_t port_, + struct wire_cst_bdk_psbt *ptr, + struct wire_cst_bdk_psbt *other); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_amount(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx(struct wire_cst_bdk_psbt *ptr); -void frbgen_bdk_flutter_wire_bdk_psbt_fee_rate(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_from_str(int64_t port_, - struct wire_cst_list_prim_u_8_strict *psbt_base64); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_json_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +void frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *psbt_base64); -void frbgen_bdk_flutter_wire_bdk_psbt_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_psbt_txid(int64_t port_, struct wire_cst_bdk_psbt *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_as_string(int64_t port_, - struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid(struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_bdk_address_from_script(int64_t port_, - struct wire_cst_bdk_script_buf *script, - int32_t network); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *address, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script(int64_t port_, + struct wire_cst_bdk_script_buf *script, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network(int64_t port_, - struct wire_cst_bdk_address *that, - int32_t network); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string(int64_t port_, + struct wire_cst_list_prim_u_8_strict *address, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_network(int64_t port_, struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network(struct wire_cst_bdk_address *that, + int32_t network); -void frbgen_bdk_flutter_wire_bdk_address_payload(int64_t port_, struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_script(int64_t port_, struct wire_cst_bdk_address *ptr); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_address_to_qr_uri(int64_t port_, - struct wire_cst_bdk_address *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script(struct wire_cst_bdk_address *ptr); -void frbgen_bdk_flutter_wire_bdk_script_buf_empty(int64_t port_); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri(struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_from_hex(int64_t port_, - struct wire_cst_list_prim_u_8_strict *s); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string(struct wire_cst_bdk_script_buf *that); -void frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity(int64_t port_, uintptr_t capacity); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty(void); -void frbgen_bdk_flutter_wire_bdk_transaction_from_bytes(int64_t port_, - struct wire_cst_list_prim_u_8_loose *transaction_bytes); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_bdk_flutter_wire_bdk_transaction_input(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity(int64_t port_, + uintptr_t capacity); -void frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes(int64_t port_, + struct wire_cst_list_prim_u_8_loose *transaction_bytes); -void frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_lock_time(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_new(int64_t port_, - int32_t version, - struct wire_cst_lock_time *lock_time, - struct wire_cst_list_tx_in *input, - struct wire_cst_list_tx_out *output); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_output(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_serialize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new(int64_t port_, + int32_t version, + struct wire_cst_lock_time *lock_time, + struct wire_cst_list_tx_in *input, + struct wire_cst_list_tx_out *output); -void frbgen_bdk_flutter_wire_bdk_transaction_size(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_txid(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_version(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_vsize(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_transaction_weight(int64_t port_, - struct wire_cst_bdk_transaction *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_balance(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - int32_t keychain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_local_utxo *utxo, - bool only_witness_utxo, - struct wire_cst_psbt_sig_hash_type *sighash_type); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + int32_t keychain); -void frbgen_bdk_flutter_wire_bdk_wallet_is_mine(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_bdk_script_buf *script); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire_bdk_wallet_list_transactions(int64_t port_, - struct wire_cst_bdk_wallet *that, - bool include_raw); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_local_utxo *utxo, + bool only_witness_utxo, + struct wire_cst_psbt_sig_hash_type *sighash_type); -void frbgen_bdk_flutter_wire_bdk_wallet_list_unspent(int64_t port_, - struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(int64_t port_, + struct wire_cst_bdk_wallet *that, + struct wire_cst_bdk_script_buf *script); -void frbgen_bdk_flutter_wire_bdk_wallet_network(int64_t port_, struct wire_cst_bdk_wallet *that); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(int64_t port_, + struct wire_cst_bdk_wallet *that, + bool include_raw); -void frbgen_bdk_flutter_wire_bdk_wallet_new(int64_t port_, - struct wire_cst_bdk_descriptor *descriptor, - struct wire_cst_bdk_descriptor *change_descriptor, - int32_t network, - struct wire_cst_database_config *database_config); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sign(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_psbt *psbt, - struct wire_cst_sign_options *sign_options); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_bdk_wallet_sync(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_bdk_blockchain *blockchain); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new(int64_t port_, + struct wire_cst_bdk_descriptor *descriptor, + struct wire_cst_bdk_descriptor *change_descriptor, + int32_t network, + struct wire_cst_database_config *database_config); -void frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder(int64_t port_, - struct wire_cst_list_prim_u_8_strict *txid, - float fee_rate, - struct wire_cst_bdk_address *allow_shrinking, - struct wire_cst_bdk_wallet *wallet, - bool enable_rbf, - uint32_t *n_sequence); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_psbt *psbt, + struct wire_cst_sign_options *sign_options); -void frbgen_bdk_flutter_wire_tx_builder_finish(int64_t port_, - struct wire_cst_bdk_wallet *wallet, - struct wire_cst_list_script_amount *recipients, - struct wire_cst_list_out_point *utxos, - struct wire_cst_record_out_point_input_usize *foreign_utxo, - struct wire_cst_list_out_point *un_spendable, - int32_t change_policy, - bool manually_selected_only, - float *fee_rate, - uint64_t *fee_absolute, - bool drain_wallet, - struct wire_cst_bdk_script_buf *drain_to, - struct wire_cst_rbf_value *rbf, - struct wire_cst_list_prim_u_8_loose *data); +void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync(int64_t port_, + struct wire_cst_bdk_wallet *ptr, + struct wire_cst_bdk_blockchain *blockchain); + +void frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder(int64_t port_, + struct wire_cst_list_prim_u_8_strict *txid, + float fee_rate, + struct wire_cst_bdk_address *allow_shrinking, + struct wire_cst_bdk_wallet *wallet, + bool enable_rbf, + uint32_t *n_sequence); + +void frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish(int64_t port_, + struct wire_cst_bdk_wallet *wallet, + struct wire_cst_list_script_amount *recipients, + struct wire_cst_list_out_point *utxos, + struct wire_cst_record_out_point_input_usize *foreign_utxo, + struct wire_cst_list_out_point *un_spendable, + int32_t change_policy, + bool manually_selected_only, + float *fee_rate, + uint64_t *fee_absolute, + bool drain_wallet, + struct wire_cst_bdk_script_buf *drain_to, + struct wire_cst_rbf_value *rbf, + struct wire_cst_list_prim_u_8_loose *data); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase(const void *ptr); -void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); -void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); +void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction(const void *ptr); struct wire_cst_address_error *frbgen_bdk_flutter_cst_new_box_autoadd_address_error(void); @@ -1196,106 +1193,109 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_transaction_details); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_in); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_out); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_payload); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_address_to_qr_uri); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_broadcast); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_get_height); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_blockchain_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_derivation_path_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_mnemonic_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_combine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_extract_tx); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_amount); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_fee_rate); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_from_str); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_json_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_psbt_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_empty); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_from_hex); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_from_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_lock_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_output); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_size); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_version); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_vsize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_transaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_balance); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_is_mine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_transactions); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_list_unspent); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sign); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_bdk_wallet_sync); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_tx_builder_finish); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish); dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); return dummy_var; } diff --git a/macos/bdk_flutter.podspec b/macos/bdk_flutter.podspec index 2be23caa..5d5b3899 100644 --- a/macos/bdk_flutter.podspec +++ b/macos/bdk_flutter.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'bdk_flutter' - s.version = "0.31.2-dev.2" + s.version = "0.31.2" s.summary = 'A Flutter library for the Bitcoin Development Kit (https://bitcoindevkit.org/)' s.description = <<-DESC A new Flutter plugin project. diff --git a/makefile b/makefile index 5a42da96..a003e3c9 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 diff --git a/pubspec.lock b/pubspec.lock index b958e084..b05e769c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -205,10 +205,10 @@ packages: dependency: "direct dev" description: name: ffigen - sha256: "3a80687577e7e51ba915114742f389a128e8aa241c52ce69a0f70aecb8e14365" + sha256: "3e12e80ccb6539bb3917217bb6f32709220efb737de0d0fa8736da0b7cb507da" url: "https://pub.dev" source: hosted - version: "9.0.1" + version: "12.0.0" file: dependency: transitive description: @@ -234,10 +234,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 @@ -255,10 +255,10 @@ packages: dependency: "direct main" description: name: freezed_annotation - sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d + sha256: f54946fdb1fa7b01f780841937b1a80783a20b393485f3f6cdf336fd6f4705f2 url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" frontend_server_client: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 71c5ea2b..ce7a8a43 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: bdk_flutter description: A Flutter library for the Bitcoin Development Kit(bdk) (https://bitcoindevkit.org/) -version: 0.31.2-dev.2 +version: 0.31.2 homepage: https://github.com/LtbLightning/bdk-flutter environment: @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - flutter_rust_bridge: ">2.0.0-dev.30 <= 2.0.0-dev.31" + flutter_rust_bridge: "2.0.0" ffi: ^2.0.1 freezed_annotation: ^2.2.0 mockito: ^5.4.0 @@ -21,9 +21,9 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - ffigen: ^9.0.1 - freezed: ^2.3.5 - build_runner: ^2.4.4 + ffigen: ^12.0.0 + freezed: ^2.5.2 + build_runner: ^2.4.8 lints: ^4.0.0 flutter: diff --git a/rust/Cargo.lock b/rust/Cargo.lock index b76d2a3a..845c186e 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -66,12 +66,6 @@ version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - [[package]] name = "android_log-sys" version = "0.3.1" @@ -90,71 +84,11 @@ dependencies = [ "once_cell", ] -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - -[[package]] -name = "anstream" -version = "0.6.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "utf8parse", -] - -[[package]] -name = "anstyle" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" - -[[package]] -name = "anstyle-parse" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" -dependencies = [ - "windows-sys 0.52.0", -] - -[[package]] -name = "anstyle-wincon" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" -dependencies = [ - "anstyle", - "windows-sys 0.52.0", -] - [[package]] name = "anyhow" version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" -dependencies = [ - "backtrace", -] [[package]] name = "assert_matches" @@ -179,17 +113,6 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c59bdb34bc650a32731b31bd8f0829cc15d24a708ee31559e0bb34f2bc320cba" -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi", -] - [[package]] name = "autocfg" version = "1.2.0" @@ -262,13 +185,12 @@ dependencies = [ [[package]] name = "bdk_flutter" -version = "0.31.2-dev" +version = "0.31.2" dependencies = [ "anyhow", "assert_matches", "bdk", "flutter_rust_bridge", - "flutter_rust_bridge_codegen", "rand", "serde", "serde_json", @@ -341,10 +263,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] -name = "bitflags" -version = "2.5.0" +name = "block-buffer" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] [[package]] name = "build-target" @@ -370,65 +295,6 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" -[[package]] -name = "camino" -version = "1.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo-platform" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo_metadata" -version = "0.14.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" -dependencies = [ - "camino", - "cargo-platform", - "semver", - "serde", - "serde_json", -] - -[[package]] -name = "cargo_toml" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "802b755090e39835a4b0440fb0bbee0df7495a8b337f63db21e616f7821c7e8c" -dependencies = [ - "serde", - "toml 0.8.12", -] - -[[package]] -name = "cbindgen" -version = "0.24.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b922faaf31122819ec80c4047cc684c6979a087366c069611e33649bf98e18d" -dependencies = [ - "heck 0.4.1", - "indexmap 1.9.3", - "log", - "proc-macro2", - "quote", - "serde", - "serde_json", - "syn 1.0.109", - "tempfile", - "toml 0.5.11", -] - [[package]] name = "cc" version = "1.0.94" @@ -441,90 +307,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chrono" -version = "0.4.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "js-sys", - "num-traits", - "wasm-bindgen", - "windows-targets 0.52.5", -] - -[[package]] -name = "clap" -version = "4.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" -dependencies = [ - "clap_builder", - "clap_derive", -] - -[[package]] -name = "clap_builder" -version = "4.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" -dependencies = [ - "anstream", - "anstyle", - "clap_lex", - "strsim", -] - -[[package]] -name = "clap_derive" -version = "4.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64" -dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "syn 2.0.59", -] - -[[package]] -name = "clap_lex" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" - -[[package]] -name = "colorchoice" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" - -[[package]] -name = "colored" -version = "1.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a5f741c91823341bebf717d4c71bda820630ce065443b58bd1b7451af008355" -dependencies = [ - "is-terminal", - "lazy_static", - "winapi", -] - -[[package]] -name = "console" -version = "0.15.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" -dependencies = [ - "encode_unicode", - "lazy_static", - "libc", - "unicode-width", - "windows-sys 0.52.0", -] - [[package]] name = "console_error_panic_hook" version = "0.1.7" @@ -535,18 +317,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "convert_case" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4a24b1aaf0fd0ce8b45161144d6f42cd91677fd5940fd431183eb023b3a2b8" - -[[package]] -name = "core-foundation-sys" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" - [[package]] name = "core-rpc" version = "0.17.0" @@ -582,15 +352,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossbeam-channel" -version = "0.5.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95" -dependencies = [ - "crossbeam-utils", -] - [[package]] name = "crossbeam-epoch" version = "0.9.18" @@ -606,6 +367,16 @@ version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + [[package]] name = "dart-sys-fork" version = "4.1.1" @@ -625,19 +396,6 @@ dependencies = [ "num_cpus", ] -[[package]] -name = "dashmap" -version = "5.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" -dependencies = [ - "cfg-if", - "hashbrown 0.14.3", - "lock_api", - "once_cell", - "parking_lot_core 0.9.9", -] - [[package]] name = "delegate-attr" version = "0.3.0" @@ -650,22 +408,15 @@ dependencies = [ ] [[package]] -name = "derivative" -version = "2.2.0" +name = "digest" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "block-buffer", + "crypto-common", ] -[[package]] -name = "either" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" - [[package]] name = "electrum-client" version = "0.18.0" @@ -685,44 +436,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "encode_unicode" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" - -[[package]] -name = "enum-iterator" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fd242f399be1da0a5354aa462d57b4ab2b4ee0683cc552f7c007d2d12d36e94" -dependencies = [ - "enum-iterator-derive", -] - -[[package]] -name = "enum-iterator-derive" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03cdc46ec28bd728e67540c528013c6a10eb69a02eb31078a1bda695438cbfb8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.59", -] - -[[package]] -name = "enum_dispatch" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" -dependencies = [ - "once_cell", - "proc-macro2", - "quote", - "syn 2.0.59", -] - [[package]] name = "env_logger" version = "0.10.2" @@ -733,22 +446,6 @@ dependencies = [ "regex", ] -[[package]] -name = "equivalent" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" - -[[package]] -name = "errno" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - [[package]] name = "esplora-client" version = "0.6.0" @@ -774,35 +471,6 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" -[[package]] -name = "fastrand" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" - -[[package]] -name = "fern" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9f0c14694cbd524c8720dd69b0e3179344f04ebb5f90f2e4a440c6ea3b2f1ee" -dependencies = [ - "chrono", - "colored", - "log", -] - -[[package]] -name = "filetime" -version = "0.2.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.4.1", - "windows-sys 0.52.0", -] - [[package]] name = "flate2" version = "1.0.28" @@ -815,9 +483,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", @@ -840,58 +508,15 @@ dependencies = [ "web-sys", ] -[[package]] -name = "flutter_rust_bridge_codegen" -version = "2.0.0-dev.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb089f0e86a6873eb9538ee5dea459e9bb029feeb6777ecf1f996c805451a507" -dependencies = [ - "anyhow", - "atty", - "cargo_metadata", - "cargo_toml", - "cbindgen", - "chrono", - "clap", - "convert_case", - "derivative", - "enum-iterator", - "enum_dispatch", - "fern", - "glob", - "hex", - "include_dir", - "indicatif", - "indicatif-log-bridge", - "itertools", - "lazy_static", - "log", - "notify", - "notify-debouncer-mini", - "paste", - "pathdiff", - "proc-macro2", - "quote", - "regex", - "serde", - "serde_json", - "serde_yaml", - "serial_test", - "strum", - "strum_macros", - "syn 2.0.59", - "tempfile", - "toml 0.5.11", - "topological-sort", -] - [[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.59", ] @@ -915,15 +540,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "fsevent-sys" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" -dependencies = [ - "libc", -] - [[package]] name = "futures" version = "0.3.30" @@ -1022,6 +638,16 @@ dependencies = [ "byteorder", ] +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + [[package]] name = "getrandom" version = "0.2.14" @@ -1039,18 +665,6 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - [[package]] name = "hashbrown" version = "0.14.3" @@ -1067,28 +681,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" dependencies = [ - "hashbrown 0.14.3", -] - -[[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" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" - -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", + "hashbrown", ] [[package]] @@ -1109,29 +702,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3011d1213f159867b13cfd6ac92d2cd5f1345762c63be3554e84092d85a50bbd" -[[package]] -name = "iana-time-zone" -version = "0.1.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows-core", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - [[package]] name = "idna" version = "0.5.0" @@ -1142,88 +712,6 @@ dependencies = [ "unicode-normalization", ] -[[package]] -name = "include_dir" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18762faeff7122e89e0857b02f7ce6fcc0d101d5e9ad2ad7846cc01d61b7f19e" -dependencies = [ - "include_dir_macros", -] - -[[package]] -name = "include_dir_macros" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b139284b5cf57ecfa712bcc66950bb635b31aff41c188e8a4cfc758eca374a3f" -dependencies = [ - "proc-macro2", - "quote", -] - -[[package]] -name = "indexmap" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" -dependencies = [ - "autocfg", - "hashbrown 0.12.3", -] - -[[package]] -name = "indexmap" -version = "2.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" -dependencies = [ - "equivalent", - "hashbrown 0.14.3", -] - -[[package]] -name = "indicatif" -version = "0.17.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" -dependencies = [ - "console", - "instant", - "number_prefix", - "portable-atomic", - "unicode-width", -] - -[[package]] -name = "indicatif-log-bridge" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2963046f28a204e3e3fd7e754fd90a6235da05b5378f24707ff0ec9513725ce3" -dependencies = [ - "indicatif", - "log", -] - -[[package]] -name = "inotify" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" -dependencies = [ - "bitflags 1.3.2", - "inotify-sys", - "libc", -] - -[[package]] -name = "inotify-sys" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" -dependencies = [ - "libc", -] - [[package]] name = "instant" version = "0.1.12" @@ -1233,26 +721,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "is-terminal" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" -dependencies = [ - "hermit-abi 0.3.9", - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - [[package]] name = "itoa" version = "1.0.11" @@ -1270,33 +738,13 @@ dependencies = [ [[package]] name = "jsonrpc" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd8d6b3f301ba426b30feca834a2a18d48d5b54e5065496b5c1b05537bee3639" -dependencies = [ - "base64 0.13.1", - "serde", - "serde_json", -] - -[[package]] -name = "kqueue" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" -dependencies = [ - "kqueue-sys", - "libc", -] - -[[package]] -name = "kqueue-sys" -version = "1.0.4" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" +checksum = "fd8d6b3f301ba426b30feca834a2a18d48d5b54e5065496b5c1b05537bee3639" dependencies = [ - "bitflags 1.3.2", - "libc", + "base64 0.13.1", + "serde", + "serde_json", ] [[package]] @@ -1322,18 +770,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "linked-hash-map" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" - -[[package]] -name = "linux-raw-sys" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" - [[package]] name = "lock_api" version = "0.4.11" @@ -1350,6 +786,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", +] + [[package]] name = "memchr" version = "2.7.2" @@ -1376,73 +822,16 @@ dependencies = [ "adler", ] -[[package]] -name = "mio" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" -dependencies = [ - "libc", - "log", - "wasi", - "windows-sys 0.48.0", -] - -[[package]] -name = "notify" -version = "6.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" -dependencies = [ - "bitflags 2.5.0", - "crossbeam-channel", - "filetime", - "fsevent-sys", - "inotify", - "kqueue", - "libc", - "log", - "mio", - "walkdir", - "windows-sys 0.48.0", -] - -[[package]] -name = "notify-debouncer-mini" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d40b221972a1fc5ef4d858a2f671fb34c75983eb385463dff3780eeff6a9d43" -dependencies = [ - "crossbeam-channel", - "log", - "notify", -] - -[[package]] -name = "num-traits" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" -dependencies = [ - "autocfg", -] - [[package]] name = "num_cpus" version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.3.9", + "hermit-abi", "libc", ] -[[package]] -name = "number_prefix" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" - [[package]] name = "object" version = "0.32.2" @@ -1465,7 +854,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8343ce955f18e7e68c0207dd0ea776ec453035685395ababd2ea651c569728b3" dependencies = [ "cc", - "dashmap 4.0.2", + "dashmap", "log", ] @@ -1477,17 +866,7 @@ checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" dependencies = [ "instant", "lock_api", - "parking_lot_core 0.8.6", -] - -[[package]] -name = "parking_lot" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" -dependencies = [ - "lock_api", - "parking_lot_core 0.9.9", + "parking_lot_core", ] [[package]] @@ -1499,36 +878,11 @@ dependencies = [ "cfg-if", "instant", "libc", - "redox_syscall 0.2.16", + "redox_syscall", "smallvec", "winapi", ] -[[package]] -name = "parking_lot_core" -version = "0.9.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.4.1", - "smallvec", - "windows-targets 0.48.5", -] - -[[package]] -name = "paste" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" - -[[package]] -name = "pathdiff" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" - [[package]] name = "percent-encoding" version = "2.3.1" @@ -1553,12 +907,6 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" -[[package]] -name = "portable-atomic" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" - [[package]] name = "ppv-lite86" version = "0.2.17" @@ -1619,16 +967,7 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ - "bitflags 1.3.2", -] - -[[package]] -name = "redox_syscall" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" -dependencies = [ - "bitflags 1.3.2", + "bitflags", ] [[package]] @@ -1672,7 +1011,7 @@ dependencies = [ "libc", "spin", "untrusted", - "windows-sys 0.52.0", + "windows-sys", ] [[package]] @@ -1681,7 +1020,7 @@ version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01e213bc3ecb39ac32e81e51ebe31fd888a940515173e3a18a35f8c6e896422a" dependencies = [ - "bitflags 1.3.2", + "bitflags", "fallible-iterator", "fallible-streaming-iterator", "hashlink", @@ -1695,19 +1034,6 @@ version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" -[[package]] -name = "rustix" -version = "0.38.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" -dependencies = [ - "bitflags 2.5.0", - "errno", - "libc", - "linux-raw-sys", - "windows-sys 0.52.0", -] - [[package]] name = "rustls" version = "0.21.10" @@ -1761,27 +1087,12 @@ dependencies = [ "untrusted", ] -[[package]] -name = "rustversion" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" - [[package]] name = "ryu" version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - [[package]] name = "scopeguard" version = "1.2.0" @@ -1819,15 +1130,6 @@ dependencies = [ "cc", ] -[[package]] -name = "semver" -version = "1.0.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" -dependencies = [ - "serde", -] - [[package]] name = "serde" version = "1.0.197" @@ -1859,52 +1161,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_spanned" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_yaml" -version = "0.8.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b" -dependencies = [ - "indexmap 1.9.3", - "ryu", - "serde", - "yaml-rust", -] - -[[package]] -name = "serial_test" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e56dd856803e253c8f298af3f4d7eb0ae5e23a737252cd90bb4f3b435033b2d" -dependencies = [ - "dashmap 5.5.3", - "futures", - "lazy_static", - "log", - "parking_lot 0.12.1", - "serial_test_derive", -] - -[[package]] -name = "serial_test_derive" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.59", -] - [[package]] name = "slab" version = "0.4.9" @@ -1927,7 +1183,7 @@ dependencies = [ "fxhash", "libc", "log", - "parking_lot 0.11.2", + "parking_lot", ] [[package]] @@ -1953,31 +1209,6 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "strum" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" - -[[package]] -name = "strum_macros" -version = "0.24.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" -dependencies = [ - "heck 0.4.1", - "proc-macro2", - "quote", - "rustversion", - "syn 1.0.109", -] - [[package]] name = "subtle" version = "2.5.0" @@ -2006,18 +1237,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "tempfile" -version = "3.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" -dependencies = [ - "cfg-if", - "fastrand", - "rustix", - "windows-sys 0.52.0", -] - [[package]] name = "threadpool" version = "1.8.1" @@ -2066,53 +1285,10 @@ dependencies = [ ] [[package]] -name = "toml" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" -dependencies = [ - "serde", -] - -[[package]] -name = "toml" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit", -] - -[[package]] -name = "toml_datetime" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" -dependencies = [ - "serde", -] - -[[package]] -name = "toml_edit" -version = "0.22.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" -dependencies = [ - "indexmap 2.2.6", - "serde", - "serde_spanned", - "toml_datetime", - "winnow", -] - -[[package]] -name = "topological-sort" -version = "0.2.2" +name = "typenum" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea68304e134ecd095ac6c3574494fc62b909f416c4fca77e440530221e549d3d" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-bidi" @@ -2135,12 +1311,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-width" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" - [[package]] name = "untrusted" version = "0.9.0" @@ -2178,12 +1348,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "utf8parse" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" - [[package]] name = "vcpkg" version = "0.2.15" @@ -2196,16 +1360,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "walkdir" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" -dependencies = [ - "same-file", - "winapi-util", -] - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -2332,61 +1486,19 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" -[[package]] -name = "winapi-util" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" -dependencies = [ - "winapi", -] - [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows-core" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" -dependencies = [ - "windows-targets 0.52.5", -] - -[[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 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", + "windows-targets", ] [[package]] @@ -2395,46 +1507,28 @@ version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", "windows_i686_gnullvm", - "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", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] -[[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" @@ -2447,72 +1541,30 @@ 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 = "winnow" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0c976aaaa0e1f90dbb21e9587cdaf1d9679a1cde8875c0d6bd83ab96a208352" -dependencies = [ - "memchr", -] - -[[package]] -name = "yaml-rust" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" -dependencies = [ - "linked-hash-map", -] - [[package]] name = "zerocopy" version = "0.7.32" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 12f86f3a..00455be6 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,28 +1,26 @@ [package] name = "bdk_flutter" -version = "0.31.2-dev" +version = "0.31.2" edition = "2021" [lib] crate-type = ["staticlib", "cdylib"] [dev-dependencies] assert_matches = "1.5" - -[build-dependencies] -flutter_rust_bridge_codegen = { version = "= 2.0.0-dev.31" } anyhow = "1.0.68" [dependencies] -flutter_rust_bridge = "=2.0.0-dev.31" +flutter_rust_bridge = "=2.0.0" rand = "0.8" bdk = { version = "0.29.0", features = ["all-keys", "use-esplora-ureq", "sqlite-bundled", "rpc"] } -# bitcoinconsensus = {version = "0.106.0+26.0"} serde = "1.0.89" serde_json = "1.0.96" anyhow = "1.0.68" [profile.release] strip = true -opt-level = "z" +opt-level = 3 lto = true codegen-units = 1 panic = "abort" + + diff --git a/rust/src/api/blockchain.rs b/rust/src/api/blockchain.rs index 13499f73..c80362e1 100644 --- a/rust/src/api/blockchain.rs +++ b/rust/src/api/blockchain.rs @@ -3,29 +3,29 @@ use crate::api::types::{BdkTransaction, FeeRate, Network}; use crate::api::error::BdkError; use crate::frb_generated::RustOpaque; use bdk::bitcoin::Transaction; -use bdk::blockchain; + use bdk::blockchain::esplora::EsploraBlockchainConfig; pub use bdk::blockchain::{ - rpc, AnyBlockchain, AnyBlockchainConfig, Blockchain, ConfigurableBlockchain, - ElectrumBlockchainConfig, GetBlockHash, GetHeight, + AnyBlockchainConfig, Blockchain, ConfigurableBlockchain, ElectrumBlockchainConfig, + GetBlockHash, GetHeight, }; + use std::path::PathBuf; -#[derive(Clone)] pub struct BdkBlockchain { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } -impl From for BdkBlockchain { - fn from(value: AnyBlockchain) -> Self { +impl From for BdkBlockchain { + fn from(value: bdk::blockchain::AnyBlockchain) -> Self { Self { ptr: RustOpaque::new(value), } } } impl BdkBlockchain { - pub fn new(blockchain_config: BlockchainConfig) -> Result { + pub fn create(blockchain_config: BlockchainConfig) -> Result { let any_blockchain_config = match blockchain_config { BlockchainConfig::Electrum { config } => { AnyBlockchainConfig::Electrum(ElectrumBlockchainConfig { @@ -47,7 +47,7 @@ impl BdkBlockchain { }) } BlockchainConfig::Rpc { config } => { - AnyBlockchainConfig::Rpc(blockchain::rpc::RpcConfig { + AnyBlockchainConfig::Rpc(bdk::blockchain::rpc::RpcConfig { url: config.url, auth: config.auth.into(), network: config.network.into(), @@ -56,15 +56,14 @@ impl BdkBlockchain { }) } }; - let blockchain = AnyBlockchain::from_config(&any_blockchain_config)?; + let blockchain = bdk::blockchain::AnyBlockchain::from_config(&any_blockchain_config)?; Ok(blockchain.into()) } - pub(crate) fn get_blockchain(&self) -> RustOpaque { + pub(crate) fn get_blockchain(&self) -> RustOpaque { self.ptr.clone() } - - pub fn broadcast(&self, transaction: BdkTransaction) -> Result { - let tx: Transaction = (&transaction).try_into()?; + pub fn broadcast(&self, transaction: &BdkTransaction) -> Result { + let tx: Transaction = transaction.try_into()?; self.get_blockchain().broadcast(&tx)?; Ok(tx.txid().to_string()) } @@ -142,14 +141,14 @@ pub enum Auth { }, } -impl From for rpc::Auth { +impl From for bdk::blockchain::rpc::Auth { fn from(auth: Auth) -> Self { match auth { - Auth::None => blockchain::rpc::Auth::None, + Auth::None => bdk::blockchain::rpc::Auth::None, Auth::UserPass { username, password } => { - blockchain::rpc::Auth::UserPass { username, password } + bdk::blockchain::rpc::Auth::UserPass { username, password } } - Auth::Cookie { file } => blockchain::rpc::Auth::Cookie { + Auth::Cookie { file } => bdk::blockchain::rpc::Auth::Cookie { file: PathBuf::from(file), }, } @@ -172,9 +171,9 @@ pub struct RpcSyncParams { pub poll_rate_sec: u64, } -impl From for blockchain::rpc::RpcSyncParams { +impl From for bdk::blockchain::rpc::RpcSyncParams { fn from(params: RpcSyncParams) -> Self { - blockchain::rpc::RpcSyncParams { + bdk::blockchain::rpc::RpcSyncParams { start_script_count: params.start_script_count as usize, start_time: params.start_time, force_start_time: params.force_start_time, diff --git a/rust/src/api/descriptor.rs b/rust/src/api/descriptor.rs index 9947278d..e7f6f0d2 100644 --- a/rust/src/api/descriptor.rs +++ b/rust/src/api/descriptor.rs @@ -4,18 +4,19 @@ use crate::api::types::{KeychainKind, Network}; use crate::frb_generated::RustOpaque; use bdk::bitcoin::bip32::Fingerprint; use bdk::bitcoin::key::Secp256k1; -pub use bdk::descriptor::{ExtendedDescriptor, IntoWalletDescriptor}; +pub use bdk::descriptor::IntoWalletDescriptor; pub use bdk::keys; use bdk::template::{ Bip44, Bip44Public, Bip49, Bip49Public, Bip84, Bip84Public, Bip86, Bip86Public, DescriptorTemplate, }; +use flutter_rust_bridge::frb; use std::str::FromStr; #[derive(Debug)] pub struct BdkDescriptor { - pub extended_descriptor: RustOpaque, - pub key_map: RustOpaque, + pub extended_descriptor: RustOpaque, + pub key_map: RustOpaque, } impl BdkDescriptor { @@ -34,7 +35,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -62,7 +63,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -89,7 +90,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -117,7 +118,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { @@ -145,7 +146,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { let derivable_key = descriptor_x_key.xkey; @@ -173,7 +174,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { @@ -201,7 +202,7 @@ impl BdkDescriptor { keychain_kind: KeychainKind, network: Network, ) -> Result { - let derivable_key = &(*secret_key.ptr); + let derivable_key = &*secret_key.ptr; match derivable_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { @@ -230,7 +231,7 @@ impl BdkDescriptor { ) -> Result { let fingerprint = Fingerprint::from_str(fingerprint.as_str()) .map_err(|e| BdkError::Generic(e.to_string()))?; - let derivable_key = &(*public_key.ptr); + let derivable_key = &*public_key.ptr; match derivable_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { @@ -253,15 +254,18 @@ impl BdkDescriptor { } } - pub fn as_string_private(&self) -> String { + #[frb(sync)] + pub fn to_string_private(&self) -> String { let descriptor = &self.extended_descriptor; - let key_map = &(*self.key_map); + let key_map = &*self.key_map; descriptor.to_string_with_secret(key_map) } + #[frb(sync)] pub fn as_string(&self) -> String { self.extended_descriptor.to_string() } + #[frb(sync)] pub fn max_satisfaction_weight(&self) -> Result { self.extended_descriptor .max_weight_to_satisfy() diff --git a/rust/src/api/key.rs b/rust/src/api/key.rs index 50d1dc7b..9d106e0a 100644 --- a/rust/src/api/key.rs +++ b/rust/src/api/key.rs @@ -8,10 +8,11 @@ use bdk::keys::bip39::Language; use bdk::keys::{DerivableKey, GeneratableKey}; use bdk::miniscript::descriptor::{DescriptorXKey, Wildcard}; use bdk::miniscript::BareCtx; +use flutter_rust_bridge::frb; use std::str::FromStr; pub struct BdkMnemonic { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkMnemonic { fn from(value: keys::bip39::Mnemonic) -> Self { @@ -45,13 +46,14 @@ impl BdkMnemonic { .map_err(|e| BdkError::Bip39(e.to_string())) } - /// Returns Mnemonic as string + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } } + pub struct BdkDerivationPath { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkDerivationPath { fn from(value: bitcoin::bip32::DerivationPath) -> Self { @@ -67,11 +69,15 @@ impl BdkDerivationPath { .map(|e| e.into()) .map_err(|e| BdkError::Generic(e.to_string())) } + #[frb(sync)] + pub fn as_string(&self) -> String { + self.ptr.to_string() + } } #[derive(Debug)] pub struct BdkDescriptorSecretKey { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkDescriptorSecretKey { fn from(value: keys::DescriptorSecretKey) -> Self { @@ -154,14 +160,16 @@ impl BdkDescriptorSecretKey { )), } } + #[frb(sync)] pub fn as_public(ptr: BdkDescriptorSecretKey) -> Result { let secp = Secp256k1::new(); let descriptor_public_key = ptr.ptr.to_public(&secp).unwrap(); Ok(descriptor_public_key.into()) } + #[frb(sync)] /// Get the private key as bytes. pub fn secret_bytes(&self) -> Result, BdkError> { - let descriptor_secret_key = &(*self.ptr); + let descriptor_secret_key = &*self.ptr; match descriptor_secret_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { Ok(descriptor_x_key.xkey.private_key.secret_bytes().to_vec()) @@ -179,13 +187,14 @@ impl BdkDescriptorSecretKey { let key = keys::DescriptorSecretKey::from_str(&*secret_key).unwrap(); Ok(key.into()) } + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } } #[derive(Debug)] pub struct BdkDescriptorPublicKey { - pub ptr: RustOpaque, + pub ptr: RustOpaque, } impl From for BdkDescriptorPublicKey { fn from(value: keys::DescriptorPublicKey) -> Self { @@ -263,6 +272,7 @@ impl BdkDescriptorPublicKey { } } + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } diff --git a/rust/src/api/psbt.rs b/rust/src/api/psbt.rs index 713a1af2..30c1f6c6 100644 --- a/rust/src/api/psbt.rs +++ b/rust/src/api/psbt.rs @@ -1,34 +1,42 @@ use crate::api::error::BdkError; use crate::api::types::{BdkTransaction, FeeRate}; use crate::frb_generated::RustOpaque; -pub use bdk::bitcoin::psbt::PartiallySignedTransaction; + use bdk::psbt::PsbtUtils; use std::ops::Deref; use std::str::FromStr; -use std::sync::Mutex; -#[derive(Debug, Clone)] +use flutter_rust_bridge::frb; + +#[derive(Debug)] pub struct BdkPsbt { - pub ptr: RustOpaque>, + pub ptr: RustOpaque>, } -impl From for BdkPsbt { - fn from(value: PartiallySignedTransaction) -> Self { +impl From for BdkPsbt { + fn from(value: bdk::bitcoin::psbt::PartiallySignedTransaction) -> Self { Self { - ptr: RustOpaque::new(Mutex::new(value)), + ptr: RustOpaque::new(std::sync::Mutex::new(value)), } } } impl BdkPsbt { pub fn from_str(psbt_base64: String) -> Result { - let psbt: PartiallySignedTransaction = PartiallySignedTransaction::from_str(&psbt_base64)?; + let psbt: bdk::bitcoin::psbt::PartiallySignedTransaction = + bdk::bitcoin::psbt::PartiallySignedTransaction::from_str(&psbt_base64)?; Ok(psbt.into()) } - pub fn serialize(&self) -> String { + + #[frb(sync)] + pub fn as_string(&self) -> String { let psbt = self.ptr.lock().unwrap().clone(); psbt.to_string() } + ///Computes the `Txid`. + /// Hashes the transaction excluding the segwit data (i. e. the marker, flag bytes, and the witness fields themselves). + /// For non-segwit transactions which do not have any segwit data, this will be equal to transaction.wtxid(). + #[frb(sync)] pub fn txid(&self) -> String { let tx = self.ptr.lock().unwrap().clone().extract_tx(); let txid = tx.txid(); @@ -36,6 +44,7 @@ impl BdkPsbt { } /// Return the transaction. + #[frb(sync)] pub fn extract_tx(ptr: BdkPsbt) -> Result { let tx = ptr.ptr.lock().unwrap().clone().extract_tx(); tx.try_into() @@ -53,6 +62,7 @@ impl BdkPsbt { /// The total transaction fee amount, sum of input amounts minus sum of output amounts, in Sats. /// If the PSBT is missing a TxOut for an input returns None. + #[frb(sync)] pub fn fee_amount(&self) -> Option { self.ptr.lock().unwrap().fee_amount() } @@ -61,11 +71,19 @@ impl BdkPsbt { /// `PartiallySignedTransaction` is finalized and all witness/signature data is added to the /// transaction. /// If the PSBT is missing a TxOut for an input returns None. + #[frb(sync)] pub fn fee_rate(&self) -> Option { self.ptr.lock().unwrap().fee_rate().map(|e| e.into()) } + ///Serialize as raw binary data + #[frb(sync)] + pub fn serialize(&self) -> Vec { + let psbt = self.ptr.lock().unwrap().clone(); + psbt.serialize() + } /// Serialize the PSBT data structure as a String of JSON. + #[frb(sync)] pub fn json_serialize(&self) -> String { let psbt = self.ptr.lock().unwrap(); serde_json::to_string(psbt.deref()).unwrap() diff --git a/rust/src/api/types.rs b/rust/src/api/types.rs index b067a719..09685f48 100644 --- a/rust/src/api/types.rs +++ b/rust/src/api/types.rs @@ -3,6 +3,7 @@ use crate::frb_generated::RustOpaque; use bdk::bitcoin::consensus::{serialize, Decodable}; use bdk::bitcoin::hashes::hex::Error; use bdk::database::AnyDatabaseConfig; +use flutter_rust_bridge::frb; use serde::{Deserialize, Serialize}; use std::io::Cursor; use std::str::FromStr; @@ -118,6 +119,7 @@ impl From for bdk::bitcoin::ScriptBuf { } } impl BdkScriptBuf { + #[frb(sync)] ///Creates a new empty script. pub fn empty() -> BdkScriptBuf { bdk::bitcoin::ScriptBuf::new().into() @@ -136,6 +138,11 @@ impl BdkScriptBuf { Error::InvalidLength(e, f) => BdkError::Hex(HexError::InvalidLength(e, f)), }) } + #[frb(sync)] + pub fn as_string(&self) -> String { + let script: bdk::bitcoin::ScriptBuf = self.to_owned().into(); + script.to_string() + } } pub struct PsbtSigHashType { pub inner: u32, @@ -475,6 +482,7 @@ impl BdkAddress { .map(|a| a.into()) .map_err(|e| e.into()) } + #[frb(sync)] pub fn payload(&self) -> Payload { match <&BdkAddress as Into>::into(self).payload { bdk::bitcoin::address::Payload::PubkeyHash(pubkey_hash) => Payload::PubkeyHash { @@ -491,27 +499,25 @@ impl BdkAddress { } } - ///Creates a URI string bitcoin:address optimized to be encoded in QR codes. - // If the address is bech32, both the schema and the address become uppercase. If the address is base58, the schema is lowercase and the address is left mixed case. - // Quoting BIP 173 "inside QR codes uppercase SHOULD be used, as those permit the use of alphanumeric mode, which is 45% more compact than the normal byte mode." - // Note however that despite BIP21 explicitly stating that the bitcoin: prefix should be parsed as case-insensitive many wallets got this wrong and don't parse correctly. See compatibility table. - // If you want to avoid allocation you can use alternate display instead: - // write!(writer, "{:#}", address)?; + #[frb(sync)] pub fn to_qr_uri(&self) -> String { self.ptr.to_qr_uri() } - ///The network on which this address is usable. + + #[frb(sync)] pub fn network(&self) -> Network { self.ptr.network.into() } - + #[frb(sync)] pub fn script(ptr: BdkAddress) -> BdkScriptBuf { ptr.ptr.script_pubkey().into() } + #[frb(sync)] pub fn is_valid_for_network(&self, network: Network) -> bool { - let address_str = self.ptr.to_string(); - if let Ok(unchecked_address) = address_str + if let Ok(unchecked_address) = self + .ptr + .to_string() .parse::>() { unchecked_address.is_valid_for_network(network.into()) @@ -519,7 +525,7 @@ impl BdkAddress { false } } - + #[frb(sync)] pub fn as_string(&self) -> String { self.ptr.to_string() } @@ -578,7 +584,7 @@ impl From for LockTime { #[derive(Debug, Clone, PartialEq, Eq)] pub struct BdkTransaction { - pub inner: String, + pub s: String, } impl BdkTransaction { pub fn new( @@ -680,7 +686,7 @@ impl TryFrom for BdkTransaction { type Error = BdkError; fn try_from(tx: bdk::bitcoin::Transaction) -> Result { Ok(BdkTransaction { - inner: serde_json::to_string(&tx) + s: serde_json::to_string(&tx) .map_err(|e| BdkError::InvalidTransaction(e.to_string()))?, }) } @@ -688,7 +694,7 @@ impl TryFrom for BdkTransaction { impl TryFrom<&BdkTransaction> for bdk::bitcoin::Transaction { type Error = BdkError; fn try_from(tx: &BdkTransaction) -> Result { - serde_json::from_str(&tx.inner).map_err(|e| BdkError::InvalidTransaction(e.to_string())) + serde_json::from_str(&tx.s).map_err(|e| BdkError::InvalidTransaction(e.to_string())) } } ///Configuration type for a SqliteDatabase database diff --git a/rust/src/api/wallet.rs b/rust/src/api/wallet.rs index 6d444561..8b78911a 100644 --- a/rust/src/api/wallet.rs +++ b/rust/src/api/wallet.rs @@ -14,14 +14,13 @@ use crate::frb_generated::RustOpaque; use bdk::bitcoin::script::PushBytesBuf; use bdk::bitcoin::{Sequence, Txid}; pub use bdk::blockchain::GetTx; -pub use bdk::database::any::AnyDatabase; + use bdk::database::ConfigurableDatabase; -pub use std::sync::Mutex; use std::sync::MutexGuard; -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct BdkWallet { - pub ptr: RustOpaque>>, + pub ptr: RustOpaque>>, } impl BdkWallet { pub fn new( @@ -30,9 +29,9 @@ impl BdkWallet { network: Network, database_config: DatabaseConfig, ) -> Result { - let database = AnyDatabase::from_config(&database_config.into())?; - let descriptor: String = descriptor.as_string_private(); - let change_descriptor: Option = change_descriptor.map(|d| d.as_string_private()); + let database = bdk::database::AnyDatabase::from_config(&database_config.into())?; + let descriptor: String = descriptor.to_string_private(); + let change_descriptor: Option = change_descriptor.map(|d| d.to_string_private()); let wallet = bdk::Wallet::new( &descriptor, @@ -41,10 +40,10 @@ impl BdkWallet { database, )?; Ok(BdkWallet { - ptr: RustOpaque::new(Mutex::new(wallet)), + ptr: RustOpaque::new(std::sync::Mutex::new(wallet)), }) } - pub(crate) fn get_wallet(&self) -> MutexGuard> { + pub(crate) fn get_wallet(&self) -> MutexGuard> { self.ptr.lock().expect("") } @@ -140,7 +139,7 @@ impl BdkWallet { .map_err(|e| e.into()) } /// Sync the internal database with the blockchain. - pub fn sync(ptr: BdkWallet, blockchain: BdkBlockchain) -> Result<(), BdkError> { + pub fn sync(ptr: BdkWallet, blockchain: &BdkBlockchain) -> Result<(), BdkError> { let blockchain = blockchain.get_blockchain(); ptr.get_wallet() .sync(blockchain.deref(), bdk::SyncOptions::default()) diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index 6041f725..a4806f7c 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -1,17 +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::blockchain::*; -use crate::api::descriptor::*; -use crate::api::key::*; -use crate::api::psbt::*; -use crate::api::types::*; -use crate::api::wallet::*; +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 @@ -20,63 +15,69 @@ flutter_rust_bridge::frb_generated_boilerplate_io!(); // Section: dart2rust -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 _) } } } @@ -457,7 +458,7 @@ impl CstDecode for wire_cst_bdk_transaction { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::BdkTransaction { crate::api::types::BdkTransaction { - inner: self.inner.cst_decode(), + s: self.s.cst_decode(), } } } @@ -1426,7 +1427,7 @@ impl Default for wire_cst_bdk_script_buf { impl NewWithNullPtr for wire_cst_bdk_transaction { fn new_with_null_ptr() -> Self { Self { - inner: core::ptr::null_mut(), + s: core::ptr::null_mut(), } } } @@ -1835,100 +1836,95 @@ impl Default for wire_cst_tx_out { } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_broadcast( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast( port_: i64, that: *mut wire_cst_bdk_blockchain, transaction: *mut wire_cst_bdk_transaction, ) { - wire_bdk_blockchain_broadcast_impl(port_, that, transaction) + wire__crate__api__blockchain__bdk_blockchain_broadcast_impl(port_, that, transaction) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_create( port_: i64, - that: *mut wire_cst_bdk_blockchain, - target: u64, + blockchain_config: *mut wire_cst_blockchain_config, ) { - wire_bdk_blockchain_estimate_fee_impl(port_, that, target) + wire__crate__api__blockchain__bdk_blockchain_create_impl(port_, blockchain_config) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_estimate_fee( port_: i64, that: *mut wire_cst_bdk_blockchain, - height: u32, + target: u64, ) { - wire_bdk_blockchain_get_block_hash_impl(port_, that, height) + wire__crate__api__blockchain__bdk_blockchain_estimate_fee_impl(port_, that, target) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_get_height( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_block_hash( port_: i64, that: *mut wire_cst_bdk_blockchain, + height: u32, ) { - wire_bdk_blockchain_get_height_impl(port_, that) + wire__crate__api__blockchain__bdk_blockchain_get_block_hash_impl(port_, that, height) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_new( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_get_height( port_: i64, - blockchain_config: *mut wire_cst_blockchain_config, + that: *mut wire_cst_bdk_blockchain, ) { - wire_bdk_blockchain_new_impl(port_, blockchain_config) + wire__crate__api__blockchain__bdk_blockchain_get_height_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_as_string( that: *mut wire_cst_bdk_descriptor, -) { - wire_bdk_descriptor_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__descriptor__bdk_descriptor_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight( that: *mut wire_cst_bdk_descriptor, -) { - wire_bdk_descriptor_as_string_private_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight( - port_: i64, - that: *mut wire_cst_bdk_descriptor, -) { - wire_bdk_descriptor_max_satisfaction_weight_impl(port_, that) -} - -#[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new( port_: i64, descriptor: *mut wire_cst_list_prim_u_8_strict, network: i32, ) { - wire_bdk_descriptor_new_impl(port_, descriptor, network) + wire__crate__api__descriptor__bdk_descriptor_new_impl(port_, descriptor, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip44_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip44_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip44_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip44_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip44_public_impl( port_, public_key, fingerprint, @@ -1938,24 +1934,29 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip49_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip49_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip49_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip49_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip49_public_impl( port_, public_key, fingerprint, @@ -1965,24 +1966,29 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip84_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip84_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip84_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip84_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip84_public_impl( port_, public_key, fingerprint, @@ -1992,24 +1998,29 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86( port_: i64, secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip86_impl(port_, secret_key, keychain_kind, network) + wire__crate__api__descriptor__bdk_descriptor_new_bip86_impl( + port_, + secret_key, + keychain_kind, + network, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_new_bip86_public( port_: i64, public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_bdk_descriptor_new_bip86_public_impl( + wire__crate__api__descriptor__bdk_descriptor_new_bip86_public_impl( port_, public_key, fingerprint, @@ -2019,490 +2030,514 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_derivation_path_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__descriptor__bdk_descriptor_to_string_private( + that: *mut wire_cst_bdk_descriptor, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__descriptor__bdk_descriptor_to_string_private_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_as_string( + that: *mut wire_cst_bdk_derivation_path, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_derivation_path_as_string_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_derivation_path_from_string( port_: i64, path: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_derivation_path_from_string_impl(port_, path) + wire__crate__api__key__bdk_derivation_path_from_string_impl(port_, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_as_string( that: *mut wire_cst_bdk_descriptor_public_key, -) { - wire_bdk_descriptor_public_key_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_descriptor_public_key_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_derive( port_: i64, ptr: *mut wire_cst_bdk_descriptor_public_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_public_key_derive_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_public_key_derive_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_extend( port_: i64, ptr: *mut wire_cst_bdk_descriptor_public_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_public_key_extend_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_public_key_extend_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_public_key_from_string( port_: i64, public_key: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_descriptor_public_key_from_string_impl(port_, public_key) + wire__crate__api__key__bdk_descriptor_public_key_from_string_impl(port_, public_key) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_public( ptr: *mut wire_cst_bdk_descriptor_secret_key, -) { - wire_bdk_descriptor_secret_key_as_public_impl(port_, ptr) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_descriptor_secret_key_as_public_impl(ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_as_string( that: *mut wire_cst_bdk_descriptor_secret_key, -) { - wire_bdk_descriptor_secret_key_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_descriptor_secret_key_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_create( port_: i64, network: i32, mnemonic: *mut wire_cst_bdk_mnemonic, password: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) + wire__crate__api__key__bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_derive( port_: i64, ptr: *mut wire_cst_bdk_descriptor_secret_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_secret_key_derive_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_secret_key_derive_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_extend( port_: i64, ptr: *mut wire_cst_bdk_descriptor_secret_key, path: *mut wire_cst_bdk_derivation_path, ) { - wire_bdk_descriptor_secret_key_extend_impl(port_, ptr, path) + wire__crate__api__key__bdk_descriptor_secret_key_extend_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_from_string( port_: i64, secret_key: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_descriptor_secret_key_from_string_impl(port_, secret_key) + wire__crate__api__key__bdk_descriptor_secret_key_from_string_impl(port_, secret_key) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes( that: *mut wire_cst_bdk_descriptor_secret_key, -) { - wire_bdk_descriptor_secret_key_secret_bytes_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_as_string( that: *mut wire_cst_bdk_mnemonic, -) { - wire_bdk_mnemonic_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__key__bdk_mnemonic_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_entropy( port_: i64, entropy: *mut wire_cst_list_prim_u_8_loose, ) { - wire_bdk_mnemonic_from_entropy_impl(port_, entropy) + wire__crate__api__key__bdk_mnemonic_from_entropy_impl(port_, entropy) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_from_string( port_: i64, mnemonic: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_mnemonic_from_string_impl(port_, mnemonic) + wire__crate__api__key__bdk_mnemonic_from_string_impl(port_, mnemonic) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_new(port_: i64, word_count: i32) { - wire_bdk_mnemonic_new_impl(port_, word_count) +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__key__bdk_mnemonic_new( + port_: i64, + word_count: i32, +) { + wire__crate__api__key__bdk_mnemonic_new_impl(port_, word_count) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_combine( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_as_string( + that: *mut wire_cst_bdk_psbt, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_as_string_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_combine( port_: i64, ptr: *mut wire_cst_bdk_psbt, other: *mut wire_cst_bdk_psbt, ) { - wire_bdk_psbt_combine_impl(port_, ptr, other) + wire__crate__api__psbt__bdk_psbt_combine_impl(port_, ptr, other) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_extract_tx( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_extract_tx( ptr: *mut wire_cst_bdk_psbt, -) { - wire_bdk_psbt_extract_tx_impl(port_, ptr) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_extract_tx_impl(ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_fee_amount( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_amount( that: *mut wire_cst_bdk_psbt, -) { - wire_bdk_psbt_fee_amount_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_fee_amount_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_fee_rate( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_fee_rate( that: *mut wire_cst_bdk_psbt, -) { - wire_bdk_psbt_fee_rate_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_fee_rate_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_from_str( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_from_str( port_: i64, psbt_base64: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_psbt_from_str_impl(port_, psbt_base64) + wire__crate__api__psbt__bdk_psbt_from_str_impl(port_, psbt_base64) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_json_serialize( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_json_serialize( that: *mut wire_cst_bdk_psbt, -) { - wire_bdk_psbt_json_serialize_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_json_serialize_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_serialize( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_serialize( that: *mut wire_cst_bdk_psbt, -) { - wire_bdk_psbt_serialize_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_serialize_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_txid(port_: i64, that: *mut wire_cst_bdk_psbt) { - wire_bdk_psbt_txid_impl(port_, that) +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__psbt__bdk_psbt_txid( + that: *mut wire_cst_bdk_psbt, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__psbt__bdk_psbt_txid_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_as_string( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_as_string( that: *mut wire_cst_bdk_address, -) { - wire_bdk_address_as_string_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_from_script( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_script( port_: i64, script: *mut wire_cst_bdk_script_buf, network: i32, ) { - wire_bdk_address_from_script_impl(port_, script, network) + wire__crate__api__types__bdk_address_from_script_impl(port_, script, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_from_string( port_: i64, address: *mut wire_cst_list_prim_u_8_strict, network: i32, ) { - wire_bdk_address_from_string_impl(port_, address, network) + wire__crate__api__types__bdk_address_from_string_impl(port_, address, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_is_valid_for_network( that: *mut wire_cst_bdk_address, network: i32, -) { - wire_bdk_address_is_valid_for_network_impl(port_, that, network) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_is_valid_for_network_impl(that, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_network( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_network( that: *mut wire_cst_bdk_address, -) { - wire_bdk_address_network_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_network_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_payload( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload( that: *mut wire_cst_bdk_address, -) { - wire_bdk_address_payload_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_payload_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_script( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script( ptr: *mut wire_cst_bdk_address, -) { - wire_bdk_address_script_impl(port_, ptr) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_script_impl(ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_to_qr_uri( - port_: i64, +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri( that: *mut wire_cst_bdk_address, -) { - wire_bdk_address_to_qr_uri_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_address_to_qr_uri_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string( + that: *mut wire_cst_bdk_script_buf, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_script_buf_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_empty(port_: i64) { - wire_bdk_script_buf_empty_impl(port_) +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__types__bdk_script_buf_empty_impl() } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_from_hex( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex( port_: i64, s: *mut wire_cst_list_prim_u_8_strict, ) { - wire_bdk_script_buf_from_hex_impl(port_, s) + wire__crate__api__types__bdk_script_buf_from_hex_impl(port_, s) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_with_capacity( port_: i64, capacity: usize, ) { - wire_bdk_script_buf_with_capacity_impl(port_, capacity) + wire__crate__api__types__bdk_script_buf_with_capacity_impl(port_, capacity) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_from_bytes( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_from_bytes( port_: i64, transaction_bytes: *mut wire_cst_list_prim_u_8_loose, ) { - wire_bdk_transaction_from_bytes_impl(port_, transaction_bytes) + wire__crate__api__types__bdk_transaction_from_bytes_impl(port_, transaction_bytes) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_input( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_input( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_input_impl(port_, that) + wire__crate__api__types__bdk_transaction_input_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_coin_base( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_is_coin_base_impl(port_, that) + wire__crate__api__types__bdk_transaction_is_coin_base_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_explicitly_rbf( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_is_explicitly_rbf_impl(port_, that) + wire__crate__api__types__bdk_transaction_is_explicitly_rbf_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_is_lock_time_enabled( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_is_lock_time_enabled_impl(port_, that) + wire__crate__api__types__bdk_transaction_is_lock_time_enabled_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_lock_time( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_lock_time( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_lock_time_impl(port_, that) + wire__crate__api__types__bdk_transaction_lock_time_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_new( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_new( port_: i64, version: i32, lock_time: *mut wire_cst_lock_time, input: *mut wire_cst_list_tx_in, output: *mut wire_cst_list_tx_out, ) { - wire_bdk_transaction_new_impl(port_, version, lock_time, input, output) + wire__crate__api__types__bdk_transaction_new_impl(port_, version, lock_time, input, output) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_output( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_output( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_output_impl(port_, that) + wire__crate__api__types__bdk_transaction_output_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_serialize( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_serialize( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_serialize_impl(port_, that) + wire__crate__api__types__bdk_transaction_serialize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_size( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_size( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_size_impl(port_, that) + wire__crate__api__types__bdk_transaction_size_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_txid( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_txid( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_txid_impl(port_, that) + wire__crate__api__types__bdk_transaction_txid_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_version( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_version( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_version_impl(port_, that) + wire__crate__api__types__bdk_transaction_version_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_vsize( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_vsize_impl(port_, that) + wire__crate__api__types__bdk_transaction_vsize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_weight( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight( port_: i64, that: *mut wire_cst_bdk_transaction, ) { - wire_bdk_transaction_weight_impl(port_, that) + wire__crate__api__types__bdk_transaction_weight_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_address( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address( port_: i64, ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, ) { - wire_bdk_wallet_get_address_impl(port_, ptr, address_index) + wire__crate__api__wallet__bdk_wallet_get_address_impl(port_, ptr, address_index) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_balance( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance( port_: i64, that: *mut wire_cst_bdk_wallet, ) { - wire_bdk_wallet_get_balance_impl(port_, that) + wire__crate__api__wallet__bdk_wallet_get_balance_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( port_: i64, ptr: *mut wire_cst_bdk_wallet, keychain: i32, ) { - wire_bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) + wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address( port_: i64, ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, ) { - wire_bdk_wallet_get_internal_address_impl(port_, ptr, address_index) + wire__crate__api__wallet__bdk_wallet_get_internal_address_impl(port_, ptr, address_index) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input( port_: i64, that: *mut wire_cst_bdk_wallet, utxo: *mut wire_cst_local_utxo, only_witness_utxo: bool, sighash_type: *mut wire_cst_psbt_sig_hash_type, ) { - wire_bdk_wallet_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) + wire__crate__api__wallet__bdk_wallet_get_psbt_input_impl( + port_, + that, + utxo, + only_witness_utxo, + sighash_type, + ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_is_mine( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine( port_: i64, that: *mut wire_cst_bdk_wallet, script: *mut wire_cst_bdk_script_buf, ) { - wire_bdk_wallet_is_mine_impl(port_, that, script) + wire__crate__api__wallet__bdk_wallet_is_mine_impl(port_, that, script) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_list_transactions( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions( port_: i64, that: *mut wire_cst_bdk_wallet, include_raw: bool, ) { - wire_bdk_wallet_list_transactions_impl(port_, that, include_raw) + wire__crate__api__wallet__bdk_wallet_list_transactions_impl(port_, that, include_raw) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_list_unspent( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent( port_: i64, that: *mut wire_cst_bdk_wallet, ) { - wire_bdk_wallet_list_unspent_impl(port_, that) + wire__crate__api__wallet__bdk_wallet_list_unspent_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_network( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network( port_: i64, that: *mut wire_cst_bdk_wallet, ) { - wire_bdk_wallet_network_impl(port_, that) + wire__crate__api__wallet__bdk_wallet_network_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_new( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new( port_: i64, descriptor: *mut wire_cst_bdk_descriptor, change_descriptor: *mut wire_cst_bdk_descriptor, network: i32, database_config: *mut wire_cst_database_config, ) { - wire_bdk_wallet_new_impl( + wire__crate__api__wallet__bdk_wallet_new_impl( port_, descriptor, change_descriptor, @@ -2512,26 +2547,26 @@ pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_new( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_sign( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign( port_: i64, ptr: *mut wire_cst_bdk_wallet, psbt: *mut wire_cst_bdk_psbt, sign_options: *mut wire_cst_sign_options, ) { - wire_bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) + wire__crate__api__wallet__bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_sync( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync( port_: i64, ptr: *mut wire_cst_bdk_wallet, blockchain: *mut wire_cst_bdk_blockchain, ) { - wire_bdk_wallet_sync_impl(port_, ptr, blockchain) + wire__crate__api__wallet__bdk_wallet_sync_impl(port_, ptr, blockchain) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder( port_: i64, txid: *mut wire_cst_list_prim_u_8_strict, fee_rate: f32, @@ -2540,7 +2575,7 @@ pub extern "C" fn frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder( enable_rbf: bool, n_sequence: *mut u32, ) { - wire_finish_bump_fee_tx_builder_impl( + wire__crate__api__wallet__finish_bump_fee_tx_builder_impl( port_, txid, fee_rate, @@ -2552,7 +2587,7 @@ pub extern "C" fn frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_tx_builder_finish( +pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish( port_: i64, wallet: *mut wire_cst_bdk_wallet, recipients: *mut wire_cst_list_script_amount, @@ -2568,7 +2603,7 @@ pub extern "C" fn frbgen_bdk_flutter_wire_tx_builder_finish( rbf: *mut wire_cst_rbf_value, data: *mut wire_cst_list_prim_u_8_loose, ) { - wire_tx_builder_finish_impl( + wire__crate__api__wallet__tx_builder_finish_impl( port_, wallet, recipients, @@ -2587,182 +2622,186 @@ pub extern "C" fn frbgen_bdk_flutter_wire_tx_builder_finish( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_AnyBlockchain( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysbip39Mnemonic( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysbip39Mnemonic( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysKeyMap( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysKeyMap( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkWalletbdkdatabaseAnyDatabase( 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_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( 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_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic( +pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexbdkbitcoinpsbtPartiallySignedTransaction( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } @@ -3530,7 +3569,7 @@ pub struct wire_cst_bdk_script_buf { #[repr(C)] #[derive(Clone, Copy)] pub struct wire_cst_bdk_transaction { - inner: *mut wire_cst_list_prim_u_8_strict, + s: *mut wire_cst_list_prim_u_8_strict, } #[repr(C)] #[derive(Clone, Copy)] diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index 19277aa7..ebb4e826 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,19 +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::blockchain::*; -use crate::api::descriptor::*; -use crate::api::key::*; -use crate::api::psbt::*; -use crate::api::types::*; -use crate::api::wallet::*; +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 @@ -36,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 = 1897842111; // Section: executor @@ -44,7 +46,7 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire_bdk_blockchain_broadcast_impl( +fn wire__crate__api__blockchain__bdk_blockchain_broadcast_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, transaction: impl CstDecode, @@ -59,160 +61,149 @@ fn wire_bdk_blockchain_broadcast_impl( let api_that = that.cst_decode(); let api_transaction = transaction.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::broadcast(&api_that, api_transaction) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::blockchain::BdkBlockchain::broadcast( + &api_that, + &api_transaction, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_blockchain_estimate_fee_impl( +fn wire__crate__api__blockchain__bdk_blockchain_create_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - target: impl CstDecode, + blockchain_config: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_estimate_fee", + debug_name: "bdk_blockchain_create", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); - let api_target = target.cst_decode(); + let api_blockchain_config = blockchain_config.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::estimate_fee(&api_that, api_target) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::blockchain::BdkBlockchain::create(api_blockchain_config)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_blockchain_get_block_hash_impl( +fn wire__crate__api__blockchain__bdk_blockchain_estimate_fee_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, - height: impl CstDecode, + target: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_get_block_hash", + debug_name: "bdk_blockchain_estimate_fee", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_height = height.cst_decode(); + let api_target = target.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::get_block_hash(&api_that, api_height) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::blockchain::BdkBlockchain::estimate_fee(&api_that, api_target)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_blockchain_get_height_impl( +fn wire__crate__api__blockchain__bdk_blockchain_get_block_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, + height: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_get_height", + debug_name: "bdk_blockchain_get_block_hash", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_height = height.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::get_height(&api_that) - })()) - } - }, - ) -} -fn wire_bdk_blockchain_new_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - blockchain_config: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_blockchain_new", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_blockchain_config = blockchain_config.cst_decode(); - move |context| { - transform_result_dco((move || { - crate::api::blockchain::BdkBlockchain::new(api_blockchain_config) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::blockchain::BdkBlockchain::get_block_hash( + &api_that, api_height, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_as_string_impl( +fn wire__crate__api__blockchain__bdk_blockchain_get_height_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: "bdk_descriptor_as_string", + debug_name: "bdk_blockchain_get_height", 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::descriptor::BdkDescriptor::as_string(&api_that)) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::blockchain::BdkBlockchain::get_height(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_as_string_private_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__descriptor__bdk_descriptor_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "bdk_descriptor_as_string_private", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "bdk_descriptor_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::descriptor::BdkDescriptor::as_string_private( - &api_that, - )) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::descriptor::BdkDescriptor::as_string(&api_that), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_max_satisfaction_weight_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__descriptor__bdk_descriptor_max_satisfaction_weight_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_descriptor_max_satisfaction_weight", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::max_satisfaction_weight(&api_that) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::descriptor::BdkDescriptor::max_satisfaction_weight(&api_that)?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_new_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, descriptor: impl CstDecode, network: impl CstDecode, @@ -227,14 +218,16 @@ fn wire_bdk_descriptor_new_impl( let api_descriptor = descriptor.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new(api_descriptor, api_network) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::descriptor::BdkDescriptor::new(api_descriptor, api_network)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip44_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip44_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -251,18 +244,19 @@ fn wire_bdk_descriptor_new_bip44_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip44( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip44( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip44_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip44_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -281,19 +275,20 @@ fn wire_bdk_descriptor_new_bip44_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip44_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip44_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip49_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip49_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -310,18 +305,19 @@ fn wire_bdk_descriptor_new_bip49_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip49( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip49( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip49_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip49_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -340,19 +336,20 @@ fn wire_bdk_descriptor_new_bip49_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip49_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip49_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip84_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip84_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -369,18 +366,19 @@ fn wire_bdk_descriptor_new_bip84_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip84( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip84( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip84_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip84_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -399,19 +397,20 @@ fn wire_bdk_descriptor_new_bip84_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip84_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip84_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip86_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip86_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, keychain_kind: impl CstDecode, @@ -428,18 +427,19 @@ fn wire_bdk_descriptor_new_bip86_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip86( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip86( api_secret_key, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_new_bip86_public_impl( +fn wire__crate__api__descriptor__bdk_descriptor_new_bip86_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, fingerprint: impl CstDecode, @@ -458,19 +458,59 @@ fn wire_bdk_descriptor_new_bip86_public_impl( let api_keychain_kind = keychain_kind.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::descriptor::BdkDescriptor::new_bip86_public( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::descriptor::BdkDescriptor::new_bip86_public( api_public_key, api_fingerprint, api_keychain_kind, api_network, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_derivation_path_from_string_impl( +fn wire__crate__api__descriptor__bdk_descriptor_to_string_private_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "bdk_descriptor_to_string_private", + 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::descriptor::BdkDescriptor::to_string_private(&api_that), + )?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__key__bdk_derivation_path_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: "bdk_derivation_path_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::key::BdkDerivationPath::as_string(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__key__bdk_derivation_path_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, path: impl CstDecode, ) { @@ -483,36 +523,35 @@ fn wire_bdk_derivation_path_from_string_impl( move || { let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDerivationPath::from_string(api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkDerivationPath::from_string(api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_public_key_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_descriptor_public_key_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_descriptor_public_key_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::key::BdkDescriptorPublicKey::as_string( - &api_that, - )) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::key::BdkDescriptorPublicKey::as_string(&api_that), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_public_key_derive_impl( +fn wire__crate__api__key__bdk_descriptor_public_key_derive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -527,14 +566,16 @@ fn wire_bdk_descriptor_public_key_derive_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorPublicKey::derive(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorPublicKey::derive(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_public_key_extend_impl( +fn wire__crate__api__key__bdk_descriptor_public_key_extend_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -549,14 +590,16 @@ fn wire_bdk_descriptor_public_key_extend_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorPublicKey::extend(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorPublicKey::extend(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_public_key_from_string_impl( +fn wire__crate__api__key__bdk_descriptor_public_key_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, ) { @@ -569,56 +612,54 @@ fn wire_bdk_descriptor_public_key_from_string_impl( move || { let api_public_key = public_key.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorPublicKey::from_string(api_public_key) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorPublicKey::from_string(api_public_key)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_as_public_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_descriptor_secret_key_as_public_impl( ptr: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_descriptor_secret_key_as_public", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::key::BdkDescriptorSecretKey::as_public(api_ptr) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkDescriptorSecretKey::as_public(api_ptr)?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_secret_key_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_descriptor_secret_key_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_descriptor_secret_key_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::key::BdkDescriptorSecretKey::as_string( - &api_that, - )) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::key::BdkDescriptorSecretKey::as_string(&api_that), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_descriptor_secret_key_create_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_create_impl( port_: flutter_rust_bridge::for_generated::MessagePort, network: impl CstDecode, mnemonic: impl CstDecode, @@ -635,18 +676,19 @@ fn wire_bdk_descriptor_secret_key_create_impl( let api_mnemonic = mnemonic.cst_decode(); let api_password = password.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::create( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkDescriptorSecretKey::create( api_network, api_mnemonic, api_password, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_derive_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_derive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -661,14 +703,16 @@ fn wire_bdk_descriptor_secret_key_derive_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::derive(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorSecretKey::derive(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_extend_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_extend_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, path: impl CstDecode, @@ -683,14 +727,16 @@ fn wire_bdk_descriptor_secret_key_extend_impl( let api_ptr = ptr.cst_decode(); let api_path = path.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::extend(api_ptr, api_path) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorSecretKey::extend(api_ptr, api_path)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_from_string_impl( +fn wire__crate__api__key__bdk_descriptor_secret_key_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, ) { @@ -703,54 +749,53 @@ fn wire_bdk_descriptor_secret_key_from_string_impl( move || { let api_secret_key = secret_key.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::from_string(api_secret_key) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::key::BdkDescriptorSecretKey::from_string(api_secret_key)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_descriptor_secret_key_secret_bytes_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_descriptor_secret_key_secret_bytes_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_descriptor_secret_key_secret_bytes", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco((move || { - crate::api::key::BdkDescriptorSecretKey::secret_bytes(&api_that) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkDescriptorSecretKey::secret_bytes(&api_that)?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_mnemonic_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__key__bdk_mnemonic_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_mnemonic_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::key::BdkMnemonic::as_string(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::key::BdkMnemonic::as_string(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_mnemonic_from_entropy_impl( +fn wire__crate__api__key__bdk_mnemonic_from_entropy_impl( port_: flutter_rust_bridge::for_generated::MessagePort, entropy: impl CstDecode>, ) { @@ -763,14 +808,15 @@ fn wire_bdk_mnemonic_from_entropy_impl( move || { let api_entropy = entropy.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkMnemonic::from_entropy(api_entropy) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkMnemonic::from_entropy(api_entropy)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_mnemonic_from_string_impl( +fn wire__crate__api__key__bdk_mnemonic_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, mnemonic: impl CstDecode, ) { @@ -783,14 +829,15 @@ fn wire_bdk_mnemonic_from_string_impl( move || { let api_mnemonic = mnemonic.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::key::BdkMnemonic::from_string(api_mnemonic) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkMnemonic::from_string(api_mnemonic)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_mnemonic_new_impl( +fn wire__crate__api__key__bdk_mnemonic_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, word_count: impl CstDecode, ) { @@ -803,12 +850,34 @@ fn wire_bdk_mnemonic_new_impl( move || { let api_word_count = word_count.cst_decode(); move |context| { - transform_result_dco((move || crate::api::key::BdkMnemonic::new(api_word_count))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::key::BdkMnemonic::new(api_word_count)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_psbt_combine_impl( +fn wire__crate__api__psbt__bdk_psbt_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: "bdk_psbt_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::psbt::BdkPsbt::as_string(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__psbt__bdk_psbt_combine_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, other: impl CstDecode, @@ -823,72 +892,71 @@ fn wire_bdk_psbt_combine_impl( let api_ptr = ptr.cst_decode(); let api_other = other.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::psbt::BdkPsbt::combine(api_ptr, api_other) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::psbt::BdkPsbt::combine(api_ptr, api_other)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_extract_tx_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__psbt__bdk_psbt_extract_tx_impl( ptr: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_psbt_extract_tx", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::psbt::BdkPsbt::extract_tx(api_ptr))()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::psbt::BdkPsbt::extract_tx(api_ptr)?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_psbt_fee_amount_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__psbt__bdk_psbt_fee_amount_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_psbt_fee_amount", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::psbt::BdkPsbt::fee_amount(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_amount(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_psbt_fee_rate_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__psbt__bdk_psbt_fee_rate_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_psbt_fee_rate", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::psbt::BdkPsbt::fee_rate(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_rate(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_psbt_from_str_impl( +fn wire__crate__api__psbt__bdk_psbt_from_str_impl( port_: flutter_rust_bridge::for_generated::MessagePort, psbt_base64: impl CstDecode, ) { @@ -901,94 +969,90 @@ fn wire_bdk_psbt_from_str_impl( move || { let api_psbt_base64 = psbt_base64.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::psbt::BdkPsbt::from_str(api_psbt_base64) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::psbt::BdkPsbt::from_str(api_psbt_base64)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_psbt_json_serialize_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__psbt__bdk_psbt_json_serialize_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_psbt_json_serialize", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::psbt::BdkPsbt::json_serialize(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::json_serialize(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_psbt_serialize_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__psbt__bdk_psbt_serialize_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_psbt_serialize", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::psbt::BdkPsbt::serialize(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::serialize(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_psbt_txid_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__psbt__bdk_psbt_txid_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_psbt_txid", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::psbt::BdkPsbt::txid(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::txid(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_address_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_as_string_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::types::BdkAddress::as_string(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::as_string(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_address_from_script_impl( +fn wire__crate__api__types__bdk_address_from_script_impl( port_: flutter_rust_bridge::for_generated::MessagePort, script: impl CstDecode, network: impl CstDecode, @@ -1003,14 +1067,16 @@ fn wire_bdk_address_from_script_impl( let api_script = script.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkAddress::from_script(api_script, api_network) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkAddress::from_script(api_script, api_network)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_from_string_impl( +fn wire__crate__api__types__bdk_address_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, address: impl CstDecode, network: impl CstDecode, @@ -1025,135 +1091,149 @@ fn wire_bdk_address_from_string_impl( let api_address = address.cst_decode(); let api_network = network.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkAddress::from_string(api_address, api_network) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkAddress::from_string(api_address, api_network)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_address_is_valid_for_network_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_is_valid_for_network_impl( that: impl CstDecode, network: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_is_valid_for_network", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); let api_network = network.cst_decode(); - move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkAddress::is_valid_for_network( - &api_that, - api_network, - )) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::types::BdkAddress::is_valid_for_network(&api_that, api_network), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_address_network_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_network_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_network", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::types::BdkAddress::network(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::network(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_address_payload_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_payload_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_payload", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::types::BdkAddress::payload(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::payload(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_address_script_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_script_impl( ptr: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_script", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_ptr = ptr.cst_decode(); - move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkAddress::script(api_ptr)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::script(api_ptr))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_address_to_qr_uri_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, +fn wire__crate__api__types__bdk_address_to_qr_uri_impl( that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_address_to_qr_uri", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + 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::types::BdkAddress::to_qr_uri(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::BdkAddress::to_qr_uri(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_script_buf_empty_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +fn wire__crate__api__types__bdk_script_buf_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: "bdk_script_buf_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::types::BdkScriptBuf::as_string(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__types__bdk_script_buf_empty_impl( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_script_buf_empty", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { - move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::empty()) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::empty())?; + Ok(output_ok) + })()) }, ) } -fn wire_bdk_script_buf_from_hex_impl( +fn wire__crate__api__types__bdk_script_buf_from_hex_impl( port_: flutter_rust_bridge::for_generated::MessagePort, s: impl CstDecode, ) { @@ -1166,12 +1246,15 @@ fn wire_bdk_script_buf_from_hex_impl( move || { let api_s = s.cst_decode(); move |context| { - transform_result_dco((move || crate::api::types::BdkScriptBuf::from_hex(api_s))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkScriptBuf::from_hex(api_s)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_script_buf_with_capacity_impl( +fn wire__crate__api__types__bdk_script_buf_with_capacity_impl( port_: flutter_rust_bridge::for_generated::MessagePort, capacity: impl CstDecode, ) { @@ -1184,16 +1267,17 @@ fn wire_bdk_script_buf_with_capacity_impl( move || { let api_capacity = capacity.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::with_capacity( - api_capacity, - )) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::types::BdkScriptBuf::with_capacity(api_capacity), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_from_bytes_impl( +fn wire__crate__api__types__bdk_transaction_from_bytes_impl( port_: flutter_rust_bridge::for_generated::MessagePort, transaction_bytes: impl CstDecode>, ) { @@ -1206,14 +1290,16 @@ fn wire_bdk_transaction_from_bytes_impl( move || { let api_transaction_bytes = transaction_bytes.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::from_bytes(api_transaction_bytes) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkTransaction::from_bytes(api_transaction_bytes)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_input_impl( +fn wire__crate__api__types__bdk_transaction_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1226,14 +1312,15 @@ fn wire_bdk_transaction_input_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::input(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::input(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_is_coin_base_impl( +fn wire__crate__api__types__bdk_transaction_is_coin_base_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1246,14 +1333,15 @@ fn wire_bdk_transaction_is_coin_base_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::is_coin_base(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::is_coin_base(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_is_explicitly_rbf_impl( +fn wire__crate__api__types__bdk_transaction_is_explicitly_rbf_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1266,14 +1354,16 @@ fn wire_bdk_transaction_is_explicitly_rbf_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::is_explicitly_rbf(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkTransaction::is_explicitly_rbf(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_is_lock_time_enabled_impl( +fn wire__crate__api__types__bdk_transaction_is_lock_time_enabled_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1286,14 +1376,16 @@ fn wire_bdk_transaction_is_lock_time_enabled_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::is_lock_time_enabled(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::types::BdkTransaction::is_lock_time_enabled(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_lock_time_impl( +fn wire__crate__api__types__bdk_transaction_lock_time_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1306,14 +1398,15 @@ fn wire_bdk_transaction_lock_time_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::lock_time(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::lock_time(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_new_impl( +fn wire__crate__api__types__bdk_transaction_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, version: impl CstDecode, lock_time: impl CstDecode, @@ -1332,19 +1425,20 @@ fn wire_bdk_transaction_new_impl( let api_input = input.cst_decode(); let api_output = output.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::new( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::new( api_version, api_lock_time, api_input, api_output, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_output_impl( +fn wire__crate__api__types__bdk_transaction_output_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1357,14 +1451,15 @@ fn wire_bdk_transaction_output_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::output(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::output(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_serialize_impl( +fn wire__crate__api__types__bdk_transaction_serialize_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1377,14 +1472,15 @@ fn wire_bdk_transaction_serialize_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::serialize(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::serialize(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_size_impl( +fn wire__crate__api__types__bdk_transaction_size_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1397,12 +1493,15 @@ fn wire_bdk_transaction_size_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || crate::api::types::BdkTransaction::size(&api_that))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::size(&api_that)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_transaction_txid_impl( +fn wire__crate__api__types__bdk_transaction_txid_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1415,12 +1514,15 @@ fn wire_bdk_transaction_txid_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || crate::api::types::BdkTransaction::txid(&api_that))()) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::txid(&api_that)?; + Ok(output_ok) + })()) } }, ) } -fn wire_bdk_transaction_version_impl( +fn wire__crate__api__types__bdk_transaction_version_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1433,14 +1535,15 @@ fn wire_bdk_transaction_version_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::version(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::version(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_vsize_impl( +fn wire__crate__api__types__bdk_transaction_vsize_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1453,14 +1556,15 @@ fn wire_bdk_transaction_vsize_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::vsize(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::vsize(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_transaction_weight_impl( +fn wire__crate__api__types__bdk_transaction_weight_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1473,14 +1577,15 @@ fn wire_bdk_transaction_weight_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::types::BdkTransaction::weight(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::types::BdkTransaction::weight(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_address_impl( +fn wire__crate__api__wallet__bdk_wallet_get_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, address_index: impl CstDecode, @@ -1495,14 +1600,16 @@ fn wire_bdk_wallet_get_address_impl( let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_address(api_ptr, api_address_index) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::wallet::BdkWallet::get_address(api_ptr, api_address_index)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_balance_impl( +fn wire__crate__api__wallet__bdk_wallet_get_balance_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1515,14 +1622,15 @@ fn wire_bdk_wallet_get_balance_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_balance(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_balance(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_descriptor_for_keychain_impl( +fn wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, keychain: impl CstDecode, @@ -1537,17 +1645,18 @@ fn wire_bdk_wallet_get_descriptor_for_keychain_impl( let api_ptr = ptr.cst_decode(); let api_keychain = keychain.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_descriptor_for_keychain( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_descriptor_for_keychain( api_ptr, api_keychain, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_internal_address_impl( +fn wire__crate__api__wallet__bdk_wallet_get_internal_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, address_index: impl CstDecode, @@ -1562,14 +1671,18 @@ fn wire_bdk_wallet_get_internal_address_impl( let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_internal_address(api_ptr, api_address_index) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_internal_address( + api_ptr, + api_address_index, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_get_psbt_input_impl( +fn wire__crate__api__wallet__bdk_wallet_get_psbt_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, utxo: impl CstDecode, @@ -1588,19 +1701,20 @@ fn wire_bdk_wallet_get_psbt_input_impl( let api_only_witness_utxo = only_witness_utxo.cst_decode(); let api_sighash_type = sighash_type.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::get_psbt_input( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_psbt_input( &api_that, api_utxo, api_only_witness_utxo, api_sighash_type, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_is_mine_impl( +fn wire__crate__api__wallet__bdk_wallet_is_mine_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, script: impl CstDecode, @@ -1615,14 +1729,15 @@ fn wire_bdk_wallet_is_mine_impl( let api_that = that.cst_decode(); let api_script = script.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::is_mine(&api_that, api_script) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::is_mine(&api_that, api_script)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_list_transactions_impl( +fn wire__crate__api__wallet__bdk_wallet_list_transactions_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, include_raw: impl CstDecode, @@ -1637,14 +1752,18 @@ fn wire_bdk_wallet_list_transactions_impl( let api_that = that.cst_decode(); let api_include_raw = include_raw.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::list_transactions(&api_that, api_include_raw) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::list_transactions( + &api_that, + api_include_raw, + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_list_unspent_impl( +fn wire__crate__api__wallet__bdk_wallet_list_unspent_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1657,14 +1776,15 @@ fn wire_bdk_wallet_list_unspent_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::list_unspent(&api_that) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::list_unspent(&api_that)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_network_impl( +fn wire__crate__api__wallet__bdk_wallet_network_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, ) { @@ -1677,14 +1797,16 @@ fn wire_bdk_wallet_network_impl( move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::wallet::BdkWallet::network(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::wallet::BdkWallet::network(&api_that))?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_new_impl( +fn wire__crate__api__wallet__bdk_wallet_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, descriptor: impl CstDecode, change_descriptor: impl CstDecode>, @@ -1703,19 +1825,20 @@ fn wire_bdk_wallet_new_impl( let api_network = network.cst_decode(); let api_database_config = database_config.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::new( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::new( api_descriptor, api_change_descriptor, api_network, api_database_config, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_sign_impl( +fn wire__crate__api__wallet__bdk_wallet_sign_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, psbt: impl CstDecode, @@ -1732,14 +1855,16 @@ fn wire_bdk_wallet_sign_impl( let api_psbt = psbt.cst_decode(); let api_sign_options = sign_options.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::sign(api_ptr, api_psbt, api_sign_options) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::wallet::BdkWallet::sign(api_ptr, api_psbt, api_sign_options)?; + Ok(output_ok) })()) } }, ) } -fn wire_bdk_wallet_sync_impl( +fn wire__crate__api__wallet__bdk_wallet_sync_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, blockchain: impl CstDecode, @@ -1754,14 +1879,15 @@ fn wire_bdk_wallet_sync_impl( let api_ptr = ptr.cst_decode(); let api_blockchain = blockchain.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::BdkWallet::sync(api_ptr, api_blockchain) + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::sync(api_ptr, &api_blockchain)?; + Ok(output_ok) })()) } }, ) } -fn wire_finish_bump_fee_tx_builder_impl( +fn wire__crate__api__wallet__finish_bump_fee_tx_builder_impl( port_: flutter_rust_bridge::for_generated::MessagePort, txid: impl CstDecode, fee_rate: impl CstDecode, @@ -1784,21 +1910,22 @@ fn wire_finish_bump_fee_tx_builder_impl( let api_enable_rbf = enable_rbf.cst_decode(); let api_n_sequence = n_sequence.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::finish_bump_fee_tx_builder( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::finish_bump_fee_tx_builder( api_txid, api_fee_rate, api_allow_shrinking, api_wallet, api_enable_rbf, api_n_sequence, - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_tx_builder_finish_impl( +fn wire__crate__api__wallet__tx_builder_finish_impl( port_: flutter_rust_bridge::for_generated::MessagePort, wallet: impl CstDecode, recipients: impl CstDecode>, @@ -1835,8 +1962,8 @@ fn wire_tx_builder_finish_impl( let api_rbf = rbf.cst_decode(); let api_data = data.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::wallet::tx_builder_finish( + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::tx_builder_finish( api_wallet, api_recipients, api_utxos, @@ -1850,7 +1977,8 @@ fn wire_tx_builder_finish_impl( api_drain_to, api_rbf, api_data, - ) + )?; + Ok(output_ok) })()) } }, @@ -1980,7 +2108,7 @@ impl CstDecode for i32 { } } } -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); @@ -1988,7 +2116,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); @@ -1996,7 +2124,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); @@ -2004,7 +2132,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); @@ -2012,7 +2140,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); @@ -2020,7 +2148,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); @@ -2028,7 +2156,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); @@ -2036,7 +2164,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); @@ -2044,7 +2172,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); @@ -2052,7 +2180,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); @@ -2226,7 +2354,7 @@ impl SseDecode for crate::api::types::BdkAddress { impl SseDecode for crate::api::blockchain::BdkBlockchain { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::blockchain::BdkBlockchain { ptr: var_ptr }; } } @@ -2234,7 +2362,8 @@ impl SseDecode for crate::api::blockchain::BdkBlockchain { impl SseDecode for crate::api::key::BdkDerivationPath { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = + >::sse_decode(deserializer); return crate::api::key::BdkDerivationPath { ptr: var_ptr }; } } @@ -2243,8 +2372,8 @@ impl SseDecode for crate::api::descriptor::BdkDescriptor { // 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_extendedDescriptor = - >::sse_decode(deserializer); - let mut var_keyMap = >::sse_decode(deserializer); + >::sse_decode(deserializer); + let mut var_keyMap = >::sse_decode(deserializer); return crate::api::descriptor::BdkDescriptor { extended_descriptor: var_extendedDescriptor, key_map: var_keyMap, @@ -2255,7 +2384,7 @@ impl SseDecode for crate::api::descriptor::BdkDescriptor { impl SseDecode for crate::api::key::BdkDescriptorPublicKey { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::key::BdkDescriptorPublicKey { ptr: var_ptr }; } } @@ -2263,7 +2392,7 @@ impl SseDecode for crate::api::key::BdkDescriptorPublicKey { impl SseDecode for crate::api::key::BdkDescriptorSecretKey { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::key::BdkDescriptorSecretKey { ptr: var_ptr }; } } @@ -2469,7 +2598,7 @@ impl SseDecode for crate::api::error::BdkError { impl SseDecode for crate::api::key::BdkMnemonic { // 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_ptr = >::sse_decode(deserializer); + let mut var_ptr = >::sse_decode(deserializer); return crate::api::key::BdkMnemonic { ptr: var_ptr }; } } @@ -2477,8 +2606,9 @@ impl SseDecode for crate::api::key::BdkMnemonic { impl SseDecode for crate::api::psbt::BdkPsbt { // 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_ptr = - >>::sse_decode(deserializer); + let mut var_ptr = , + >>::sse_decode(deserializer); return crate::api::psbt::BdkPsbt { ptr: var_ptr }; } } @@ -2494,8 +2624,8 @@ impl SseDecode for crate::api::types::BdkScriptBuf { impl SseDecode for crate::api::types::BdkTransaction { // 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_inner = ::sse_decode(deserializer); - return crate::api::types::BdkTransaction { inner: var_inner }; + let mut var_s = ::sse_decode(deserializer); + return crate::api::types::BdkTransaction { s: var_s }; } } @@ -2503,7 +2633,9 @@ impl SseDecode for crate::api::wallet::BdkWallet { // 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_ptr = - >>>::sse_decode(deserializer); + >>>::sse_decode( + deserializer, + ); return crate::api::wallet::BdkWallet { ptr: var_ptr }; } } @@ -3543,6 +3675,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::AddressError { address.into_into_dart().into_dart(), ] .into_dart(), + _ => { + unimplemented!(""); + } } } } @@ -3569,6 +3704,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::AddressIndex { crate::api::types::AddressIndex::Reset { index } => { [3.into_dart(), index.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -3597,6 +3735,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::blockchain::Auth { crate::api::blockchain::Auth::Cookie { file } => { [2.into_dart(), file.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -3863,6 +4004,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::BdkError { crate::api::error::BdkError::InvalidTransaction(field0) => { [46.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -3920,7 +4064,7 @@ impl flutter_rust_bridge::IntoIntoDart // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::BdkTransaction { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.inner.into_into_dart().into_dart()].into_dart() + [self.s.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive @@ -3979,6 +4123,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::blockchain::BlockchainConfig crate::api::blockchain::BlockchainConfig::Rpc { config } => { [2.into_dart(), config.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4000,6 +4147,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::ChangeSpendPolicy { Self::ChangeAllowed => 0.into_dart(), Self::OnlyChange => 1.into_dart(), Self::ChangeForbidden => 2.into_dart(), + _ => unreachable!(), } } } @@ -4040,6 +4188,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::ConsensusError { crate::api::error::ConsensusError::UnsupportedSegwitFlag(field0) => { [5.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4065,6 +4216,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::DatabaseConfig { crate::api::types::DatabaseConfig::Sled { config } => { [2.into_dart(), config.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4115,6 +4269,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::DescriptorError { crate::api::error::DescriptorError::Hex(field0) => { [11.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4206,6 +4363,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::HexError { field1.into_into_dart().into_dart(), ] .into_dart(), + _ => { + unimplemented!(""); + } } } } @@ -4235,6 +4395,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::KeychainKind { match self { Self::ExternalChain => 0.into_dart(), Self::InternalChain => 1.into_dart(), + _ => unreachable!(), } } } @@ -4279,6 +4440,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::LockTime { crate::api::types::LockTime::Seconds(field0) => { [1.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4298,6 +4462,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::Network { Self::Regtest => 1.into_dart(), Self::Bitcoin => 2.into_dart(), Self::Signet => 3.into_dart(), + _ => unreachable!(), } } } @@ -4341,6 +4506,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::Payload { program.into_into_dart().into_dart(), ] .into_dart(), + _ => { + unimplemented!(""); + } } } } @@ -4375,6 +4543,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::RbfValue { crate::api::types::RbfValue::Value(field0) => { [1.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + _ => { + unimplemented!(""); + } } } } @@ -4583,6 +4754,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::Variant { match self { Self::Bech32 => 0.into_dart(), Self::Bech32m => 1.into_dart(), + _ => unreachable!(), } } } @@ -4613,6 +4785,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::WitnessVersion { Self::V14 => 14.into_dart(), Self::V15 => 15.into_dart(), Self::V16 => 16.into_dart(), + _ => unreachable!(), } } } @@ -4634,6 +4807,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::WordCount { Self::Words12 => 0.into_dart(), Self::Words18 => 1.into_dart(), Self::Words24 => 2.into_dart(), + _ => unreachable!(), } } } @@ -4646,7 +4820,7 @@ impl flutter_rust_bridge::IntoIntoDart } } -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(); @@ -4655,7 +4829,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(); @@ -4664,7 +4838,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(); @@ -4673,7 +4847,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(); @@ -4682,7 +4856,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(); @@ -4691,7 +4865,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(); @@ -4700,7 +4874,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(); @@ -4709,7 +4883,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(); @@ -4718,7 +4892,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(); @@ -4727,7 +4901,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(); @@ -4805,6 +4979,9 @@ impl SseEncode for crate::api::error::AddressError { ::sse_encode(network_found, serializer); ::sse_encode(address, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -4827,6 +5004,9 @@ impl SseEncode for crate::api::types::AddressIndex { ::sse_encode(3, serializer); ::sse_encode(index, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -4847,6 +5027,9 @@ impl SseEncode for crate::api::blockchain::Auth { ::sse_encode(2, serializer); ::sse_encode(file, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -4873,36 +5056,39 @@ impl SseEncode for crate::api::types::BdkAddress { impl SseEncode for crate::api::blockchain::BdkBlockchain { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::key::BdkDerivationPath { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::descriptor::BdkDescriptor { // 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.extended_descriptor, serializer); - >::sse_encode(self.key_map, serializer); + >::sse_encode( + self.extended_descriptor, + serializer, + ); + >::sse_encode(self.key_map, serializer); } } impl SseEncode for crate::api::key::BdkDescriptorPublicKey { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::key::BdkDescriptorSecretKey { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } @@ -5090,6 +5276,9 @@ impl SseEncode for crate::api::error::BdkError { ::sse_encode(46, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5097,14 +5286,14 @@ impl SseEncode for crate::api::error::BdkError { impl SseEncode for crate::api::key::BdkMnemonic { // 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.ptr, serializer); + >::sse_encode(self.ptr, serializer); } } impl SseEncode for crate::api::psbt::BdkPsbt { // 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.ptr, serializer); + >>::sse_encode(self.ptr, serializer); } } @@ -5118,14 +5307,16 @@ impl SseEncode for crate::api::types::BdkScriptBuf { impl SseEncode for crate::api::types::BdkTransaction { // 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.inner, serializer); + ::sse_encode(self.s, serializer); } } impl SseEncode for crate::api::wallet::BdkWallet { // 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.ptr, serializer); + >>>::sse_encode( + self.ptr, serializer, + ); } } @@ -5153,6 +5344,9 @@ impl SseEncode for crate::api::blockchain::BlockchainConfig { ::sse_encode(2, serializer); ::sse_encode(config, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5210,6 +5404,9 @@ impl SseEncode for crate::api::error::ConsensusError { ::sse_encode(5, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5229,6 +5426,9 @@ impl SseEncode for crate::api::types::DatabaseConfig { ::sse_encode(2, serializer); ::sse_encode(config, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5281,6 +5481,9 @@ impl SseEncode for crate::api::error::DescriptorError { ::sse_encode(11, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5339,6 +5542,9 @@ impl SseEncode for crate::api::error::HexError { ::sse_encode(field0, serializer); ::sse_encode(field1, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5475,6 +5681,9 @@ impl SseEncode for crate::api::types::LockTime { ::sse_encode(1, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5684,6 +5893,9 @@ impl SseEncode for crate::api::types::Payload { ::sse_encode(version, serializer); >::sse_encode(program, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5706,6 +5918,9 @@ impl SseEncode for crate::api::types::RbfValue { ::sse_encode(1, serializer); ::sse_encode(field0, serializer); } + _ => { + unimplemented!(""); + } } } } @@ -5945,10 +6160,3 @@ impl SseEncode for crate::api::types::WordCount { 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/frb_generated.web.rs b/rust/src/frb_generated.web.rs deleted file mode 100644 index 0614c180..00000000 --- a/rust/src/frb_generated.web.rs +++ /dev/null @@ -1,2241 +0,0 @@ -// This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. - -// Section: imports - -use super::*; -use crate::api::blockchain::*; -use crate::api::descriptor::*; -use crate::api::key::*; -use crate::api::psbt::*; -use crate::api::types::*; -use crate::api::wallet::*; -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::wasm_bindgen; -use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::{Handler, IntoIntoDart}; - -// Section: boilerplate - -flutter_rust_bridge::frb_generated_boilerplate_web!(); - -// Section: dart2rust - -impl CstDecode for String { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> String { - self - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::AddressError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::AddressError::Base58(self_.get(1).cst_decode()), - 1 => crate::api::error::AddressError::Bech32(self_.get(1).cst_decode()), - 2 => crate::api::error::AddressError::EmptyBech32Payload, - 3 => crate::api::error::AddressError::InvalidBech32Variant { - expected: self_.get(1).cst_decode(), - found: self_.get(2).cst_decode(), - }, - 4 => crate::api::error::AddressError::InvalidWitnessVersion(self_.get(1).cst_decode()), - 5 => { - crate::api::error::AddressError::UnparsableWitnessVersion(self_.get(1).cst_decode()) - } - 6 => crate::api::error::AddressError::MalformedWitnessVersion, - 7 => crate::api::error::AddressError::InvalidWitnessProgramLength( - self_.get(1).cst_decode(), - ), - 8 => crate::api::error::AddressError::InvalidSegwitV0ProgramLength( - self_.get(1).cst_decode(), - ), - 9 => crate::api::error::AddressError::UncompressedPubkey, - 10 => crate::api::error::AddressError::ExcessiveScriptSize, - 11 => crate::api::error::AddressError::UnrecognizedScript, - 12 => crate::api::error::AddressError::UnknownAddressType(self_.get(1).cst_decode()), - 13 => crate::api::error::AddressError::NetworkValidation { - network_required: self_.get(1).cst_decode(), - network_found: self_.get(2).cst_decode(), - address: self_.get(3).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::AddressIndex { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::AddressIndex::Increase, - 1 => crate::api::types::AddressIndex::LastUnused, - 2 => crate::api::types::AddressIndex::Peek { - index: self_.get(1).cst_decode(), - }, - 3 => crate::api::types::AddressIndex::Reset { - index: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::Auth { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::blockchain::Auth::None, - 1 => crate::api::blockchain::Auth::UserPass { - username: self_.get(1).cst_decode(), - password: self_.get(2).cst_decode(), - }, - 2 => crate::api::blockchain::Auth::Cookie { - file: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Balance { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 6, - "Expected 6 elements, got {}", - self_.length() - ); - crate::api::types::Balance { - immature: self_.get(0).cst_decode(), - trusted_pending: self_.get(1).cst_decode(), - untrusted_pending: self_.get(2).cst_decode(), - confirmed: self_.get(3).cst_decode(), - spendable: self_.get(4).cst_decode(), - total: self_.get(5).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BdkAddress { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::BdkAddress { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::BdkBlockchain { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::blockchain::BdkBlockchain { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkDerivationPath { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkDerivationPath { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::descriptor::BdkDescriptor { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::descriptor::BdkDescriptor { - extended_descriptor: self_.get(0).cst_decode(), - key_map: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkDescriptorPublicKey { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkDescriptorPublicKey { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkDescriptorSecretKey { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkDescriptorSecretKey { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::BdkError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::BdkError::Hex(self_.get(1).cst_decode()), - 1 => crate::api::error::BdkError::Consensus(self_.get(1).cst_decode()), - 2 => crate::api::error::BdkError::VerifyTransaction(self_.get(1).cst_decode()), - 3 => crate::api::error::BdkError::Address(self_.get(1).cst_decode()), - 4 => crate::api::error::BdkError::Descriptor(self_.get(1).cst_decode()), - 5 => crate::api::error::BdkError::InvalidU32Bytes(self_.get(1).cst_decode()), - 6 => crate::api::error::BdkError::Generic(self_.get(1).cst_decode()), - 7 => crate::api::error::BdkError::ScriptDoesntHaveAddressForm, - 8 => crate::api::error::BdkError::NoRecipients, - 9 => crate::api::error::BdkError::NoUtxosSelected, - 10 => crate::api::error::BdkError::OutputBelowDustLimit(self_.get(1).cst_decode()), - 11 => crate::api::error::BdkError::InsufficientFunds { - needed: self_.get(1).cst_decode(), - available: self_.get(2).cst_decode(), - }, - 12 => crate::api::error::BdkError::BnBTotalTriesExceeded, - 13 => crate::api::error::BdkError::BnBNoExactMatch, - 14 => crate::api::error::BdkError::UnknownUtxo, - 15 => crate::api::error::BdkError::TransactionNotFound, - 16 => crate::api::error::BdkError::TransactionConfirmed, - 17 => crate::api::error::BdkError::IrreplaceableTransaction, - 18 => crate::api::error::BdkError::FeeRateTooLow { - needed: self_.get(1).cst_decode(), - }, - 19 => crate::api::error::BdkError::FeeTooLow { - needed: self_.get(1).cst_decode(), - }, - 20 => crate::api::error::BdkError::FeeRateUnavailable, - 21 => crate::api::error::BdkError::MissingKeyOrigin(self_.get(1).cst_decode()), - 22 => crate::api::error::BdkError::Key(self_.get(1).cst_decode()), - 23 => crate::api::error::BdkError::ChecksumMismatch, - 24 => crate::api::error::BdkError::SpendingPolicyRequired(self_.get(1).cst_decode()), - 25 => crate::api::error::BdkError::InvalidPolicyPathError(self_.get(1).cst_decode()), - 26 => crate::api::error::BdkError::Signer(self_.get(1).cst_decode()), - 27 => crate::api::error::BdkError::InvalidNetwork { - requested: self_.get(1).cst_decode(), - found: self_.get(2).cst_decode(), - }, - 28 => crate::api::error::BdkError::InvalidOutpoint(self_.get(1).cst_decode()), - 29 => crate::api::error::BdkError::Encode(self_.get(1).cst_decode()), - 30 => crate::api::error::BdkError::Miniscript(self_.get(1).cst_decode()), - 31 => crate::api::error::BdkError::MiniscriptPsbt(self_.get(1).cst_decode()), - 32 => crate::api::error::BdkError::Bip32(self_.get(1).cst_decode()), - 33 => crate::api::error::BdkError::Bip39(self_.get(1).cst_decode()), - 34 => crate::api::error::BdkError::Secp256k1(self_.get(1).cst_decode()), - 35 => crate::api::error::BdkError::Json(self_.get(1).cst_decode()), - 36 => crate::api::error::BdkError::Psbt(self_.get(1).cst_decode()), - 37 => crate::api::error::BdkError::PsbtParse(self_.get(1).cst_decode()), - 38 => crate::api::error::BdkError::MissingCachedScripts( - self_.get(1).cst_decode(), - self_.get(2).cst_decode(), - ), - 39 => crate::api::error::BdkError::Electrum(self_.get(1).cst_decode()), - 40 => crate::api::error::BdkError::Esplora(self_.get(1).cst_decode()), - 41 => crate::api::error::BdkError::Sled(self_.get(1).cst_decode()), - 42 => crate::api::error::BdkError::Rpc(self_.get(1).cst_decode()), - 43 => crate::api::error::BdkError::Rusqlite(self_.get(1).cst_decode()), - 44 => crate::api::error::BdkError::InvalidInput(self_.get(1).cst_decode()), - 45 => crate::api::error::BdkError::InvalidLockTime(self_.get(1).cst_decode()), - 46 => crate::api::error::BdkError::InvalidTransaction(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::BdkMnemonic { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::BdkMnemonic { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::psbt::BdkPsbt { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::psbt::BdkPsbt { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BdkScriptBuf { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::BdkScriptBuf { - bytes: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BdkTransaction { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::BdkTransaction { - inner: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::wallet::BdkWallet { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::wallet::BdkWallet { - ptr: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BlockTime { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::BlockTime { - height: self_.get(0).cst_decode(), - timestamp: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::BlockchainConfig { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::blockchain::BlockchainConfig::Electrum { - config: self_.get(1).cst_decode(), - }, - 1 => crate::api::blockchain::BlockchainConfig::Esplora { - config: self_.get(1).cst_decode(), - }, - 2 => crate::api::blockchain::BlockchainConfig::Rpc { - config: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::ConsensusError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::ConsensusError::Io(self_.get(1).cst_decode()), - 1 => crate::api::error::ConsensusError::OversizedVectorAllocation { - requested: self_.get(1).cst_decode(), - max: self_.get(2).cst_decode(), - }, - 2 => crate::api::error::ConsensusError::InvalidChecksum { - expected: self_.get(1).cst_decode(), - actual: self_.get(2).cst_decode(), - }, - 3 => crate::api::error::ConsensusError::NonMinimalVarInt, - 4 => crate::api::error::ConsensusError::ParseFailed(self_.get(1).cst_decode()), - 5 => { - crate::api::error::ConsensusError::UnsupportedSegwitFlag(self_.get(1).cst_decode()) - } - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::DatabaseConfig { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::DatabaseConfig::Memory, - 1 => crate::api::types::DatabaseConfig::Sqlite { - config: self_.get(1).cst_decode(), - }, - 2 => crate::api::types::DatabaseConfig::Sled { - config: self_.get(1).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::DescriptorError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::DescriptorError::InvalidHdKeyPath, - 1 => crate::api::error::DescriptorError::InvalidDescriptorChecksum, - 2 => crate::api::error::DescriptorError::HardenedDerivationXpub, - 3 => crate::api::error::DescriptorError::MultiPath, - 4 => crate::api::error::DescriptorError::Key(self_.get(1).cst_decode()), - 5 => crate::api::error::DescriptorError::Policy(self_.get(1).cst_decode()), - 6 => crate::api::error::DescriptorError::InvalidDescriptorCharacter( - self_.get(1).cst_decode(), - ), - 7 => crate::api::error::DescriptorError::Bip32(self_.get(1).cst_decode()), - 8 => crate::api::error::DescriptorError::Base58(self_.get(1).cst_decode()), - 9 => crate::api::error::DescriptorError::Pk(self_.get(1).cst_decode()), - 10 => crate::api::error::DescriptorError::Miniscript(self_.get(1).cst_decode()), - 11 => crate::api::error::DescriptorError::Hex(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::ElectrumConfig { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 6, - "Expected 6 elements, got {}", - self_.length() - ); - crate::api::blockchain::ElectrumConfig { - url: self_.get(0).cst_decode(), - socks5: self_.get(1).cst_decode(), - retry: self_.get(2).cst_decode(), - timeout: self_.get(3).cst_decode(), - stop_gap: self_.get(4).cst_decode(), - validate_domain: self_.get(5).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::EsploraConfig { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 5, - "Expected 5 elements, got {}", - self_.length() - ); - crate::api::blockchain::EsploraConfig { - base_url: self_.get(0).cst_decode(), - proxy: self_.get(1).cst_decode(), - concurrency: self_.get(2).cst_decode(), - stop_gap: self_.get(3).cst_decode(), - timeout: self_.get(4).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::FeeRate { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::FeeRate { - sat_per_vb: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::HexError { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::error::HexError::InvalidChar(self_.get(1).cst_decode()), - 1 => crate::api::error::HexError::OddLengthString(self_.get(1).cst_decode()), - 2 => crate::api::error::HexError::InvalidLength( - self_.get(1).cst_decode(), - self_.get(2).cst_decode(), - ), - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Input { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::Input { - s: self_.get(0).cst_decode(), - } - } -} -impl CstDecode>> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec> { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> for Box<[u8]> { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.into_vec() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.dyn_into::() - .unwrap() - .iter() - .map(CstDecode::cst_decode) - .collect() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::LocalUtxo { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 4, - "Expected 4 elements, got {}", - self_.length() - ); - crate::api::types::LocalUtxo { - outpoint: self_.get(0).cst_decode(), - txout: self_.get(1).cst_decode(), - keychain: self_.get(2).cst_decode(), - is_spent: self_.get(3).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::LockTime { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::LockTime::Blocks(self_.get(1).cst_decode()), - 1 => crate::api::types::LockTime::Seconds(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode> for Option { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Option { - self.map(CstDecode::cst_decode) - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::OutPoint { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::OutPoint { - txid: self_.get(0).cst_decode(), - vout: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Payload { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::Payload::PubkeyHash { - pubkey_hash: self_.get(1).cst_decode(), - }, - 1 => crate::api::types::Payload::ScriptHash { - script_hash: self_.get(1).cst_decode(), - }, - 2 => crate::api::types::Payload::WitnessProgram { - version: self_.get(1).cst_decode(), - program: self_.get(2).cst_decode(), - }, - _ => unreachable!(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::PsbtSigHashType { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::PsbtSigHashType { - inner: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::RbfValue { - let self_ = self.unchecked_into::(); - match self_.get(0).unchecked_into_f64() as _ { - 0 => crate::api::types::RbfValue::RbfDefault, - 1 => crate::api::types::RbfValue::Value(self_.get(1).cst_decode()), - _ => unreachable!(), - } - } -} -impl CstDecode<(crate::api::types::BdkAddress, u32)> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> (crate::api::types::BdkAddress, u32) { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - (self_.get(0).cst_decode(), self_.get(1).cst_decode()) - } -} -impl - CstDecode<( - crate::api::psbt::BdkPsbt, - crate::api::types::TransactionDetails, - )> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode( - self, - ) -> ( - crate::api::psbt::BdkPsbt, - crate::api::types::TransactionDetails, - ) { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - (self_.get(0).cst_decode(), self_.get(1).cst_decode()) - } -} -impl CstDecode<(crate::api::types::OutPoint, crate::api::types::Input, usize)> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> (crate::api::types::OutPoint, crate::api::types::Input, usize) { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 3, - "Expected 3 elements, got {}", - self_.length() - ); - ( - self_.get(0).cst_decode(), - self_.get(1).cst_decode(), - self_.get(2).cst_decode(), - ) - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::RpcConfig { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 5, - "Expected 5 elements, got {}", - self_.length() - ); - crate::api::blockchain::RpcConfig { - url: self_.get(0).cst_decode(), - auth: self_.get(1).cst_decode(), - network: self_.get(2).cst_decode(), - wallet_name: self_.get(3).cst_decode(), - sync_params: self_.get(4).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::RpcSyncParams { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 4, - "Expected 4 elements, got {}", - self_.length() - ); - crate::api::blockchain::RpcSyncParams { - start_script_count: self_.get(0).cst_decode(), - start_time: self_.get(1).cst_decode(), - force_start_time: self_.get(2).cst_decode(), - poll_rate_sec: self_.get(3).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::ScriptAmount { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::ScriptAmount { - script: self_.get(0).cst_decode(), - amount: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::SignOptions { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 7, - "Expected 7 elements, got {}", - self_.length() - ); - crate::api::types::SignOptions { - trust_witness_utxo: self_.get(0).cst_decode(), - assume_height: self_.get(1).cst_decode(), - allow_all_sighashes: self_.get(2).cst_decode(), - remove_partial_sigs: self_.get(3).cst_decode(), - try_finalize: self_.get(4).cst_decode(), - sign_with_tap_internal_key: self_.get(5).cst_decode(), - allow_grinding: self_.get(6).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::SledDbConfiguration { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::SledDbConfiguration { - path: self_.get(0).cst_decode(), - tree_name: self_.get(1).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::SqliteDbConfiguration { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::SqliteDbConfiguration { - path: self_.get(0).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TransactionDetails { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 6, - "Expected 6 elements, got {}", - self_.length() - ); - crate::api::types::TransactionDetails { - transaction: self_.get(0).cst_decode(), - txid: self_.get(1).cst_decode(), - received: self_.get(2).cst_decode(), - sent: self_.get(3).cst_decode(), - fee: self_.get(4).cst_decode(), - confirmation_time: self_.get(5).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TxIn { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 4, - "Expected 4 elements, got {}", - self_.length() - ); - crate::api::types::TxIn { - previous_output: self_.get(0).cst_decode(), - script_sig: self_.get(1).cst_decode(), - sequence: self_.get(2).cst_decode(), - witness: self_.get(3).cst_decode(), - } - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TxOut { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::TxOut { - value: self_.get(0).cst_decode(), - script_pubkey: self_.get(1).cst_decode(), - } - } -} -impl CstDecode<[u8; 4]> for Box<[u8]> { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> [u8; 4] { - let vec: Vec = self.cst_decode(); - flutter_rust_bridge::for_generated::from_vec_to_array(vec) - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode>> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode>>> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom>> { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> String { - self.as_string().expect("non-UTF-8 string, or not a string") - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> bool { - self.is_truthy() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::ChangeSpendPolicy { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> f32 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> i32 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::KeychainKind { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.unchecked_into::() - .to_vec() - .into() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Network { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u32 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u64 { - ::std::convert::TryInto::try_into( - self.dyn_into::() - .unwrap(), - ) - .unwrap() - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u8 { - self.unchecked_into_f64() as _ - } -} -impl CstDecode<[u8; 4]> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> [u8; 4] { - let vec: Vec = self.cst_decode(); - flutter_rust_bridge::for_generated::from_vec_to_array(vec) - } -} -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> usize { - self.unchecked_into_f64() as _ - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::Variant { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::WitnessVersion { - (self.unchecked_into_f64() as i32).cst_decode() - } -} -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::WordCount { - (self.unchecked_into_f64() as i32).cst_decode() - } -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_broadcast( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - transaction: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_blockchain_broadcast_impl(port_, that, transaction) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_estimate_fee( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - target: u64, -) { - wire_bdk_blockchain_estimate_fee_impl(port_, that, target) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_get_block_hash( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - height: u32, -) { - wire_bdk_blockchain_get_block_hash_impl(port_, that, height) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_get_height( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_blockchain_get_height_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_blockchain_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - blockchain_config: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_blockchain_new_impl(port_, blockchain_config) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_as_string_private( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_as_string_private_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_max_satisfaction_weight( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_max_satisfaction_weight_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - descriptor: String, - network: i32, -) { - wire_bdk_descriptor_new_impl(port_, descriptor, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip44( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip44_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip44_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip44_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip49( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip49_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip49_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip49_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip84( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip84_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip84_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip84_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip86( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip86_impl(port_, secret_key, keychain_kind, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_new_bip86_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fingerprint: String, - keychain_kind: i32, - network: i32, -) { - wire_bdk_descriptor_new_bip86_public_impl( - port_, - public_key, - fingerprint, - keychain_kind, - network, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_derivation_path_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - path: String, -) { - wire_bdk_derivation_path_from_string_impl(port_, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_public_key_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_derive( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_public_key_derive_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_extend( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_public_key_extend_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_public_key_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: String, -) { - wire_bdk_descriptor_public_key_from_string_impl(port_, public_key) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_as_public( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_as_public_impl(port_, ptr) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_create( - port_: flutter_rust_bridge::for_generated::MessagePort, - network: i32, - mnemonic: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - password: Option, -) { - wire_bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_derive( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_derive_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_extend( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - path: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_extend_impl(port_, ptr, path) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: String, -) { - wire_bdk_descriptor_secret_key_from_string_impl(port_, secret_key) -} - -#[wasm_bindgen] -pub fn wire_bdk_descriptor_secret_key_secret_bytes( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_descriptor_secret_key_secret_bytes_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_mnemonic_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_from_entropy( - port_: flutter_rust_bridge::for_generated::MessagePort, - entropy: Box<[u8]>, -) { - wire_bdk_mnemonic_from_entropy_impl(port_, entropy) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - mnemonic: String, -) { - wire_bdk_mnemonic_from_string_impl(port_, mnemonic) -} - -#[wasm_bindgen] -pub fn wire_bdk_mnemonic_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - word_count: i32, -) { - wire_bdk_mnemonic_new_impl(port_, word_count) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_combine( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - other: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_combine_impl(port_, ptr, other) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_extract_tx( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_extract_tx_impl(port_, ptr) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_fee_amount( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_fee_amount_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_fee_rate( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_fee_rate_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_from_str( - port_: flutter_rust_bridge::for_generated::MessagePort, - psbt_base64: String, -) { - wire_bdk_psbt_from_str_impl(port_, psbt_base64) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_json_serialize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_json_serialize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_serialize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_serialize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_psbt_txid( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_psbt_txid_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_as_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_as_string_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_from_script( - port_: flutter_rust_bridge::for_generated::MessagePort, - script: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - network: i32, -) { - wire_bdk_address_from_script_impl(port_, script, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_from_string( - port_: flutter_rust_bridge::for_generated::MessagePort, - address: String, - network: i32, -) { - wire_bdk_address_from_string_impl(port_, address, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_is_valid_for_network( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - network: i32, -) { - wire_bdk_address_is_valid_for_network_impl(port_, that, network) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_network( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_network_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_payload( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_payload_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_script( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_script_impl(port_, ptr) -} - -#[wasm_bindgen] -pub fn wire_bdk_address_to_qr_uri( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_address_to_qr_uri_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_script_buf_empty(port_: flutter_rust_bridge::for_generated::MessagePort) { - wire_bdk_script_buf_empty_impl(port_) -} - -#[wasm_bindgen] -pub fn wire_bdk_script_buf_from_hex( - port_: flutter_rust_bridge::for_generated::MessagePort, - s: String, -) { - wire_bdk_script_buf_from_hex_impl(port_, s) -} - -#[wasm_bindgen] -pub fn wire_bdk_script_buf_with_capacity( - port_: flutter_rust_bridge::for_generated::MessagePort, - capacity: usize, -) { - wire_bdk_script_buf_with_capacity_impl(port_, capacity) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_from_bytes( - port_: flutter_rust_bridge::for_generated::MessagePort, - transaction_bytes: Box<[u8]>, -) { - wire_bdk_transaction_from_bytes_impl(port_, transaction_bytes) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_input( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_input_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_is_coin_base( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_is_coin_base_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_is_explicitly_rbf( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_is_explicitly_rbf_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_is_lock_time_enabled( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_is_lock_time_enabled_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_lock_time( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_lock_time_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - version: i32, - lock_time: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - input: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - output: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_new_impl(port_, version, lock_time, input, output) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_output( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_output_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_serialize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_serialize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_size( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_size_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_txid( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_txid_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_version( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_version_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_vsize( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_vsize_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_transaction_weight( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_transaction_weight_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_address( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - address_index: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_address_impl(port_, ptr, address_index) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_balance( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_balance_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_descriptor_for_keychain( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - keychain: i32, -) { - wire_bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_internal_address( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - address_index: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_internal_address_impl(port_, ptr, address_index) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_get_psbt_input( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - utxo: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - only_witness_utxo: bool, - sighash_type: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_is_mine( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - script: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_is_mine_impl(port_, that, script) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_list_transactions( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - include_raw: bool, -) { - wire_bdk_wallet_list_transactions_impl(port_, that, include_raw) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_list_unspent( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_list_unspent_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_network( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_network_impl(port_, that) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_new( - port_: flutter_rust_bridge::for_generated::MessagePort, - descriptor: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - change_descriptor: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - network: i32, - database_config: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_new_impl( - port_, - descriptor, - change_descriptor, - network, - database_config, - ) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_sign( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - psbt: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - sign_options: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) -} - -#[wasm_bindgen] -pub fn wire_bdk_wallet_sync( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - blockchain: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_bdk_wallet_sync_impl(port_, ptr, blockchain) -} - -#[wasm_bindgen] -pub fn wire_finish_bump_fee_tx_builder( - port_: flutter_rust_bridge::for_generated::MessagePort, - txid: String, - fee_rate: f32, - allow_shrinking: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - wallet: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - enable_rbf: bool, - n_sequence: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_finish_bump_fee_tx_builder_impl( - port_, - txid, - fee_rate, - allow_shrinking, - wallet, - enable_rbf, - n_sequence, - ) -} - -#[wasm_bindgen] -pub fn wire_tx_builder_finish( - port_: flutter_rust_bridge::for_generated::MessagePort, - wallet: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - recipients: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - utxos: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - foreign_utxo: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - un_spendable: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - change_policy: i32, - manually_selected_only: bool, - fee_rate: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - fee_absolute: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - drain_wallet: bool, - drain_to: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - rbf: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - data: Box<[u8]>, -) { - wire_tx_builder_finish_impl( - port_, - wallet, - recipients, - utxos, - foreign_utxo, - un_spendable, - change_policy, - manually_selected_only, - fee_rate, - fee_absolute, - drain_wallet, - drain_to, - rbf, - data, - ) -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_AnyBlockchain(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_AnyBlockchain(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_ExtendedDescriptor(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_ExtendedDescriptor(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_MutexPartiallySignedTransaction( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>>::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_MutexbdkWalletAnyDatabase( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::>>::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinAddress(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_bitcoinbip32DerivationPath( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysDescriptorPublicKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysDescriptorSecretKey( - ptr: *const std::ffi::c_void, -) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysKeyMap(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysKeyMap(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_keysbip39Mnemonic(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::increment_strong_count(ptr as _); - } -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(ptr: *const std::ffi::c_void) { - unsafe { - StdArc::::decrement_strong_count(ptr as _); - } -} diff --git a/test/bdk_flutter_test.dart b/test/bdk_flutter_test.dart index 82fe0832..3940bca8 100644 --- a/test/bdk_flutter_test.dart +++ b/test/bdk_flutter_test.dart @@ -104,7 +104,7 @@ void main() { final mockSDescriptorSecret = MockDescriptorSecretKey(); test('verify asPublic()', () async { - final res = await mockSDescriptorSecret.asPublic(); + final res = mockSDescriptorSecret.toPublic(); expect(res, isA()); }); test('verify asString', () async { @@ -224,19 +224,18 @@ void main() { txid: 'b3b72ce9c7aa09b9c868c214e88c002a28aac9a62fd3971eff6de83c418f4db3', vout: 0); - when(mockAddress.scriptPubkey()) - .thenAnswer((_) async => Future.value(mockScript)); + when(mockAddress.scriptPubkey()).thenAnswer((_) => mockScript); when(mockTxBuilder.addRecipient(mockScript, any)) .thenReturn(mockTxBuilder); - when(mockTxBuilder.addForeignUtxo(input, outPoint, 0)) + when(mockTxBuilder.addForeignUtxo(input, outPoint, BigInt.zero)) .thenReturn(mockTxBuilder); when(mockTxBuilder.finish(mockWallet)).thenAnswer((_) async => Future.value( (MockPartiallySignedTransaction(), MockTransactionDetails()))); - final script = await mockAddress.scriptPubkey(); + final script = mockAddress.scriptPubkey(); final txBuilder = mockTxBuilder - .addRecipient(script, 1200) - .addForeignUtxo(input, outPoint, 0); + .addRecipient(script, BigInt.from(1200)) + .addForeignUtxo(input, outPoint, BigInt.zero); final res = await txBuilder.finish(mockWallet); expect(res, isA<(PartiallySignedTransaction, TransactionDetails)>()); }); @@ -248,16 +247,15 @@ void main() { "hfN7fWP8akJAABAR+USAAAAAAAABYAFPBXTsqsprXNanArNb6973eltDhHIgYCHrxaLpnD4ed01bFHcixnAicv15oKiiVHrcVmxUWBW54Y2R5q3VQAAIABAACAAAAAgAEAAABbAAAAACICAqS" "F0mhBBlgMe9OyICKlkhGHZfPjA0Q03I559ccj9x6oGNkeat1UAACAAQAAgAAAAIABAAAAXAAAAAAA"; final psbt = await PartiallySignedTransaction.fromString(psbtBase64); - when(mockAddress.scriptPubkey()).thenAnswer((_) async => MockScriptBuf()); + when(mockAddress.scriptPubkey()).thenAnswer((_) => MockScriptBuf()); when(mockTxBuilder.addRecipient(mockScript, any)) .thenReturn(mockTxBuilder); - when(mockAddress.scriptPubkey()) - .thenAnswer((_) async => Future.value(mockScript)); + when(mockAddress.scriptPubkey()).thenAnswer((_) => mockScript); when(mockTxBuilder.finish(mockWallet)).thenAnswer( (_) async => Future.value((psbt, MockTransactionDetails()))); - final script = await mockAddress.scriptPubkey(); - final txBuilder = mockTxBuilder.addRecipient(script, 1200); + final script = mockAddress.scriptPubkey(); + final txBuilder = mockTxBuilder.addRecipient(script, BigInt.from(1200)); final res = await txBuilder.finish(mockWallet); expect(res.$1, psbt); }); @@ -275,21 +273,21 @@ void main() { }); }); group('Address', () { - test('verify network()', () async { - final res = await mockAddress.network(); + test('verify network()', () { + final res = mockAddress.network(); expect(res, isA()); }); - test('verify payload()', () async { - final res = await mockAddress.network(); + test('verify payload()', () { + final res = mockAddress.network(); expect(res, isA()); }); - test('verify scriptPubKey()', () async { - final res = await mockAddress.scriptPubkey(); + test('verify scriptPubKey()', () { + final res = mockAddress.scriptPubkey(); expect(res, isA()); }); }); group('Script', () { - test('verify create', () async { + test('verify create', () { final res = mockScript; expect(res, isA()); }); diff --git a/test/bdk_flutter_test.mocks.dart b/test/bdk_flutter_test.mocks.dart index fd3bb848..7dbe8eef 100644 --- a/test/bdk_flutter_test.mocks.dart +++ b/test/bdk_flutter_test.mocks.dart @@ -3,18 +3,14 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i9; -import 'dart:typed_data' as _i11; - -import 'package:bdk_flutter/src/generated/api/blockchain.dart' as _i5; -import 'package:bdk_flutter/src/generated/api/descriptor.dart' as _i6; -import 'package:bdk_flutter/src/generated/api/key.dart' as _i8; -import 'package:bdk_flutter/src/generated/api/psbt.dart' as _i7; -import 'package:bdk_flutter/src/generated/api/types.dart' as _i4; -import 'package:bdk_flutter/src/generated/api/wallet.dart' as _i2; -import 'package:bdk_flutter/src/root.dart' as _i3; +import 'dart:async' as _i4; +import 'dart:typed_data' as _i7; + +import 'package:bdk_flutter/bdk_flutter.dart' as _i3; +import 'package:bdk_flutter/src/generated/api/types.dart' as _i5; +import 'package:bdk_flutter/src/generated/lib.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i10; +import 'package:mockito/src/dummies.dart' as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -29,9 +25,9 @@ import 'package:mockito/src/dummies.dart' as _i10; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeMutexBdkWalletAnyDatabase_0 extends _i1.SmartFake - implements _i2.MutexBdkWalletAnyDatabase { - _FakeMutexBdkWalletAnyDatabase_0( +class _FakeMutexWalletAnyDatabase_0 extends _i1.SmartFake + implements _i2.MutexWalletAnyDatabase { + _FakeMutexWalletAnyDatabase_0( Object parent, Invocation parentInvocation, ) : super( @@ -50,7 +46,7 @@ class _FakeAddressInfo_1 extends _i1.SmartFake implements _i3.AddressInfo { ); } -class _FakeBalance_2 extends _i1.SmartFake implements _i4.Balance { +class _FakeBalance_2 extends _i1.SmartFake implements _i3.Balance { _FakeBalance_2( Object parent, Invocation parentInvocation, @@ -70,7 +66,7 @@ class _FakeDescriptor_3 extends _i1.SmartFake implements _i3.Descriptor { ); } -class _FakeInput_4 extends _i1.SmartFake implements _i4.Input { +class _FakeInput_4 extends _i1.SmartFake implements _i3.Input { _FakeInput_4( Object parent, Invocation parentInvocation, @@ -80,7 +76,7 @@ class _FakeInput_4 extends _i1.SmartFake implements _i4.Input { ); } -class _FakeAnyBlockchain_5 extends _i1.SmartFake implements _i5.AnyBlockchain { +class _FakeAnyBlockchain_5 extends _i1.SmartFake implements _i2.AnyBlockchain { _FakeAnyBlockchain_5( Object parent, Invocation parentInvocation, @@ -90,7 +86,7 @@ class _FakeAnyBlockchain_5 extends _i1.SmartFake implements _i5.AnyBlockchain { ); } -class _FakeFeeRate_6 extends _i1.SmartFake implements _i4.FeeRate { +class _FakeFeeRate_6 extends _i1.SmartFake implements _i3.FeeRate { _FakeFeeRate_6( Object parent, Invocation parentInvocation, @@ -100,9 +96,9 @@ class _FakeFeeRate_6 extends _i1.SmartFake implements _i4.FeeRate { ); } -class _FakeKeysDescriptorSecretKey_7 extends _i1.SmartFake - implements _i6.KeysDescriptorSecretKey { - _FakeKeysDescriptorSecretKey_7( +class _FakeDescriptorSecretKey_7 extends _i1.SmartFake + implements _i2.DescriptorSecretKey { + _FakeDescriptorSecretKey_7( Object parent, Invocation parentInvocation, ) : super( @@ -133,9 +129,9 @@ class _FakeDescriptorPublicKey_9 extends _i1.SmartFake ); } -class _FakeKeysDescriptorPublicKey_10 extends _i1.SmartFake - implements _i6.KeysDescriptorPublicKey { - _FakeKeysDescriptorPublicKey_10( +class _FakeDescriptorPublicKey_10 extends _i1.SmartFake + implements _i2.DescriptorPublicKey { + _FakeDescriptorPublicKey_10( Object parent, Invocation parentInvocation, ) : super( @@ -145,7 +141,7 @@ class _FakeKeysDescriptorPublicKey_10 extends _i1.SmartFake } class _FakeMutexPartiallySignedTransaction_11 extends _i1.SmartFake - implements _i7.MutexPartiallySignedTransaction { + implements _i2.MutexPartiallySignedTransaction { _FakeMutexPartiallySignedTransaction_11( Object parent, Invocation parentInvocation, @@ -187,7 +183,7 @@ class _FakeTxBuilder_14 extends _i1.SmartFake implements _i3.TxBuilder { } class _FakeTransactionDetails_15 extends _i1.SmartFake - implements _i4.TransactionDetails { + implements _i3.TransactionDetails { _FakeTransactionDetails_15( Object parent, Invocation parentInvocation, @@ -208,9 +204,8 @@ class _FakeBumpFeeTxBuilder_16 extends _i1.SmartFake ); } -class _FakeBdkBitcoinAddress_17 extends _i1.SmartFake - implements _i4.BdkBitcoinAddress { - _FakeBdkBitcoinAddress_17( +class _FakeAddress_17 extends _i1.SmartFake implements _i2.Address { + _FakeAddress_17( Object parent, Invocation parentInvocation, ) : super( @@ -229,9 +224,9 @@ class _FakeScriptBuf_18 extends _i1.SmartFake implements _i3.ScriptBuf { ); } -class _FakeBitcoinBip32DerivationPath_19 extends _i1.SmartFake - implements _i8.BitcoinBip32DerivationPath { - _FakeBitcoinBip32DerivationPath_19( +class _FakeDerivationPath_19 extends _i1.SmartFake + implements _i2.DerivationPath { + _FakeDerivationPath_19( Object parent, Invocation parentInvocation, ) : super( @@ -240,7 +235,7 @@ class _FakeBitcoinBip32DerivationPath_19 extends _i1.SmartFake ); } -class _FakeOutPoint_20 extends _i1.SmartFake implements _i4.OutPoint { +class _FakeOutPoint_20 extends _i1.SmartFake implements _i3.OutPoint { _FakeOutPoint_20( Object parent, Invocation parentInvocation, @@ -250,7 +245,7 @@ class _FakeOutPoint_20 extends _i1.SmartFake implements _i4.OutPoint { ); } -class _FakeTxOut_21 extends _i1.SmartFake implements _i4.TxOut { +class _FakeTxOut_21 extends _i1.SmartFake implements _i3.TxOut { _FakeTxOut_21( Object parent, Invocation parentInvocation, @@ -265,21 +260,21 @@ class _FakeTxOut_21 extends _i1.SmartFake implements _i4.TxOut { /// See the documentation for Mockito's code generation for more information. class MockWallet extends _i1.Mock implements _i3.Wallet { @override - _i2.MutexBdkWalletAnyDatabase get ptr => (super.noSuchMethod( + _i2.MutexWalletAnyDatabase get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeMutexBdkWalletAnyDatabase_0( + returnValue: _FakeMutexWalletAnyDatabase_0( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeMutexBdkWalletAnyDatabase_0( + returnValueForMissingStub: _FakeMutexWalletAnyDatabase_0( this, Invocation.getter(#ptr), ), - ) as _i2.MutexBdkWalletAnyDatabase); + ) as _i2.MutexWalletAnyDatabase); @override - _i9.Future<_i3.AddressInfo> getAddress({ - required _i4.AddressIndex? addressIndex, + _i4.Future<_i3.AddressInfo> getAddress({ + required _i3.AddressIndex? addressIndex, dynamic hint, }) => (super.noSuchMethod( @@ -291,7 +286,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + returnValue: _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getAddress, @@ -303,7 +298,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ), )), returnValueForMissingStub: - _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getAddress, @@ -314,16 +309,16 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i3.AddressInfo>); + ) as _i4.Future<_i3.AddressInfo>); @override - _i9.Future<_i4.Balance> getBalance({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.Balance> getBalance({dynamic hint}) => (super.noSuchMethod( Invocation.method( #getBalance, [], {#hint: hint}, ), - returnValue: _i9.Future<_i4.Balance>.value(_FakeBalance_2( + returnValue: _i4.Future<_i3.Balance>.value(_FakeBalance_2( this, Invocation.method( #getBalance, @@ -331,7 +326,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { {#hint: hint}, ), )), - returnValueForMissingStub: _i9.Future<_i4.Balance>.value(_FakeBalance_2( + returnValueForMissingStub: _i4.Future<_i3.Balance>.value(_FakeBalance_2( this, Invocation.method( #getBalance, @@ -339,11 +334,11 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { {#hint: hint}, ), )), - ) as _i9.Future<_i4.Balance>); + ) as _i4.Future<_i3.Balance>); @override - _i9.Future<_i3.Descriptor> getDescriptorForKeychain({ - required _i4.KeychainKind? keychain, + _i4.Future<_i3.Descriptor> getDescriptorForKeychain({ + required _i3.KeychainKind? keychain, dynamic hint, }) => (super.noSuchMethod( @@ -355,7 +350,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i3.Descriptor>.value(_FakeDescriptor_3( + returnValue: _i4.Future<_i3.Descriptor>.value(_FakeDescriptor_3( this, Invocation.method( #getDescriptorForKeychain, @@ -367,7 +362,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ), )), returnValueForMissingStub: - _i9.Future<_i3.Descriptor>.value(_FakeDescriptor_3( + _i4.Future<_i3.Descriptor>.value(_FakeDescriptor_3( this, Invocation.method( #getDescriptorForKeychain, @@ -378,11 +373,11 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i3.Descriptor>); + ) as _i4.Future<_i3.Descriptor>); @override - _i9.Future<_i3.AddressInfo> getInternalAddress({ - required _i4.AddressIndex? addressIndex, + _i4.Future<_i3.AddressInfo> getInternalAddress({ + required _i3.AddressIndex? addressIndex, dynamic hint, }) => (super.noSuchMethod( @@ -394,7 +389,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + returnValue: _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getInternalAddress, @@ -406,7 +401,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ), )), returnValueForMissingStub: - _i9.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( this, Invocation.method( #getInternalAddress, @@ -417,13 +412,13 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i3.AddressInfo>); + ) as _i4.Future<_i3.AddressInfo>); @override - _i9.Future<_i4.Input> getPsbtInput({ - required _i4.LocalUtxo? utxo, + _i4.Future<_i3.Input> getPsbtInput({ + required _i3.LocalUtxo? utxo, required bool? onlyWitnessUtxo, - _i4.PsbtSigHashType? sighashType, + _i3.PsbtSigHashType? sighashType, dynamic hint, }) => (super.noSuchMethod( @@ -437,7 +432,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i4.Input>.value(_FakeInput_4( + returnValue: _i4.Future<_i3.Input>.value(_FakeInput_4( this, Invocation.method( #getPsbtInput, @@ -450,7 +445,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - returnValueForMissingStub: _i9.Future<_i4.Input>.value(_FakeInput_4( + returnValueForMissingStub: _i4.Future<_i3.Input>.value(_FakeInput_4( this, Invocation.method( #getPsbtInput, @@ -463,11 +458,11 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { }, ), )), - ) as _i9.Future<_i4.Input>); + ) as _i4.Future<_i3.Input>); @override - _i9.Future isMine({ - required _i4.BdkScriptBuf? script, + _i4.Future isMine({ + required _i5.BdkScriptBuf? script, dynamic hint, }) => (super.noSuchMethod( @@ -479,12 +474,12 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future> listTransactions({ + _i4.Future> listTransactions({ required bool? includeRaw, dynamic hint, }) => @@ -497,42 +492,42 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future>.value( - <_i4.TransactionDetails>[]), + returnValue: _i4.Future>.value( + <_i3.TransactionDetails>[]), returnValueForMissingStub: - _i9.Future>.value( - <_i4.TransactionDetails>[]), - ) as _i9.Future>); + _i4.Future>.value( + <_i3.TransactionDetails>[]), + ) as _i4.Future>); @override - _i9.Future> listUnspent({dynamic hint}) => + _i4.Future> listUnspent({dynamic hint}) => (super.noSuchMethod( Invocation.method( #listUnspent, [], {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i4.LocalUtxo>[]), + returnValue: _i4.Future>.value(<_i3.LocalUtxo>[]), returnValueForMissingStub: - _i9.Future>.value(<_i4.LocalUtxo>[]), - ) as _i9.Future>); + _i4.Future>.value(<_i3.LocalUtxo>[]), + ) as _i4.Future>); @override - _i9.Future<_i4.Network> network({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.Network> network({dynamic hint}) => (super.noSuchMethod( Invocation.method( #network, [], {#hint: hint}, ), - returnValue: _i9.Future<_i4.Network>.value(_i4.Network.testnet), + returnValue: _i4.Future<_i3.Network>.value(_i3.Network.testnet), returnValueForMissingStub: - _i9.Future<_i4.Network>.value(_i4.Network.testnet), - ) as _i9.Future<_i4.Network>); + _i4.Future<_i3.Network>.value(_i3.Network.testnet), + ) as _i4.Future<_i3.Network>); @override - _i9.Future sign({ + _i4.Future sign({ required _i3.PartiallySignedTransaction? psbt, - _i4.SignOptions? signOptions, + _i3.SignOptions? signOptions, dynamic hint, }) => (super.noSuchMethod( @@ -545,12 +540,12 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future sync({ + _i4.Future sync({ required _i3.Blockchain? blockchain, dynamic hint, }) => @@ -563,9 +558,9 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); } /// A class which mocks [Transaction]. @@ -573,183 +568,206 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { /// See the documentation for Mockito's code generation for more information. class MockTransaction extends _i1.Mock implements _i3.Transaction { @override - String get inner => (super.noSuchMethod( - Invocation.getter(#inner), - returnValue: _i10.dummyValue( + String get s => (super.noSuchMethod( + Invocation.getter(#s), + returnValue: _i6.dummyValue( this, - Invocation.getter(#inner), + Invocation.getter(#s), ), - returnValueForMissingStub: _i10.dummyValue( + returnValueForMissingStub: _i6.dummyValue( this, - Invocation.getter(#inner), + Invocation.getter(#s), ), ) as String); @override - _i9.Future> input({dynamic hint}) => (super.noSuchMethod( + _i4.Future> input() => (super.noSuchMethod( Invocation.method( #input, [], - {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i4.TxIn>[]), + returnValue: _i4.Future>.value(<_i3.TxIn>[]), returnValueForMissingStub: - _i9.Future>.value(<_i4.TxIn>[]), - ) as _i9.Future>); + _i4.Future>.value(<_i3.TxIn>[]), + ) as _i4.Future>); @override - _i9.Future isCoinBase({dynamic hint}) => (super.noSuchMethod( + _i4.Future isCoinBase() => (super.noSuchMethod( Invocation.method( #isCoinBase, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future isExplicitlyRbf({dynamic hint}) => (super.noSuchMethod( + _i4.Future isExplicitlyRbf() => (super.noSuchMethod( Invocation.method( #isExplicitlyRbf, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future isLockTimeEnabled({dynamic hint}) => (super.noSuchMethod( + _i4.Future isLockTimeEnabled() => (super.noSuchMethod( Invocation.method( #isLockTimeEnabled, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: _i4.Future.value(false), + returnValueForMissingStub: _i4.Future.value(false), + ) as _i4.Future); @override - _i9.Future<_i4.LockTime> lockTime({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i3.LockTime> lockTime() => (super.noSuchMethod( Invocation.method( #lockTime, [], - {#hint: hint}, ), returnValue: - _i9.Future<_i4.LockTime>.value(_i10.dummyValue<_i4.LockTime>( + _i4.Future<_i3.LockTime>.value(_i6.dummyValue<_i3.LockTime>( this, Invocation.method( #lockTime, [], - {#hint: hint}, ), )), returnValueForMissingStub: - _i9.Future<_i4.LockTime>.value(_i10.dummyValue<_i4.LockTime>( + _i4.Future<_i3.LockTime>.value(_i6.dummyValue<_i3.LockTime>( this, Invocation.method( #lockTime, [], - {#hint: hint}, ), )), - ) as _i9.Future<_i4.LockTime>); + ) as _i4.Future<_i3.LockTime>); @override - _i9.Future> output({dynamic hint}) => (super.noSuchMethod( + _i4.Future> output() => (super.noSuchMethod( Invocation.method( #output, [], - {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i4.TxOut>[]), + returnValue: _i4.Future>.value(<_i3.TxOut>[]), returnValueForMissingStub: - _i9.Future>.value(<_i4.TxOut>[]), - ) as _i9.Future>); + _i4.Future>.value(<_i3.TxOut>[]), + ) as _i4.Future>); @override - _i9.Future<_i11.Uint8List> serialize({dynamic hint}) => (super.noSuchMethod( + _i4.Future<_i7.Uint8List> serialize() => (super.noSuchMethod( Invocation.method( #serialize, [], - {#hint: hint}, ), - returnValue: _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), + returnValue: _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), returnValueForMissingStub: - _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), - ) as _i9.Future<_i11.Uint8List>); + _i4.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i4.Future<_i7.Uint8List>); @override - _i9.Future size({dynamic hint}) => (super.noSuchMethod( + _i4.Future size() => (super.noSuchMethod( Invocation.method( #size, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #size, + [], + ), + )), + returnValueForMissingStub: + _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #size, + [], + ), + )), + ) as _i4.Future); @override - _i9.Future txid({dynamic hint}) => (super.noSuchMethod( + _i4.Future txid() => (super.noSuchMethod( Invocation.method( #txid, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #txid, [], - {#hint: hint}, ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #txid, [], - {#hint: hint}, ), )), - ) as _i9.Future); + ) as _i4.Future); @override - _i9.Future version({dynamic hint}) => (super.noSuchMethod( + _i4.Future version() => (super.noSuchMethod( Invocation.method( #version, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(0), + returnValueForMissingStub: _i4.Future.value(0), + ) as _i4.Future); @override - _i9.Future vsize({dynamic hint}) => (super.noSuchMethod( + _i4.Future vsize() => (super.noSuchMethod( Invocation.method( #vsize, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #vsize, + [], + ), + )), + returnValueForMissingStub: + _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #vsize, + [], + ), + )), + ) as _i4.Future); @override - _i9.Future weight({dynamic hint}) => (super.noSuchMethod( + _i4.Future weight() => (super.noSuchMethod( Invocation.method( #weight, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #weight, + [], + ), + )), + returnValueForMissingStub: + _i4.Future.value(_i6.dummyValue( + this, + Invocation.method( + #weight, + [], + ), + )), + ) as _i4.Future); } /// A class which mocks [Blockchain]. @@ -757,7 +775,7 @@ class MockTransaction extends _i1.Mock implements _i3.Transaction { /// See the documentation for Mockito's code generation for more information. class MockBlockchain extends _i1.Mock implements _i3.Blockchain { @override - _i5.AnyBlockchain get ptr => (super.noSuchMethod( + _i2.AnyBlockchain get ptr => (super.noSuchMethod( Invocation.getter(#ptr), returnValue: _FakeAnyBlockchain_5( this, @@ -767,11 +785,11 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { this, Invocation.getter(#ptr), ), - ) as _i5.AnyBlockchain); + ) as _i2.AnyBlockchain); @override - _i9.Future<_i4.FeeRate> estimateFee({ - required int? target, + _i4.Future<_i3.FeeRate> estimateFee({ + required BigInt? target, dynamic hint, }) => (super.noSuchMethod( @@ -783,7 +801,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { #hint: hint, }, ), - returnValue: _i9.Future<_i4.FeeRate>.value(_FakeFeeRate_6( + returnValue: _i4.Future<_i3.FeeRate>.value(_FakeFeeRate_6( this, Invocation.method( #estimateFee, @@ -794,7 +812,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - returnValueForMissingStub: _i9.Future<_i4.FeeRate>.value(_FakeFeeRate_6( + returnValueForMissingStub: _i4.Future<_i3.FeeRate>.value(_FakeFeeRate_6( this, Invocation.method( #estimateFee, @@ -805,11 +823,11 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - ) as _i9.Future<_i4.FeeRate>); + ) as _i4.Future<_i3.FeeRate>); @override - _i9.Future broadcast({ - required _i4.BdkTransaction? transaction, + _i4.Future broadcast({ + required _i5.BdkTransaction? transaction, dynamic hint, }) => (super.noSuchMethod( @@ -821,7 +839,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { #hint: hint, }, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #broadcast, @@ -833,7 +851,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #broadcast, @@ -844,10 +862,10 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - ) as _i9.Future); + ) as _i4.Future); @override - _i9.Future getBlockHash({ + _i4.Future getBlockHash({ required int? height, dynamic hint, }) => @@ -860,7 +878,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { #hint: hint, }, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i4.Future.value(_i6.dummyValue( this, Invocation.method( #getBlockHash, @@ -872,7 +890,7 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { ), )), returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + _i4.Future.value(_i6.dummyValue( this, Invocation.method( #getBlockHash, @@ -883,18 +901,18 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { }, ), )), - ) as _i9.Future); + ) as _i4.Future); @override - _i9.Future getHeight({dynamic hint}) => (super.noSuchMethod( + _i4.Future getHeight({dynamic hint}) => (super.noSuchMethod( Invocation.method( #getHeight, [], {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: _i4.Future.value(0), + returnValueForMissingStub: _i4.Future.value(0), + ) as _i4.Future); } /// A class which mocks [DescriptorSecretKey]. @@ -903,26 +921,26 @@ class MockBlockchain extends _i1.Mock implements _i3.Blockchain { class MockDescriptorSecretKey extends _i1.Mock implements _i3.DescriptorSecretKey { @override - _i6.KeysDescriptorSecretKey get ptr => (super.noSuchMethod( + _i2.DescriptorSecretKey get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeKeysDescriptorSecretKey_7( + returnValue: _FakeDescriptorSecretKey_7( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeKeysDescriptorSecretKey_7( + returnValueForMissingStub: _FakeDescriptorSecretKey_7( this, Invocation.getter(#ptr), ), - ) as _i6.KeysDescriptorSecretKey); + ) as _i2.DescriptorSecretKey); @override - _i9.Future<_i3.DescriptorSecretKey> derive(_i3.DerivationPath? path) => + _i4.Future<_i3.DescriptorSecretKey> derive(_i3.DerivationPath? path) => (super.noSuchMethod( Invocation.method( #derive, [path], ), - returnValue: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValue: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -930,7 +948,7 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -938,16 +956,16 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - ) as _i9.Future<_i3.DescriptorSecretKey>); + ) as _i4.Future<_i3.DescriptorSecretKey>); @override - _i9.Future<_i3.DescriptorSecretKey> extend(_i3.DerivationPath? path) => + _i4.Future<_i3.DescriptorSecretKey> extend(_i3.DerivationPath? path) => (super.noSuchMethod( Invocation.method( #extend, [path], ), - returnValue: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValue: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -955,7 +973,7 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorSecretKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -963,69 +981,62 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - ) as _i9.Future<_i3.DescriptorSecretKey>); + ) as _i4.Future<_i3.DescriptorSecretKey>); @override - _i9.Future<_i3.DescriptorPublicKey> asPublic() => (super.noSuchMethod( + _i3.DescriptorPublicKey toPublic() => (super.noSuchMethod( Invocation.method( #asPublic, [], ), - returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( - _FakeDescriptorPublicKey_9( + returnValue: _FakeDescriptorPublicKey_9( this, Invocation.method( #asPublic, [], ), - )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( - _FakeDescriptorPublicKey_9( + ), + returnValueForMissingStub: _FakeDescriptorPublicKey_9( this, Invocation.method( #asPublic, [], ), - )), - ) as _i9.Future<_i3.DescriptorPublicKey>); + ), + ) as _i3.DescriptorPublicKey); @override - _i9.Future asString({dynamic hint}) => (super.noSuchMethod( + _i7.Uint8List secretBytes({dynamic hint}) => (super.noSuchMethod( Invocation.method( - #asString, + #secretBytes, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i7.Uint8List(0), + returnValueForMissingStub: _i7.Uint8List(0), + ) as _i7.Uint8List); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( this, Invocation.method( #asString, [], - {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( #asString, [], - {#hint: hint}, ), - )), - ) as _i9.Future); - - @override - _i9.Future<_i11.Uint8List> secretBytes({dynamic hint}) => (super.noSuchMethod( - Invocation.method( - #secretBytes, - [], - {#hint: hint}, ), - returnValue: _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), - returnValueForMissingStub: - _i9.Future<_i11.Uint8List>.value(_i11.Uint8List(0)), - ) as _i9.Future<_i11.Uint8List>); + ) as String); } /// A class which mocks [DescriptorPublicKey]. @@ -1034,46 +1045,20 @@ class MockDescriptorSecretKey extends _i1.Mock class MockDescriptorPublicKey extends _i1.Mock implements _i3.DescriptorPublicKey { @override - _i6.KeysDescriptorPublicKey get ptr => (super.noSuchMethod( + _i2.DescriptorPublicKey get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeKeysDescriptorPublicKey_10( + returnValue: _FakeDescriptorPublicKey_10( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeKeysDescriptorPublicKey_10( + returnValueForMissingStub: _FakeDescriptorPublicKey_10( this, Invocation.getter(#ptr), ), - ) as _i6.KeysDescriptorPublicKey); + ) as _i2.DescriptorPublicKey); @override - _i9.Future asString({dynamic hint}) => (super.noSuchMethod( - Invocation.method( - #asString, - [], - {#hint: hint}, - ), - returnValue: _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #asString, - [], - {#hint: hint}, - ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #asString, - [], - {#hint: hint}, - ), - )), - ) as _i9.Future); - - @override - _i9.Future<_i3.DescriptorPublicKey> derive({ + _i4.Future<_i3.DescriptorPublicKey> derive({ required _i3.DerivationPath? path, dynamic hint, }) => @@ -1086,7 +1071,7 @@ class MockDescriptorPublicKey extends _i1.Mock #hint: hint, }, ), - returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValue: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1098,7 +1083,7 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1110,10 +1095,10 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - ) as _i9.Future<_i3.DescriptorPublicKey>); + ) as _i4.Future<_i3.DescriptorPublicKey>); @override - _i9.Future<_i3.DescriptorPublicKey> extend({ + _i4.Future<_i3.DescriptorPublicKey> extend({ required _i3.DerivationPath? path, dynamic hint, }) => @@ -1126,7 +1111,7 @@ class MockDescriptorPublicKey extends _i1.Mock #hint: hint, }, ), - returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValue: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1138,7 +1123,7 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( + returnValueForMissingStub: _i4.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1150,7 +1135,29 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - ) as _i9.Future<_i3.DescriptorPublicKey>); + ) as _i4.Future<_i3.DescriptorPublicKey>); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [PartiallySignedTransaction]. @@ -1159,7 +1166,7 @@ class MockDescriptorPublicKey extends _i1.Mock class MockPartiallySignedTransaction extends _i1.Mock implements _i3.PartiallySignedTransaction { @override - _i7.MutexPartiallySignedTransaction get ptr => (super.noSuchMethod( + _i2.MutexPartiallySignedTransaction get ptr => (super.noSuchMethod( Invocation.getter(#ptr), returnValue: _FakeMutexPartiallySignedTransaction_11( this, @@ -1169,114 +1176,75 @@ class MockPartiallySignedTransaction extends _i1.Mock this, Invocation.getter(#ptr), ), - ) as _i7.MutexPartiallySignedTransaction); + ) as _i2.MutexPartiallySignedTransaction); @override - _i9.Future feeAmount({dynamic hint}) => (super.noSuchMethod( - Invocation.method( - #feeAmount, - [], - {#hint: hint}, - ), - returnValue: _i9.Future.value(), - returnValueForMissingStub: _i9.Future.value(), - ) as _i9.Future); - - @override - _i9.Future<_i4.FeeRate?> feeRate({dynamic hint}) => (super.noSuchMethod( - Invocation.method( - #feeRate, - [], - {#hint: hint}, - ), - returnValue: _i9.Future<_i4.FeeRate?>.value(), - returnValueForMissingStub: _i9.Future<_i4.FeeRate?>.value(), - ) as _i9.Future<_i4.FeeRate?>); - - @override - _i9.Future jsonSerialize({dynamic hint}) => (super.noSuchMethod( + String jsonSerialize({dynamic hint}) => (super.noSuchMethod( Invocation.method( #jsonSerialize, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.method( #jsonSerialize, [], {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( #jsonSerialize, [], {#hint: hint}, ), - )), - ) as _i9.Future); + ), + ) as String); @override - _i9.Future serialize({dynamic hint}) => (super.noSuchMethod( + _i7.Uint8List serialize({dynamic hint}) => (super.noSuchMethod( Invocation.method( #serialize, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #serialize, - [], - {#hint: hint}, - ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( - this, - Invocation.method( - #serialize, - [], - {#hint: hint}, - ), - )), - ) as _i9.Future); + returnValue: _i7.Uint8List(0), + returnValueForMissingStub: _i7.Uint8List(0), + ) as _i7.Uint8List); @override - _i9.Future<_i3.Transaction> extractTx() => (super.noSuchMethod( + _i3.Transaction extractTx() => (super.noSuchMethod( Invocation.method( #extractTx, [], ), - returnValue: _i9.Future<_i3.Transaction>.value(_FakeTransaction_12( + returnValue: _FakeTransaction_12( this, Invocation.method( #extractTx, [], ), - )), - returnValueForMissingStub: - _i9.Future<_i3.Transaction>.value(_FakeTransaction_12( + ), + returnValueForMissingStub: _FakeTransaction_12( this, Invocation.method( #extractTx, [], ), - )), - ) as _i9.Future<_i3.Transaction>); + ), + ) as _i3.Transaction); @override - _i9.Future<_i3.PartiallySignedTransaction> combine( + _i4.Future<_i3.PartiallySignedTransaction> combine( _i3.PartiallySignedTransaction? other) => (super.noSuchMethod( Invocation.method( #combine, [other], ), - returnValue: _i9.Future<_i3.PartiallySignedTransaction>.value( + returnValue: _i4.Future<_i3.PartiallySignedTransaction>.value( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1285,7 +1253,7 @@ class MockPartiallySignedTransaction extends _i1.Mock ), )), returnValueForMissingStub: - _i9.Future<_i3.PartiallySignedTransaction>.value( + _i4.Future<_i3.PartiallySignedTransaction>.value( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1293,33 +1261,54 @@ class MockPartiallySignedTransaction extends _i1.Mock [other], ), )), - ) as _i9.Future<_i3.PartiallySignedTransaction>); + ) as _i4.Future<_i3.PartiallySignedTransaction>); @override - _i9.Future txid({dynamic hint}) => (super.noSuchMethod( + String txid({dynamic hint}) => (super.noSuchMethod( Invocation.method( #txid, [], {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.method( #txid, [], {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( #txid, [], {#hint: hint}, ), - )), - ) as _i9.Future); + ), + ) as String); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [TxBuilder]. @@ -1354,7 +1343,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { @override _i3.TxBuilder addRecipient( _i3.ScriptBuf? script, - int? amount, + BigInt? amount, ) => (super.noSuchMethod( Invocation.method( @@ -1387,7 +1376,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder unSpendable(List<_i4.OutPoint>? outpoints) => + _i3.TxBuilder unSpendable(List<_i3.OutPoint>? outpoints) => (super.noSuchMethod( Invocation.method( #unSpendable, @@ -1410,7 +1399,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder addUtxo(_i4.OutPoint? outpoint) => (super.noSuchMethod( + _i3.TxBuilder addUtxo(_i3.OutPoint? outpoint) => (super.noSuchMethod( Invocation.method( #addUtxo, [outpoint], @@ -1432,7 +1421,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder addUtxos(List<_i4.OutPoint>? outpoints) => (super.noSuchMethod( + _i3.TxBuilder addUtxos(List<_i3.OutPoint>? outpoints) => (super.noSuchMethod( Invocation.method( #addUtxos, [outpoints], @@ -1455,9 +1444,9 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { @override _i3.TxBuilder addForeignUtxo( - _i4.Input? psbtInput, - _i4.OutPoint? outPoint, - int? satisfactionWeight, + _i3.Input? psbtInput, + _i3.OutPoint? outPoint, + BigInt? satisfactionWeight, ) => (super.noSuchMethod( Invocation.method( @@ -1603,7 +1592,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder feeAbsolute(int? feeAmount) => (super.noSuchMethod( + _i3.TxBuilder feeAbsolute(BigInt? feeAmount) => (super.noSuchMethod( Invocation.method( #feeAbsolute, [feeAmount], @@ -1647,7 +1636,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder setRecipients(List<_i4.ScriptAmount>? recipients) => + _i3.TxBuilder setRecipients(List<_i3.ScriptAmount>? recipients) => (super.noSuchMethod( Invocation.method( #setRecipients, @@ -1692,7 +1681,7 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i3.TxBuilder addUnSpendable(_i4.OutPoint? unSpendable) => + _i3.TxBuilder addUnSpendable(_i3.OutPoint? unSpendable) => (super.noSuchMethod( Invocation.method( #addUnSpendable, @@ -1737,15 +1726,15 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ) as _i3.TxBuilder); @override - _i9.Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)> finish( + _i4.Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)> finish( _i3.Wallet? wallet) => (super.noSuchMethod( Invocation.method( #finish, [wallet], ), - returnValue: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValue: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1761,8 +1750,8 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ), ) )), - returnValueForMissingStub: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValueForMissingStub: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1778,8 +1767,8 @@ class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { ), ) )), - ) as _i9 - .Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)>); + ) as _i4 + .Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)>); } /// A class which mocks [BumpFeeTxBuilder]. @@ -1789,11 +1778,11 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { @override String get txid => (super.noSuchMethod( Invocation.getter(#txid), - returnValue: _i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.getter(#txid), ), - returnValueForMissingStub: _i10.dummyValue( + returnValueForMissingStub: _i6.dummyValue( this, Invocation.getter(#txid), ), @@ -1875,15 +1864,15 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { ) as _i3.BumpFeeTxBuilder); @override - _i9.Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)> finish( + _i4.Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)> finish( _i3.Wallet? wallet) => (super.noSuchMethod( Invocation.method( #finish, [wallet], ), - returnValue: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValue: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1899,8 +1888,8 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { ), ) )), - returnValueForMissingStub: _i9.Future< - (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( + returnValueForMissingStub: _i4.Future< + (_i3.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1916,8 +1905,8 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { ), ) )), - ) as _i9 - .Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)>); + ) as _i4 + .Future<(_i3.PartiallySignedTransaction, _i3.TransactionDetails)>); } /// A class which mocks [ScriptBuf]. @@ -1925,11 +1914,33 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { /// See the documentation for Mockito's code generation for more information. class MockScriptBuf extends _i1.Mock implements _i3.ScriptBuf { @override - _i11.Uint8List get bytes => (super.noSuchMethod( + _i7.Uint8List get bytes => (super.noSuchMethod( Invocation.getter(#bytes), - returnValue: _i11.Uint8List(0), - returnValueForMissingStub: _i11.Uint8List(0), - ) as _i11.Uint8List); + returnValue: _i7.Uint8List(0), + returnValueForMissingStub: _i7.Uint8List(0), + ) as _i7.Uint8List); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [Address]. @@ -1937,148 +1948,127 @@ class MockScriptBuf extends _i1.Mock implements _i3.ScriptBuf { /// See the documentation for Mockito's code generation for more information. class MockAddress extends _i1.Mock implements _i3.Address { @override - _i4.BdkBitcoinAddress get ptr => (super.noSuchMethod( + _i2.Address get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeBdkBitcoinAddress_17( + returnValue: _FakeAddress_17( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeBdkBitcoinAddress_17( + returnValueForMissingStub: _FakeAddress_17( this, Invocation.getter(#ptr), ), - ) as _i4.BdkBitcoinAddress); + ) as _i2.Address); @override - _i9.Future<_i3.ScriptBuf> scriptPubkey() => (super.noSuchMethod( + _i3.ScriptBuf scriptPubkey() => (super.noSuchMethod( Invocation.method( #scriptPubkey, [], ), - returnValue: _i9.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( + returnValue: _FakeScriptBuf_18( this, Invocation.method( #scriptPubkey, [], ), - )), - returnValueForMissingStub: - _i9.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( + ), + returnValueForMissingStub: _FakeScriptBuf_18( this, Invocation.method( #scriptPubkey, [], ), - )), - ) as _i9.Future<_i3.ScriptBuf>); + ), + ) as _i3.ScriptBuf); @override - _i9.Future asString({dynamic hint}) => (super.noSuchMethod( + String toQrUri() => (super.noSuchMethod( Invocation.method( - #asString, + #toQrUri, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.method( - #asString, + #toQrUri, [], - {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( - #asString, + #toQrUri, [], - {#hint: hint}, ), - )), - ) as _i9.Future); + ), + ) as String); @override - _i9.Future isValidForNetwork({ - required _i4.Network? network, - dynamic hint, - }) => + bool isValidForNetwork({required _i3.Network? network}) => (super.noSuchMethod( Invocation.method( #isValidForNetwork, [], - { - #network: network, - #hint: hint, - }, + {#network: network}, ), - returnValue: _i9.Future.value(false), - returnValueForMissingStub: _i9.Future.value(false), - ) as _i9.Future); + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i9.Future<_i4.Network> network({dynamic hint}) => (super.noSuchMethod( + _i3.Network network() => (super.noSuchMethod( Invocation.method( #network, [], - {#hint: hint}, ), - returnValue: _i9.Future<_i4.Network>.value(_i4.Network.testnet), - returnValueForMissingStub: - _i9.Future<_i4.Network>.value(_i4.Network.testnet), - ) as _i9.Future<_i4.Network>); + returnValue: _i3.Network.testnet, + returnValueForMissingStub: _i3.Network.testnet, + ) as _i3.Network); @override - _i9.Future<_i4.Payload> payload({dynamic hint}) => (super.noSuchMethod( + _i3.Payload payload() => (super.noSuchMethod( Invocation.method( #payload, [], - {#hint: hint}, ), - returnValue: _i9.Future<_i4.Payload>.value(_i10.dummyValue<_i4.Payload>( + returnValue: _i6.dummyValue<_i3.Payload>( this, Invocation.method( #payload, [], - {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future<_i4.Payload>.value(_i10.dummyValue<_i4.Payload>( + ), + returnValueForMissingStub: _i6.dummyValue<_i3.Payload>( this, Invocation.method( #payload, [], - {#hint: hint}, ), - )), - ) as _i9.Future<_i4.Payload>); + ), + ) as _i3.Payload); @override - _i9.Future toQrUri({dynamic hint}) => (super.noSuchMethod( + String asString() => (super.noSuchMethod( Invocation.method( - #toQrUri, + #asString, [], - {#hint: hint}, ), - returnValue: _i9.Future.value(_i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.method( - #toQrUri, + #asString, [], - {#hint: hint}, ), - )), - returnValueForMissingStub: - _i9.Future.value(_i10.dummyValue( + ), + returnValueForMissingStub: _i6.dummyValue( this, Invocation.method( - #toQrUri, + #asString, [], - {#hint: hint}, ), - )), - ) as _i9.Future); + ), + ) as String); } /// A class which mocks [DerivationPath]. @@ -2086,23 +2076,45 @@ class MockAddress extends _i1.Mock implements _i3.Address { /// See the documentation for Mockito's code generation for more information. class MockDerivationPath extends _i1.Mock implements _i3.DerivationPath { @override - _i8.BitcoinBip32DerivationPath get ptr => (super.noSuchMethod( + _i2.DerivationPath get ptr => (super.noSuchMethod( Invocation.getter(#ptr), - returnValue: _FakeBitcoinBip32DerivationPath_19( + returnValue: _FakeDerivationPath_19( this, Invocation.getter(#ptr), ), - returnValueForMissingStub: _FakeBitcoinBip32DerivationPath_19( + returnValueForMissingStub: _FakeDerivationPath_19( this, Invocation.getter(#ptr), ), - ) as _i8.BitcoinBip32DerivationPath); + ) as _i2.DerivationPath); + + @override + String asString() => (super.noSuchMethod( + Invocation.method( + #asString, + [], + ), + returnValue: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.method( + #asString, + [], + ), + ), + ) as String); } /// A class which mocks [FeeRate]. /// /// See the documentation for Mockito's code generation for more information. -class MockFeeRate extends _i1.Mock implements _i4.FeeRate { +class MockFeeRate extends _i1.Mock implements _i3.FeeRate { @override double get satPerVb => (super.noSuchMethod( Invocation.getter(#satPerVb), @@ -2114,9 +2126,9 @@ class MockFeeRate extends _i1.Mock implements _i4.FeeRate { /// A class which mocks [LocalUtxo]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { +class MockLocalUtxo extends _i1.Mock implements _i3.LocalUtxo { @override - _i4.OutPoint get outpoint => (super.noSuchMethod( + _i3.OutPoint get outpoint => (super.noSuchMethod( Invocation.getter(#outpoint), returnValue: _FakeOutPoint_20( this, @@ -2126,10 +2138,10 @@ class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { this, Invocation.getter(#outpoint), ), - ) as _i4.OutPoint); + ) as _i3.OutPoint); @override - _i4.TxOut get txout => (super.noSuchMethod( + _i3.TxOut get txout => (super.noSuchMethod( Invocation.getter(#txout), returnValue: _FakeTxOut_21( this, @@ -2139,14 +2151,14 @@ class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { this, Invocation.getter(#txout), ), - ) as _i4.TxOut); + ) as _i3.TxOut); @override - _i4.KeychainKind get keychain => (super.noSuchMethod( + _i3.KeychainKind get keychain => (super.noSuchMethod( Invocation.getter(#keychain), - returnValue: _i4.KeychainKind.externalChain, - returnValueForMissingStub: _i4.KeychainKind.externalChain, - ) as _i4.KeychainKind); + returnValue: _i3.KeychainKind.externalChain, + returnValueForMissingStub: _i3.KeychainKind.externalChain, + ) as _i3.KeychainKind); @override bool get isSpent => (super.noSuchMethod( @@ -2160,31 +2172,43 @@ class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { /// /// See the documentation for Mockito's code generation for more information. class MockTransactionDetails extends _i1.Mock - implements _i4.TransactionDetails { + implements _i3.TransactionDetails { @override String get txid => (super.noSuchMethod( Invocation.getter(#txid), - returnValue: _i10.dummyValue( + returnValue: _i6.dummyValue( this, Invocation.getter(#txid), ), - returnValueForMissingStub: _i10.dummyValue( + returnValueForMissingStub: _i6.dummyValue( this, Invocation.getter(#txid), ), ) as String); @override - int get received => (super.noSuchMethod( + BigInt get received => (super.noSuchMethod( Invocation.getter(#received), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + returnValue: _i6.dummyValue( + this, + Invocation.getter(#received), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.getter(#received), + ), + ) as BigInt); @override - int get sent => (super.noSuchMethod( + BigInt get sent => (super.noSuchMethod( Invocation.getter(#sent), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); + returnValue: _i6.dummyValue( + this, + Invocation.getter(#sent), + ), + returnValueForMissingStub: _i6.dummyValue( + this, + Invocation.getter(#sent), + ), + ) as BigInt); } From 19bc9a1d44c26604bdd12214e60a948d55b11b5e Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 13 Jul 2024 22:05:00 -0400 Subject: [PATCH 21/35] fix(BdkLibrary): resolved the warnings on print statements --- example/lib/bdk_library.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/example/lib/bdk_library.dart b/example/lib/bdk_library.dart index 95c6d902..bd04467a 100644 --- a/example/lib/bdk_library.dart +++ b/example/lib/bdk_library.dart @@ -1,5 +1,5 @@ import 'package:bdk_flutter/bdk_flutter.dart'; -import 'package:flutter/cupertino.dart'; +import 'package:flutter/foundation.dart'; class BdkLibrary { Future createMnemonic() async { @@ -12,9 +12,12 @@ class BdkLibrary { network: Network.signet, mnemonic: mnemonic, ); - print(descriptorSecretKey.toPublic()); - print(descriptorSecretKey.secretBytes()); - print(descriptorSecretKey); + if (kDebugMode) { + print(descriptorSecretKey.toPublic()); + print(descriptorSecretKey.secretBytes()); + print(descriptorSecretKey); + } + final descriptor = await Descriptor.newBip84( secretKey: descriptorSecretKey, network: Network.signet, @@ -105,7 +108,7 @@ class BdkLibrary { final address = await Address.fromString( s: addressStr, network: (await aliceWallet.network())); - final script = await address.scriptPubkey(); + final script = address.scriptPubkey(); final feeRate = await estimateFeeRate(25, blockchain); final (psbt, _) = await txBuilder .addRecipient(script, BigInt.from(750)) From d7a5ef3d17a2ef1960f2fd7ccca2ed0bab19f9bd Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 13 Jul 2024 22:37:00 -0400 Subject: [PATCH 22/35] reactor(Wallet): Changed less complex functions synchronous Made is_mine, get_address, get_internal_address, get_balance, list_transactions, list_unspent, get_descriptor_for_keychain synchronous --- lib/src/generated/api/wallet.dart | 18 ++++++++---------- rust/src/api/wallet.rs | 9 +++++++++ 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/lib/src/generated/api/wallet.dart b/lib/src/generated/api/wallet.dart index abdf547b..b08d5dc4 100644 --- a/lib/src/generated/api/wallet.dart +++ b/lib/src/generated/api/wallet.dart @@ -69,20 +69,19 @@ class BdkWallet { /// Return a derived address using the external descriptor, see AddressIndex for available address index selection /// strategies. If none of the keys in the descriptor are derivable (i.e. the descriptor does not end with a * character) /// then the same address will always be returned for any AddressIndex. - static Future<(BdkAddress, int)> getAddress( + static (BdkAddress, int) getAddress( {required BdkWallet ptr, required AddressIndex addressIndex}) => core.instance.api.crateApiWalletBdkWalletGetAddress( ptr: ptr, addressIndex: addressIndex); /// Return the balance, meaning the sum of this wallet’s unspent outputs’ values. Note that this method only operates /// on the internal database, which first needs to be Wallet.sync manually. - Future getBalance() => - core.instance.api.crateApiWalletBdkWalletGetBalance( + Balance getBalance() => core.instance.api.crateApiWalletBdkWalletGetBalance( that: this, ); ///Returns the descriptor used to create addresses for a particular keychain. - static Future getDescriptorForKeychain( + static BdkDescriptor getDescriptorForKeychain( {required BdkWallet ptr, required KeychainKind keychain}) => core.instance.api.crateApiWalletBdkWalletGetDescriptorForKeychain( ptr: ptr, keychain: keychain); @@ -94,7 +93,7 @@ class BdkWallet { /// see [AddressIndex] for available address index selection strategies. If none of the keys /// in the descriptor are derivable (i.e. does not end with /*) then the same address will always /// be returned for any [AddressIndex]. - static Future<(BdkAddress, int)> getInternalAddress( + static (BdkAddress, int) getInternalAddress( {required BdkWallet ptr, required AddressIndex addressIndex}) => core.instance.api.crateApiWalletBdkWalletGetInternalAddress( ptr: ptr, addressIndex: addressIndex); @@ -111,24 +110,23 @@ class BdkWallet { sighashType: sighashType); /// Return whether or not a script is part of this wallet (either internal or external). - Future isMine({required BdkScriptBuf script}) => core.instance.api + bool isMine({required BdkScriptBuf script}) => core.instance.api .crateApiWalletBdkWalletIsMine(that: this, script: script); /// Return the list of transactions made and received by the wallet. Note that this method only operate on the internal database, which first needs to be [Wallet.sync] manually. - Future> listTransactions( - {required bool includeRaw}) => + List listTransactions({required bool includeRaw}) => core.instance.api.crateApiWalletBdkWalletListTransactions( that: this, includeRaw: includeRaw); /// Return the list of unspent outputs of this wallet. Note that this method only operates on the internal database, /// which first needs to be Wallet.sync manually. - Future> listUnspent() => + List listUnspent() => core.instance.api.crateApiWalletBdkWalletListUnspent( that: this, ); /// Get the Bitcoin network the wallet is using. - Future network() => core.instance.api.crateApiWalletBdkWalletNetwork( + Network network() => core.instance.api.crateApiWalletBdkWalletNetwork( that: this, ); diff --git a/rust/src/api/wallet.rs b/rust/src/api/wallet.rs index 8b78911a..fccf5eaa 100644 --- a/rust/src/api/wallet.rs +++ b/rust/src/api/wallet.rs @@ -17,6 +17,7 @@ pub use bdk::blockchain::GetTx; use bdk::database::ConfigurableDatabase; use std::sync::MutexGuard; +use flutter_rust_bridge::frb; #[derive(Debug)] pub struct BdkWallet { @@ -48,10 +49,12 @@ impl BdkWallet { } /// Get the Bitcoin network the wallet is using. + #[frb(sync)] pub fn network(&self) -> Network { self.get_wallet().network().into() } /// Return whether or not a script is part of this wallet (either internal or external). + #[frb(sync)] pub fn is_mine(&self, script: BdkScriptBuf) -> Result { self.get_wallet() .is_mine(>::into(script).as_script()) @@ -60,6 +63,7 @@ impl BdkWallet { /// Return a derived address using the external descriptor, see AddressIndex for available address index selection /// strategies. If none of the keys in the descriptor are derivable (i.e. the descriptor does not end with a * character) /// then the same address will always be returned for any AddressIndex. + #[frb(sync)] pub fn get_address( ptr: BdkWallet, address_index: AddressIndex, @@ -77,6 +81,7 @@ impl BdkWallet { /// see [AddressIndex] for available address index selection strategies. If none of the keys /// in the descriptor are derivable (i.e. does not end with /*) then the same address will always /// be returned for any [AddressIndex]. + #[frb(sync)] pub fn get_internal_address( ptr: BdkWallet, address_index: AddressIndex, @@ -89,6 +94,7 @@ impl BdkWallet { /// Return the balance, meaning the sum of this wallet’s unspent outputs’ values. Note that this method only operates /// on the internal database, which first needs to be Wallet.sync manually. + #[frb(sync)] pub fn get_balance(&self) -> Result { self.get_wallet() .get_balance() @@ -96,6 +102,7 @@ impl BdkWallet { .map_err(|e| e.into()) } /// Return the list of transactions made and received by the wallet. Note that this method only operate on the internal database, which first needs to be [Wallet.sync] manually. + #[frb(sync)] pub fn list_transactions( &self, include_raw: bool, @@ -113,6 +120,7 @@ impl BdkWallet { /// Return the list of unspent outputs of this wallet. Note that this method only operates on the internal database, /// which first needs to be Wallet.sync manually. + #[frb(sync)] pub fn list_unspent(&self) -> Result, BdkError> { let unspent: Vec = self.get_wallet().list_unspent()?; Ok(unspent.into_iter().map(LocalUtxo::from).collect()) @@ -205,6 +213,7 @@ impl BdkWallet { input.try_into() } ///Returns the descriptor used to create addresses for a particular keychain. + #[frb(sync)] pub fn get_descriptor_for_keychain( ptr: BdkWallet, keychain: KeychainKind, From 7c7ad9f3fab78c0a1dfa402ae54e02087ff0be34 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 13 Jul 2024 22:37:00 -0400 Subject: [PATCH 23/35] bindings updated --- ios/Classes/frb_generated.h | 34 ++--- lib/src/generated/frb_generated.dart | 84 ++++++------ lib/src/generated/frb_generated.io.dart | 79 +++++------ macos/Classes/frb_generated.h | 34 ++--- rust/src/frb_generated.io.rs | 40 +++--- rust/src/frb_generated.rs | 172 ++++++++++-------------- 6 files changed, 189 insertions(+), 254 deletions(-) diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h index 60575588..45bed664 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -941,20 +941,16 @@ void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize(int64_t p void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight(int64_t port_, struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(int64_t port_, - struct wire_cst_bdk_wallet *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - int32_t keychain); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(struct wire_cst_bdk_wallet *ptr, + int32_t keychain); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int64_t port_, struct wire_cst_bdk_wallet *that, @@ -962,19 +958,15 @@ void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int6 bool only_witness_utxo, struct wire_cst_psbt_sig_hash_type *sighash_type); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_bdk_script_buf *script); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(struct wire_cst_bdk_wallet *that, + struct wire_cst_bdk_script_buf *script); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(int64_t port_, - struct wire_cst_bdk_wallet *that, - bool include_raw); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(struct wire_cst_bdk_wallet *that, + bool include_raw); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(int64_t port_, - struct wire_cst_bdk_wallet *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(int64_t port_, - struct wire_cst_bdk_wallet *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(struct wire_cst_bdk_wallet *that); void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new(int64_t port_, struct wire_cst_bdk_descriptor *descriptor, diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index b21b3b4d..81416fde 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -286,15 +286,15 @@ abstract class coreApi extends BaseApi { Future crateApiTypesBdkTransactionWeight( {required BdkTransaction that}); - Future<(BdkAddress, int)> crateApiWalletBdkWalletGetAddress( + (BdkAddress, int) crateApiWalletBdkWalletGetAddress( {required BdkWallet ptr, required AddressIndex addressIndex}); - Future crateApiWalletBdkWalletGetBalance({required BdkWallet that}); + Balance crateApiWalletBdkWalletGetBalance({required BdkWallet that}); - Future crateApiWalletBdkWalletGetDescriptorForKeychain( + BdkDescriptor crateApiWalletBdkWalletGetDescriptorForKeychain( {required BdkWallet ptr, required KeychainKind keychain}); - Future<(BdkAddress, int)> crateApiWalletBdkWalletGetInternalAddress( + (BdkAddress, int) crateApiWalletBdkWalletGetInternalAddress( {required BdkWallet ptr, required AddressIndex addressIndex}); Future crateApiWalletBdkWalletGetPsbtInput( @@ -303,16 +303,15 @@ abstract class coreApi extends BaseApi { required bool onlyWitnessUtxo, PsbtSigHashType? sighashType}); - Future crateApiWalletBdkWalletIsMine( + bool crateApiWalletBdkWalletIsMine( {required BdkWallet that, required BdkScriptBuf script}); - Future> crateApiWalletBdkWalletListTransactions( + List crateApiWalletBdkWalletListTransactions( {required BdkWallet that, required bool includeRaw}); - Future> crateApiWalletBdkWalletListUnspent( - {required BdkWallet that}); + List crateApiWalletBdkWalletListUnspent({required BdkWallet that}); - Future crateApiWalletBdkWalletNetwork({required BdkWallet that}); + Network crateApiWalletBdkWalletNetwork({required BdkWallet that}); Future crateApiWalletBdkWalletNew( {required BdkDescriptor descriptor, @@ -2196,14 +2195,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future<(BdkAddress, int)> crateApiWalletBdkWalletGetAddress( + (BdkAddress, int) crateApiWalletBdkWalletGetAddress( {required BdkWallet ptr, required AddressIndex addressIndex}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); return wire.wire__crate__api__wallet__bdk_wallet_get_address( - port_, arg0, arg1); + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_address_u_32, @@ -2222,12 +2221,11 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiWalletBdkWalletGetBalance({required BdkWallet that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + Balance crateApiWalletBdkWalletGetBalance({required BdkWallet that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire__crate__api__wallet__bdk_wallet_get_balance( - port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_get_balance(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_balance, @@ -2246,15 +2244,15 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiWalletBdkWalletGetDescriptorForKeychain( + BdkDescriptor crateApiWalletBdkWalletGetDescriptorForKeychain( {required BdkWallet ptr, required KeychainKind keychain}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_keychain_kind(keychain); return wire .wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( - port_, arg0, arg1); + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bdk_descriptor, @@ -2273,14 +2271,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future<(BdkAddress, int)> crateApiWalletBdkWalletGetInternalAddress( + (BdkAddress, int) crateApiWalletBdkWalletGetInternalAddress( {required BdkWallet ptr, required AddressIndex addressIndex}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); return wire.wire__crate__api__wallet__bdk_wallet_get_internal_address( - port_, arg0, arg1); + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_record_bdk_address_u_32, @@ -2330,14 +2328,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiWalletBdkWalletIsMine( + bool crateApiWalletBdkWalletIsMine( {required BdkWallet that, required BdkScriptBuf script}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_box_autoadd_bdk_script_buf(script); - return wire.wire__crate__api__wallet__bdk_wallet_is_mine( - port_, arg0, arg1); + return wire.wire__crate__api__wallet__bdk_wallet_is_mine(arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, @@ -2356,14 +2353,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future> crateApiWalletBdkWalletListTransactions( + List crateApiWalletBdkWalletListTransactions( {required BdkWallet that, required bool includeRaw}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_bool(includeRaw); return wire.wire__crate__api__wallet__bdk_wallet_list_transactions( - port_, arg0, arg1); + arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_transaction_details, @@ -2382,13 +2379,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future> crateApiWalletBdkWalletListUnspent( + List crateApiWalletBdkWalletListUnspent( {required BdkWallet that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire__crate__api__wallet__bdk_wallet_list_unspent( - port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_list_unspent(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_local_utxo, @@ -2407,11 +2403,11 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiWalletBdkWalletNetwork({required BdkWallet that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + Network crateApiWalletBdkWalletNetwork({required BdkWallet that}) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_bdk_wallet(that); - return wire.wire__crate__api__wallet__bdk_wallet_network(port_, arg0); + return wire.wire__crate__api__wallet__bdk_wallet_network(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_network, diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index d7f18a6a..5ca00930 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -4616,13 +4616,11 @@ class coreWire implements BaseWire { _wire__crate__api__types__bdk_transaction_weightPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire__crate__api__wallet__bdk_wallet_get_address( - int port_, + WireSyncRust2DartDco wire__crate__api__wallet__bdk_wallet_get_address( ffi.Pointer ptr, ffi.Pointer address_index, ) { return _wire__crate__api__wallet__bdk_wallet_get_address( - port_, ptr, address_index, ); @@ -4630,39 +4628,36 @@ class coreWire implements BaseWire { late final _wire__crate__api__wallet__bdk_wallet_get_addressPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + WireSyncRust2DartDco Function(ffi.Pointer, ffi.Pointer)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address'); late final _wire__crate__api__wallet__bdk_wallet_get_address = _wire__crate__api__wallet__bdk_wallet_get_addressPtr.asFunction< - void Function(int, ffi.Pointer, + WireSyncRust2DartDco Function(ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__wallet__bdk_wallet_get_balance( - int port_, + WireSyncRust2DartDco wire__crate__api__wallet__bdk_wallet_get_balance( ffi.Pointer that, ) { return _wire__crate__api__wallet__bdk_wallet_get_balance( - port_, that, ); } late final _wire__crate__api__wallet__bdk_wallet_get_balancePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + WireSyncRust2DartDco Function(ffi.Pointer)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance'); late final _wire__crate__api__wallet__bdk_wallet_get_balance = - _wire__crate__api__wallet__bdk_wallet_get_balancePtr - .asFunction)>(); + _wire__crate__api__wallet__bdk_wallet_get_balancePtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( - int port_, + WireSyncRust2DartDco + wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( ffi.Pointer ptr, int keychain, ) { return _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( - port_, ptr, keychain, ); @@ -4671,21 +4666,21 @@ class coreWire implements BaseWire { late final _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychainPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Int32)>>( + WireSyncRust2DartDco Function( + ffi.Pointer, ffi.Int32)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain'); late final _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain = _wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychainPtr .asFunction< - void Function(int, ffi.Pointer, int)>(); + WireSyncRust2DartDco Function( + ffi.Pointer, int)>(); - void wire__crate__api__wallet__bdk_wallet_get_internal_address( - int port_, + WireSyncRust2DartDco + wire__crate__api__wallet__bdk_wallet_get_internal_address( ffi.Pointer ptr, ffi.Pointer address_index, ) { return _wire__crate__api__wallet__bdk_wallet_get_internal_address( - port_, ptr, address_index, ); @@ -4694,12 +4689,13 @@ class coreWire implements BaseWire { late final _wire__crate__api__wallet__bdk_wallet_get_internal_addressPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + WireSyncRust2DartDco Function( + ffi.Pointer, ffi.Pointer)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address'); late final _wire__crate__api__wallet__bdk_wallet_get_internal_address = _wire__crate__api__wallet__bdk_wallet_get_internal_addressPtr.asFunction< - void Function(int, ffi.Pointer, + WireSyncRust2DartDco Function(ffi.Pointer, ffi.Pointer)>(); void wire__crate__api__wallet__bdk_wallet_get_psbt_input( @@ -4736,13 +4732,11 @@ class coreWire implements BaseWire { bool, ffi.Pointer)>(); - void wire__crate__api__wallet__bdk_wallet_is_mine( - int port_, + WireSyncRust2DartDco wire__crate__api__wallet__bdk_wallet_is_mine( ffi.Pointer that, ffi.Pointer script, ) { return _wire__crate__api__wallet__bdk_wallet_is_mine( - port_, that, script, ); @@ -4750,21 +4744,19 @@ class coreWire implements BaseWire { late final _wire__crate__api__wallet__bdk_wallet_is_minePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + WireSyncRust2DartDco Function(ffi.Pointer, ffi.Pointer)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine'); late final _wire__crate__api__wallet__bdk_wallet_is_mine = _wire__crate__api__wallet__bdk_wallet_is_minePtr.asFunction< - void Function(int, ffi.Pointer, + WireSyncRust2DartDco Function(ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__wallet__bdk_wallet_list_transactions( - int port_, + WireSyncRust2DartDco wire__crate__api__wallet__bdk_wallet_list_transactions( ffi.Pointer that, bool include_raw, ) { return _wire__crate__api__wallet__bdk_wallet_list_transactions( - port_, that, include_raw, ); @@ -4772,48 +4764,45 @@ class coreWire implements BaseWire { late final _wire__crate__api__wallet__bdk_wallet_list_transactionsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Bool)>>( + WireSyncRust2DartDco Function( + ffi.Pointer, ffi.Bool)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions'); late final _wire__crate__api__wallet__bdk_wallet_list_transactions = _wire__crate__api__wallet__bdk_wallet_list_transactionsPtr.asFunction< - void Function(int, ffi.Pointer, bool)>(); + WireSyncRust2DartDco Function( + ffi.Pointer, bool)>(); - void wire__crate__api__wallet__bdk_wallet_list_unspent( - int port_, + WireSyncRust2DartDco wire__crate__api__wallet__bdk_wallet_list_unspent( ffi.Pointer that, ) { return _wire__crate__api__wallet__bdk_wallet_list_unspent( - port_, that, ); } late final _wire__crate__api__wallet__bdk_wallet_list_unspentPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + WireSyncRust2DartDco Function(ffi.Pointer)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent'); late final _wire__crate__api__wallet__bdk_wallet_list_unspent = - _wire__crate__api__wallet__bdk_wallet_list_unspentPtr - .asFunction)>(); + _wire__crate__api__wallet__bdk_wallet_list_unspentPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire__crate__api__wallet__bdk_wallet_network( - int port_, + WireSyncRust2DartDco wire__crate__api__wallet__bdk_wallet_network( ffi.Pointer that, ) { return _wire__crate__api__wallet__bdk_wallet_network( - port_, that, ); } late final _wire__crate__api__wallet__bdk_wallet_networkPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + WireSyncRust2DartDco Function(ffi.Pointer)>>( 'frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network'); late final _wire__crate__api__wallet__bdk_wallet_network = - _wire__crate__api__wallet__bdk_wallet_networkPtr - .asFunction)>(); + _wire__crate__api__wallet__bdk_wallet_networkPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); void wire__crate__api__wallet__bdk_wallet_new( int port_, diff --git a/macos/Classes/frb_generated.h b/macos/Classes/frb_generated.h index 60575588..45bed664 100644 --- a/macos/Classes/frb_generated.h +++ b/macos/Classes/frb_generated.h @@ -941,20 +941,16 @@ void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_vsize(int64_t p void frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_weight(int64_t port_, struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address(struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(int64_t port_, - struct wire_cst_bdk_wallet *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance(struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - int32_t keychain); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain(struct wire_cst_bdk_wallet *ptr, + int32_t keychain); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(int64_t port_, - struct wire_cst_bdk_wallet *ptr, - struct wire_cst_address_index *address_index); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address(struct wire_cst_bdk_wallet *ptr, + struct wire_cst_address_index *address_index); void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int64_t port_, struct wire_cst_bdk_wallet *that, @@ -962,19 +958,15 @@ void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_psbt_input(int6 bool only_witness_utxo, struct wire_cst_psbt_sig_hash_type *sighash_type); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(int64_t port_, - struct wire_cst_bdk_wallet *that, - struct wire_cst_bdk_script_buf *script); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine(struct wire_cst_bdk_wallet *that, + struct wire_cst_bdk_script_buf *script); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(int64_t port_, - struct wire_cst_bdk_wallet *that, - bool include_raw); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions(struct wire_cst_bdk_wallet *that, + bool include_raw); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(int64_t port_, - struct wire_cst_bdk_wallet *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent(struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(int64_t port_, - struct wire_cst_bdk_wallet *that); +WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network(struct wire_cst_bdk_wallet *that); void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new(int64_t port_, struct wire_cst_bdk_descriptor *descriptor, diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index a4806f7c..dc01ea4b 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -2445,37 +2445,33 @@ pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__types__bdk_transaction_we #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_address( - port_: i64, ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, -) { - wire__crate__api__wallet__bdk_wallet_get_address_impl(port_, ptr, address_index) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_get_address_impl(ptr, address_index) } #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_balance( - port_: i64, that: *mut wire_cst_bdk_wallet, -) { - wire__crate__api__wallet__bdk_wallet_get_balance_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_get_balance_impl(that) } #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain( - port_: i64, ptr: *mut wire_cst_bdk_wallet, keychain: i32, -) { - wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain_impl(ptr, keychain) } #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_internal_address( - port_: i64, ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, -) { - wire__crate__api__wallet__bdk_wallet_get_internal_address_impl(port_, ptr, address_index) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_get_internal_address_impl(ptr, address_index) } #[no_mangle] @@ -2497,36 +2493,32 @@ pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_get_ps #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_is_mine( - port_: i64, that: *mut wire_cst_bdk_wallet, script: *mut wire_cst_bdk_script_buf, -) { - wire__crate__api__wallet__bdk_wallet_is_mine_impl(port_, that, script) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_is_mine_impl(that, script) } #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_transactions( - port_: i64, that: *mut wire_cst_bdk_wallet, include_raw: bool, -) { - wire__crate__api__wallet__bdk_wallet_list_transactions_impl(port_, that, include_raw) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_list_transactions_impl(that, include_raw) } #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent( - port_: i64, that: *mut wire_cst_bdk_wallet, -) { - wire__crate__api__wallet__bdk_wallet_list_unspent_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_list_unspent_impl(that) } #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network( - port_: i64, that: *mut wire_cst_bdk_wallet, -) { - wire__crate__api__wallet__bdk_wallet_network_impl(port_, that) +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__wallet__bdk_wallet_network_impl(that) } #[no_mangle] diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index ebb4e826..032d2b13 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -1586,99 +1586,87 @@ fn wire__crate__api__types__bdk_transaction_weight_impl( ) } fn wire__crate__api__wallet__bdk_wallet_get_address_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, address_index: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_get_address", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::api::error::BdkError>((move || { - let output_ok = - crate::api::wallet::BdkWallet::get_address(api_ptr, api_address_index)?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::wallet::BdkWallet::get_address(api_ptr, api_address_index)?; + Ok(output_ok) + })()) }, ) } fn wire__crate__api__wallet__bdk_wallet_get_balance_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_get_balance", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::api::error::BdkError>((move || { - let output_ok = crate::api::wallet::BdkWallet::get_balance(&api_that)?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_balance(&api_that)?; + Ok(output_ok) + })()) }, ) } fn wire__crate__api__wallet__bdk_wallet_get_descriptor_for_keychain_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, keychain: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_get_descriptor_for_keychain", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_ptr = ptr.cst_decode(); let api_keychain = keychain.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::api::error::BdkError>((move || { - let output_ok = crate::api::wallet::BdkWallet::get_descriptor_for_keychain( - api_ptr, - api_keychain, - )?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_descriptor_for_keychain( + api_ptr, + api_keychain, + )?; + Ok(output_ok) + })()) }, ) } fn wire__crate__api__wallet__bdk_wallet_get_internal_address_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, ptr: impl CstDecode, address_index: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_get_internal_address", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::api::error::BdkError>((move || { - let output_ok = crate::api::wallet::BdkWallet::get_internal_address( - api_ptr, - api_address_index, - )?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::get_internal_address( + api_ptr, + api_address_index, + )?; + Ok(output_ok) + })()) }, ) } @@ -1715,94 +1703,80 @@ fn wire__crate__api__wallet__bdk_wallet_get_psbt_input_impl( ) } fn wire__crate__api__wallet__bdk_wallet_is_mine_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, script: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_is_mine", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); let api_script = script.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::api::error::BdkError>((move || { - let output_ok = crate::api::wallet::BdkWallet::is_mine(&api_that, api_script)?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::is_mine(&api_that, api_script)?; + Ok(output_ok) + })()) }, ) } fn wire__crate__api__wallet__bdk_wallet_list_transactions_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, include_raw: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_list_transactions", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); let api_include_raw = include_raw.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::api::error::BdkError>((move || { - let output_ok = crate::api::wallet::BdkWallet::list_transactions( - &api_that, - api_include_raw, - )?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = + crate::api::wallet::BdkWallet::list_transactions(&api_that, api_include_raw)?; + Ok(output_ok) + })()) }, ) } fn wire__crate__api__wallet__bdk_wallet_list_unspent_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_list_unspent", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::api::error::BdkError>((move || { - let output_ok = crate::api::wallet::BdkWallet::list_unspent(&api_that)?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, crate::api::error::BdkError>((move || { + let output_ok = crate::api::wallet::BdkWallet::list_unspent(&api_that)?; + Ok(output_ok) + })()) }, ) } fn wire__crate__api__wallet__bdk_wallet_network_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "bdk_wallet_network", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco::<_, _, ()>((move || { - let output_ok = - Result::<_, ()>::Ok(crate::api::wallet::BdkWallet::network(&api_that))?; - Ok(output_ok) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::wallet::BdkWallet::network(&api_that))?; + Ok(output_ok) + })()) }, ) } From 61a3b6a6adabeca3d5f020a5c8a34ca58a5a3ff3 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 15 Jul 2024 22:38:00 -0400 Subject: [PATCH 24/35] Updated corresponding Dart FFI bindings & mock tests to reflect the change. --- lib/src/root.dart | 28 +++++------ test/bdk_flutter_test.dart | 17 ++++--- test/bdk_flutter_test.mocks.dart | 82 ++++++++++++++------------------ 3 files changed, 57 insertions(+), 70 deletions(-) diff --git a/lib/src/root.dart b/lib/src/root.dart index ba75dc11..59f7c6d4 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -1021,11 +1021,9 @@ class Wallet extends BdkWallet { /// Return a derived address using the external descriptor, see AddressIndex for available address index selection /// strategies. If none of the keys in the descriptor are derivable (i.e. the descriptor does not end with a * character) /// then the same address will always be returned for any AddressIndex. - Future getAddress( - {required AddressIndex addressIndex, hint}) async { + AddressInfo getAddress({required AddressIndex addressIndex, hint}) { try { - final res = - await BdkWallet.getAddress(ptr: this, addressIndex: addressIndex); + final res = BdkWallet.getAddress(ptr: this, addressIndex: addressIndex); return AddressInfo(res.$2, Address._(ptr: res.$1.ptr)); } on BdkError catch (e) { throw mapBdkError(e); @@ -1035,7 +1033,7 @@ class Wallet extends BdkWallet { /// Return the balance, meaning the sum of this wallet’s unspent outputs’ values. Note that this method only operates /// on the internal database, which first needs to be Wallet.sync manually. @override - Future getBalance({hint}) { + Balance getBalance({hint}) { try { return super.getBalance(); } on BdkError catch (e) { @@ -1047,8 +1045,8 @@ class Wallet extends BdkWallet { Future getDescriptorForKeychain( {required KeychainKind keychain, hint}) async { try { - final res = await BdkWallet.getDescriptorForKeychain( - ptr: this, keychain: keychain); + final res = + BdkWallet.getDescriptorForKeychain(ptr: this, keychain: keychain); return Descriptor._( extendedDescriptor: res.extendedDescriptor, keyMap: res.keyMap); } on BdkError catch (e) { @@ -1064,11 +1062,10 @@ class Wallet extends BdkWallet { /// in the descriptor are derivable (i.e. does not end with /*) then the same address will always /// be returned for any [AddressIndex]. - Future getInternalAddress( - {required AddressIndex addressIndex, hint}) async { + AddressInfo getInternalAddress({required AddressIndex addressIndex, hint}) { try { - final res = await BdkWallet.getInternalAddress( - ptr: this, addressIndex: addressIndex); + final res = + BdkWallet.getInternalAddress(ptr: this, addressIndex: addressIndex); return AddressInfo(res.$2, Address._(ptr: res.$1.ptr)); } on BdkError catch (e) { throw mapBdkError(e); @@ -1094,7 +1091,7 @@ class Wallet extends BdkWallet { /// Return whether or not a script is part of this wallet (either internal or external). @override - Future isMine({required BdkScriptBuf script, hint}) async { + bool isMine({required BdkScriptBuf script, hint}) { try { return super.isMine(script: script); } on BdkError catch (e) { @@ -1104,8 +1101,7 @@ class Wallet extends BdkWallet { /// Return the list of transactions made and received by the wallet. Note that this method only operate on the internal database, which first needs to be [Wallet.sync] manually. @override - Future> listTransactions( - {required bool includeRaw, hint}) async { + List listTransactions({required bool includeRaw, hint}) { try { return super.listTransactions(includeRaw: includeRaw); } on BdkError catch (e) { @@ -1117,7 +1113,7 @@ class Wallet extends BdkWallet { /// which first needs to be Wallet.sync manually. /// TODO; Update; create custom LocalUtxo @override - Future> listUnspent({hint}) async { + List listUnspent({hint}) { try { return super.listUnspent(); } on BdkError catch (e) { @@ -1127,7 +1123,7 @@ class Wallet extends BdkWallet { /// Get the Bitcoin network the wallet is using. @override - Future network({hint}) async { + Network network({hint}) { try { return super.network(); } on BdkError catch (e) { diff --git a/test/bdk_flutter_test.dart b/test/bdk_flutter_test.dart index 3940bca8..029bc3be 100644 --- a/test/bdk_flutter_test.dart +++ b/test/bdk_flutter_test.dart @@ -57,21 +57,20 @@ void main() { }); group('Wallet', () { test('Should return valid AddressInfo Object', () async { - final res = - await mockWallet.getAddress(addressIndex: AddressIndex.increase()); + final res = mockWallet.getAddress(addressIndex: AddressIndex.increase()); expect(res, isA()); }); test('Should return valid Balance object', () async { - final res = await mockWallet.getBalance(); + final res = mockWallet.getBalance(); expect(res, isA()); }); test('Should return Network enum', () async { - final res = await mockWallet.network(); + final res = mockWallet.network(); expect(res, isA()); }); test('Should return list of LocalUtxo object', () async { - final res = await mockWallet.listUnspent(); + final res = mockWallet.listUnspent(); expect(res, isA>()); }); test('Should return a Input object', () async { @@ -86,17 +85,17 @@ void main() { }); test('Should return an empty list of TransactionDetails', () async { when(mockWallet.listTransactions(includeRaw: any)) - .thenAnswer((e) async => List.empty()); - final res = await mockWallet.listTransactions(includeRaw: true); + .thenAnswer((e) => List.empty()); + final res = mockWallet.listTransactions(includeRaw: true); expect(res, isA>()); expect(res, List.empty()); }); test('verify function call order', () async { await mockWallet.sync(blockchain: mockBlockchain); - await mockWallet.listTransactions(includeRaw: true); + mockWallet.listTransactions(includeRaw: true); verifyInOrder([ await mockWallet.sync(blockchain: mockBlockchain), - await mockWallet.listTransactions(includeRaw: true) + mockWallet.listTransactions(includeRaw: true) ]); }); }); diff --git a/test/bdk_flutter_test.mocks.dart b/test/bdk_flutter_test.mocks.dart index 7dbe8eef..191bee69 100644 --- a/test/bdk_flutter_test.mocks.dart +++ b/test/bdk_flutter_test.mocks.dart @@ -273,7 +273,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ) as _i2.MutexWalletAnyDatabase); @override - _i4.Future<_i3.AddressInfo> getAddress({ + _i3.AddressInfo getAddress({ required _i3.AddressIndex? addressIndex, dynamic hint, }) => @@ -286,7 +286,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + returnValue: _FakeAddressInfo_1( this, Invocation.method( #getAddress, @@ -296,9 +296,8 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - )), - returnValueForMissingStub: - _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + ), + returnValueForMissingStub: _FakeAddressInfo_1( this, Invocation.method( #getAddress, @@ -308,33 +307,33 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - )), - ) as _i4.Future<_i3.AddressInfo>); + ), + ) as _i3.AddressInfo); @override - _i4.Future<_i3.Balance> getBalance({dynamic hint}) => (super.noSuchMethod( + _i3.Balance getBalance({dynamic hint}) => (super.noSuchMethod( Invocation.method( #getBalance, [], {#hint: hint}, ), - returnValue: _i4.Future<_i3.Balance>.value(_FakeBalance_2( + returnValue: _FakeBalance_2( this, Invocation.method( #getBalance, [], {#hint: hint}, ), - )), - returnValueForMissingStub: _i4.Future<_i3.Balance>.value(_FakeBalance_2( + ), + returnValueForMissingStub: _FakeBalance_2( this, Invocation.method( #getBalance, [], {#hint: hint}, ), - )), - ) as _i4.Future<_i3.Balance>); + ), + ) as _i3.Balance); @override _i4.Future<_i3.Descriptor> getDescriptorForKeychain({ @@ -376,7 +375,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ) as _i4.Future<_i3.Descriptor>); @override - _i4.Future<_i3.AddressInfo> getInternalAddress({ + _i3.AddressInfo getInternalAddress({ required _i3.AddressIndex? addressIndex, dynamic hint, }) => @@ -389,7 +388,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + returnValue: _FakeAddressInfo_1( this, Invocation.method( #getInternalAddress, @@ -399,9 +398,8 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - )), - returnValueForMissingStub: - _i4.Future<_i3.AddressInfo>.value(_FakeAddressInfo_1( + ), + returnValueForMissingStub: _FakeAddressInfo_1( this, Invocation.method( #getInternalAddress, @@ -411,8 +409,8 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - )), - ) as _i4.Future<_i3.AddressInfo>); + ), + ) as _i3.AddressInfo); @override _i4.Future<_i3.Input> getPsbtInput({ @@ -461,7 +459,7 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { ) as _i4.Future<_i3.Input>); @override - _i4.Future isMine({ + bool isMine({ required _i5.BdkScriptBuf? script, dynamic hint, }) => @@ -474,12 +472,12 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i4.Future.value(false), - returnValueForMissingStub: _i4.Future.value(false), - ) as _i4.Future); + returnValue: false, + returnValueForMissingStub: false, + ) as bool); @override - _i4.Future> listTransactions({ + List<_i3.TransactionDetails> listTransactions({ required bool? includeRaw, dynamic hint, }) => @@ -492,37 +490,31 @@ class MockWallet extends _i1.Mock implements _i3.Wallet { #hint: hint, }, ), - returnValue: _i4.Future>.value( - <_i3.TransactionDetails>[]), - returnValueForMissingStub: - _i4.Future>.value( - <_i3.TransactionDetails>[]), - ) as _i4.Future>); + returnValue: <_i3.TransactionDetails>[], + returnValueForMissingStub: <_i3.TransactionDetails>[], + ) as List<_i3.TransactionDetails>); @override - _i4.Future> listUnspent({dynamic hint}) => - (super.noSuchMethod( + List<_i3.LocalUtxo> listUnspent({dynamic hint}) => (super.noSuchMethod( Invocation.method( #listUnspent, [], {#hint: hint}, ), - returnValue: _i4.Future>.value(<_i3.LocalUtxo>[]), - returnValueForMissingStub: - _i4.Future>.value(<_i3.LocalUtxo>[]), - ) as _i4.Future>); + returnValue: <_i3.LocalUtxo>[], + returnValueForMissingStub: <_i3.LocalUtxo>[], + ) as List<_i3.LocalUtxo>); @override - _i4.Future<_i3.Network> network({dynamic hint}) => (super.noSuchMethod( + _i3.Network network({dynamic hint}) => (super.noSuchMethod( Invocation.method( #network, [], {#hint: hint}, ), - returnValue: _i4.Future<_i3.Network>.value(_i3.Network.testnet), - returnValueForMissingStub: - _i4.Future<_i3.Network>.value(_i3.Network.testnet), - ) as _i4.Future<_i3.Network>); + returnValue: _i3.Network.testnet, + returnValueForMissingStub: _i3.Network.testnet, + ) as _i3.Network); @override _i4.Future sign({ @@ -986,20 +978,20 @@ class MockDescriptorSecretKey extends _i1.Mock @override _i3.DescriptorPublicKey toPublic() => (super.noSuchMethod( Invocation.method( - #asPublic, + #toPublic, [], ), returnValue: _FakeDescriptorPublicKey_9( this, Invocation.method( - #asPublic, + #toPublic, [], ), ), returnValueForMissingStub: _FakeDescriptorPublicKey_9( this, Invocation.method( - #asPublic, + #toPublic, [], ), ), From 23e5d9b54e949d210b5889efb92c8bca952849a4 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 15 Jul 2024 12:20:00 -0400 Subject: [PATCH 25/35] feat(Blockchain): Added createMutinynet & createTestnet --- lib/src/root.dart | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/lib/src/root.dart b/lib/src/root.dart index 59f7c6d4..760afe41 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -116,6 +116,34 @@ class Blockchain extends BdkBlockchain { } } + /// [Blockchain] constructor for creating `Esplora` blockchain in `Mutinynet` + /// Esplora url: https://mutinynet.ltbl.io/api + static Future createMutinynet({ + int stopGap = 20, + }) async { + final config = BlockchainConfig.esplora( + config: EsploraConfig( + baseUrl: 'https://mutinynet.ltbl.io/api', + stopGap: BigInt.from(stopGap), + ), + ); + return create(config: config); + } + + /// [Blockchain] constructor for creating `Esplora` blockchain in `Testnet` + /// Esplora url: https://testnet.ltbl.io/api + static Future createTestnet({ + int stopGap = 20, + }) async { + final config = BlockchainConfig.esplora( + config: EsploraConfig( + baseUrl: 'https://testnet.ltbl.io/api', + stopGap: BigInt.from(stopGap), + ), + ); + return create(config: config); + } + ///Estimate the fee rate required to confirm a transaction in a given target of blocks @override Future estimateFee({required BigInt target, hint}) async { From 9e494735395af053b7818dccc853941666ea6e2d Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 15 Jul 2024 12:32:00 -0400 Subject: [PATCH 26/35] fix: removed unnecessary asyncs --- example/lib/bdk_library.dart | 55 +++++++++++++++--------------------- 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/example/lib/bdk_library.dart b/example/lib/bdk_library.dart index bd04467a..e34d26b6 100644 --- a/example/lib/bdk_library.dart +++ b/example/lib/bdk_library.dart @@ -26,11 +26,7 @@ class BdkLibrary { } Future initializeBlockchain() async { - return await Blockchain.create( - config: BlockchainConfig.esplora( - config: EsploraConfig( - baseUrl: 'https://mutinynet.com/api', - stopGap: BigInt.from(10)))); + return Blockchain.createMutinynet(); } Future restoreWallet(Descriptor descriptor) async { @@ -41,41 +37,37 @@ class BdkLibrary { return wallet; } - Future sync(Blockchain blockchain, Wallet aliceWallet) async { + Future sync(Blockchain blockchain, Wallet wallet) async { try { - await aliceWallet.sync(blockchain: blockchain); + await wallet.sync(blockchain: blockchain); } on FormatException catch (e) { debugPrint(e.message); } } - Future getAddress(Wallet aliceWallet) async { - final address = await aliceWallet.getAddress( - addressIndex: const AddressIndex.increase()); - return address; + AddressInfo getAddressInfo(Wallet wallet) { + return wallet.getAddress(addressIndex: const AddressIndex.increase()); } Future getPsbtInput( - Wallet aliceWallet, LocalUtxo utxo, bool onlyWitnessUtxo) async { - final input = await aliceWallet.getPsbtInput( - utxo: utxo, onlyWitnessUtxo: onlyWitnessUtxo); + Wallet wallet, LocalUtxo utxo, bool onlyWitnessUtxo) async { + final input = + await wallet.getPsbtInput(utxo: utxo, onlyWitnessUtxo: onlyWitnessUtxo); return input; } - Future> getUnConfirmedTransactions( - Wallet aliceWallet) async { + List getUnConfirmedTransactions(Wallet wallet) { List unConfirmed = []; - final res = await aliceWallet.listTransactions(includeRaw: true); + final res = wallet.listTransactions(includeRaw: true); for (var e in res) { if (e.confirmationTime == null) unConfirmed.add(e); } return unConfirmed; } - Future> getConfirmedTransactions( - Wallet aliceWallet) async { + List getConfirmedTransactions(Wallet wallet) { List confirmed = []; - final res = await aliceWallet.listTransactions(includeRaw: true); + final res = wallet.listTransactions(includeRaw: true); for (var e in res) { if (e.confirmationTime != null) confirmed.add(e); @@ -83,14 +75,12 @@ class BdkLibrary { return confirmed; } - Future getBalance(Wallet aliceWallet) async { - final res = await aliceWallet.getBalance(); - return res; + Future getBalance(Wallet wallet) async { + return wallet.getBalance(); } - Future> listUnspend(Wallet aliceWallet) async { - final res = await aliceWallet.listUnspent(); - return res; + List listUnspend(Wallet wallet) { + return wallet.listUnspent(); } Future estimateFeeRate( @@ -101,20 +91,19 @@ class BdkLibrary { return feeRate; } - sendBitcoin( - Blockchain blockchain, Wallet aliceWallet, String addressStr) async { + sendBitcoin(Blockchain blockchain, Wallet wallet, String receiverAddress, + int amountSat) async { try { final txBuilder = TxBuilder(); final address = await Address.fromString( - s: addressStr, network: (await aliceWallet.network())); - + s: receiverAddress, network: wallet.network()); final script = address.scriptPubkey(); final feeRate = await estimateFeeRate(25, blockchain); final (psbt, _) = await txBuilder - .addRecipient(script, BigInt.from(750)) + .addRecipient(script, BigInt.from(amountSat)) .feeRate(feeRate.satPerVb) - .finish(aliceWallet); - final isFinalized = await aliceWallet.sign(psbt: psbt); + .finish(wallet); + final isFinalized = await wallet.sign(psbt: psbt); if (isFinalized) { final tx = psbt.extractTx(); final res = await blockchain.broadcast(transaction: tx); From e73a1b286367c13aad00ed87f0efaea8bea8e24f Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 16 Jul 2024 12:33:00 -0400 Subject: [PATCH 27/35] renamed aliceWallet to wallet --- example/lib/simple_wallet.dart | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/example/lib/simple_wallet.dart b/example/lib/simple_wallet.dart index 9ea0d9e3..ae942ff4 100644 --- a/example/lib/simple_wallet.dart +++ b/example/lib/simple_wallet.dart @@ -14,7 +14,7 @@ class SimpleWallet extends StatefulWidget { class _SimpleWalletState extends State { String displayText = ""; BigInt balance = BigInt.zero; - late Wallet aliceWallet; + late Wallet wallet; Blockchain? blockchain; BdkLibrary lib = BdkLibrary(); @override @@ -37,7 +37,7 @@ class _SimpleWalletState extends State { final aliceMnemonic = await Mnemonic.fromString( 'give rate trigger race embrace dream wish column upon steel wrist rice'); final aliceDescriptor = await lib.createDescriptor(aliceMnemonic); - aliceWallet = await lib.restoreWallet(aliceDescriptor); + wallet = await lib.restoreWallet(aliceDescriptor); setState(() { displayText = "Wallets restored"; }); @@ -45,20 +45,21 @@ class _SimpleWalletState extends State { sync() async { blockchain ??= await lib.initializeBlockchain(); - await lib.sync(blockchain!, aliceWallet); + await lib.sync(blockchain!, wallet); } getNewAddress() async { - final res = (await lib.getAddress(aliceWallet)).address.toString(); - debugPrint(res); + final addressInfo = lib.getAddressInfo(wallet); + debugPrint(addressInfo.address.toString()); setState(() { - displayText = "Address: $res"; + displayText = + "Address: ${addressInfo.address.toString()} \n Index: ${addressInfo.index}"; }); } getUnConfirmedTransactions() async { - final unConfirmed = await lib.getUnConfirmedTransactions(aliceWallet); + final unConfirmed = lib.getUnConfirmedTransactions(wallet); setState(() { displayText = "You have ${unConfirmed.length} unConfirmed transactions"; }); @@ -76,7 +77,7 @@ class _SimpleWalletState extends State { } getConfirmedTransactions() async { - final confirmed = await lib.getConfirmedTransactions(aliceWallet); + final confirmed = lib.getConfirmedTransactions(wallet); setState(() { displayText = "You have ${confirmed.length} confirmed transactions"; }); @@ -104,7 +105,7 @@ class _SimpleWalletState extends State { } getBalance() async { - final alice = await lib.getBalance(aliceWallet); + final alice = await lib.getBalance(wallet); setState(() { balance = alice.total; displayText = @@ -113,7 +114,7 @@ class _SimpleWalletState extends State { } listUnspent() async { - final res = await lib.listUnspend(aliceWallet); + final res = lib.listUnspend(wallet); for (var e in res) { setState(() { displayText = @@ -152,9 +153,9 @@ class _SimpleWalletState extends State { } } - sendBit() async { - await lib.sendBitcoin( - blockchain!, aliceWallet, "tb1qyhssajdx5vfxuatt082m9tsfmxrxludgqwe52f"); + sendBit(int amountSat) async { + await lib.sendBitcoin(blockchain!, wallet, + "tb1qyhssajdx5vfxuatt082m9tsfmxrxludgqwe52f", amountSat); } @override @@ -286,7 +287,7 @@ class _SimpleWalletState extends State { fontWeight: FontWeight.w800), )), TextButton( - onPressed: () => sendBit(), + onPressed: () => sendBit(100000), child: const Text( 'Press to send 1200 satoshi', style: TextStyle( From 1ffffed63273975833618796086a35921b2a883c Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 16 Jul 2024 12:33:00 -0400 Subject: [PATCH 28/35] fixed the typo --- example/lib/bdk_library.dart | 2 +- example/lib/simple_wallet.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/lib/bdk_library.dart b/example/lib/bdk_library.dart index e34d26b6..db4ecce9 100644 --- a/example/lib/bdk_library.dart +++ b/example/lib/bdk_library.dart @@ -79,7 +79,7 @@ class BdkLibrary { return wallet.getBalance(); } - List listUnspend(Wallet wallet) { + List listUnspent(Wallet wallet) { return wallet.listUnspent(); } diff --git a/example/lib/simple_wallet.dart b/example/lib/simple_wallet.dart index ae942ff4..c0af426e 100644 --- a/example/lib/simple_wallet.dart +++ b/example/lib/simple_wallet.dart @@ -114,7 +114,7 @@ class _SimpleWalletState extends State { } listUnspent() async { - final res = lib.listUnspend(wallet); + final res = lib.listUnspent(wallet); for (var e in res) { setState(() { displayText = From 142617376534fba028000550e1c0bd672699f235 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 17 Jul 2024 12:35:00 -0400 Subject: [PATCH 29/35] branches updated in precompile_binaries.yml --- .github/workflows/precompile_binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/precompile_binaries.yml b/.github/workflows/precompile_binaries.yml index f3e803a9..0f6bca95 100644 --- a/.github/workflows/precompile_binaries.yml +++ b/.github/workflows/precompile_binaries.yml @@ -1,6 +1,6 @@ on: push: - branches: [v0.31.2-dev.2, master, main] + branches: [0.31.2, master, main] name: Precompile Binaries From 43dd50e642db3a949281fe6ada244c94929f3239 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 17 Jul 2024 12:46:00 -0400 Subject: [PATCH 30/35] CHANGELOG.md updated --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4419bb5d..c2f08588 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ ## [0.31.2] +Updated `flutter_rust_bridge` to `2.0.0`. +#### APIs added +- Exposed `createTestnet` & `createMutinynet` to `Blockchain`. +- Overrode `toString()` for `Address`, `DerivationPath`, `Descriptor`, `DescriptorPublicKey` , `DescriptorSecretKey`, `Mnemonic`, +- `PartiallySignedTransaction`, `ScriptBuf` & `Transaction`. +#### Changed +- `partiallySignedTransaction.serialize()` serialize the data as raw binary. ## [0.31.2-dev.2] #### Fixed From bb53177dba9e8c242d5d702dd0702c7bec6a8155 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 19 Jul 2024 12:51:00 -0400 Subject: [PATCH 31/35] code cleanup --- example/lib/multi_sig_wallet.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/example/lib/multi_sig_wallet.dart b/example/lib/multi_sig_wallet.dart index 57aa28a2..44f78346 100644 --- a/example/lib/multi_sig_wallet.dart +++ b/example/lib/multi_sig_wallet.dart @@ -54,19 +54,19 @@ class MultiSigWallet { return [alice, bob, dave]; } - sendBitcoin(Blockchain blockchain, Wallet aliceWallet, Wallet bobWallet, + sendBitcoin(Blockchain blockchain, Wallet wallet, Wallet bobWallet, String addressStr) async { try { final txBuilder = TxBuilder(); - final address = await Address.fromString( - s: addressStr, network: (await aliceWallet.network())); - final script = await address.scriptPubkey(); + final address = + await Address.fromString(s: addressStr, network: wallet.network()); + final script = address.scriptPubkey(); final feeRate = await blockchain.estimateFee(target: BigInt.from(25)); final (psbt, _) = await txBuilder .addRecipient(script, BigInt.from(1200)) .feeRate(feeRate.satPerVb) - .finish(aliceWallet); - await aliceWallet.sign( + .finish(wallet); + await wallet.sign( psbt: psbt, signOptions: const SignOptions( trustWitnessUtxo: false, @@ -77,7 +77,7 @@ class MultiSigWallet { allowGrinding: true)); final isFinalized = await bobWallet.sign(psbt: psbt); if (isFinalized) { - final tx = await psbt.extractTx(); + final tx = psbt.extractTx(); await blockchain.broadcast(transaction: tx); } else { debugPrint("Psbt not finalized!"); From bff118547bc3796bf33a21a3c5730f63903b5129 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 19 Jul 2024 13:51:00 -0400 Subject: [PATCH 32/35] resolved flutter analyze error --- lib/bdk_flutter.dart | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/lib/bdk_flutter.dart b/lib/bdk_flutter.dart index 45ef85e5..48f3898f 100644 --- a/lib/bdk_flutter.dart +++ b/lib/bdk_flutter.dart @@ -6,31 +6,20 @@ export './src/generated/api/blockchain.dart' BdkBlockchain, BlockchainConfig_Electrum, BlockchainConfig_Esplora, - AnyBlockchain, Auth_Cookie, Auth_UserPass, Auth_None, BlockchainConfig_Rpc; -export './src/generated/api/descriptor.dart' - hide - BdkDescriptor, - ExtendedDescriptor, - KeysDescriptorSecretKey, - KeysDescriptorPublicKey, - KeysKeyMap; +export './src/generated/api/descriptor.dart' hide BdkDescriptor; export './src/generated/api/key.dart' hide BdkDerivationPath, BdkDescriptorPublicKey, BdkDescriptorSecretKey, - BitcoinBip32DerivationPath, - KeysBip39Mnemonic, BdkMnemonic; -export './src/generated/api/psbt.dart' - hide MutexPartiallySignedTransaction, BdkPsbt; +export './src/generated/api/psbt.dart' hide BdkPsbt; export './src/generated/api/types.dart' hide - BdkBitcoinAddress, BdkScriptBuf, BdkTransaction, AddressIndex_Reset, @@ -49,10 +38,6 @@ export './src/generated/api/types.dart' RbfValue_Value, DatabaseConfig_Sqlite; export './src/generated/api/wallet.dart' - hide - MutexBdkWalletAnyDatabase, - BdkWallet, - finishBumpFeeTxBuilder, - txBuilderFinish; + hide BdkWallet, finishBumpFeeTxBuilder, txBuilderFinish; export './src/root.dart'; export 'src/utils/exceptions.dart' hide mapBdkError, BdkFfiException; From d9964af4d9052fa947b1532298fc57dc6b281241 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 19 Jul 2024 14:01:00 -0400 Subject: [PATCH 33/35] flutter_rust_bridge constraint warning resolved --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index ce7a8a43..aab02e5f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - flutter_rust_bridge: "2.0.0" + flutter_rust_bridge: ">2.0.0-dev.41 <= 2.0.0" ffi: ^2.0.1 freezed_annotation: ^2.2.0 mockito: ^5.4.0 From 04ca19d97d13a40818c4e5313d67634a8143e32f Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 19 Jul 2024 14:14:49 -0400 Subject: [PATCH 34/35] merge conflicts --- rust/cargokit.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/cargokit.yaml b/rust/cargokit.yaml index 4657395e..8a0e909e 100644 --- a/rust/cargokit.yaml +++ b/rust/cargokit.yaml @@ -3,4 +3,4 @@ cargo: toolchain: stable precompiled_binaries: url_prefix: https://github.com/LtbLightning/bdk-flutter/releases/download/precompiled_ - public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b \ No newline at end of file + public_key: b8771896f9326bba8c9b1170094a205776d675d6464e9938d3e71e43ac47e73e \ No newline at end of file From a3713523df629f4cd06b52dec21d04d6ef221c37 Mon Sep 17 00:00:00 2001 From: Bitcoin Zavior <93057399+BitcoinZavior@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:29:20 -0400 Subject: [PATCH 35/35] Update cargokit.yaml --- rust/cargokit.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/cargokit.yaml b/rust/cargokit.yaml index 8a0e909e..6056237a 100644 --- a/rust/cargokit.yaml +++ b/rust/cargokit.yaml @@ -3,4 +3,5 @@ cargo: toolchain: stable precompiled_binaries: url_prefix: https://github.com/LtbLightning/bdk-flutter/releases/download/precompiled_ - public_key: b8771896f9326bba8c9b1170094a205776d675d6464e9938d3e71e43ac47e73e \ No newline at end of file + public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b +