diff --git a/.github/workflows/precompile_binaries.yml b/.github/workflows/precompile_binaries.yml index eb6e1d05..572a15a5 100644 --- a/.github/workflows/precompile_binaries.yml +++ b/.github/workflows/precompile_binaries.yml @@ -1,6 +1,6 @@ on: push: - branches: [v0.31.1-dev, master, main] + branches: [v0.31.2-dev, master, main] name: Precompile Binaries @@ -45,4 +45,4 @@ jobs: working-directory: cargokit/build_tool env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} - PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }} + PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dc23153..67db0054 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.31.2-dev] +Updated Rust and Flutter dependencies. +#### APIs added +- Add `InvalidInputException`, `InvalidLockTimeException` & `InvalidTransactionException` . +#### Fixed +- Thread `frb_workerpool` panic on `UnknownUtxo` and `InvalidPsbtInput`. + ## [0.31.1-dev] #### Fixed - Failed to load `.so` files in android. diff --git a/README.md b/README.md index d8c9e5c5..6aa8574d 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.1-dev + bdk_flutter: ^0.31.2-dev ``` ### Examples @@ -186,7 +186,5 @@ The latest API documentation is available [here](https://pub.dev/documentation/b - Setting up a local Esplora instance for testing: https://bitcoin.stackexchange.com/questions/116937/how-do-i-setup-an-esplora-instance-for-local-testing/116938#116938 -_Note: This Flutter plugin is currently in its development (dev) stage and has been released for community review and experimentation. -We warmly welcome feedback, bug reports, and contributions from developers and enthusiasts alike ⚡️_ Thanks for taking a look! diff --git a/cargokit/build_pod.sh b/cargokit/build_pod.sh index 379b9c6d..ed0e0d98 100755 --- a/cargokit/build_pod.sh +++ b/cargokit/build_pod.sh @@ -49,7 +49,7 @@ do fi done -"$BASEDIR/run_build_tool.sh" build-pod "$@" +sh "$BASEDIR/run_build_tool.sh" build-pod "$@" # Make a symlink from built framework to phony file, which will be used as input to # build script. This should force rebuild (podspec currently doesn't support alwaysOutOfDate diff --git a/cargokit/build_tool/lib/src/options.dart b/cargokit/build_tool/lib/src/options.dart index 7937dcac..b2c0f7a8 100644 --- a/cargokit/build_tool/lib/src/options.dart +++ b/cargokit/build_tool/lib/src/options.dart @@ -298,7 +298,10 @@ class CargokitUserOptions { } userProjectDir = userProjectDir.parent; } - return CargokitUserOptions._(); + return CargokitUserOptions( + usePrecompiledBinaries: true, + verboseLogging: false, + ); } final bool usePrecompiledBinaries; diff --git a/cargokit/cmake/cargokit.cmake b/cargokit/cmake/cargokit.cmake index 88326005..ddd05df9 100644 --- a/cargokit/cmake/cargokit.cmake +++ b/cargokit/cmake/cargokit.cmake @@ -50,6 +50,7 @@ function(apply_cargokit target manifest_dir lib_name any_symbol_name) else() set(SCRIPT_EXTENSION ".sh") set(IMPORT_LIB_EXTENSION "") + execute_process(COMMAND chmod +x "${cargokit_cmake_root}/run_build_tool${SCRIPT_EXTENSION}") endif() # Using generators in custom command is only supported in CMake 3.20+ @@ -75,6 +76,7 @@ function(apply_cargokit target manifest_dir lib_name any_symbol_name) ) endif() + set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/_phony_" PROPERTIES SYMBOLIC TRUE) if (TARGET ${target}) @@ -94,4 +96,4 @@ function(apply_cargokit target manifest_dir lib_name any_symbol_name) # Allow adding the output library to plugin bundled libraries set("${target}_cargokit_lib" ${OUTPUT_LIB} PARENT_SCOPE) -endfunction() \ No newline at end of file +endfunction() diff --git a/cargokit/gradle/plugin.gradle b/cargokit/gradle/plugin.gradle index a9a6ec7a..12c49f11 100644 --- a/cargokit/gradle/plugin.gradle +++ b/cargokit/gradle/plugin.gradle @@ -55,7 +55,13 @@ abstract class CargoKitBuildTask extends DefaultTask { def manifestDir = Paths.get(project.buildscript.sourceFile.parent, project.cargokit.manifestDir) def rootProjectDir = project.rootProject.projectDir - + + if (!Os.isFamily(Os.FAMILY_WINDOWS)) { + project.exec { + commandLine 'chmod', '+x', path + } + } + project.exec { executable path args "build-gradle" diff --git a/cargokit_options.yaml b/cargokit_options.yaml deleted file mode 100644 index 01f175a0..00000000 --- a/cargokit_options.yaml +++ /dev/null @@ -1,2 +0,0 @@ -verbose_logging: false -use_precompiled_binaries: true \ No newline at end of file diff --git a/example/lib/simple_wallet.dart b/example/lib/simple_wallet.dart index cbde86d0..02f1d0fd 100644 --- a/example/lib/simple_wallet.dart +++ b/example/lib/simple_wallet.dart @@ -55,10 +55,11 @@ class _SimpleWalletState extends State { } getNewAddress() async { - final res = await lib.getAddress(aliceWallet); - debugPrint(res.address); - setState(() { - displayText = "Address: ${res.address} \n Index: ${res.index}"; + final res = (await lib.getAddress(aliceWallet)); + debugPrint(await res.address.asString()); + setState(() async { + displayText = + "Address: ${await res.address.asString()} \n Index: ${res.index}"; }); } diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index 4f1e82f9..bf8febe7 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - bdk_flutter (0.31.1-dev): + - bdk_flutter (0.31.2-dev): - FlutterMacOS - FlutterMacOS (1.0.0) @@ -14,7 +14,7 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral SPEC CHECKSUMS: - bdk_flutter: 22cd6fbac0aed9857319da174d227539ddfc5f4c + bdk_flutter: 8280f582b6b9b49deb843763027d4864b231c1d2 FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 PODFILE CHECKSUM: 6acf97521436d16fc31cd5e1a02000905acdb3ae diff --git a/example/pubspec.lock b/example/pubspec.lock index 617a7a6d..f11ebe3f 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -39,7 +39,7 @@ packages: path: ".." relative: true source: path - version: "0.31.1-dev" + version: "0.31.2-dev" boolean_selector: dependency: transitive description: @@ -193,10 +193,10 @@ packages: dependency: transitive description: name: flutter_rust_bridge - sha256: c51fa002e57e64d13030269ed9cd43752173ee4c6f60ec1e9c41450d63c75bae + sha256: e9a8716b1ad2fc81c434f3e4bf84b86c578578678c57e568b44aea7acf210102 url: "https://pub.dev" source: hosted - version: "2.0.0-dev.28" + version: "2.0.0-dev.31" flutter_test: dependency: "direct dev" description: flutter diff --git a/flutter_rust_bridge.yaml b/flutter_rust_bridge.yaml index af538cd3..b7fadedc 100644 --- a/flutter_rust_bridge.yaml +++ b/flutter_rust_bridge.yaml @@ -3,4 +3,4 @@ dart_output: lib/src/generated/ full_dep: true c_output: ios/Classes/frb_generated.h duplicated_c_output: [macos/Classes/frb_generated.h] -dart_entrypoint_class_name: BdkCore \ No newline at end of file +dart_entrypoint_class_name: CApi \ No newline at end of file diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h index f8bc1d42..c79716cb 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -14,18 +14,18 @@ void store_dart_post_cobject(DartPostCObjectFnType ptr); // EXTRA END typedef struct _Dart_Handle* Dart_Handle; -typedef struct wire_cst_blockchain_base { +typedef struct wire_cst_bdk_blockchain { uintptr_t ptr; -} wire_cst_blockchain_base; +} wire_cst_bdk_blockchain; typedef struct wire_cst_list_prim_u_8_strict { uint8_t *ptr; int32_t len; } wire_cst_list_prim_u_8_strict; -typedef struct wire_cst_transaction_base { +typedef struct wire_cst_bdk_transaction { struct wire_cst_list_prim_u_8_strict *inner; -} wire_cst_transaction_base; +} wire_cst_bdk_transaction; typedef struct wire_cst_electrum_config { struct wire_cst_list_prim_u_8_strict *url; @@ -101,47 +101,97 @@ typedef struct wire_cst_blockchain_config { union BlockchainConfigKind kind; } wire_cst_blockchain_config; -typedef struct wire_cst_descriptor_base { +typedef struct wire_cst_bdk_descriptor { uintptr_t extended_descriptor; uintptr_t key_map; -} wire_cst_descriptor_base; +} wire_cst_bdk_descriptor; -typedef struct wire_cst_descriptor_secret_key_base { +typedef struct wire_cst_bdk_descriptor_secret_key { uintptr_t ptr; -} wire_cst_descriptor_secret_key_base; +} wire_cst_bdk_descriptor_secret_key; -typedef struct wire_cst_descriptor_public_key_base { +typedef struct wire_cst_bdk_descriptor_public_key { uintptr_t ptr; -} wire_cst_descriptor_public_key_base; +} wire_cst_bdk_descriptor_public_key; -typedef struct wire_cst_derivation_path_base { +typedef struct wire_cst_bdk_derivation_path { uintptr_t ptr; -} wire_cst_derivation_path_base; +} wire_cst_bdk_derivation_path; -typedef struct wire_cst_mnemonic_base { +typedef struct wire_cst_bdk_mnemonic { uintptr_t ptr; -} wire_cst_mnemonic_base; +} wire_cst_bdk_mnemonic; typedef struct wire_cst_list_prim_u_8_loose { uint8_t *ptr; int32_t len; } wire_cst_list_prim_u_8_loose; -typedef struct wire_cst_psbt_base { +typedef struct wire_cst_bdk_psbt { uintptr_t ptr; -} wire_cst_psbt_base; +} wire_cst_bdk_psbt; -typedef struct wire_cst_address_base { +typedef struct wire_cst_bdk_address { uintptr_t ptr; -} wire_cst_address_base; +} wire_cst_bdk_address; -typedef struct wire_cst_script_buf_base { +typedef struct wire_cst_bdk_script_buf { struct wire_cst_list_prim_u_8_strict *bytes; -} wire_cst_script_buf_base; +} wire_cst_bdk_script_buf; -typedef struct wire_cst_wallet_base { +typedef struct wire_cst_LockTime_Blocks { + uint32_t field0; +} wire_cst_LockTime_Blocks; + +typedef struct wire_cst_LockTime_Seconds { + uint32_t field0; +} wire_cst_LockTime_Seconds; + +typedef union LockTimeKind { + struct wire_cst_LockTime_Blocks Blocks; + struct wire_cst_LockTime_Seconds Seconds; +} LockTimeKind; + +typedef struct wire_cst_lock_time { + int32_t tag; + union LockTimeKind kind; +} wire_cst_lock_time; + +typedef struct wire_cst_out_point { + struct wire_cst_list_prim_u_8_strict *txid; + uint32_t vout; +} wire_cst_out_point; + +typedef struct wire_cst_list_list_prim_u_8_strict { + struct wire_cst_list_prim_u_8_strict **ptr; + int32_t len; +} wire_cst_list_list_prim_u_8_strict; + +typedef struct wire_cst_tx_in { + struct wire_cst_out_point previous_output; + struct wire_cst_bdk_script_buf script_sig; + uint32_t sequence; + struct wire_cst_list_list_prim_u_8_strict *witness; +} wire_cst_tx_in; + +typedef struct wire_cst_list_tx_in { + struct wire_cst_tx_in *ptr; + int32_t len; +} wire_cst_list_tx_in; + +typedef struct wire_cst_tx_out { + uint64_t value; + struct wire_cst_bdk_script_buf script_pubkey; +} wire_cst_tx_out; + +typedef struct wire_cst_list_tx_out { + struct wire_cst_tx_out *ptr; + int32_t len; +} wire_cst_list_tx_out; + +typedef struct wire_cst_bdk_wallet { uintptr_t ptr; -} wire_cst_wallet_base; +} wire_cst_bdk_wallet; typedef struct wire_cst_AddressIndex_Peek { uint32_t index; @@ -161,16 +211,6 @@ typedef struct wire_cst_address_index { union AddressIndexKind kind; } wire_cst_address_index; -typedef struct wire_cst_out_point { - struct wire_cst_list_prim_u_8_strict *txid; - uint32_t vout; -} wire_cst_out_point; - -typedef struct wire_cst_tx_out { - uint64_t value; - struct wire_cst_script_buf_base script_pubkey; -} wire_cst_tx_out; - typedef struct wire_cst_local_utxo { struct wire_cst_out_point outpoint; struct wire_cst_tx_out txout; @@ -221,7 +261,7 @@ typedef struct wire_cst_sign_options { } wire_cst_sign_options; typedef struct wire_cst_script_amount { - struct wire_cst_script_buf_base script; + struct wire_cst_bdk_script_buf script; uint64_t amount; } wire_cst_script_amount; @@ -430,18 +470,13 @@ typedef struct wire_cst_hex_error { union HexErrorKind kind; } wire_cst_hex_error; -typedef struct wire_cst_list_list_prim_u_8_strict { - struct wire_cst_list_prim_u_8_strict **ptr; - int32_t len; -} wire_cst_list_list_prim_u_8_strict; - typedef struct wire_cst_list_local_utxo { struct wire_cst_local_utxo *ptr; int32_t len; } wire_cst_list_local_utxo; typedef struct wire_cst_transaction_details { - struct wire_cst_transaction_base *transaction; + struct wire_cst_bdk_transaction *transaction; struct wire_cst_list_prim_u_8_strict *txid; uint64_t received; uint64_t sent; @@ -454,28 +489,6 @@ typedef struct wire_cst_list_transaction_details { int32_t len; } wire_cst_list_transaction_details; -typedef struct wire_cst_tx_in { - struct wire_cst_out_point previous_output; - struct wire_cst_script_buf_base script_sig; - uint32_t sequence; - struct wire_cst_list_list_prim_u_8_strict *witness; -} wire_cst_tx_in; - -typedef struct wire_cst_list_tx_in { - struct wire_cst_tx_in *ptr; - int32_t len; -} wire_cst_list_tx_in; - -typedef struct wire_cst_list_tx_out { - struct wire_cst_tx_out *ptr; - int32_t len; -} wire_cst_list_tx_out; - -typedef struct wire_cst_address_info { - uint32_t index; - struct wire_cst_list_prim_u_8_strict *address; -} wire_cst_address_info; - typedef struct wire_cst_balance { uint64_t immature; uint64_t trusted_pending; @@ -616,6 +629,18 @@ typedef struct wire_cst_BdkError_Rusqlite { struct wire_cst_list_prim_u_8_strict *field0; } wire_cst_BdkError_Rusqlite; +typedef struct wire_cst_BdkError_InvalidInput { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_BdkError_InvalidInput; + +typedef struct wire_cst_BdkError_InvalidLockTime { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_BdkError_InvalidLockTime; + +typedef struct wire_cst_BdkError_InvalidTransaction { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_BdkError_InvalidTransaction; + typedef union BdkErrorKind { struct wire_cst_BdkError_Hex Hex; struct wire_cst_BdkError_Consensus Consensus; @@ -649,6 +674,9 @@ typedef union BdkErrorKind { struct wire_cst_BdkError_Sled Sled; struct wire_cst_BdkError_Rpc Rpc; struct wire_cst_BdkError_Rusqlite Rusqlite; + struct wire_cst_BdkError_InvalidInput InvalidInput; + struct wire_cst_BdkError_InvalidLockTime InvalidLockTime; + struct wire_cst_BdkError_InvalidTransaction InvalidTransaction; } BdkErrorKind; typedef struct wire_cst_bdk_error { @@ -680,288 +708,298 @@ typedef struct wire_cst_payload { union PayloadKind kind; } wire_cst_payload; -typedef struct wire_cst_record_psbt_base_transaction_details { - struct wire_cst_psbt_base field0; +typedef struct wire_cst_record_bdk_address_u_32 { + struct wire_cst_bdk_address field0; + uint32_t field1; +} wire_cst_record_bdk_address_u_32; + +typedef struct wire_cst_record_bdk_psbt_transaction_details { + struct wire_cst_bdk_psbt field0; struct wire_cst_transaction_details field1; -} wire_cst_record_psbt_base_transaction_details; +} wire_cst_record_bdk_psbt_transaction_details; -void frbgen_bdk_flutter_wire_BlockchainBase_broadcast(int64_t port_, - struct wire_cst_blockchain_base *that, - struct wire_cst_transaction_base *transaction); +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_BlockchainBase_estimate_fee(int64_t port_, - struct wire_cst_blockchain_base *that, +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_BlockchainBase_get_block_hash(int64_t port_, - struct wire_cst_blockchain_base *that, +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_BlockchainBase_get_height(int64_t port_, - struct wire_cst_blockchain_base *that); +void frbgen_bdk_flutter_wire_bdk_blockchain_get_height(int64_t port_, + struct wire_cst_bdk_blockchain *that); -void frbgen_bdk_flutter_wire_BlockchainBase_new(int64_t port_, +void frbgen_bdk_flutter_wire_bdk_blockchain_new(int64_t port_, struct wire_cst_blockchain_config *blockchain_config); -void frbgen_bdk_flutter_wire_DescriptorBase_as_string(int64_t port_, - struct wire_cst_descriptor_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_as_string(int64_t port_, + struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_DescriptorBase_as_string_private(int64_t port_, - struct wire_cst_descriptor_base *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_DescriptorBase_max_satisfaction_weight(int64_t port_, - struct wire_cst_descriptor_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight(int64_t port_, + struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_DescriptorBase_new(int64_t port_, +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_DescriptorBase_new_bip44(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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_DescriptorBase_new_bip44_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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_DescriptorBase_new_bip49(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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_DescriptorBase_new_bip49_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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_DescriptorBase_new_bip84(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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_DescriptorBase_new_bip84_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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_DescriptorBase_new_bip86(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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); -void frbgen_bdk_flutter_wire_DescriptorBase_new_bip86_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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); -void frbgen_bdk_flutter_wire_DerivationPathBase_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *path); +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_DescriptorPublicKeyBase_as_string(int64_t port_, - struct wire_cst_descriptor_public_key_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *that); -void frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_derive(int64_t port_, - struct wire_cst_descriptor_public_key_base *ptr, - struct wire_cst_derivation_path_base *path); +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_DescriptorPublicKeyBase_extend(int64_t port_, - struct wire_cst_descriptor_public_key_base *ptr, - struct wire_cst_derivation_path_base *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_DescriptorPublicKeyBase_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *public_key); +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_DescriptorSecretKeyBase_as_public(int64_t port_, - struct wire_cst_descriptor_secret_key_base *ptr); +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_DescriptorSecretKeyBase_as_string(int64_t port_, - struct wire_cst_descriptor_secret_key_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_create(int64_t port_, - int32_t network, - struct wire_cst_mnemonic_base *mnemonic, - struct wire_cst_list_prim_u_8_strict *password); +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_DescriptorSecretKeyBase_derive(int64_t port_, - struct wire_cst_descriptor_secret_key_base *ptr, - struct wire_cst_derivation_path_base *path); +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_DescriptorSecretKeyBase_extend(int64_t port_, - struct wire_cst_descriptor_secret_key_base *ptr, - struct wire_cst_derivation_path_base *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_DescriptorSecretKeyBase_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *secret_key); +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_DescriptorSecretKeyBase_secret_bytes(int64_t port_, - struct wire_cst_descriptor_secret_key_base *that); +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_MnemonicBase_as_string(int64_t port_, - struct wire_cst_mnemonic_base *that); +void frbgen_bdk_flutter_wire_bdk_mnemonic_as_string(int64_t port_, + struct wire_cst_bdk_mnemonic *that); -void frbgen_bdk_flutter_wire_MnemonicBase_from_entropy(int64_t port_, +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_MnemonicBase_from_string(int64_t port_, +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_MnemonicBase_new(int64_t port_, int32_t word_count); +void frbgen_bdk_flutter_wire_bdk_mnemonic_new(int64_t port_, int32_t word_count); -void frbgen_bdk_flutter_wire_PsbtBase_combine(int64_t port_, - struct wire_cst_psbt_base *ptr, - struct wire_cst_psbt_base *other); +void frbgen_bdk_flutter_wire_bdk_psbt_combine(int64_t port_, + struct wire_cst_bdk_psbt *ptr, + struct wire_cst_bdk_psbt *other); -void frbgen_bdk_flutter_wire_PsbtBase_extract_tx(int64_t port_, struct wire_cst_psbt_base *ptr); +void frbgen_bdk_flutter_wire_bdk_psbt_extract_tx(int64_t port_, struct wire_cst_bdk_psbt *ptr); -void frbgen_bdk_flutter_wire_PsbtBase_fee_amount(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_fee_amount(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_fee_rate(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_fee_rate(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_from_str(int64_t port_, +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_PsbtBase_json_serialize(int64_t port_, - struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_json_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_serialize(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_txid(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_txid(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_AddressBase_as_string(int64_t port_, - struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_address_as_string(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_AddressBase_from_script(int64_t port_, - struct wire_cst_script_buf_base *script, +void frbgen_bdk_flutter_wire_bdk_address_from_script(int64_t port_, + struct wire_cst_bdk_script_buf *script, int32_t network); -void frbgen_bdk_flutter_wire_AddressBase_from_string(int64_t port_, +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_AddressBase_is_valid_for_network(int64_t port_, - struct wire_cst_address_base *that, +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_AddressBase_network(int64_t port_, struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_address_network(int64_t port_, struct wire_cst_bdk_address *that); + +void frbgen_bdk_flutter_wire_bdk_address_payload(int64_t port_, struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_AddressBase_payload(int64_t port_, struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_address_script(int64_t port_, struct wire_cst_bdk_address *ptr); -void frbgen_bdk_flutter_wire_AddressBase_script(int64_t port_, struct wire_cst_address_base *ptr); +void frbgen_bdk_flutter_wire_bdk_address_to_qr_uri(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_AddressBase_to_qr_uri(int64_t port_, - struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_script_buf_empty(int64_t port_); -void frbgen_bdk_flutter_wire_ScriptBufBase_empty(int64_t port_); +void frbgen_bdk_flutter_wire_bdk_script_buf_from_hex(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_bdk_flutter_wire_ScriptBufBase_from_hex(int64_t port_, - struct wire_cst_list_prim_u_8_strict *s); +void frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity(int64_t port_, uintptr_t capacity); -void frbgen_bdk_flutter_wire_ScriptBufBase_with_capacity(int64_t port_, uintptr_t capacity); +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_TransactionBase_input(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_input(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_is_coin_base(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_is_explicitly_rbf(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_is_lock_time_enabled(int64_t port_, - struct wire_cst_transaction_base *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_TransactionBase_lock_time(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_lock_time(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_new(int64_t port_, - struct wire_cst_list_prim_u_8_loose *transaction_bytes); +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_TransactionBase_output(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_output(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_serialize(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_serialize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_size(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_size(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_txid(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_txid(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_version(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_version(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_vsize(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_vsize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_weight(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_weight(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_WalletBase_get_address(int64_t port_, - struct wire_cst_wallet_base *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_WalletBase_get_balance(int64_t port_, - struct wire_cst_wallet_base *that); +void frbgen_bdk_flutter_wire_bdk_wallet_get_balance(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_WalletBase_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_wallet_base *ptr, +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_WalletBase_get_internal_address(int64_t port_, - struct wire_cst_wallet_base *that, +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_WalletBase_get_psbt_input(int64_t port_, - struct wire_cst_wallet_base *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_WalletBase_is_mine(int64_t port_, - struct wire_cst_wallet_base *that, - struct wire_cst_script_buf_base *script); +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_WalletBase_list_transactions(int64_t port_, - struct wire_cst_wallet_base *that, +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_WalletBase_list_unspent(int64_t port_, - struct wire_cst_wallet_base *that); +void frbgen_bdk_flutter_wire_bdk_wallet_list_unspent(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_WalletBase_network(int64_t port_, struct wire_cst_wallet_base *that); +void frbgen_bdk_flutter_wire_bdk_wallet_network(int64_t port_, struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_WalletBase_new(int64_t port_, - struct wire_cst_descriptor_base *descriptor, - struct wire_cst_descriptor_base *change_descriptor, +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_WalletBase_sign(int64_t port_, - struct wire_cst_wallet_base *ptr, - struct wire_cst_psbt_base *psbt, +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_WalletBase_sync(int64_t port_, - struct wire_cst_wallet_base *ptr, - struct wire_cst_blockchain_base *blockchain); +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_finish_bump_fee_tx_builder(int64_t port_, struct wire_cst_list_prim_u_8_strict *txid, float fee_rate, - struct wire_cst_address_base *allow_shrinking, - struct wire_cst_wallet_base *wallet, + 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_tx_builder_finish(int64_t port_, - struct wire_cst_wallet_base *wallet, + 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, @@ -971,7 +1009,7 @@ void frbgen_bdk_flutter_wire_tx_builder_finish(int64_t port_, float *fee_rate, uint64_t *fee_absolute, bool drain_wallet, - struct wire_cst_script_buf_base *drain_to, + struct wire_cst_bdk_script_buf *drain_to, struct wire_cst_rbf_value *rbf, struct wire_cst_list_prim_u_8_loose *data); @@ -1015,31 +1053,41 @@ void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnem void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); -struct wire_cst_address_base *frbgen_bdk_flutter_cst_new_box_autoadd_address_base(void); - struct wire_cst_address_error *frbgen_bdk_flutter_cst_new_box_autoadd_address_error(void); struct wire_cst_address_index *frbgen_bdk_flutter_cst_new_box_autoadd_address_index(void); -struct wire_cst_block_time *frbgen_bdk_flutter_cst_new_box_autoadd_block_time(void); +struct wire_cst_bdk_address *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_address(void); -struct wire_cst_blockchain_base *frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_base(void); +struct wire_cst_bdk_blockchain *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_blockchain(void); -struct wire_cst_blockchain_config *frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config(void); +struct wire_cst_bdk_derivation_path *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_derivation_path(void); -struct wire_cst_consensus_error *frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error(void); +struct wire_cst_bdk_descriptor *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor(void); -struct wire_cst_database_config *frbgen_bdk_flutter_cst_new_box_autoadd_database_config(void); +struct wire_cst_bdk_descriptor_public_key *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_public_key(void); -struct wire_cst_derivation_path_base *frbgen_bdk_flutter_cst_new_box_autoadd_derivation_path_base(void); +struct wire_cst_bdk_descriptor_secret_key *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_secret_key(void); -struct wire_cst_descriptor_base *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_base(void); +struct wire_cst_bdk_mnemonic *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_mnemonic(void); -struct wire_cst_descriptor_error *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error(void); +struct wire_cst_bdk_psbt *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_psbt(void); + +struct wire_cst_bdk_script_buf *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_script_buf(void); + +struct wire_cst_bdk_transaction *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_transaction(void); + +struct wire_cst_bdk_wallet *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_wallet(void); -struct wire_cst_descriptor_public_key_base *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_public_key_base(void); +struct wire_cst_block_time *frbgen_bdk_flutter_cst_new_box_autoadd_block_time(void); + +struct wire_cst_blockchain_config *frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config(void); + +struct wire_cst_consensus_error *frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error(void); + +struct wire_cst_database_config *frbgen_bdk_flutter_cst_new_box_autoadd_database_config(void); -struct wire_cst_descriptor_secret_key_base *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_secret_key_base(void); +struct wire_cst_descriptor_error *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error(void); struct wire_cst_electrum_config *frbgen_bdk_flutter_cst_new_box_autoadd_electrum_config(void); @@ -1053,12 +1101,10 @@ struct wire_cst_hex_error *frbgen_bdk_flutter_cst_new_box_autoadd_hex_error(void struct wire_cst_local_utxo *frbgen_bdk_flutter_cst_new_box_autoadd_local_utxo(void); -struct wire_cst_mnemonic_base *frbgen_bdk_flutter_cst_new_box_autoadd_mnemonic_base(void); +struct wire_cst_lock_time *frbgen_bdk_flutter_cst_new_box_autoadd_lock_time(void); struct wire_cst_out_point *frbgen_bdk_flutter_cst_new_box_autoadd_out_point(void); -struct wire_cst_psbt_base *frbgen_bdk_flutter_cst_new_box_autoadd_psbt_base(void); - struct wire_cst_psbt_sig_hash_type *frbgen_bdk_flutter_cst_new_box_autoadd_psbt_sig_hash_type(void); struct wire_cst_rbf_value *frbgen_bdk_flutter_cst_new_box_autoadd_rbf_value(void); @@ -1069,24 +1115,18 @@ struct wire_cst_rpc_config *frbgen_bdk_flutter_cst_new_box_autoadd_rpc_config(vo struct wire_cst_rpc_sync_params *frbgen_bdk_flutter_cst_new_box_autoadd_rpc_sync_params(void); -struct wire_cst_script_buf_base *frbgen_bdk_flutter_cst_new_box_autoadd_script_buf_base(void); - struct wire_cst_sign_options *frbgen_bdk_flutter_cst_new_box_autoadd_sign_options(void); struct wire_cst_sled_db_configuration *frbgen_bdk_flutter_cst_new_box_autoadd_sled_db_configuration(void); struct wire_cst_sqlite_db_configuration *frbgen_bdk_flutter_cst_new_box_autoadd_sqlite_db_configuration(void); -struct wire_cst_transaction_base *frbgen_bdk_flutter_cst_new_box_autoadd_transaction_base(void); - uint32_t *frbgen_bdk_flutter_cst_new_box_autoadd_u_32(uint32_t value); uint64_t *frbgen_bdk_flutter_cst_new_box_autoadd_u_64(uint64_t value); uint8_t *frbgen_bdk_flutter_cst_new_box_autoadd_u_8(uint8_t value); -struct wire_cst_wallet_base *frbgen_bdk_flutter_cst_new_box_autoadd_wallet_base(void); - struct wire_cst_list_list_prim_u_8_strict *frbgen_bdk_flutter_cst_new_list_list_prim_u_8_strict(int32_t len); struct wire_cst_list_local_utxo *frbgen_bdk_flutter_cst_new_list_local_utxo(int32_t len); @@ -1106,42 +1146,43 @@ struct wire_cst_list_tx_in *frbgen_bdk_flutter_cst_new_list_tx_in(int32_t len); struct wire_cst_list_tx_out *frbgen_bdk_flutter_cst_new_list_tx_out(int32_t len); static int64_t dummy_method_to_enforce_bundling(void) { int64_t dummy_var = 0; - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_address_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_address_error); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_address_index); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_blockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_derivation_path); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_public_key); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_secret_key); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_psbt); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_script_buf); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_transaction); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_wallet); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_block_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_database_config); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_derivation_path_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_public_key_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_secret_key_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_electrum_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_esplora_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_f_32); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_fee_rate); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_hex_error); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_local_utxo); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_mnemonic_base); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_lock_time); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_out_point); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_psbt_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_psbt_sig_hash_type); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_rbf_value); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_record_out_point_input_usize); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_rpc_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_rpc_sync_params); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_script_buf_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_sign_options); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_sled_db_configuration); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_sqlite_db_configuration); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_transaction_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_u_32); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_u_64); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_u_8); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_wallet_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_list_prim_u_8_strict); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_local_utxo); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_out_point); @@ -1171,83 +1212,84 @@ static int64_t dummy_method_to_enforce_bundling(void) { 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_AddressBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_from_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_is_valid_for_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_payload); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_to_qr_uri); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_broadcast); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_estimate_fee); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_get_block_hash); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_get_height); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DerivationPathBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_as_string_private); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_max_satisfaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip44); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip44_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip49); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip49_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip84); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip84_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip86); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip86_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_create); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_secret_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_from_entropy); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_combine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_extract_tx); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_fee_amount); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_fee_rate); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_from_str); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_json_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_ScriptBufBase_empty); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_ScriptBufBase_from_hex); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_ScriptBufBase_with_capacity); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_is_coin_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_is_explicitly_rbf); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_is_lock_time_enabled); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_lock_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_output); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_size); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_version); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_vsize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_balance); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_descriptor_for_keychain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_internal_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_psbt_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_is_mine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_list_transactions); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_list_unspent); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_sign); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_sync); + 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*) store_dart_post_cobject); diff --git a/ios/bdk_flutter.podspec b/ios/bdk_flutter.podspec index c8a0a71c..06378f72 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.1-dev" + s.version = "0.31.2-dev" 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/bdk_flutter.dart b/lib/bdk_flutter.dart index 83e2847d..d7b86031 100644 --- a/lib/bdk_flutter.dart +++ b/lib/bdk_flutter.dart @@ -3,7 +3,7 @@ library bdk_flutter; export './src/generated/api/blockchain.dart' hide - BlockchainBase, + BdkBlockchain, BlockchainConfig_Electrum, BlockchainConfig_Esplora, AnyBlockchain, @@ -13,28 +13,30 @@ export './src/generated/api/blockchain.dart' BlockchainConfig_Rpc; export './src/generated/api/descriptor.dart' hide - DescriptorBase, + BdkDescriptor, ExtendedDescriptor, KeysDescriptorSecretKey, KeysDescriptorPublicKey, KeysKeyMap; export './src/generated/api/key.dart' hide - DerivationPathBase, - DescriptorPublicKeyBase, - DescriptorSecretKeyBase, + BdkDerivationPath, + BdkDescriptorPublicKey, + BdkDescriptorSecretKey, BitcoinBip32DerivationPath, KeysBip39Mnemonic, - MnemonicBase; + BdkMnemonic; export './src/generated/api/psbt.dart' - hide MutexPartiallySignedTransaction, PsbtBase; + hide MutexPartiallySignedTransaction, BdkPsbt; export './src/generated/api/types.dart' hide BdkBitcoinAddress, - ScriptBufBase, - TransactionBase, + BdkScriptBuf, + BdkTransaction, AddressIndex_Reset, - AddressBase, + LockTime_Blocks, + LockTime_Seconds, + BdkAddress, AddressIndex_Peek, AddressIndex_Increase, AddressIndex_LastUnused, @@ -49,8 +51,8 @@ export './src/generated/api/types.dart' export './src/generated/api/wallet.dart' hide MutexBdkWalletAnyDatabase, - WalletBase, + BdkWallet, finishBumpFeeTxBuilder, txBuilderFinish; export './src/root.dart'; -export 'src/utils/exceptions.dart'; +export 'src/utils/exceptions.dart' hide mapToException, BdkFfiException; diff --git a/lib/src/generated/api/blockchain.dart b/lib/src/generated/api/blockchain.dart index 72528466..d66bd784 100644 --- a/lib/src/generated/api/blockchain.dart +++ b/lib/src/generated/api/blockchain.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.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -22,16 +22,18 @@ class AnyBlockchain extends RustOpaque { static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - BdkCore.instance.api.rust_arc_increment_strong_count_AnyBlockchain, + CApi.instance.api.rust_arc_increment_strong_count_AnyBlockchain, rustArcDecrementStrongCount: - BdkCore.instance.api.rust_arc_decrement_strong_count_AnyBlockchain, + CApi.instance.api.rust_arc_decrement_strong_count_AnyBlockchain, rustArcDecrementStrongCountPtr: - BdkCore.instance.api.rust_arc_decrement_strong_count_AnyBlockchainPtr, + CApi.instance.api.rust_arc_decrement_strong_count_AnyBlockchainPtr, ); } @freezed sealed class Auth with _$Auth { + const Auth._(); + /// No authentication const factory Auth.none() = Auth_None; @@ -51,42 +53,34 @@ sealed class Auth with _$Auth { }) = Auth_Cookie; } -class BlockchainBase { +class BdkBlockchain { final AnyBlockchain ptr; - const BlockchainBase({ + const BdkBlockchain({ required this.ptr, }); Future broadcast( - {required TransactionBase transaction, dynamic hint}) => - BdkCore.instance.api.blockchainBaseBroadcast( - that: this, - transaction: transaction, - ); + {required BdkTransaction transaction, dynamic hint}) => + CApi.instance.api.bdkBlockchainBroadcast( + that: this, transaction: transaction, hint: hint); Future estimateFee({required int target, dynamic hint}) => - BdkCore.instance.api.blockchainBaseEstimateFee( - that: this, - target: target, - ); + CApi.instance.api + .bdkBlockchainEstimateFee(that: this, target: target, hint: hint); Future getBlockHash({required int height, dynamic hint}) => - BdkCore.instance.api.blockchainBaseGetBlockHash( - that: this, - height: height, - ); + CApi.instance.api + .bdkBlockchainGetBlockHash(that: this, height: height, hint: hint); Future getHeight({dynamic hint}) => - BdkCore.instance.api.blockchainBaseGetHeight( - that: this, - ); + CApi.instance.api.bdkBlockchainGetHeight(that: this, hint: hint); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. - static Future newInstance( + static Future newInstance( {required BlockchainConfig blockchainConfig, dynamic hint}) => - BdkCore.instance.api - .blockchainBaseNew(blockchainConfig: blockchainConfig, hint: hint); + CApi.instance.api + .bdkBlockchainNew(blockchainConfig: blockchainConfig, hint: hint); @override int get hashCode => ptr.hashCode; @@ -94,13 +88,15 @@ class BlockchainBase { @override bool operator ==(Object other) => identical(this, other) || - other is BlockchainBase && + other is BdkBlockchain && runtimeType == other.runtimeType && ptr == other.ptr; } @freezed sealed class BlockchainConfig with _$BlockchainConfig { + const BlockchainConfig._(); + /// Electrum client const factory BlockchainConfig.electrum({ required ElectrumConfig config, diff --git a/lib/src/generated/api/blockchain.freezed.dart b/lib/src/generated/api/blockchain.freezed.dart index 0f42238f..5fecef07 100644 --- a/lib/src/generated/api/blockchain.freezed.dart +++ b/lib/src/generated/api/blockchain.freezed.dart @@ -97,8 +97,8 @@ class __$$Auth_NoneImplCopyWithImpl<$Res> /// @nodoc -class _$Auth_NoneImpl implements Auth_None { - const _$Auth_NoneImpl(); +class _$Auth_NoneImpl extends Auth_None { + const _$Auth_NoneImpl() : super._(); @override String toString() { @@ -183,8 +183,9 @@ class _$Auth_NoneImpl implements Auth_None { } } -abstract class Auth_None implements Auth { +abstract class Auth_None extends Auth { const factory Auth_None() = _$Auth_NoneImpl; + const Auth_None._() : super._(); } /// @nodoc @@ -225,8 +226,9 @@ class __$$Auth_UserPassImplCopyWithImpl<$Res> /// @nodoc -class _$Auth_UserPassImpl implements Auth_UserPass { - const _$Auth_UserPassImpl({required this.username, required this.password}); +class _$Auth_UserPassImpl extends Auth_UserPass { + const _$Auth_UserPassImpl({required this.username, required this.password}) + : super._(); /// Username @override @@ -330,10 +332,11 @@ class _$Auth_UserPassImpl implements Auth_UserPass { } } -abstract class Auth_UserPass implements Auth { +abstract class Auth_UserPass extends Auth { const factory Auth_UserPass( {required final String username, required final String password}) = _$Auth_UserPassImpl; + const Auth_UserPass._() : super._(); /// Username String get username; @@ -378,8 +381,8 @@ class __$$Auth_CookieImplCopyWithImpl<$Res> /// @nodoc -class _$Auth_CookieImpl implements Auth_Cookie { - const _$Auth_CookieImpl({required this.file}); +class _$Auth_CookieImpl extends Auth_Cookie { + const _$Auth_CookieImpl({required this.file}) : super._(); /// Cookie file @override @@ -476,8 +479,9 @@ class _$Auth_CookieImpl implements Auth_Cookie { } } -abstract class Auth_Cookie implements Auth { +abstract class Auth_Cookie extends Auth { const factory Auth_Cookie({required final String file}) = _$Auth_CookieImpl; + const Auth_Cookie._() : super._(); /// Cookie file String get file; @@ -589,8 +593,8 @@ class __$$BlockchainConfig_ElectrumImplCopyWithImpl<$Res> /// @nodoc -class _$BlockchainConfig_ElectrumImpl implements BlockchainConfig_Electrum { - const _$BlockchainConfig_ElectrumImpl({required this.config}); +class _$BlockchainConfig_ElectrumImpl extends BlockchainConfig_Electrum { + const _$BlockchainConfig_ElectrumImpl({required this.config}) : super._(); @override final ElectrumConfig config; @@ -687,9 +691,10 @@ class _$BlockchainConfig_ElectrumImpl implements BlockchainConfig_Electrum { } } -abstract class BlockchainConfig_Electrum implements BlockchainConfig { +abstract class BlockchainConfig_Electrum extends BlockchainConfig { const factory BlockchainConfig_Electrum( {required final ElectrumConfig config}) = _$BlockchainConfig_ElectrumImpl; + const BlockchainConfig_Electrum._() : super._(); @override ElectrumConfig get config; @@ -733,8 +738,8 @@ class __$$BlockchainConfig_EsploraImplCopyWithImpl<$Res> /// @nodoc -class _$BlockchainConfig_EsploraImpl implements BlockchainConfig_Esplora { - const _$BlockchainConfig_EsploraImpl({required this.config}); +class _$BlockchainConfig_EsploraImpl extends BlockchainConfig_Esplora { + const _$BlockchainConfig_EsploraImpl({required this.config}) : super._(); @override final EsploraConfig config; @@ -831,9 +836,10 @@ class _$BlockchainConfig_EsploraImpl implements BlockchainConfig_Esplora { } } -abstract class BlockchainConfig_Esplora implements BlockchainConfig { +abstract class BlockchainConfig_Esplora extends BlockchainConfig { const factory BlockchainConfig_Esplora( {required final EsploraConfig config}) = _$BlockchainConfig_EsploraImpl; + const BlockchainConfig_Esplora._() : super._(); @override EsploraConfig get config; @@ -875,8 +881,8 @@ class __$$BlockchainConfig_RpcImplCopyWithImpl<$Res> /// @nodoc -class _$BlockchainConfig_RpcImpl implements BlockchainConfig_Rpc { - const _$BlockchainConfig_RpcImpl({required this.config}); +class _$BlockchainConfig_RpcImpl extends BlockchainConfig_Rpc { + const _$BlockchainConfig_RpcImpl({required this.config}) : super._(); @override final RpcConfig config; @@ -974,9 +980,10 @@ class _$BlockchainConfig_RpcImpl implements BlockchainConfig_Rpc { } } -abstract class BlockchainConfig_Rpc implements BlockchainConfig { +abstract class BlockchainConfig_Rpc extends BlockchainConfig { const factory BlockchainConfig_Rpc({required final RpcConfig config}) = _$BlockchainConfig_RpcImpl; + const BlockchainConfig_Rpc._() : super._(); @override RpcConfig get config; diff --git a/lib/src/generated/api/descriptor.dart b/lib/src/generated/api/descriptor.dart index e21c01b7..4691f4dc 100644 --- a/lib/src/generated/api/descriptor.dart +++ b/lib/src/generated/api/descriptor.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.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -21,11 +21,11 @@ class ExtendedDescriptor extends RustOpaque { static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - BdkCore.instance.api.rust_arc_increment_strong_count_ExtendedDescriptor, + CApi.instance.api.rust_arc_increment_strong_count_ExtendedDescriptor, rustArcDecrementStrongCount: - BdkCore.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptor, - rustArcDecrementStrongCountPtr: BdkCore - .instance.api.rust_arc_decrement_strong_count_ExtendedDescriptorPtr, + CApi.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptor, + rustArcDecrementStrongCountPtr: + CApi.instance.api.rust_arc_decrement_strong_count_ExtendedDescriptorPtr, ); } @@ -39,11 +39,11 @@ class KeysDescriptorPublicKey extends RustOpaque { : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: BdkCore + rustArcIncrementStrongCount: CApi .instance.api.rust_arc_increment_strong_count_KeysDescriptorPublicKey, - rustArcDecrementStrongCount: BdkCore + rustArcDecrementStrongCount: CApi .instance.api.rust_arc_decrement_strong_count_KeysDescriptorPublicKey, - rustArcDecrementStrongCountPtr: BdkCore.instance.api + rustArcDecrementStrongCountPtr: CApi.instance.api .rust_arc_decrement_strong_count_KeysDescriptorPublicKeyPtr, ); } @@ -58,11 +58,11 @@ class KeysDescriptorSecretKey extends RustOpaque { : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: BdkCore + rustArcIncrementStrongCount: CApi .instance.api.rust_arc_increment_strong_count_KeysDescriptorSecretKey, - rustArcDecrementStrongCount: BdkCore + rustArcDecrementStrongCount: CApi .instance.api.rust_arc_decrement_strong_count_KeysDescriptorSecretKey, - rustArcDecrementStrongCountPtr: BdkCore.instance.api + rustArcDecrementStrongCountPtr: CApi.instance.api .rust_arc_decrement_strong_count_KeysDescriptorSecretKeyPtr, ); } @@ -78,136 +78,130 @@ class KeysKeyMap extends RustOpaque { static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - BdkCore.instance.api.rust_arc_increment_strong_count_KeysKeyMap, + CApi.instance.api.rust_arc_increment_strong_count_KeysKeyMap, rustArcDecrementStrongCount: - BdkCore.instance.api.rust_arc_decrement_strong_count_KeysKeyMap, + CApi.instance.api.rust_arc_decrement_strong_count_KeysKeyMap, rustArcDecrementStrongCountPtr: - BdkCore.instance.api.rust_arc_decrement_strong_count_KeysKeyMapPtr, + CApi.instance.api.rust_arc_decrement_strong_count_KeysKeyMapPtr, ); } -class DescriptorBase { +class BdkDescriptor { final ExtendedDescriptor extendedDescriptor; final KeysKeyMap keyMap; - const DescriptorBase({ + const BdkDescriptor({ required this.extendedDescriptor, required this.keyMap, }); Future asString({dynamic hint}) => - BdkCore.instance.api.descriptorBaseAsString( - that: this, - ); + CApi.instance.api.bdkDescriptorAsString(that: this, hint: hint); Future asStringPrivate({dynamic hint}) => - BdkCore.instance.api.descriptorBaseAsStringPrivate( - that: this, - ); + CApi.instance.api.bdkDescriptorAsStringPrivate(that: this, hint: hint); - Future maxSatisfactionWeight({dynamic hint}) => - BdkCore.instance.api.descriptorBaseMaxSatisfactionWeight( - that: this, - ); + Future maxSatisfactionWeight({dynamic hint}) => CApi.instance.api + .bdkDescriptorMaxSatisfactionWeight(that: this, hint: hint); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. - static Future newInstance( + static Future newInstance( {required String descriptor, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNew( + CApi.instance.api.bdkDescriptorNew( descriptor: descriptor, network: network, hint: hint); - static Future newBip44( - {required DescriptorSecretKeyBase secretKey, + static Future newBip44( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip44( + CApi.instance.api.bdkDescriptorNewBip44( secretKey: secretKey, keychainKind: keychainKind, network: network, hint: hint); - static Future newBip44Public( - {required DescriptorPublicKeyBase publicKey, + static Future newBip44Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip44Public( + CApi.instance.api.bdkDescriptorNewBip44Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, network: network, hint: hint); - static Future newBip49( - {required DescriptorSecretKeyBase secretKey, + static Future newBip49( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip49( + CApi.instance.api.bdkDescriptorNewBip49( secretKey: secretKey, keychainKind: keychainKind, network: network, hint: hint); - static Future newBip49Public( - {required DescriptorPublicKeyBase publicKey, + static Future newBip49Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip49Public( + CApi.instance.api.bdkDescriptorNewBip49Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, network: network, hint: hint); - static Future newBip84( - {required DescriptorSecretKeyBase secretKey, + static Future newBip84( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip84( + CApi.instance.api.bdkDescriptorNewBip84( secretKey: secretKey, keychainKind: keychainKind, network: network, hint: hint); - static Future newBip84Public( - {required DescriptorPublicKeyBase publicKey, + static Future newBip84Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip84Public( + CApi.instance.api.bdkDescriptorNewBip84Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, network: network, hint: hint); - static Future newBip86( - {required DescriptorSecretKeyBase secretKey, + static Future newBip86( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip86( + CApi.instance.api.bdkDescriptorNewBip86( secretKey: secretKey, keychainKind: keychainKind, network: network, hint: hint); - static Future newBip86Public( - {required DescriptorPublicKeyBase publicKey, + static Future newBip86Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) => - BdkCore.instance.api.descriptorBaseNewBip86Public( + CApi.instance.api.bdkDescriptorNewBip86Public( publicKey: publicKey, fingerprint: fingerprint, keychainKind: keychainKind, @@ -220,7 +214,7 @@ class DescriptorBase { @override bool operator ==(Object other) => identical(this, other) || - other is DescriptorBase && + other is BdkDescriptor && runtimeType == other.runtimeType && extendedDescriptor == other.extendedDescriptor && keyMap == other.keyMap; diff --git a/lib/src/generated/api/error.dart b/lib/src/generated/api/error.dart index 5ed1878d..c0cfe1a7 100644 --- a/lib/src/generated/api/error.dart +++ b/lib/src/generated/api/error.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -12,6 +12,8 @@ part 'error.freezed.dart'; @freezed sealed class AddressError with _$AddressError { + const AddressError._(); + const factory AddressError.base58( String field0, ) = AddressError_Base58; @@ -56,6 +58,8 @@ sealed class AddressError with _$AddressError { @freezed sealed class BdkError with _$BdkError implements FrbException { + const BdkError._(); + /// Hex decoding error const factory BdkError.hex( HexError field0, @@ -263,10 +267,21 @@ sealed class BdkError with _$BdkError implements FrbException { const factory BdkError.rusqlite( String field0, ) = BdkError_Rusqlite; + const factory BdkError.invalidInput( + String field0, + ) = BdkError_InvalidInput; + const factory BdkError.invalidLockTime( + String field0, + ) = BdkError_InvalidLockTime; + const factory BdkError.invalidTransaction( + String field0, + ) = BdkError_InvalidTransaction; } @freezed sealed class ConsensusError with _$ConsensusError { + const ConsensusError._(); + const factory ConsensusError.io( String field0, ) = ConsensusError_Io; @@ -290,6 +305,8 @@ sealed class ConsensusError with _$ConsensusError { @freezed sealed class DescriptorError with _$DescriptorError { + const DescriptorError._(); + const factory DescriptorError.invalidHdKeyPath() = DescriptorError_InvalidHdKeyPath; const factory DescriptorError.invalidDescriptorChecksum() = @@ -325,6 +342,8 @@ sealed class DescriptorError with _$DescriptorError { @freezed sealed class HexError with _$HexError { + const HexError._(); + const factory HexError.invalidChar( int field0, ) = HexError_InvalidChar; diff --git a/lib/src/generated/api/error.freezed.dart b/lib/src/generated/api/error.freezed.dart index 5b95650a..23895121 100644 --- a/lib/src/generated/api/error.freezed.dart +++ b/lib/src/generated/api/error.freezed.dart @@ -216,8 +216,8 @@ class __$$AddressError_Base58ImplCopyWithImpl<$Res> /// @nodoc -class _$AddressError_Base58Impl implements AddressError_Base58 { - const _$AddressError_Base58Impl(this.field0); +class _$AddressError_Base58Impl extends AddressError_Base58 { + const _$AddressError_Base58Impl(this.field0) : super._(); @override final String field0; @@ -417,9 +417,10 @@ class _$AddressError_Base58Impl implements AddressError_Base58 { } } -abstract class AddressError_Base58 implements AddressError { +abstract class AddressError_Base58 extends AddressError { const factory AddressError_Base58(final String field0) = _$AddressError_Base58Impl; + const AddressError_Base58._() : super._(); String get field0; @JsonKey(ignore: true) @@ -460,8 +461,8 @@ class __$$AddressError_Bech32ImplCopyWithImpl<$Res> /// @nodoc -class _$AddressError_Bech32Impl implements AddressError_Bech32 { - const _$AddressError_Bech32Impl(this.field0); +class _$AddressError_Bech32Impl extends AddressError_Bech32 { + const _$AddressError_Bech32Impl(this.field0) : super._(); @override final String field0; @@ -661,9 +662,10 @@ class _$AddressError_Bech32Impl implements AddressError_Bech32 { } } -abstract class AddressError_Bech32 implements AddressError { +abstract class AddressError_Bech32 extends AddressError { const factory AddressError_Bech32(final String field0) = _$AddressError_Bech32Impl; + const AddressError_Bech32._() : super._(); String get field0; @JsonKey(ignore: true) @@ -693,8 +695,8 @@ class __$$AddressError_EmptyBech32PayloadImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_EmptyBech32PayloadImpl - implements AddressError_EmptyBech32Payload { - const _$AddressError_EmptyBech32PayloadImpl(); + extends AddressError_EmptyBech32Payload { + const _$AddressError_EmptyBech32PayloadImpl() : super._(); @override String toString() { @@ -883,9 +885,10 @@ class _$AddressError_EmptyBech32PayloadImpl } } -abstract class AddressError_EmptyBech32Payload implements AddressError { +abstract class AddressError_EmptyBech32Payload extends AddressError { const factory AddressError_EmptyBech32Payload() = _$AddressError_EmptyBech32PayloadImpl; + const AddressError_EmptyBech32Payload._() : super._(); } /// @nodoc @@ -930,9 +933,10 @@ class __$$AddressError_InvalidBech32VariantImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_InvalidBech32VariantImpl - implements AddressError_InvalidBech32Variant { + extends AddressError_InvalidBech32Variant { const _$AddressError_InvalidBech32VariantImpl( - {required this.expected, required this.found}); + {required this.expected, required this.found}) + : super._(); @override final Variant expected; @@ -1137,10 +1141,11 @@ class _$AddressError_InvalidBech32VariantImpl } } -abstract class AddressError_InvalidBech32Variant implements AddressError { +abstract class AddressError_InvalidBech32Variant extends AddressError { const factory AddressError_InvalidBech32Variant( {required final Variant expected, required final Variant found}) = _$AddressError_InvalidBech32VariantImpl; + const AddressError_InvalidBech32Variant._() : super._(); Variant get expected; Variant get found; @@ -1187,8 +1192,8 @@ class __$$AddressError_InvalidWitnessVersionImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_InvalidWitnessVersionImpl - implements AddressError_InvalidWitnessVersion { - const _$AddressError_InvalidWitnessVersionImpl(this.field0); + extends AddressError_InvalidWitnessVersion { + const _$AddressError_InvalidWitnessVersionImpl(this.field0) : super._(); @override final int field0; @@ -1389,9 +1394,10 @@ class _$AddressError_InvalidWitnessVersionImpl } } -abstract class AddressError_InvalidWitnessVersion implements AddressError { +abstract class AddressError_InvalidWitnessVersion extends AddressError { const factory AddressError_InvalidWitnessVersion(final int field0) = _$AddressError_InvalidWitnessVersionImpl; + const AddressError_InvalidWitnessVersion._() : super._(); int get field0; @JsonKey(ignore: true) @@ -1437,8 +1443,8 @@ class __$$AddressError_UnparsableWitnessVersionImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_UnparsableWitnessVersionImpl - implements AddressError_UnparsableWitnessVersion { - const _$AddressError_UnparsableWitnessVersionImpl(this.field0); + extends AddressError_UnparsableWitnessVersion { + const _$AddressError_UnparsableWitnessVersionImpl(this.field0) : super._(); @override final String field0; @@ -1639,9 +1645,10 @@ class _$AddressError_UnparsableWitnessVersionImpl } } -abstract class AddressError_UnparsableWitnessVersion implements AddressError { +abstract class AddressError_UnparsableWitnessVersion extends AddressError { const factory AddressError_UnparsableWitnessVersion(final String field0) = _$AddressError_UnparsableWitnessVersionImpl; + const AddressError_UnparsableWitnessVersion._() : super._(); String get field0; @JsonKey(ignore: true) @@ -1672,8 +1679,8 @@ class __$$AddressError_MalformedWitnessVersionImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_MalformedWitnessVersionImpl - implements AddressError_MalformedWitnessVersion { - const _$AddressError_MalformedWitnessVersionImpl(); + extends AddressError_MalformedWitnessVersion { + const _$AddressError_MalformedWitnessVersionImpl() : super._(); @override String toString() { @@ -1862,9 +1869,10 @@ class _$AddressError_MalformedWitnessVersionImpl } } -abstract class AddressError_MalformedWitnessVersion implements AddressError { +abstract class AddressError_MalformedWitnessVersion extends AddressError { const factory AddressError_MalformedWitnessVersion() = _$AddressError_MalformedWitnessVersionImpl; + const AddressError_MalformedWitnessVersion._() : super._(); } /// @nodoc @@ -1904,8 +1912,8 @@ class __$$AddressError_InvalidWitnessProgramLengthImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_InvalidWitnessProgramLengthImpl - implements AddressError_InvalidWitnessProgramLength { - const _$AddressError_InvalidWitnessProgramLengthImpl(this.field0); + extends AddressError_InvalidWitnessProgramLength { + const _$AddressError_InvalidWitnessProgramLengthImpl(this.field0) : super._(); @override final int field0; @@ -2107,10 +2115,10 @@ class _$AddressError_InvalidWitnessProgramLengthImpl } } -abstract class AddressError_InvalidWitnessProgramLength - implements AddressError { +abstract class AddressError_InvalidWitnessProgramLength extends AddressError { const factory AddressError_InvalidWitnessProgramLength(final int field0) = _$AddressError_InvalidWitnessProgramLengthImpl; + const AddressError_InvalidWitnessProgramLength._() : super._(); int get field0; @JsonKey(ignore: true) @@ -2156,8 +2164,9 @@ class __$$AddressError_InvalidSegwitV0ProgramLengthImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_InvalidSegwitV0ProgramLengthImpl - implements AddressError_InvalidSegwitV0ProgramLength { - const _$AddressError_InvalidSegwitV0ProgramLengthImpl(this.field0); + extends AddressError_InvalidSegwitV0ProgramLength { + const _$AddressError_InvalidSegwitV0ProgramLengthImpl(this.field0) + : super._(); @override final int field0; @@ -2360,10 +2369,10 @@ class _$AddressError_InvalidSegwitV0ProgramLengthImpl } } -abstract class AddressError_InvalidSegwitV0ProgramLength - implements AddressError { +abstract class AddressError_InvalidSegwitV0ProgramLength extends AddressError { const factory AddressError_InvalidSegwitV0ProgramLength(final int field0) = _$AddressError_InvalidSegwitV0ProgramLengthImpl; + const AddressError_InvalidSegwitV0ProgramLength._() : super._(); int get field0; @JsonKey(ignore: true) @@ -2394,8 +2403,8 @@ class __$$AddressError_UncompressedPubkeyImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_UncompressedPubkeyImpl - implements AddressError_UncompressedPubkey { - const _$AddressError_UncompressedPubkeyImpl(); + extends AddressError_UncompressedPubkey { + const _$AddressError_UncompressedPubkeyImpl() : super._(); @override String toString() { @@ -2584,9 +2593,10 @@ class _$AddressError_UncompressedPubkeyImpl } } -abstract class AddressError_UncompressedPubkey implements AddressError { +abstract class AddressError_UncompressedPubkey extends AddressError { const factory AddressError_UncompressedPubkey() = _$AddressError_UncompressedPubkeyImpl; + const AddressError_UncompressedPubkey._() : super._(); } /// @nodoc @@ -2611,8 +2621,8 @@ class __$$AddressError_ExcessiveScriptSizeImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_ExcessiveScriptSizeImpl - implements AddressError_ExcessiveScriptSize { - const _$AddressError_ExcessiveScriptSizeImpl(); + extends AddressError_ExcessiveScriptSize { + const _$AddressError_ExcessiveScriptSizeImpl() : super._(); @override String toString() { @@ -2801,9 +2811,10 @@ class _$AddressError_ExcessiveScriptSizeImpl } } -abstract class AddressError_ExcessiveScriptSize implements AddressError { +abstract class AddressError_ExcessiveScriptSize extends AddressError { const factory AddressError_ExcessiveScriptSize() = _$AddressError_ExcessiveScriptSizeImpl; + const AddressError_ExcessiveScriptSize._() : super._(); } /// @nodoc @@ -2828,8 +2839,8 @@ class __$$AddressError_UnrecognizedScriptImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_UnrecognizedScriptImpl - implements AddressError_UnrecognizedScript { - const _$AddressError_UnrecognizedScriptImpl(); + extends AddressError_UnrecognizedScript { + const _$AddressError_UnrecognizedScriptImpl() : super._(); @override String toString() { @@ -3018,9 +3029,10 @@ class _$AddressError_UnrecognizedScriptImpl } } -abstract class AddressError_UnrecognizedScript implements AddressError { +abstract class AddressError_UnrecognizedScript extends AddressError { const factory AddressError_UnrecognizedScript() = _$AddressError_UnrecognizedScriptImpl; + const AddressError_UnrecognizedScript._() : super._(); } /// @nodoc @@ -3060,8 +3072,8 @@ class __$$AddressError_UnknownAddressTypeImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_UnknownAddressTypeImpl - implements AddressError_UnknownAddressType { - const _$AddressError_UnknownAddressTypeImpl(this.field0); + extends AddressError_UnknownAddressType { + const _$AddressError_UnknownAddressTypeImpl(this.field0) : super._(); @override final String field0; @@ -3262,9 +3274,10 @@ class _$AddressError_UnknownAddressTypeImpl } } -abstract class AddressError_UnknownAddressType implements AddressError { +abstract class AddressError_UnknownAddressType extends AddressError { const factory AddressError_UnknownAddressType(final String field0) = _$AddressError_UnknownAddressTypeImpl; + const AddressError_UnknownAddressType._() : super._(); String get field0; @JsonKey(ignore: true) @@ -3320,11 +3333,12 @@ class __$$AddressError_NetworkValidationImplCopyWithImpl<$Res> /// @nodoc class _$AddressError_NetworkValidationImpl - implements AddressError_NetworkValidation { + extends AddressError_NetworkValidation { const _$AddressError_NetworkValidationImpl( {required this.networkRequired, required this.networkFound, - required this.address}); + required this.address}) + : super._(); @override final Network networkRequired; @@ -3534,11 +3548,12 @@ class _$AddressError_NetworkValidationImpl } } -abstract class AddressError_NetworkValidation implements AddressError { +abstract class AddressError_NetworkValidation extends AddressError { const factory AddressError_NetworkValidation( {required final Network networkRequired, required final Network networkFound, required final String address}) = _$AddressError_NetworkValidationImpl; + const AddressError_NetworkValidation._() : super._(); Network get networkRequired; Network get networkFound; @@ -3596,6 +3611,9 @@ mixin _$BdkError { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -3643,6 +3661,9 @@ mixin _$BdkError { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -3690,6 +3711,9 @@ mixin _$BdkError { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -3749,6 +3773,10 @@ mixin _$BdkError { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -3804,6 +3832,9 @@ mixin _$BdkError { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -3856,6 +3887,9 @@ mixin _$BdkError { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -3921,8 +3955,8 @@ class __$$BdkError_HexImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_HexImpl implements BdkError_Hex { - const _$BdkError_HexImpl(this.field0); +class _$BdkError_HexImpl extends BdkError_Hex { + const _$BdkError_HexImpl(this.field0) : super._(); @override final HexError field0; @@ -3995,6 +4029,9 @@ class _$BdkError_HexImpl implements BdkError_Hex { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return hex(field0); } @@ -4045,6 +4082,9 @@ class _$BdkError_HexImpl implements BdkError_Hex { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return hex?.call(field0); } @@ -4095,6 +4135,9 @@ class _$BdkError_HexImpl implements BdkError_Hex { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (hex != null) { @@ -4160,6 +4203,10 @@ class _$BdkError_HexImpl implements BdkError_Hex { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return hex(this); } @@ -4218,6 +4265,9 @@ class _$BdkError_HexImpl implements BdkError_Hex { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return hex?.call(this); } @@ -4273,6 +4323,9 @@ class _$BdkError_HexImpl implements BdkError_Hex { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (hex != null) { @@ -4282,8 +4335,9 @@ class _$BdkError_HexImpl implements BdkError_Hex { } } -abstract class BdkError_Hex implements BdkError { +abstract class BdkError_Hex extends BdkError { const factory BdkError_Hex(final HexError field0) = _$BdkError_HexImpl; + const BdkError_Hex._() : super._(); HexError get field0; @JsonKey(ignore: true) @@ -4334,8 +4388,8 @@ class __$$BdkError_ConsensusImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_ConsensusImpl implements BdkError_Consensus { - const _$BdkError_ConsensusImpl(this.field0); +class _$BdkError_ConsensusImpl extends BdkError_Consensus { + const _$BdkError_ConsensusImpl(this.field0) : super._(); @override final ConsensusError field0; @@ -4409,6 +4463,9 @@ class _$BdkError_ConsensusImpl implements BdkError_Consensus { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return consensus(field0); } @@ -4459,6 +4516,9 @@ class _$BdkError_ConsensusImpl implements BdkError_Consensus { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return consensus?.call(field0); } @@ -4509,6 +4569,9 @@ class _$BdkError_ConsensusImpl implements BdkError_Consensus { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (consensus != null) { @@ -4574,6 +4637,10 @@ class _$BdkError_ConsensusImpl implements BdkError_Consensus { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return consensus(this); } @@ -4632,6 +4699,9 @@ class _$BdkError_ConsensusImpl implements BdkError_Consensus { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return consensus?.call(this); } @@ -4687,6 +4757,9 @@ class _$BdkError_ConsensusImpl implements BdkError_Consensus { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (consensus != null) { @@ -4696,9 +4769,10 @@ class _$BdkError_ConsensusImpl implements BdkError_Consensus { } } -abstract class BdkError_Consensus implements BdkError { +abstract class BdkError_Consensus extends BdkError { const factory BdkError_Consensus(final ConsensusError field0) = _$BdkError_ConsensusImpl; + const BdkError_Consensus._() : super._(); ConsensusError get field0; @JsonKey(ignore: true) @@ -4749,8 +4823,8 @@ class __$$BdkError_AddressImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_AddressImpl implements BdkError_Address { - const _$BdkError_AddressImpl(this.field0); +class _$BdkError_AddressImpl extends BdkError_Address { + const _$BdkError_AddressImpl(this.field0) : super._(); @override final AddressError field0; @@ -4824,6 +4898,9 @@ class _$BdkError_AddressImpl implements BdkError_Address { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return address(field0); } @@ -4874,6 +4951,9 @@ class _$BdkError_AddressImpl implements BdkError_Address { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return address?.call(field0); } @@ -4924,6 +5004,9 @@ class _$BdkError_AddressImpl implements BdkError_Address { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (address != null) { @@ -4989,6 +5072,10 @@ class _$BdkError_AddressImpl implements BdkError_Address { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return address(this); } @@ -5047,6 +5134,9 @@ class _$BdkError_AddressImpl implements BdkError_Address { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return address?.call(this); } @@ -5102,6 +5192,9 @@ class _$BdkError_AddressImpl implements BdkError_Address { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (address != null) { @@ -5111,9 +5204,10 @@ class _$BdkError_AddressImpl implements BdkError_Address { } } -abstract class BdkError_Address implements BdkError { +abstract class BdkError_Address extends BdkError { const factory BdkError_Address(final AddressError field0) = _$BdkError_AddressImpl; + const BdkError_Address._() : super._(); AddressError get field0; @JsonKey(ignore: true) @@ -5164,8 +5258,8 @@ class __$$BdkError_DescriptorImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_DescriptorImpl implements BdkError_Descriptor { - const _$BdkError_DescriptorImpl(this.field0); +class _$BdkError_DescriptorImpl extends BdkError_Descriptor { + const _$BdkError_DescriptorImpl(this.field0) : super._(); @override final DescriptorError field0; @@ -5239,6 +5333,9 @@ class _$BdkError_DescriptorImpl implements BdkError_Descriptor { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return descriptor(field0); } @@ -5289,6 +5386,9 @@ class _$BdkError_DescriptorImpl implements BdkError_Descriptor { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return descriptor?.call(field0); } @@ -5339,6 +5439,9 @@ class _$BdkError_DescriptorImpl implements BdkError_Descriptor { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (descriptor != null) { @@ -5404,6 +5507,10 @@ class _$BdkError_DescriptorImpl implements BdkError_Descriptor { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return descriptor(this); } @@ -5462,6 +5569,9 @@ class _$BdkError_DescriptorImpl implements BdkError_Descriptor { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return descriptor?.call(this); } @@ -5517,6 +5627,9 @@ class _$BdkError_DescriptorImpl implements BdkError_Descriptor { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (descriptor != null) { @@ -5526,9 +5639,10 @@ class _$BdkError_DescriptorImpl implements BdkError_Descriptor { } } -abstract class BdkError_Descriptor implements BdkError { +abstract class BdkError_Descriptor extends BdkError { const factory BdkError_Descriptor(final DescriptorError field0) = _$BdkError_DescriptorImpl; + const BdkError_Descriptor._() : super._(); DescriptorError get field0; @JsonKey(ignore: true) @@ -5571,8 +5685,8 @@ class __$$BdkError_InvalidU32BytesImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { - const _$BdkError_InvalidU32BytesImpl(this.field0); +class _$BdkError_InvalidU32BytesImpl extends BdkError_InvalidU32Bytes { + const _$BdkError_InvalidU32BytesImpl(this.field0) : super._(); @override final Uint8List field0; @@ -5647,6 +5761,9 @@ class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return invalidU32Bytes(field0); } @@ -5697,6 +5814,9 @@ class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return invalidU32Bytes?.call(field0); } @@ -5747,6 +5867,9 @@ class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (invalidU32Bytes != null) { @@ -5812,6 +5935,10 @@ class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return invalidU32Bytes(this); } @@ -5870,6 +5997,9 @@ class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return invalidU32Bytes?.call(this); } @@ -5925,6 +6055,9 @@ class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (invalidU32Bytes != null) { @@ -5934,9 +6067,10 @@ class _$BdkError_InvalidU32BytesImpl implements BdkError_InvalidU32Bytes { } } -abstract class BdkError_InvalidU32Bytes implements BdkError { +abstract class BdkError_InvalidU32Bytes extends BdkError { const factory BdkError_InvalidU32Bytes(final Uint8List field0) = _$BdkError_InvalidU32BytesImpl; + const BdkError_InvalidU32Bytes._() : super._(); Uint8List get field0; @JsonKey(ignore: true) @@ -5977,8 +6111,8 @@ class __$$BdkError_GenericImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_GenericImpl implements BdkError_Generic { - const _$BdkError_GenericImpl(this.field0); +class _$BdkError_GenericImpl extends BdkError_Generic { + const _$BdkError_GenericImpl(this.field0) : super._(); @override final String field0; @@ -6052,6 +6186,9 @@ class _$BdkError_GenericImpl implements BdkError_Generic { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return generic(field0); } @@ -6102,6 +6239,9 @@ class _$BdkError_GenericImpl implements BdkError_Generic { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return generic?.call(field0); } @@ -6152,6 +6292,9 @@ class _$BdkError_GenericImpl implements BdkError_Generic { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (generic != null) { @@ -6217,6 +6360,10 @@ class _$BdkError_GenericImpl implements BdkError_Generic { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return generic(this); } @@ -6275,6 +6422,9 @@ class _$BdkError_GenericImpl implements BdkError_Generic { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return generic?.call(this); } @@ -6330,6 +6480,9 @@ class _$BdkError_GenericImpl implements BdkError_Generic { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (generic != null) { @@ -6339,8 +6492,9 @@ class _$BdkError_GenericImpl implements BdkError_Generic { } } -abstract class BdkError_Generic implements BdkError { +abstract class BdkError_Generic extends BdkError { const factory BdkError_Generic(final String field0) = _$BdkError_GenericImpl; + const BdkError_Generic._() : super._(); String get field0; @JsonKey(ignore: true) @@ -6370,8 +6524,8 @@ class __$$BdkError_ScriptDoesntHaveAddressFormImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_ScriptDoesntHaveAddressFormImpl - implements BdkError_ScriptDoesntHaveAddressForm { - const _$BdkError_ScriptDoesntHaveAddressFormImpl(); + extends BdkError_ScriptDoesntHaveAddressForm { + const _$BdkError_ScriptDoesntHaveAddressFormImpl() : super._(); @override String toString() { @@ -6434,6 +6588,9 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return scriptDoesntHaveAddressForm(); } @@ -6484,6 +6641,9 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return scriptDoesntHaveAddressForm?.call(); } @@ -6534,6 +6694,9 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (scriptDoesntHaveAddressForm != null) { @@ -6599,6 +6762,10 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return scriptDoesntHaveAddressForm(this); } @@ -6657,6 +6824,9 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return scriptDoesntHaveAddressForm?.call(this); } @@ -6712,6 +6882,9 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (scriptDoesntHaveAddressForm != null) { @@ -6721,9 +6894,10 @@ class _$BdkError_ScriptDoesntHaveAddressFormImpl } } -abstract class BdkError_ScriptDoesntHaveAddressForm implements BdkError { +abstract class BdkError_ScriptDoesntHaveAddressForm extends BdkError { const factory BdkError_ScriptDoesntHaveAddressForm() = _$BdkError_ScriptDoesntHaveAddressFormImpl; + const BdkError_ScriptDoesntHaveAddressForm._() : super._(); } /// @nodoc @@ -6745,8 +6919,8 @@ class __$$BdkError_NoRecipientsImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { - const _$BdkError_NoRecipientsImpl(); +class _$BdkError_NoRecipientsImpl extends BdkError_NoRecipients { + const _$BdkError_NoRecipientsImpl() : super._(); @override String toString() { @@ -6809,6 +6983,9 @@ class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return noRecipients(); } @@ -6859,6 +7036,9 @@ class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return noRecipients?.call(); } @@ -6909,6 +7089,9 @@ class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (noRecipients != null) { @@ -6974,6 +7157,10 @@ class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return noRecipients(this); } @@ -7032,6 +7219,9 @@ class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return noRecipients?.call(this); } @@ -7087,6 +7277,9 @@ class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (noRecipients != null) { @@ -7096,8 +7289,9 @@ class _$BdkError_NoRecipientsImpl implements BdkError_NoRecipients { } } -abstract class BdkError_NoRecipients implements BdkError { +abstract class BdkError_NoRecipients extends BdkError { const factory BdkError_NoRecipients() = _$BdkError_NoRecipientsImpl; + const BdkError_NoRecipients._() : super._(); } /// @nodoc @@ -7120,8 +7314,8 @@ class __$$BdkError_NoUtxosSelectedImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { - const _$BdkError_NoUtxosSelectedImpl(); +class _$BdkError_NoUtxosSelectedImpl extends BdkError_NoUtxosSelected { + const _$BdkError_NoUtxosSelectedImpl() : super._(); @override String toString() { @@ -7184,6 +7378,9 @@ class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return noUtxosSelected(); } @@ -7234,6 +7431,9 @@ class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return noUtxosSelected?.call(); } @@ -7284,6 +7484,9 @@ class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (noUtxosSelected != null) { @@ -7349,6 +7552,10 @@ class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return noUtxosSelected(this); } @@ -7407,6 +7614,9 @@ class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return noUtxosSelected?.call(this); } @@ -7462,6 +7672,9 @@ class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (noUtxosSelected != null) { @@ -7471,8 +7684,9 @@ class _$BdkError_NoUtxosSelectedImpl implements BdkError_NoUtxosSelected { } } -abstract class BdkError_NoUtxosSelected implements BdkError { +abstract class BdkError_NoUtxosSelected extends BdkError { const factory BdkError_NoUtxosSelected() = _$BdkError_NoUtxosSelectedImpl; + const BdkError_NoUtxosSelected._() : super._(); } /// @nodoc @@ -7511,8 +7725,8 @@ class __$$BdkError_OutputBelowDustLimitImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_OutputBelowDustLimitImpl - implements BdkError_OutputBelowDustLimit { - const _$BdkError_OutputBelowDustLimitImpl(this.field0); + extends BdkError_OutputBelowDustLimit { + const _$BdkError_OutputBelowDustLimitImpl(this.field0) : super._(); @override final int field0; @@ -7587,6 +7801,9 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return outputBelowDustLimit(field0); } @@ -7637,6 +7854,9 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return outputBelowDustLimit?.call(field0); } @@ -7687,6 +7907,9 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (outputBelowDustLimit != null) { @@ -7752,6 +7975,10 @@ class _$BdkError_OutputBelowDustLimitImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return outputBelowDustLimit(this); } @@ -7810,6 +8037,9 @@ class _$BdkError_OutputBelowDustLimitImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return outputBelowDustLimit?.call(this); } @@ -7865,6 +8095,9 @@ class _$BdkError_OutputBelowDustLimitImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (outputBelowDustLimit != null) { @@ -7874,9 +8107,10 @@ class _$BdkError_OutputBelowDustLimitImpl } } -abstract class BdkError_OutputBelowDustLimit implements BdkError { +abstract class BdkError_OutputBelowDustLimit extends BdkError { const factory BdkError_OutputBelowDustLimit(final int field0) = _$BdkError_OutputBelowDustLimitImpl; + const BdkError_OutputBelowDustLimit._() : super._(); int get field0; @JsonKey(ignore: true) @@ -7925,9 +8159,10 @@ class __$$BdkError_InsufficientFundsImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { +class _$BdkError_InsufficientFundsImpl extends BdkError_InsufficientFunds { const _$BdkError_InsufficientFundsImpl( - {required this.needed, required this.available}); + {required this.needed, required this.available}) + : super._(); /// Sats needed for some transaction @override @@ -8008,6 +8243,9 @@ class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return insufficientFunds(needed, available); } @@ -8058,6 +8296,9 @@ class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return insufficientFunds?.call(needed, available); } @@ -8108,6 +8349,9 @@ class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (insufficientFunds != null) { @@ -8173,6 +8417,10 @@ class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return insufficientFunds(this); } @@ -8231,6 +8479,9 @@ class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return insufficientFunds?.call(this); } @@ -8286,6 +8537,9 @@ class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (insufficientFunds != null) { @@ -8295,10 +8549,11 @@ class _$BdkError_InsufficientFundsImpl implements BdkError_InsufficientFunds { } } -abstract class BdkError_InsufficientFunds implements BdkError { +abstract class BdkError_InsufficientFunds extends BdkError { const factory BdkError_InsufficientFunds( {required final int needed, required final int available}) = _$BdkError_InsufficientFundsImpl; + const BdkError_InsufficientFunds._() : super._(); /// Sats needed for some transaction int get needed; @@ -8331,8 +8586,8 @@ class __$$BdkError_BnBTotalTriesExceededImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_BnBTotalTriesExceededImpl - implements BdkError_BnBTotalTriesExceeded { - const _$BdkError_BnBTotalTriesExceededImpl(); + extends BdkError_BnBTotalTriesExceeded { + const _$BdkError_BnBTotalTriesExceededImpl() : super._(); @override String toString() { @@ -8395,6 +8650,9 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return bnBTotalTriesExceeded(); } @@ -8445,6 +8703,9 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return bnBTotalTriesExceeded?.call(); } @@ -8495,6 +8756,9 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (bnBTotalTriesExceeded != null) { @@ -8560,6 +8824,10 @@ class _$BdkError_BnBTotalTriesExceededImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return bnBTotalTriesExceeded(this); } @@ -8618,6 +8886,9 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return bnBTotalTriesExceeded?.call(this); } @@ -8673,6 +8944,9 @@ class _$BdkError_BnBTotalTriesExceededImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (bnBTotalTriesExceeded != null) { @@ -8682,9 +8956,10 @@ class _$BdkError_BnBTotalTriesExceededImpl } } -abstract class BdkError_BnBTotalTriesExceeded implements BdkError { +abstract class BdkError_BnBTotalTriesExceeded extends BdkError { const factory BdkError_BnBTotalTriesExceeded() = _$BdkError_BnBTotalTriesExceededImpl; + const BdkError_BnBTotalTriesExceeded._() : super._(); } /// @nodoc @@ -8707,8 +8982,8 @@ class __$$BdkError_BnBNoExactMatchImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { - const _$BdkError_BnBNoExactMatchImpl(); +class _$BdkError_BnBNoExactMatchImpl extends BdkError_BnBNoExactMatch { + const _$BdkError_BnBNoExactMatchImpl() : super._(); @override String toString() { @@ -8771,6 +9046,9 @@ class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return bnBNoExactMatch(); } @@ -8821,6 +9099,9 @@ class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return bnBNoExactMatch?.call(); } @@ -8871,6 +9152,9 @@ class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (bnBNoExactMatch != null) { @@ -8936,6 +9220,10 @@ class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return bnBNoExactMatch(this); } @@ -8994,6 +9282,9 @@ class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return bnBNoExactMatch?.call(this); } @@ -9049,6 +9340,9 @@ class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (bnBNoExactMatch != null) { @@ -9058,8 +9352,9 @@ class _$BdkError_BnBNoExactMatchImpl implements BdkError_BnBNoExactMatch { } } -abstract class BdkError_BnBNoExactMatch implements BdkError { +abstract class BdkError_BnBNoExactMatch extends BdkError { const factory BdkError_BnBNoExactMatch() = _$BdkError_BnBNoExactMatchImpl; + const BdkError_BnBNoExactMatch._() : super._(); } /// @nodoc @@ -9080,8 +9375,8 @@ class __$$BdkError_UnknownUtxoImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { - const _$BdkError_UnknownUtxoImpl(); +class _$BdkError_UnknownUtxoImpl extends BdkError_UnknownUtxo { + const _$BdkError_UnknownUtxoImpl() : super._(); @override String toString() { @@ -9144,6 +9439,9 @@ class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return unknownUtxo(); } @@ -9194,6 +9492,9 @@ class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return unknownUtxo?.call(); } @@ -9244,6 +9545,9 @@ class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (unknownUtxo != null) { @@ -9309,6 +9613,10 @@ class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return unknownUtxo(this); } @@ -9367,6 +9675,9 @@ class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return unknownUtxo?.call(this); } @@ -9422,6 +9733,9 @@ class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (unknownUtxo != null) { @@ -9431,8 +9745,9 @@ class _$BdkError_UnknownUtxoImpl implements BdkError_UnknownUtxo { } } -abstract class BdkError_UnknownUtxo implements BdkError { +abstract class BdkError_UnknownUtxo extends BdkError { const factory BdkError_UnknownUtxo() = _$BdkError_UnknownUtxoImpl; + const BdkError_UnknownUtxo._() : super._(); } /// @nodoc @@ -9455,9 +9770,8 @@ class __$$BdkError_TransactionNotFoundImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_TransactionNotFoundImpl - implements BdkError_TransactionNotFound { - const _$BdkError_TransactionNotFoundImpl(); +class _$BdkError_TransactionNotFoundImpl extends BdkError_TransactionNotFound { + const _$BdkError_TransactionNotFoundImpl() : super._(); @override String toString() { @@ -9520,6 +9834,9 @@ class _$BdkError_TransactionNotFoundImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return transactionNotFound(); } @@ -9570,6 +9887,9 @@ class _$BdkError_TransactionNotFoundImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return transactionNotFound?.call(); } @@ -9620,6 +9940,9 @@ class _$BdkError_TransactionNotFoundImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (transactionNotFound != null) { @@ -9685,6 +10008,10 @@ class _$BdkError_TransactionNotFoundImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return transactionNotFound(this); } @@ -9743,6 +10070,9 @@ class _$BdkError_TransactionNotFoundImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return transactionNotFound?.call(this); } @@ -9798,6 +10128,9 @@ class _$BdkError_TransactionNotFoundImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (transactionNotFound != null) { @@ -9807,9 +10140,10 @@ class _$BdkError_TransactionNotFoundImpl } } -abstract class BdkError_TransactionNotFound implements BdkError { +abstract class BdkError_TransactionNotFound extends BdkError { const factory BdkError_TransactionNotFound() = _$BdkError_TransactionNotFoundImpl; + const BdkError_TransactionNotFound._() : super._(); } /// @nodoc @@ -9833,8 +10167,8 @@ class __$$BdkError_TransactionConfirmedImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_TransactionConfirmedImpl - implements BdkError_TransactionConfirmed { - const _$BdkError_TransactionConfirmedImpl(); + extends BdkError_TransactionConfirmed { + const _$BdkError_TransactionConfirmedImpl() : super._(); @override String toString() { @@ -9897,6 +10231,9 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return transactionConfirmed(); } @@ -9947,6 +10284,9 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return transactionConfirmed?.call(); } @@ -9997,6 +10337,9 @@ class _$BdkError_TransactionConfirmedImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (transactionConfirmed != null) { @@ -10062,6 +10405,10 @@ class _$BdkError_TransactionConfirmedImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return transactionConfirmed(this); } @@ -10120,6 +10467,9 @@ class _$BdkError_TransactionConfirmedImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return transactionConfirmed?.call(this); } @@ -10175,6 +10525,9 @@ class _$BdkError_TransactionConfirmedImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (transactionConfirmed != null) { @@ -10184,9 +10537,10 @@ class _$BdkError_TransactionConfirmedImpl } } -abstract class BdkError_TransactionConfirmed implements BdkError { +abstract class BdkError_TransactionConfirmed extends BdkError { const factory BdkError_TransactionConfirmed() = _$BdkError_TransactionConfirmedImpl; + const BdkError_TransactionConfirmed._() : super._(); } /// @nodoc @@ -10211,8 +10565,8 @@ class __$$BdkError_IrreplaceableTransactionImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_IrreplaceableTransactionImpl - implements BdkError_IrreplaceableTransaction { - const _$BdkError_IrreplaceableTransactionImpl(); + extends BdkError_IrreplaceableTransaction { + const _$BdkError_IrreplaceableTransactionImpl() : super._(); @override String toString() { @@ -10275,6 +10629,9 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return irreplaceableTransaction(); } @@ -10325,6 +10682,9 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return irreplaceableTransaction?.call(); } @@ -10375,6 +10735,9 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (irreplaceableTransaction != null) { @@ -10440,6 +10803,10 @@ class _$BdkError_IrreplaceableTransactionImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return irreplaceableTransaction(this); } @@ -10498,6 +10865,9 @@ class _$BdkError_IrreplaceableTransactionImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return irreplaceableTransaction?.call(this); } @@ -10553,6 +10923,9 @@ class _$BdkError_IrreplaceableTransactionImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (irreplaceableTransaction != null) { @@ -10562,9 +10935,10 @@ class _$BdkError_IrreplaceableTransactionImpl } } -abstract class BdkError_IrreplaceableTransaction implements BdkError { +abstract class BdkError_IrreplaceableTransaction extends BdkError { const factory BdkError_IrreplaceableTransaction() = _$BdkError_IrreplaceableTransactionImpl; + const BdkError_IrreplaceableTransaction._() : super._(); } /// @nodoc @@ -10602,8 +10976,8 @@ class __$$BdkError_FeeRateTooLowImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { - const _$BdkError_FeeRateTooLowImpl({required this.needed}); +class _$BdkError_FeeRateTooLowImpl extends BdkError_FeeRateTooLow { + const _$BdkError_FeeRateTooLowImpl({required this.needed}) : super._(); /// Required fee rate (satoshi/vbyte) @override @@ -10678,6 +11052,9 @@ class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return feeRateTooLow(needed); } @@ -10728,6 +11105,9 @@ class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return feeRateTooLow?.call(needed); } @@ -10778,6 +11158,9 @@ class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (feeRateTooLow != null) { @@ -10843,6 +11226,10 @@ class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return feeRateTooLow(this); } @@ -10901,6 +11288,9 @@ class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return feeRateTooLow?.call(this); } @@ -10956,6 +11346,9 @@ class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (feeRateTooLow != null) { @@ -10965,9 +11358,10 @@ class _$BdkError_FeeRateTooLowImpl implements BdkError_FeeRateTooLow { } } -abstract class BdkError_FeeRateTooLow implements BdkError { +abstract class BdkError_FeeRateTooLow extends BdkError { const factory BdkError_FeeRateTooLow({required final double needed}) = _$BdkError_FeeRateTooLowImpl; + const BdkError_FeeRateTooLow._() : super._(); /// Required fee rate (satoshi/vbyte) double get needed; @@ -11009,8 +11403,8 @@ class __$$BdkError_FeeTooLowImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { - const _$BdkError_FeeTooLowImpl({required this.needed}); +class _$BdkError_FeeTooLowImpl extends BdkError_FeeTooLow { + const _$BdkError_FeeTooLowImpl({required this.needed}) : super._(); /// Required fee absolute value (satoshi) @override @@ -11085,6 +11479,9 @@ class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return feeTooLow(needed); } @@ -11135,6 +11532,9 @@ class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return feeTooLow?.call(needed); } @@ -11185,6 +11585,9 @@ class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (feeTooLow != null) { @@ -11250,6 +11653,10 @@ class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return feeTooLow(this); } @@ -11308,6 +11715,9 @@ class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return feeTooLow?.call(this); } @@ -11363,6 +11773,9 @@ class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (feeTooLow != null) { @@ -11372,9 +11785,10 @@ class _$BdkError_FeeTooLowImpl implements BdkError_FeeTooLow { } } -abstract class BdkError_FeeTooLow implements BdkError { +abstract class BdkError_FeeTooLow extends BdkError { const factory BdkError_FeeTooLow({required final int needed}) = _$BdkError_FeeTooLowImpl; + const BdkError_FeeTooLow._() : super._(); /// Required fee absolute value (satoshi) int get needed; @@ -11403,8 +11817,8 @@ class __$$BdkError_FeeRateUnavailableImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { - const _$BdkError_FeeRateUnavailableImpl(); +class _$BdkError_FeeRateUnavailableImpl extends BdkError_FeeRateUnavailable { + const _$BdkError_FeeRateUnavailableImpl() : super._(); @override String toString() { @@ -11467,6 +11881,9 @@ class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return feeRateUnavailable(); } @@ -11517,6 +11934,9 @@ class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return feeRateUnavailable?.call(); } @@ -11567,6 +11987,9 @@ class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (feeRateUnavailable != null) { @@ -11632,6 +12055,10 @@ class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return feeRateUnavailable(this); } @@ -11690,6 +12117,9 @@ class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return feeRateUnavailable?.call(this); } @@ -11745,6 +12175,9 @@ class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (feeRateUnavailable != null) { @@ -11754,9 +12187,10 @@ class _$BdkError_FeeRateUnavailableImpl implements BdkError_FeeRateUnavailable { } } -abstract class BdkError_FeeRateUnavailable implements BdkError { +abstract class BdkError_FeeRateUnavailable extends BdkError { const factory BdkError_FeeRateUnavailable() = _$BdkError_FeeRateUnavailableImpl; + const BdkError_FeeRateUnavailable._() : super._(); } /// @nodoc @@ -11794,8 +12228,8 @@ class __$$BdkError_MissingKeyOriginImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { - const _$BdkError_MissingKeyOriginImpl(this.field0); +class _$BdkError_MissingKeyOriginImpl extends BdkError_MissingKeyOrigin { + const _$BdkError_MissingKeyOriginImpl(this.field0) : super._(); @override final String field0; @@ -11869,6 +12303,9 @@ class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return missingKeyOrigin(field0); } @@ -11919,6 +12356,9 @@ class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return missingKeyOrigin?.call(field0); } @@ -11969,6 +12409,9 @@ class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (missingKeyOrigin != null) { @@ -12034,6 +12477,10 @@ class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return missingKeyOrigin(this); } @@ -12092,6 +12539,9 @@ class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return missingKeyOrigin?.call(this); } @@ -12147,6 +12597,9 @@ class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (missingKeyOrigin != null) { @@ -12156,9 +12609,10 @@ class _$BdkError_MissingKeyOriginImpl implements BdkError_MissingKeyOrigin { } } -abstract class BdkError_MissingKeyOrigin implements BdkError { +abstract class BdkError_MissingKeyOrigin extends BdkError { const factory BdkError_MissingKeyOrigin(final String field0) = _$BdkError_MissingKeyOriginImpl; + const BdkError_MissingKeyOrigin._() : super._(); String get field0; @JsonKey(ignore: true) @@ -12199,8 +12653,8 @@ class __$$BdkError_KeyImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_KeyImpl implements BdkError_Key { - const _$BdkError_KeyImpl(this.field0); +class _$BdkError_KeyImpl extends BdkError_Key { + const _$BdkError_KeyImpl(this.field0) : super._(); @override final String field0; @@ -12273,6 +12727,9 @@ class _$BdkError_KeyImpl implements BdkError_Key { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return key(field0); } @@ -12323,6 +12780,9 @@ class _$BdkError_KeyImpl implements BdkError_Key { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return key?.call(field0); } @@ -12373,6 +12833,9 @@ class _$BdkError_KeyImpl implements BdkError_Key { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (key != null) { @@ -12438,6 +12901,10 @@ class _$BdkError_KeyImpl implements BdkError_Key { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return key(this); } @@ -12496,6 +12963,9 @@ class _$BdkError_KeyImpl implements BdkError_Key { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return key?.call(this); } @@ -12551,6 +13021,9 @@ class _$BdkError_KeyImpl implements BdkError_Key { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (key != null) { @@ -12560,8 +13033,9 @@ class _$BdkError_KeyImpl implements BdkError_Key { } } -abstract class BdkError_Key implements BdkError { +abstract class BdkError_Key extends BdkError { const factory BdkError_Key(final String field0) = _$BdkError_KeyImpl; + const BdkError_Key._() : super._(); String get field0; @JsonKey(ignore: true) @@ -12589,8 +13063,8 @@ class __$$BdkError_ChecksumMismatchImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { - const _$BdkError_ChecksumMismatchImpl(); +class _$BdkError_ChecksumMismatchImpl extends BdkError_ChecksumMismatch { + const _$BdkError_ChecksumMismatchImpl() : super._(); @override String toString() { @@ -12653,6 +13127,9 @@ class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return checksumMismatch(); } @@ -12703,6 +13180,9 @@ class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return checksumMismatch?.call(); } @@ -12753,6 +13233,9 @@ class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (checksumMismatch != null) { @@ -12818,6 +13301,10 @@ class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return checksumMismatch(this); } @@ -12876,6 +13363,9 @@ class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return checksumMismatch?.call(this); } @@ -12931,6 +13421,9 @@ class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (checksumMismatch != null) { @@ -12940,8 +13433,9 @@ class _$BdkError_ChecksumMismatchImpl implements BdkError_ChecksumMismatch { } } -abstract class BdkError_ChecksumMismatch implements BdkError { +abstract class BdkError_ChecksumMismatch extends BdkError { const factory BdkError_ChecksumMismatch() = _$BdkError_ChecksumMismatchImpl; + const BdkError_ChecksumMismatch._() : super._(); } /// @nodoc @@ -12980,8 +13474,8 @@ class __$$BdkError_SpendingPolicyRequiredImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_SpendingPolicyRequiredImpl - implements BdkError_SpendingPolicyRequired { - const _$BdkError_SpendingPolicyRequiredImpl(this.field0); + extends BdkError_SpendingPolicyRequired { + const _$BdkError_SpendingPolicyRequiredImpl(this.field0) : super._(); @override final KeychainKind field0; @@ -13056,6 +13550,9 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return spendingPolicyRequired(field0); } @@ -13106,6 +13603,9 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return spendingPolicyRequired?.call(field0); } @@ -13156,6 +13656,9 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (spendingPolicyRequired != null) { @@ -13221,6 +13724,10 @@ class _$BdkError_SpendingPolicyRequiredImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return spendingPolicyRequired(this); } @@ -13279,6 +13786,9 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return spendingPolicyRequired?.call(this); } @@ -13334,6 +13844,9 @@ class _$BdkError_SpendingPolicyRequiredImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (spendingPolicyRequired != null) { @@ -13343,9 +13856,10 @@ class _$BdkError_SpendingPolicyRequiredImpl } } -abstract class BdkError_SpendingPolicyRequired implements BdkError { +abstract class BdkError_SpendingPolicyRequired extends BdkError { const factory BdkError_SpendingPolicyRequired(final KeychainKind field0) = _$BdkError_SpendingPolicyRequiredImpl; + const BdkError_SpendingPolicyRequired._() : super._(); KeychainKind get field0; @JsonKey(ignore: true) @@ -13390,8 +13904,8 @@ class __$$BdkError_InvalidPolicyPathErrorImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_InvalidPolicyPathErrorImpl - implements BdkError_InvalidPolicyPathError { - const _$BdkError_InvalidPolicyPathErrorImpl(this.field0); + extends BdkError_InvalidPolicyPathError { + const _$BdkError_InvalidPolicyPathErrorImpl(this.field0) : super._(); @override final String field0; @@ -13466,6 +13980,9 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return invalidPolicyPathError(field0); } @@ -13516,6 +14033,9 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return invalidPolicyPathError?.call(field0); } @@ -13566,6 +14086,9 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (invalidPolicyPathError != null) { @@ -13631,6 +14154,10 @@ class _$BdkError_InvalidPolicyPathErrorImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return invalidPolicyPathError(this); } @@ -13689,6 +14216,9 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return invalidPolicyPathError?.call(this); } @@ -13744,6 +14274,9 @@ class _$BdkError_InvalidPolicyPathErrorImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (invalidPolicyPathError != null) { @@ -13753,9 +14286,10 @@ class _$BdkError_InvalidPolicyPathErrorImpl } } -abstract class BdkError_InvalidPolicyPathError implements BdkError { +abstract class BdkError_InvalidPolicyPathError extends BdkError { const factory BdkError_InvalidPolicyPathError(final String field0) = _$BdkError_InvalidPolicyPathErrorImpl; + const BdkError_InvalidPolicyPathError._() : super._(); String get field0; @JsonKey(ignore: true) @@ -13797,8 +14331,8 @@ class __$$BdkError_SignerImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_SignerImpl implements BdkError_Signer { - const _$BdkError_SignerImpl(this.field0); +class _$BdkError_SignerImpl extends BdkError_Signer { + const _$BdkError_SignerImpl(this.field0) : super._(); @override final String field0; @@ -13872,6 +14406,9 @@ class _$BdkError_SignerImpl implements BdkError_Signer { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return signer(field0); } @@ -13922,6 +14459,9 @@ class _$BdkError_SignerImpl implements BdkError_Signer { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return signer?.call(field0); } @@ -13972,6 +14512,9 @@ class _$BdkError_SignerImpl implements BdkError_Signer { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (signer != null) { @@ -14037,6 +14580,10 @@ class _$BdkError_SignerImpl implements BdkError_Signer { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return signer(this); } @@ -14095,6 +14642,9 @@ class _$BdkError_SignerImpl implements BdkError_Signer { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return signer?.call(this); } @@ -14150,6 +14700,9 @@ class _$BdkError_SignerImpl implements BdkError_Signer { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (signer != null) { @@ -14159,8 +14712,9 @@ class _$BdkError_SignerImpl implements BdkError_Signer { } } -abstract class BdkError_Signer implements BdkError { +abstract class BdkError_Signer extends BdkError { const factory BdkError_Signer(final String field0) = _$BdkError_SignerImpl; + const BdkError_Signer._() : super._(); String get field0; @JsonKey(ignore: true) @@ -14208,9 +14762,10 @@ class __$$BdkError_InvalidNetworkImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { +class _$BdkError_InvalidNetworkImpl extends BdkError_InvalidNetwork { const _$BdkError_InvalidNetworkImpl( - {required this.requested, required this.found}); + {required this.requested, required this.found}) + : super._(); /// requested network, for example what is given as bdk-cli option @override @@ -14291,6 +14846,9 @@ class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return invalidNetwork(requested, found); } @@ -14341,6 +14899,9 @@ class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return invalidNetwork?.call(requested, found); } @@ -14391,6 +14952,9 @@ class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (invalidNetwork != null) { @@ -14456,6 +15020,10 @@ class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return invalidNetwork(this); } @@ -14514,6 +15082,9 @@ class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return invalidNetwork?.call(this); } @@ -14569,6 +15140,9 @@ class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (invalidNetwork != null) { @@ -14578,10 +15152,11 @@ class _$BdkError_InvalidNetworkImpl implements BdkError_InvalidNetwork { } } -abstract class BdkError_InvalidNetwork implements BdkError { +abstract class BdkError_InvalidNetwork extends BdkError { const factory BdkError_InvalidNetwork( {required final Network requested, required final Network found}) = _$BdkError_InvalidNetworkImpl; + const BdkError_InvalidNetwork._() : super._(); /// requested network, for example what is given as bdk-cli option Network get requested; @@ -14628,8 +15203,8 @@ class __$$BdkError_InvalidOutpointImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { - const _$BdkError_InvalidOutpointImpl(this.field0); +class _$BdkError_InvalidOutpointImpl extends BdkError_InvalidOutpoint { + const _$BdkError_InvalidOutpointImpl(this.field0) : super._(); @override final OutPoint field0; @@ -14703,6 +15278,9 @@ class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return invalidOutpoint(field0); } @@ -14753,6 +15331,9 @@ class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return invalidOutpoint?.call(field0); } @@ -14803,6 +15384,9 @@ class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (invalidOutpoint != null) { @@ -14868,6 +15452,10 @@ class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return invalidOutpoint(this); } @@ -14926,6 +15514,9 @@ class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return invalidOutpoint?.call(this); } @@ -14981,6 +15572,9 @@ class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (invalidOutpoint != null) { @@ -14990,9 +15584,10 @@ class _$BdkError_InvalidOutpointImpl implements BdkError_InvalidOutpoint { } } -abstract class BdkError_InvalidOutpoint implements BdkError { +abstract class BdkError_InvalidOutpoint extends BdkError { const factory BdkError_InvalidOutpoint(final OutPoint field0) = _$BdkError_InvalidOutpointImpl; + const BdkError_InvalidOutpoint._() : super._(); OutPoint get field0; @JsonKey(ignore: true) @@ -15033,8 +15628,8 @@ class __$$BdkError_EncodeImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_EncodeImpl implements BdkError_Encode { - const _$BdkError_EncodeImpl(this.field0); +class _$BdkError_EncodeImpl extends BdkError_Encode { + const _$BdkError_EncodeImpl(this.field0) : super._(); @override final String field0; @@ -15108,6 +15703,9 @@ class _$BdkError_EncodeImpl implements BdkError_Encode { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return encode(field0); } @@ -15158,6 +15756,9 @@ class _$BdkError_EncodeImpl implements BdkError_Encode { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return encode?.call(field0); } @@ -15208,6 +15809,9 @@ class _$BdkError_EncodeImpl implements BdkError_Encode { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (encode != null) { @@ -15273,6 +15877,10 @@ class _$BdkError_EncodeImpl implements BdkError_Encode { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return encode(this); } @@ -15331,6 +15939,9 @@ class _$BdkError_EncodeImpl implements BdkError_Encode { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return encode?.call(this); } @@ -15386,6 +15997,9 @@ class _$BdkError_EncodeImpl implements BdkError_Encode { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (encode != null) { @@ -15395,8 +16009,9 @@ class _$BdkError_EncodeImpl implements BdkError_Encode { } } -abstract class BdkError_Encode implements BdkError { +abstract class BdkError_Encode extends BdkError { const factory BdkError_Encode(final String field0) = _$BdkError_EncodeImpl; + const BdkError_Encode._() : super._(); String get field0; @JsonKey(ignore: true) @@ -15437,8 +16052,8 @@ class __$$BdkError_MiniscriptImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { - const _$BdkError_MiniscriptImpl(this.field0); +class _$BdkError_MiniscriptImpl extends BdkError_Miniscript { + const _$BdkError_MiniscriptImpl(this.field0) : super._(); @override final String field0; @@ -15512,6 +16127,9 @@ class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return miniscript(field0); } @@ -15562,6 +16180,9 @@ class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return miniscript?.call(field0); } @@ -15612,6 +16233,9 @@ class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (miniscript != null) { @@ -15677,6 +16301,10 @@ class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return miniscript(this); } @@ -15735,6 +16363,9 @@ class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return miniscript?.call(this); } @@ -15790,6 +16421,9 @@ class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (miniscript != null) { @@ -15799,9 +16433,10 @@ class _$BdkError_MiniscriptImpl implements BdkError_Miniscript { } } -abstract class BdkError_Miniscript implements BdkError { +abstract class BdkError_Miniscript extends BdkError { const factory BdkError_Miniscript(final String field0) = _$BdkError_MiniscriptImpl; + const BdkError_Miniscript._() : super._(); String get field0; @JsonKey(ignore: true) @@ -15844,8 +16479,8 @@ class __$$BdkError_MiniscriptPsbtImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { - const _$BdkError_MiniscriptPsbtImpl(this.field0); +class _$BdkError_MiniscriptPsbtImpl extends BdkError_MiniscriptPsbt { + const _$BdkError_MiniscriptPsbtImpl(this.field0) : super._(); @override final String field0; @@ -15919,6 +16554,9 @@ class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return miniscriptPsbt(field0); } @@ -15969,6 +16607,9 @@ class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return miniscriptPsbt?.call(field0); } @@ -16019,6 +16660,9 @@ class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (miniscriptPsbt != null) { @@ -16084,6 +16728,10 @@ class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return miniscriptPsbt(this); } @@ -16142,6 +16790,9 @@ class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return miniscriptPsbt?.call(this); } @@ -16197,6 +16848,9 @@ class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (miniscriptPsbt != null) { @@ -16206,9 +16860,10 @@ class _$BdkError_MiniscriptPsbtImpl implements BdkError_MiniscriptPsbt { } } -abstract class BdkError_MiniscriptPsbt implements BdkError { +abstract class BdkError_MiniscriptPsbt extends BdkError { const factory BdkError_MiniscriptPsbt(final String field0) = _$BdkError_MiniscriptPsbtImpl; + const BdkError_MiniscriptPsbt._() : super._(); String get field0; @JsonKey(ignore: true) @@ -16249,8 +16904,8 @@ class __$$BdkError_Bip32ImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_Bip32Impl implements BdkError_Bip32 { - const _$BdkError_Bip32Impl(this.field0); +class _$BdkError_Bip32Impl extends BdkError_Bip32 { + const _$BdkError_Bip32Impl(this.field0) : super._(); @override final String field0; @@ -16324,6 +16979,9 @@ class _$BdkError_Bip32Impl implements BdkError_Bip32 { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return bip32(field0); } @@ -16374,6 +17032,9 @@ class _$BdkError_Bip32Impl implements BdkError_Bip32 { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return bip32?.call(field0); } @@ -16424,6 +17085,9 @@ class _$BdkError_Bip32Impl implements BdkError_Bip32 { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (bip32 != null) { @@ -16489,6 +17153,10 @@ class _$BdkError_Bip32Impl implements BdkError_Bip32 { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return bip32(this); } @@ -16547,6 +17215,9 @@ class _$BdkError_Bip32Impl implements BdkError_Bip32 { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return bip32?.call(this); } @@ -16602,6 +17273,9 @@ class _$BdkError_Bip32Impl implements BdkError_Bip32 { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (bip32 != null) { @@ -16611,8 +17285,9 @@ class _$BdkError_Bip32Impl implements BdkError_Bip32 { } } -abstract class BdkError_Bip32 implements BdkError { +abstract class BdkError_Bip32 extends BdkError { const factory BdkError_Bip32(final String field0) = _$BdkError_Bip32Impl; + const BdkError_Bip32._() : super._(); String get field0; @JsonKey(ignore: true) @@ -16653,8 +17328,8 @@ class __$$BdkError_Bip39ImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_Bip39Impl implements BdkError_Bip39 { - const _$BdkError_Bip39Impl(this.field0); +class _$BdkError_Bip39Impl extends BdkError_Bip39 { + const _$BdkError_Bip39Impl(this.field0) : super._(); @override final String field0; @@ -16728,6 +17403,9 @@ class _$BdkError_Bip39Impl implements BdkError_Bip39 { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return bip39(field0); } @@ -16778,6 +17456,9 @@ class _$BdkError_Bip39Impl implements BdkError_Bip39 { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return bip39?.call(field0); } @@ -16828,6 +17509,9 @@ class _$BdkError_Bip39Impl implements BdkError_Bip39 { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (bip39 != null) { @@ -16893,6 +17577,10 @@ class _$BdkError_Bip39Impl implements BdkError_Bip39 { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return bip39(this); } @@ -16951,6 +17639,9 @@ class _$BdkError_Bip39Impl implements BdkError_Bip39 { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return bip39?.call(this); } @@ -17006,6 +17697,9 @@ class _$BdkError_Bip39Impl implements BdkError_Bip39 { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (bip39 != null) { @@ -17015,8 +17709,9 @@ class _$BdkError_Bip39Impl implements BdkError_Bip39 { } } -abstract class BdkError_Bip39 implements BdkError { +abstract class BdkError_Bip39 extends BdkError { const factory BdkError_Bip39(final String field0) = _$BdkError_Bip39Impl; + const BdkError_Bip39._() : super._(); String get field0; @JsonKey(ignore: true) @@ -17057,8 +17752,8 @@ class __$$BdkError_Secp256k1ImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { - const _$BdkError_Secp256k1Impl(this.field0); +class _$BdkError_Secp256k1Impl extends BdkError_Secp256k1 { + const _$BdkError_Secp256k1Impl(this.field0) : super._(); @override final String field0; @@ -17132,6 +17827,9 @@ class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return secp256K1(field0); } @@ -17182,6 +17880,9 @@ class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return secp256K1?.call(field0); } @@ -17232,6 +17933,9 @@ class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (secp256K1 != null) { @@ -17297,6 +18001,10 @@ class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return secp256K1(this); } @@ -17355,6 +18063,9 @@ class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return secp256K1?.call(this); } @@ -17410,6 +18121,9 @@ class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (secp256K1 != null) { @@ -17419,9 +18133,10 @@ class _$BdkError_Secp256k1Impl implements BdkError_Secp256k1 { } } -abstract class BdkError_Secp256k1 implements BdkError { +abstract class BdkError_Secp256k1 extends BdkError { const factory BdkError_Secp256k1(final String field0) = _$BdkError_Secp256k1Impl; + const BdkError_Secp256k1._() : super._(); String get field0; @JsonKey(ignore: true) @@ -17462,8 +18177,8 @@ class __$$BdkError_JsonImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_JsonImpl implements BdkError_Json { - const _$BdkError_JsonImpl(this.field0); +class _$BdkError_JsonImpl extends BdkError_Json { + const _$BdkError_JsonImpl(this.field0) : super._(); @override final String field0; @@ -17536,6 +18251,9 @@ class _$BdkError_JsonImpl implements BdkError_Json { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return json(field0); } @@ -17586,6 +18304,9 @@ class _$BdkError_JsonImpl implements BdkError_Json { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return json?.call(field0); } @@ -17636,6 +18357,9 @@ class _$BdkError_JsonImpl implements BdkError_Json { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (json != null) { @@ -17701,6 +18425,10 @@ class _$BdkError_JsonImpl implements BdkError_Json { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return json(this); } @@ -17759,6 +18487,9 @@ class _$BdkError_JsonImpl implements BdkError_Json { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return json?.call(this); } @@ -17814,6 +18545,9 @@ class _$BdkError_JsonImpl implements BdkError_Json { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (json != null) { @@ -17823,8 +18557,9 @@ class _$BdkError_JsonImpl implements BdkError_Json { } } -abstract class BdkError_Json implements BdkError { +abstract class BdkError_Json extends BdkError { const factory BdkError_Json(final String field0) = _$BdkError_JsonImpl; + const BdkError_Json._() : super._(); String get field0; @JsonKey(ignore: true) @@ -17865,8 +18600,8 @@ class __$$BdkError_PsbtImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_PsbtImpl implements BdkError_Psbt { - const _$BdkError_PsbtImpl(this.field0); +class _$BdkError_PsbtImpl extends BdkError_Psbt { + const _$BdkError_PsbtImpl(this.field0) : super._(); @override final String field0; @@ -17939,6 +18674,9 @@ class _$BdkError_PsbtImpl implements BdkError_Psbt { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return psbt(field0); } @@ -17989,6 +18727,9 @@ class _$BdkError_PsbtImpl implements BdkError_Psbt { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return psbt?.call(field0); } @@ -18039,6 +18780,9 @@ class _$BdkError_PsbtImpl implements BdkError_Psbt { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (psbt != null) { @@ -18104,6 +18848,10 @@ class _$BdkError_PsbtImpl implements BdkError_Psbt { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return psbt(this); } @@ -18162,6 +18910,9 @@ class _$BdkError_PsbtImpl implements BdkError_Psbt { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return psbt?.call(this); } @@ -18217,6 +18968,9 @@ class _$BdkError_PsbtImpl implements BdkError_Psbt { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (psbt != null) { @@ -18226,8 +18980,9 @@ class _$BdkError_PsbtImpl implements BdkError_Psbt { } } -abstract class BdkError_Psbt implements BdkError { +abstract class BdkError_Psbt extends BdkError { const factory BdkError_Psbt(final String field0) = _$BdkError_PsbtImpl; + const BdkError_Psbt._() : super._(); String get field0; @JsonKey(ignore: true) @@ -18268,8 +19023,8 @@ class __$$BdkError_PsbtParseImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { - const _$BdkError_PsbtParseImpl(this.field0); +class _$BdkError_PsbtParseImpl extends BdkError_PsbtParse { + const _$BdkError_PsbtParseImpl(this.field0) : super._(); @override final String field0; @@ -18343,6 +19098,9 @@ class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return psbtParse(field0); } @@ -18393,6 +19151,9 @@ class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return psbtParse?.call(field0); } @@ -18443,6 +19204,9 @@ class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (psbtParse != null) { @@ -18508,6 +19272,10 @@ class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return psbtParse(this); } @@ -18566,6 +19334,9 @@ class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return psbtParse?.call(this); } @@ -18621,6 +19392,9 @@ class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (psbtParse != null) { @@ -18630,9 +19404,10 @@ class _$BdkError_PsbtParseImpl implements BdkError_PsbtParse { } } -abstract class BdkError_PsbtParse implements BdkError { +abstract class BdkError_PsbtParse extends BdkError { const factory BdkError_PsbtParse(final String field0) = _$BdkError_PsbtParseImpl; + const BdkError_PsbtParse._() : super._(); String get field0; @JsonKey(ignore: true) @@ -18681,8 +19456,9 @@ class __$$BdkError_MissingCachedScriptsImplCopyWithImpl<$Res> /// @nodoc class _$BdkError_MissingCachedScriptsImpl - implements BdkError_MissingCachedScripts { - const _$BdkError_MissingCachedScriptsImpl(this.field0, this.field1); + extends BdkError_MissingCachedScripts { + const _$BdkError_MissingCachedScriptsImpl(this.field0, this.field1) + : super._(); @override final int field0; @@ -18760,6 +19536,9 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return missingCachedScripts(field0, field1); } @@ -18810,6 +19589,9 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return missingCachedScripts?.call(field0, field1); } @@ -18860,6 +19642,9 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (missingCachedScripts != null) { @@ -18925,6 +19710,10 @@ class _$BdkError_MissingCachedScriptsImpl required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return missingCachedScripts(this); } @@ -18983,6 +19772,9 @@ class _$BdkError_MissingCachedScriptsImpl TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return missingCachedScripts?.call(this); } @@ -19038,6 +19830,9 @@ class _$BdkError_MissingCachedScriptsImpl TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (missingCachedScripts != null) { @@ -19047,9 +19842,10 @@ class _$BdkError_MissingCachedScriptsImpl } } -abstract class BdkError_MissingCachedScripts implements BdkError { +abstract class BdkError_MissingCachedScripts extends BdkError { const factory BdkError_MissingCachedScripts( final int field0, final int field1) = _$BdkError_MissingCachedScriptsImpl; + const BdkError_MissingCachedScripts._() : super._(); int get field0; int get field1; @@ -19092,8 +19888,8 @@ class __$$BdkError_ElectrumImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_ElectrumImpl implements BdkError_Electrum { - const _$BdkError_ElectrumImpl(this.field0); +class _$BdkError_ElectrumImpl extends BdkError_Electrum { + const _$BdkError_ElectrumImpl(this.field0) : super._(); @override final String field0; @@ -19167,6 +19963,9 @@ class _$BdkError_ElectrumImpl implements BdkError_Electrum { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return electrum(field0); } @@ -19217,6 +20016,9 @@ class _$BdkError_ElectrumImpl implements BdkError_Electrum { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return electrum?.call(field0); } @@ -19267,6 +20069,9 @@ class _$BdkError_ElectrumImpl implements BdkError_Electrum { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (electrum != null) { @@ -19332,6 +20137,10 @@ class _$BdkError_ElectrumImpl implements BdkError_Electrum { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return electrum(this); } @@ -19390,6 +20199,9 @@ class _$BdkError_ElectrumImpl implements BdkError_Electrum { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return electrum?.call(this); } @@ -19445,6 +20257,9 @@ class _$BdkError_ElectrumImpl implements BdkError_Electrum { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (electrum != null) { @@ -19454,9 +20269,10 @@ class _$BdkError_ElectrumImpl implements BdkError_Electrum { } } -abstract class BdkError_Electrum implements BdkError { +abstract class BdkError_Electrum extends BdkError { const factory BdkError_Electrum(final String field0) = _$BdkError_ElectrumImpl; + const BdkError_Electrum._() : super._(); String get field0; @JsonKey(ignore: true) @@ -19497,8 +20313,8 @@ class __$$BdkError_EsploraImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_EsploraImpl implements BdkError_Esplora { - const _$BdkError_EsploraImpl(this.field0); +class _$BdkError_EsploraImpl extends BdkError_Esplora { + const _$BdkError_EsploraImpl(this.field0) : super._(); @override final String field0; @@ -19572,6 +20388,9 @@ class _$BdkError_EsploraImpl implements BdkError_Esplora { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return esplora(field0); } @@ -19622,6 +20441,9 @@ class _$BdkError_EsploraImpl implements BdkError_Esplora { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return esplora?.call(field0); } @@ -19672,6 +20494,9 @@ class _$BdkError_EsploraImpl implements BdkError_Esplora { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (esplora != null) { @@ -19737,6 +20562,10 @@ class _$BdkError_EsploraImpl implements BdkError_Esplora { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return esplora(this); } @@ -19795,6 +20624,9 @@ class _$BdkError_EsploraImpl implements BdkError_Esplora { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return esplora?.call(this); } @@ -19850,6 +20682,9 @@ class _$BdkError_EsploraImpl implements BdkError_Esplora { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (esplora != null) { @@ -19859,8 +20694,9 @@ class _$BdkError_EsploraImpl implements BdkError_Esplora { } } -abstract class BdkError_Esplora implements BdkError { +abstract class BdkError_Esplora extends BdkError { const factory BdkError_Esplora(final String field0) = _$BdkError_EsploraImpl; + const BdkError_Esplora._() : super._(); String get field0; @JsonKey(ignore: true) @@ -19901,8 +20737,8 @@ class __$$BdkError_SledImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_SledImpl implements BdkError_Sled { - const _$BdkError_SledImpl(this.field0); +class _$BdkError_SledImpl extends BdkError_Sled { + const _$BdkError_SledImpl(this.field0) : super._(); @override final String field0; @@ -19975,6 +20811,9 @@ class _$BdkError_SledImpl implements BdkError_Sled { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return sled(field0); } @@ -20025,6 +20864,9 @@ class _$BdkError_SledImpl implements BdkError_Sled { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return sled?.call(field0); } @@ -20075,6 +20917,9 @@ class _$BdkError_SledImpl implements BdkError_Sled { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (sled != null) { @@ -20140,6 +20985,10 @@ class _$BdkError_SledImpl implements BdkError_Sled { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return sled(this); } @@ -20198,6 +21047,9 @@ class _$BdkError_SledImpl implements BdkError_Sled { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return sled?.call(this); } @@ -20253,6 +21105,9 @@ class _$BdkError_SledImpl implements BdkError_Sled { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (sled != null) { @@ -20262,8 +21117,9 @@ class _$BdkError_SledImpl implements BdkError_Sled { } } -abstract class BdkError_Sled implements BdkError { +abstract class BdkError_Sled extends BdkError { const factory BdkError_Sled(final String field0) = _$BdkError_SledImpl; + const BdkError_Sled._() : super._(); String get field0; @JsonKey(ignore: true) @@ -20304,8 +21160,8 @@ class __$$BdkError_RpcImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_RpcImpl implements BdkError_Rpc { - const _$BdkError_RpcImpl(this.field0); +class _$BdkError_RpcImpl extends BdkError_Rpc { + const _$BdkError_RpcImpl(this.field0) : super._(); @override final String field0; @@ -20378,6 +21234,9 @@ class _$BdkError_RpcImpl implements BdkError_Rpc { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return rpc(field0); } @@ -20428,6 +21287,9 @@ class _$BdkError_RpcImpl implements BdkError_Rpc { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return rpc?.call(field0); } @@ -20478,6 +21340,9 @@ class _$BdkError_RpcImpl implements BdkError_Rpc { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (rpc != null) { @@ -20543,6 +21408,10 @@ class _$BdkError_RpcImpl implements BdkError_Rpc { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return rpc(this); } @@ -20601,6 +21470,9 @@ class _$BdkError_RpcImpl implements BdkError_Rpc { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return rpc?.call(this); } @@ -20656,6 +21528,9 @@ class _$BdkError_RpcImpl implements BdkError_Rpc { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (rpc != null) { @@ -20665,8 +21540,9 @@ class _$BdkError_RpcImpl implements BdkError_Rpc { } } -abstract class BdkError_Rpc implements BdkError { +abstract class BdkError_Rpc extends BdkError { const factory BdkError_Rpc(final String field0) = _$BdkError_RpcImpl; + const BdkError_Rpc._() : super._(); String get field0; @JsonKey(ignore: true) @@ -20707,8 +21583,8 @@ class __$$BdkError_RusqliteImplCopyWithImpl<$Res> /// @nodoc -class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { - const _$BdkError_RusqliteImpl(this.field0); +class _$BdkError_RusqliteImpl extends BdkError_Rusqlite { + const _$BdkError_RusqliteImpl(this.field0) : super._(); @override final String field0; @@ -20782,6 +21658,9 @@ class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { required TResult Function(String field0) sled, required TResult Function(String field0) rpc, required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, }) { return rusqlite(field0); } @@ -20832,6 +21711,9 @@ class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { TResult? Function(String field0)? sled, TResult? Function(String field0)? rpc, TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, }) { return rusqlite?.call(field0); } @@ -20882,6 +21764,9 @@ class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { TResult Function(String field0)? sled, TResult Function(String field0)? rpc, TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, required TResult orElse(), }) { if (rusqlite != null) { @@ -20947,6 +21832,10 @@ class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { required TResult Function(BdkError_Sled value) sled, required TResult Function(BdkError_Rpc value) rpc, required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, }) { return rusqlite(this); } @@ -21005,6 +21894,9 @@ class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { TResult? Function(BdkError_Sled value)? sled, TResult? Function(BdkError_Rpc value)? rpc, TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, }) { return rusqlite?.call(this); } @@ -21060,6 +21952,9 @@ class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { TResult Function(BdkError_Sled value)? sled, TResult Function(BdkError_Rpc value)? rpc, TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, required TResult orElse(), }) { if (rusqlite != null) { @@ -21069,9 +21964,10 @@ class _$BdkError_RusqliteImpl implements BdkError_Rusqlite { } } -abstract class BdkError_Rusqlite implements BdkError { +abstract class BdkError_Rusqlite extends BdkError { const factory BdkError_Rusqlite(final String field0) = _$BdkError_RusqliteImpl; + const BdkError_Rusqlite._() : super._(); String get field0; @JsonKey(ignore: true) @@ -21079,6 +21975,1286 @@ abstract class BdkError_Rusqlite implements BdkError { throw _privateConstructorUsedError; } +/// @nodoc +abstract class _$$BdkError_InvalidInputImplCopyWith<$Res> { + factory _$$BdkError_InvalidInputImplCopyWith( + _$BdkError_InvalidInputImpl value, + $Res Function(_$BdkError_InvalidInputImpl) then) = + __$$BdkError_InvalidInputImplCopyWithImpl<$Res>; + @useResult + $Res call({String field0}); +} + +/// @nodoc +class __$$BdkError_InvalidInputImplCopyWithImpl<$Res> + extends _$BdkErrorCopyWithImpl<$Res, _$BdkError_InvalidInputImpl> + implements _$$BdkError_InvalidInputImplCopyWith<$Res> { + __$$BdkError_InvalidInputImplCopyWithImpl(_$BdkError_InvalidInputImpl _value, + $Res Function(_$BdkError_InvalidInputImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? field0 = null, + }) { + return _then(_$BdkError_InvalidInputImpl( + null == field0 + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// @nodoc + +class _$BdkError_InvalidInputImpl extends BdkError_InvalidInput { + const _$BdkError_InvalidInputImpl(this.field0) : super._(); + + @override + final String field0; + + @override + String toString() { + return 'BdkError.invalidInput(field0: $field0)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$BdkError_InvalidInputImpl && + (identical(other.field0, field0) || other.field0 == field0)); + } + + @override + int get hashCode => Object.hash(runtimeType, field0); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$BdkError_InvalidInputImplCopyWith<_$BdkError_InvalidInputImpl> + get copyWith => __$$BdkError_InvalidInputImplCopyWithImpl< + _$BdkError_InvalidInputImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(HexError field0) hex, + required TResult Function(ConsensusError field0) consensus, + required TResult Function(AddressError field0) address, + required TResult Function(DescriptorError field0) descriptor, + required TResult Function(Uint8List field0) invalidU32Bytes, + required TResult Function(String field0) 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() bnBTotalTriesExceeded, + required TResult Function() bnBNoExactMatch, + required TResult Function() unknownUtxo, + required TResult Function() transactionNotFound, + required TResult Function() transactionConfirmed, + required TResult Function() irreplaceableTransaction, + required TResult Function(double needed) feeRateTooLow, + required TResult Function(int needed) feeTooLow, + required TResult Function() feeRateUnavailable, + required TResult Function(String field0) missingKeyOrigin, + required TResult Function(String field0) key, + required TResult Function() checksumMismatch, + required TResult Function(KeychainKind field0) spendingPolicyRequired, + required TResult Function(String field0) invalidPolicyPathError, + required TResult Function(String field0) signer, + required TResult Function(Network requested, Network found) invalidNetwork, + required TResult Function(OutPoint field0) invalidOutpoint, + required TResult Function(String field0) encode, + required TResult Function(String field0) miniscript, + required TResult Function(String field0) miniscriptPsbt, + required TResult Function(String field0) bip32, + required TResult Function(String field0) bip39, + required TResult Function(String field0) 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(String field0) electrum, + required TResult Function(String field0) esplora, + required TResult Function(String field0) sled, + required TResult Function(String field0) rpc, + required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, + }) { + return invalidInput(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(HexError field0)? hex, + TResult? Function(ConsensusError field0)? consensus, + TResult? Function(AddressError field0)? address, + TResult? Function(DescriptorError field0)? descriptor, + TResult? Function(Uint8List field0)? invalidU32Bytes, + TResult? Function(String field0)? generic, + TResult? Function()? scriptDoesntHaveAddressForm, + TResult? Function()? noRecipients, + TResult? Function()? noUtxosSelected, + TResult? Function(int field0)? outputBelowDustLimit, + TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function()? bnBTotalTriesExceeded, + TResult? Function()? bnBNoExactMatch, + TResult? Function()? unknownUtxo, + TResult? Function()? transactionNotFound, + TResult? Function()? transactionConfirmed, + TResult? Function()? irreplaceableTransaction, + TResult? Function(double needed)? feeRateTooLow, + TResult? Function(int needed)? feeTooLow, + TResult? Function()? feeRateUnavailable, + TResult? Function(String field0)? missingKeyOrigin, + TResult? Function(String field0)? key, + TResult? Function()? checksumMismatch, + TResult? Function(KeychainKind field0)? spendingPolicyRequired, + TResult? Function(String field0)? invalidPolicyPathError, + TResult? Function(String field0)? signer, + TResult? Function(Network requested, Network found)? invalidNetwork, + TResult? Function(OutPoint field0)? invalidOutpoint, + TResult? Function(String field0)? encode, + TResult? Function(String field0)? miniscript, + TResult? Function(String field0)? miniscriptPsbt, + TResult? Function(String field0)? bip32, + TResult? Function(String field0)? bip39, + TResult? Function(String field0)? 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(String field0)? electrum, + TResult? Function(String field0)? esplora, + TResult? Function(String field0)? sled, + TResult? Function(String field0)? rpc, + TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, + }) { + return invalidInput?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(HexError field0)? hex, + TResult Function(ConsensusError field0)? consensus, + TResult Function(AddressError field0)? address, + TResult Function(DescriptorError field0)? descriptor, + TResult Function(Uint8List field0)? invalidU32Bytes, + TResult Function(String field0)? generic, + TResult Function()? scriptDoesntHaveAddressForm, + TResult Function()? noRecipients, + TResult Function()? noUtxosSelected, + TResult Function(int field0)? outputBelowDustLimit, + TResult Function(int needed, int available)? insufficientFunds, + TResult Function()? bnBTotalTriesExceeded, + TResult Function()? bnBNoExactMatch, + TResult Function()? unknownUtxo, + TResult Function()? transactionNotFound, + TResult Function()? transactionConfirmed, + TResult Function()? irreplaceableTransaction, + TResult Function(double needed)? feeRateTooLow, + TResult Function(int needed)? feeTooLow, + TResult Function()? feeRateUnavailable, + TResult Function(String field0)? missingKeyOrigin, + TResult Function(String field0)? key, + TResult Function()? checksumMismatch, + TResult Function(KeychainKind field0)? spendingPolicyRequired, + TResult Function(String field0)? invalidPolicyPathError, + TResult Function(String field0)? signer, + TResult Function(Network requested, Network found)? invalidNetwork, + TResult Function(OutPoint field0)? invalidOutpoint, + TResult Function(String field0)? encode, + TResult Function(String field0)? miniscript, + TResult Function(String field0)? miniscriptPsbt, + TResult Function(String field0)? bip32, + TResult Function(String field0)? bip39, + TResult Function(String field0)? 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(String field0)? electrum, + TResult Function(String field0)? esplora, + TResult Function(String field0)? sled, + TResult Function(String field0)? rpc, + TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, + required TResult orElse(), + }) { + if (invalidInput != null) { + return invalidInput(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(BdkError_Hex value) hex, + required TResult Function(BdkError_Consensus value) consensus, + required TResult Function(BdkError_Address value) address, + required TResult Function(BdkError_Descriptor value) descriptor, + required TResult Function(BdkError_InvalidU32Bytes value) invalidU32Bytes, + required TResult Function(BdkError_Generic value) generic, + required TResult Function(BdkError_ScriptDoesntHaveAddressForm value) + scriptDoesntHaveAddressForm, + required TResult Function(BdkError_NoRecipients value) noRecipients, + required TResult Function(BdkError_NoUtxosSelected value) noUtxosSelected, + required TResult Function(BdkError_OutputBelowDustLimit value) + outputBelowDustLimit, + required TResult Function(BdkError_InsufficientFunds value) + insufficientFunds, + required TResult Function(BdkError_BnBTotalTriesExceeded value) + bnBTotalTriesExceeded, + required TResult Function(BdkError_BnBNoExactMatch value) bnBNoExactMatch, + required TResult Function(BdkError_UnknownUtxo value) unknownUtxo, + required TResult Function(BdkError_TransactionNotFound value) + transactionNotFound, + required TResult Function(BdkError_TransactionConfirmed value) + transactionConfirmed, + required TResult Function(BdkError_IrreplaceableTransaction value) + irreplaceableTransaction, + required TResult Function(BdkError_FeeRateTooLow value) feeRateTooLow, + required TResult Function(BdkError_FeeTooLow value) feeTooLow, + required TResult Function(BdkError_FeeRateUnavailable value) + feeRateUnavailable, + required TResult Function(BdkError_MissingKeyOrigin value) missingKeyOrigin, + required TResult Function(BdkError_Key value) key, + required TResult Function(BdkError_ChecksumMismatch value) checksumMismatch, + required TResult Function(BdkError_SpendingPolicyRequired value) + spendingPolicyRequired, + required TResult Function(BdkError_InvalidPolicyPathError value) + invalidPolicyPathError, + required TResult Function(BdkError_Signer value) signer, + required TResult Function(BdkError_InvalidNetwork value) invalidNetwork, + required TResult Function(BdkError_InvalidOutpoint value) invalidOutpoint, + required TResult Function(BdkError_Encode value) encode, + required TResult Function(BdkError_Miniscript value) miniscript, + required TResult Function(BdkError_MiniscriptPsbt value) miniscriptPsbt, + required TResult Function(BdkError_Bip32 value) bip32, + required TResult Function(BdkError_Bip39 value) bip39, + required TResult Function(BdkError_Secp256k1 value) secp256K1, + required TResult Function(BdkError_Json value) json, + required TResult Function(BdkError_Psbt value) psbt, + required TResult Function(BdkError_PsbtParse value) psbtParse, + required TResult Function(BdkError_MissingCachedScripts value) + missingCachedScripts, + required TResult Function(BdkError_Electrum value) electrum, + required TResult Function(BdkError_Esplora value) esplora, + required TResult Function(BdkError_Sled value) sled, + required TResult Function(BdkError_Rpc value) rpc, + required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, + }) { + return invalidInput(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(BdkError_Hex value)? hex, + TResult? Function(BdkError_Consensus value)? consensus, + TResult? Function(BdkError_Address value)? address, + TResult? Function(BdkError_Descriptor value)? descriptor, + TResult? Function(BdkError_InvalidU32Bytes value)? invalidU32Bytes, + TResult? Function(BdkError_Generic value)? generic, + TResult? Function(BdkError_ScriptDoesntHaveAddressForm value)? + scriptDoesntHaveAddressForm, + TResult? Function(BdkError_NoRecipients value)? noRecipients, + TResult? Function(BdkError_NoUtxosSelected value)? noUtxosSelected, + TResult? Function(BdkError_OutputBelowDustLimit value)? + outputBelowDustLimit, + TResult? Function(BdkError_InsufficientFunds value)? insufficientFunds, + TResult? Function(BdkError_BnBTotalTriesExceeded value)? + bnBTotalTriesExceeded, + TResult? Function(BdkError_BnBNoExactMatch value)? bnBNoExactMatch, + TResult? Function(BdkError_UnknownUtxo value)? unknownUtxo, + TResult? Function(BdkError_TransactionNotFound value)? transactionNotFound, + TResult? Function(BdkError_TransactionConfirmed value)? + transactionConfirmed, + TResult? Function(BdkError_IrreplaceableTransaction value)? + irreplaceableTransaction, + TResult? Function(BdkError_FeeRateTooLow value)? feeRateTooLow, + TResult? Function(BdkError_FeeTooLow value)? feeTooLow, + TResult? Function(BdkError_FeeRateUnavailable value)? feeRateUnavailable, + TResult? Function(BdkError_MissingKeyOrigin value)? missingKeyOrigin, + TResult? Function(BdkError_Key value)? key, + TResult? Function(BdkError_ChecksumMismatch value)? checksumMismatch, + TResult? Function(BdkError_SpendingPolicyRequired value)? + spendingPolicyRequired, + TResult? Function(BdkError_InvalidPolicyPathError value)? + invalidPolicyPathError, + TResult? Function(BdkError_Signer value)? signer, + TResult? Function(BdkError_InvalidNetwork value)? invalidNetwork, + TResult? Function(BdkError_InvalidOutpoint value)? invalidOutpoint, + TResult? Function(BdkError_Encode value)? encode, + TResult? Function(BdkError_Miniscript value)? miniscript, + TResult? Function(BdkError_MiniscriptPsbt value)? miniscriptPsbt, + TResult? Function(BdkError_Bip32 value)? bip32, + TResult? Function(BdkError_Bip39 value)? bip39, + TResult? Function(BdkError_Secp256k1 value)? secp256K1, + TResult? Function(BdkError_Json value)? json, + TResult? Function(BdkError_Psbt value)? psbt, + TResult? Function(BdkError_PsbtParse value)? psbtParse, + TResult? Function(BdkError_MissingCachedScripts value)? + missingCachedScripts, + TResult? Function(BdkError_Electrum value)? electrum, + TResult? Function(BdkError_Esplora value)? esplora, + TResult? Function(BdkError_Sled value)? sled, + TResult? Function(BdkError_Rpc value)? rpc, + TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, + }) { + return invalidInput?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(BdkError_Hex value)? hex, + TResult Function(BdkError_Consensus value)? consensus, + TResult Function(BdkError_Address value)? address, + TResult Function(BdkError_Descriptor value)? descriptor, + TResult Function(BdkError_InvalidU32Bytes value)? invalidU32Bytes, + TResult Function(BdkError_Generic value)? generic, + TResult Function(BdkError_ScriptDoesntHaveAddressForm value)? + scriptDoesntHaveAddressForm, + TResult Function(BdkError_NoRecipients value)? noRecipients, + TResult Function(BdkError_NoUtxosSelected value)? noUtxosSelected, + TResult Function(BdkError_OutputBelowDustLimit value)? outputBelowDustLimit, + TResult Function(BdkError_InsufficientFunds value)? insufficientFunds, + TResult Function(BdkError_BnBTotalTriesExceeded value)? + bnBTotalTriesExceeded, + TResult Function(BdkError_BnBNoExactMatch value)? bnBNoExactMatch, + TResult Function(BdkError_UnknownUtxo value)? unknownUtxo, + TResult Function(BdkError_TransactionNotFound value)? transactionNotFound, + TResult Function(BdkError_TransactionConfirmed value)? transactionConfirmed, + TResult Function(BdkError_IrreplaceableTransaction value)? + irreplaceableTransaction, + TResult Function(BdkError_FeeRateTooLow value)? feeRateTooLow, + TResult Function(BdkError_FeeTooLow value)? feeTooLow, + TResult Function(BdkError_FeeRateUnavailable value)? feeRateUnavailable, + TResult Function(BdkError_MissingKeyOrigin value)? missingKeyOrigin, + TResult Function(BdkError_Key value)? key, + TResult Function(BdkError_ChecksumMismatch value)? checksumMismatch, + TResult Function(BdkError_SpendingPolicyRequired value)? + spendingPolicyRequired, + TResult Function(BdkError_InvalidPolicyPathError value)? + invalidPolicyPathError, + TResult Function(BdkError_Signer value)? signer, + TResult Function(BdkError_InvalidNetwork value)? invalidNetwork, + TResult Function(BdkError_InvalidOutpoint value)? invalidOutpoint, + TResult Function(BdkError_Encode value)? encode, + TResult Function(BdkError_Miniscript value)? miniscript, + TResult Function(BdkError_MiniscriptPsbt value)? miniscriptPsbt, + TResult Function(BdkError_Bip32 value)? bip32, + TResult Function(BdkError_Bip39 value)? bip39, + TResult Function(BdkError_Secp256k1 value)? secp256K1, + TResult Function(BdkError_Json value)? json, + TResult Function(BdkError_Psbt value)? psbt, + TResult Function(BdkError_PsbtParse value)? psbtParse, + TResult Function(BdkError_MissingCachedScripts value)? missingCachedScripts, + TResult Function(BdkError_Electrum value)? electrum, + TResult Function(BdkError_Esplora value)? esplora, + TResult Function(BdkError_Sled value)? sled, + TResult Function(BdkError_Rpc value)? rpc, + TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, + required TResult orElse(), + }) { + if (invalidInput != null) { + return invalidInput(this); + } + return orElse(); + } +} + +abstract class BdkError_InvalidInput extends BdkError { + const factory BdkError_InvalidInput(final String field0) = + _$BdkError_InvalidInputImpl; + const BdkError_InvalidInput._() : super._(); + + String get field0; + @JsonKey(ignore: true) + _$$BdkError_InvalidInputImplCopyWith<_$BdkError_InvalidInputImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$BdkError_InvalidLockTimeImplCopyWith<$Res> { + factory _$$BdkError_InvalidLockTimeImplCopyWith( + _$BdkError_InvalidLockTimeImpl value, + $Res Function(_$BdkError_InvalidLockTimeImpl) then) = + __$$BdkError_InvalidLockTimeImplCopyWithImpl<$Res>; + @useResult + $Res call({String field0}); +} + +/// @nodoc +class __$$BdkError_InvalidLockTimeImplCopyWithImpl<$Res> + extends _$BdkErrorCopyWithImpl<$Res, _$BdkError_InvalidLockTimeImpl> + implements _$$BdkError_InvalidLockTimeImplCopyWith<$Res> { + __$$BdkError_InvalidLockTimeImplCopyWithImpl( + _$BdkError_InvalidLockTimeImpl _value, + $Res Function(_$BdkError_InvalidLockTimeImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? field0 = null, + }) { + return _then(_$BdkError_InvalidLockTimeImpl( + null == field0 + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// @nodoc + +class _$BdkError_InvalidLockTimeImpl extends BdkError_InvalidLockTime { + const _$BdkError_InvalidLockTimeImpl(this.field0) : super._(); + + @override + final String field0; + + @override + String toString() { + return 'BdkError.invalidLockTime(field0: $field0)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$BdkError_InvalidLockTimeImpl && + (identical(other.field0, field0) || other.field0 == field0)); + } + + @override + int get hashCode => Object.hash(runtimeType, field0); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$BdkError_InvalidLockTimeImplCopyWith<_$BdkError_InvalidLockTimeImpl> + get copyWith => __$$BdkError_InvalidLockTimeImplCopyWithImpl< + _$BdkError_InvalidLockTimeImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(HexError field0) hex, + required TResult Function(ConsensusError field0) consensus, + required TResult Function(AddressError field0) address, + required TResult Function(DescriptorError field0) descriptor, + required TResult Function(Uint8List field0) invalidU32Bytes, + required TResult Function(String field0) 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() bnBTotalTriesExceeded, + required TResult Function() bnBNoExactMatch, + required TResult Function() unknownUtxo, + required TResult Function() transactionNotFound, + required TResult Function() transactionConfirmed, + required TResult Function() irreplaceableTransaction, + required TResult Function(double needed) feeRateTooLow, + required TResult Function(int needed) feeTooLow, + required TResult Function() feeRateUnavailable, + required TResult Function(String field0) missingKeyOrigin, + required TResult Function(String field0) key, + required TResult Function() checksumMismatch, + required TResult Function(KeychainKind field0) spendingPolicyRequired, + required TResult Function(String field0) invalidPolicyPathError, + required TResult Function(String field0) signer, + required TResult Function(Network requested, Network found) invalidNetwork, + required TResult Function(OutPoint field0) invalidOutpoint, + required TResult Function(String field0) encode, + required TResult Function(String field0) miniscript, + required TResult Function(String field0) miniscriptPsbt, + required TResult Function(String field0) bip32, + required TResult Function(String field0) bip39, + required TResult Function(String field0) 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(String field0) electrum, + required TResult Function(String field0) esplora, + required TResult Function(String field0) sled, + required TResult Function(String field0) rpc, + required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, + }) { + return invalidLockTime(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(HexError field0)? hex, + TResult? Function(ConsensusError field0)? consensus, + TResult? Function(AddressError field0)? address, + TResult? Function(DescriptorError field0)? descriptor, + TResult? Function(Uint8List field0)? invalidU32Bytes, + TResult? Function(String field0)? generic, + TResult? Function()? scriptDoesntHaveAddressForm, + TResult? Function()? noRecipients, + TResult? Function()? noUtxosSelected, + TResult? Function(int field0)? outputBelowDustLimit, + TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function()? bnBTotalTriesExceeded, + TResult? Function()? bnBNoExactMatch, + TResult? Function()? unknownUtxo, + TResult? Function()? transactionNotFound, + TResult? Function()? transactionConfirmed, + TResult? Function()? irreplaceableTransaction, + TResult? Function(double needed)? feeRateTooLow, + TResult? Function(int needed)? feeTooLow, + TResult? Function()? feeRateUnavailable, + TResult? Function(String field0)? missingKeyOrigin, + TResult? Function(String field0)? key, + TResult? Function()? checksumMismatch, + TResult? Function(KeychainKind field0)? spendingPolicyRequired, + TResult? Function(String field0)? invalidPolicyPathError, + TResult? Function(String field0)? signer, + TResult? Function(Network requested, Network found)? invalidNetwork, + TResult? Function(OutPoint field0)? invalidOutpoint, + TResult? Function(String field0)? encode, + TResult? Function(String field0)? miniscript, + TResult? Function(String field0)? miniscriptPsbt, + TResult? Function(String field0)? bip32, + TResult? Function(String field0)? bip39, + TResult? Function(String field0)? 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(String field0)? electrum, + TResult? Function(String field0)? esplora, + TResult? Function(String field0)? sled, + TResult? Function(String field0)? rpc, + TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, + }) { + return invalidLockTime?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(HexError field0)? hex, + TResult Function(ConsensusError field0)? consensus, + TResult Function(AddressError field0)? address, + TResult Function(DescriptorError field0)? descriptor, + TResult Function(Uint8List field0)? invalidU32Bytes, + TResult Function(String field0)? generic, + TResult Function()? scriptDoesntHaveAddressForm, + TResult Function()? noRecipients, + TResult Function()? noUtxosSelected, + TResult Function(int field0)? outputBelowDustLimit, + TResult Function(int needed, int available)? insufficientFunds, + TResult Function()? bnBTotalTriesExceeded, + TResult Function()? bnBNoExactMatch, + TResult Function()? unknownUtxo, + TResult Function()? transactionNotFound, + TResult Function()? transactionConfirmed, + TResult Function()? irreplaceableTransaction, + TResult Function(double needed)? feeRateTooLow, + TResult Function(int needed)? feeTooLow, + TResult Function()? feeRateUnavailable, + TResult Function(String field0)? missingKeyOrigin, + TResult Function(String field0)? key, + TResult Function()? checksumMismatch, + TResult Function(KeychainKind field0)? spendingPolicyRequired, + TResult Function(String field0)? invalidPolicyPathError, + TResult Function(String field0)? signer, + TResult Function(Network requested, Network found)? invalidNetwork, + TResult Function(OutPoint field0)? invalidOutpoint, + TResult Function(String field0)? encode, + TResult Function(String field0)? miniscript, + TResult Function(String field0)? miniscriptPsbt, + TResult Function(String field0)? bip32, + TResult Function(String field0)? bip39, + TResult Function(String field0)? 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(String field0)? electrum, + TResult Function(String field0)? esplora, + TResult Function(String field0)? sled, + TResult Function(String field0)? rpc, + TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, + required TResult orElse(), + }) { + if (invalidLockTime != null) { + return invalidLockTime(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(BdkError_Hex value) hex, + required TResult Function(BdkError_Consensus value) consensus, + required TResult Function(BdkError_Address value) address, + required TResult Function(BdkError_Descriptor value) descriptor, + required TResult Function(BdkError_InvalidU32Bytes value) invalidU32Bytes, + required TResult Function(BdkError_Generic value) generic, + required TResult Function(BdkError_ScriptDoesntHaveAddressForm value) + scriptDoesntHaveAddressForm, + required TResult Function(BdkError_NoRecipients value) noRecipients, + required TResult Function(BdkError_NoUtxosSelected value) noUtxosSelected, + required TResult Function(BdkError_OutputBelowDustLimit value) + outputBelowDustLimit, + required TResult Function(BdkError_InsufficientFunds value) + insufficientFunds, + required TResult Function(BdkError_BnBTotalTriesExceeded value) + bnBTotalTriesExceeded, + required TResult Function(BdkError_BnBNoExactMatch value) bnBNoExactMatch, + required TResult Function(BdkError_UnknownUtxo value) unknownUtxo, + required TResult Function(BdkError_TransactionNotFound value) + transactionNotFound, + required TResult Function(BdkError_TransactionConfirmed value) + transactionConfirmed, + required TResult Function(BdkError_IrreplaceableTransaction value) + irreplaceableTransaction, + required TResult Function(BdkError_FeeRateTooLow value) feeRateTooLow, + required TResult Function(BdkError_FeeTooLow value) feeTooLow, + required TResult Function(BdkError_FeeRateUnavailable value) + feeRateUnavailable, + required TResult Function(BdkError_MissingKeyOrigin value) missingKeyOrigin, + required TResult Function(BdkError_Key value) key, + required TResult Function(BdkError_ChecksumMismatch value) checksumMismatch, + required TResult Function(BdkError_SpendingPolicyRequired value) + spendingPolicyRequired, + required TResult Function(BdkError_InvalidPolicyPathError value) + invalidPolicyPathError, + required TResult Function(BdkError_Signer value) signer, + required TResult Function(BdkError_InvalidNetwork value) invalidNetwork, + required TResult Function(BdkError_InvalidOutpoint value) invalidOutpoint, + required TResult Function(BdkError_Encode value) encode, + required TResult Function(BdkError_Miniscript value) miniscript, + required TResult Function(BdkError_MiniscriptPsbt value) miniscriptPsbt, + required TResult Function(BdkError_Bip32 value) bip32, + required TResult Function(BdkError_Bip39 value) bip39, + required TResult Function(BdkError_Secp256k1 value) secp256K1, + required TResult Function(BdkError_Json value) json, + required TResult Function(BdkError_Psbt value) psbt, + required TResult Function(BdkError_PsbtParse value) psbtParse, + required TResult Function(BdkError_MissingCachedScripts value) + missingCachedScripts, + required TResult Function(BdkError_Electrum value) electrum, + required TResult Function(BdkError_Esplora value) esplora, + required TResult Function(BdkError_Sled value) sled, + required TResult Function(BdkError_Rpc value) rpc, + required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, + }) { + return invalidLockTime(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(BdkError_Hex value)? hex, + TResult? Function(BdkError_Consensus value)? consensus, + TResult? Function(BdkError_Address value)? address, + TResult? Function(BdkError_Descriptor value)? descriptor, + TResult? Function(BdkError_InvalidU32Bytes value)? invalidU32Bytes, + TResult? Function(BdkError_Generic value)? generic, + TResult? Function(BdkError_ScriptDoesntHaveAddressForm value)? + scriptDoesntHaveAddressForm, + TResult? Function(BdkError_NoRecipients value)? noRecipients, + TResult? Function(BdkError_NoUtxosSelected value)? noUtxosSelected, + TResult? Function(BdkError_OutputBelowDustLimit value)? + outputBelowDustLimit, + TResult? Function(BdkError_InsufficientFunds value)? insufficientFunds, + TResult? Function(BdkError_BnBTotalTriesExceeded value)? + bnBTotalTriesExceeded, + TResult? Function(BdkError_BnBNoExactMatch value)? bnBNoExactMatch, + TResult? Function(BdkError_UnknownUtxo value)? unknownUtxo, + TResult? Function(BdkError_TransactionNotFound value)? transactionNotFound, + TResult? Function(BdkError_TransactionConfirmed value)? + transactionConfirmed, + TResult? Function(BdkError_IrreplaceableTransaction value)? + irreplaceableTransaction, + TResult? Function(BdkError_FeeRateTooLow value)? feeRateTooLow, + TResult? Function(BdkError_FeeTooLow value)? feeTooLow, + TResult? Function(BdkError_FeeRateUnavailable value)? feeRateUnavailable, + TResult? Function(BdkError_MissingKeyOrigin value)? missingKeyOrigin, + TResult? Function(BdkError_Key value)? key, + TResult? Function(BdkError_ChecksumMismatch value)? checksumMismatch, + TResult? Function(BdkError_SpendingPolicyRequired value)? + spendingPolicyRequired, + TResult? Function(BdkError_InvalidPolicyPathError value)? + invalidPolicyPathError, + TResult? Function(BdkError_Signer value)? signer, + TResult? Function(BdkError_InvalidNetwork value)? invalidNetwork, + TResult? Function(BdkError_InvalidOutpoint value)? invalidOutpoint, + TResult? Function(BdkError_Encode value)? encode, + TResult? Function(BdkError_Miniscript value)? miniscript, + TResult? Function(BdkError_MiniscriptPsbt value)? miniscriptPsbt, + TResult? Function(BdkError_Bip32 value)? bip32, + TResult? Function(BdkError_Bip39 value)? bip39, + TResult? Function(BdkError_Secp256k1 value)? secp256K1, + TResult? Function(BdkError_Json value)? json, + TResult? Function(BdkError_Psbt value)? psbt, + TResult? Function(BdkError_PsbtParse value)? psbtParse, + TResult? Function(BdkError_MissingCachedScripts value)? + missingCachedScripts, + TResult? Function(BdkError_Electrum value)? electrum, + TResult? Function(BdkError_Esplora value)? esplora, + TResult? Function(BdkError_Sled value)? sled, + TResult? Function(BdkError_Rpc value)? rpc, + TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, + }) { + return invalidLockTime?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(BdkError_Hex value)? hex, + TResult Function(BdkError_Consensus value)? consensus, + TResult Function(BdkError_Address value)? address, + TResult Function(BdkError_Descriptor value)? descriptor, + TResult Function(BdkError_InvalidU32Bytes value)? invalidU32Bytes, + TResult Function(BdkError_Generic value)? generic, + TResult Function(BdkError_ScriptDoesntHaveAddressForm value)? + scriptDoesntHaveAddressForm, + TResult Function(BdkError_NoRecipients value)? noRecipients, + TResult Function(BdkError_NoUtxosSelected value)? noUtxosSelected, + TResult Function(BdkError_OutputBelowDustLimit value)? outputBelowDustLimit, + TResult Function(BdkError_InsufficientFunds value)? insufficientFunds, + TResult Function(BdkError_BnBTotalTriesExceeded value)? + bnBTotalTriesExceeded, + TResult Function(BdkError_BnBNoExactMatch value)? bnBNoExactMatch, + TResult Function(BdkError_UnknownUtxo value)? unknownUtxo, + TResult Function(BdkError_TransactionNotFound value)? transactionNotFound, + TResult Function(BdkError_TransactionConfirmed value)? transactionConfirmed, + TResult Function(BdkError_IrreplaceableTransaction value)? + irreplaceableTransaction, + TResult Function(BdkError_FeeRateTooLow value)? feeRateTooLow, + TResult Function(BdkError_FeeTooLow value)? feeTooLow, + TResult Function(BdkError_FeeRateUnavailable value)? feeRateUnavailable, + TResult Function(BdkError_MissingKeyOrigin value)? missingKeyOrigin, + TResult Function(BdkError_Key value)? key, + TResult Function(BdkError_ChecksumMismatch value)? checksumMismatch, + TResult Function(BdkError_SpendingPolicyRequired value)? + spendingPolicyRequired, + TResult Function(BdkError_InvalidPolicyPathError value)? + invalidPolicyPathError, + TResult Function(BdkError_Signer value)? signer, + TResult Function(BdkError_InvalidNetwork value)? invalidNetwork, + TResult Function(BdkError_InvalidOutpoint value)? invalidOutpoint, + TResult Function(BdkError_Encode value)? encode, + TResult Function(BdkError_Miniscript value)? miniscript, + TResult Function(BdkError_MiniscriptPsbt value)? miniscriptPsbt, + TResult Function(BdkError_Bip32 value)? bip32, + TResult Function(BdkError_Bip39 value)? bip39, + TResult Function(BdkError_Secp256k1 value)? secp256K1, + TResult Function(BdkError_Json value)? json, + TResult Function(BdkError_Psbt value)? psbt, + TResult Function(BdkError_PsbtParse value)? psbtParse, + TResult Function(BdkError_MissingCachedScripts value)? missingCachedScripts, + TResult Function(BdkError_Electrum value)? electrum, + TResult Function(BdkError_Esplora value)? esplora, + TResult Function(BdkError_Sled value)? sled, + TResult Function(BdkError_Rpc value)? rpc, + TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, + required TResult orElse(), + }) { + if (invalidLockTime != null) { + return invalidLockTime(this); + } + return orElse(); + } +} + +abstract class BdkError_InvalidLockTime extends BdkError { + const factory BdkError_InvalidLockTime(final String field0) = + _$BdkError_InvalidLockTimeImpl; + const BdkError_InvalidLockTime._() : super._(); + + String get field0; + @JsonKey(ignore: true) + _$$BdkError_InvalidLockTimeImplCopyWith<_$BdkError_InvalidLockTimeImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$BdkError_InvalidTransactionImplCopyWith<$Res> { + factory _$$BdkError_InvalidTransactionImplCopyWith( + _$BdkError_InvalidTransactionImpl value, + $Res Function(_$BdkError_InvalidTransactionImpl) then) = + __$$BdkError_InvalidTransactionImplCopyWithImpl<$Res>; + @useResult + $Res call({String field0}); +} + +/// @nodoc +class __$$BdkError_InvalidTransactionImplCopyWithImpl<$Res> + extends _$BdkErrorCopyWithImpl<$Res, _$BdkError_InvalidTransactionImpl> + implements _$$BdkError_InvalidTransactionImplCopyWith<$Res> { + __$$BdkError_InvalidTransactionImplCopyWithImpl( + _$BdkError_InvalidTransactionImpl _value, + $Res Function(_$BdkError_InvalidTransactionImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? field0 = null, + }) { + return _then(_$BdkError_InvalidTransactionImpl( + null == field0 + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// @nodoc + +class _$BdkError_InvalidTransactionImpl extends BdkError_InvalidTransaction { + const _$BdkError_InvalidTransactionImpl(this.field0) : super._(); + + @override + final String field0; + + @override + String toString() { + return 'BdkError.invalidTransaction(field0: $field0)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$BdkError_InvalidTransactionImpl && + (identical(other.field0, field0) || other.field0 == field0)); + } + + @override + int get hashCode => Object.hash(runtimeType, field0); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$BdkError_InvalidTransactionImplCopyWith<_$BdkError_InvalidTransactionImpl> + get copyWith => __$$BdkError_InvalidTransactionImplCopyWithImpl< + _$BdkError_InvalidTransactionImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(HexError field0) hex, + required TResult Function(ConsensusError field0) consensus, + required TResult Function(AddressError field0) address, + required TResult Function(DescriptorError field0) descriptor, + required TResult Function(Uint8List field0) invalidU32Bytes, + required TResult Function(String field0) 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() bnBTotalTriesExceeded, + required TResult Function() bnBNoExactMatch, + required TResult Function() unknownUtxo, + required TResult Function() transactionNotFound, + required TResult Function() transactionConfirmed, + required TResult Function() irreplaceableTransaction, + required TResult Function(double needed) feeRateTooLow, + required TResult Function(int needed) feeTooLow, + required TResult Function() feeRateUnavailable, + required TResult Function(String field0) missingKeyOrigin, + required TResult Function(String field0) key, + required TResult Function() checksumMismatch, + required TResult Function(KeychainKind field0) spendingPolicyRequired, + required TResult Function(String field0) invalidPolicyPathError, + required TResult Function(String field0) signer, + required TResult Function(Network requested, Network found) invalidNetwork, + required TResult Function(OutPoint field0) invalidOutpoint, + required TResult Function(String field0) encode, + required TResult Function(String field0) miniscript, + required TResult Function(String field0) miniscriptPsbt, + required TResult Function(String field0) bip32, + required TResult Function(String field0) bip39, + required TResult Function(String field0) 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(String field0) electrum, + required TResult Function(String field0) esplora, + required TResult Function(String field0) sled, + required TResult Function(String field0) rpc, + required TResult Function(String field0) rusqlite, + required TResult Function(String field0) invalidInput, + required TResult Function(String field0) invalidLockTime, + required TResult Function(String field0) invalidTransaction, + }) { + return invalidTransaction(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(HexError field0)? hex, + TResult? Function(ConsensusError field0)? consensus, + TResult? Function(AddressError field0)? address, + TResult? Function(DescriptorError field0)? descriptor, + TResult? Function(Uint8List field0)? invalidU32Bytes, + TResult? Function(String field0)? generic, + TResult? Function()? scriptDoesntHaveAddressForm, + TResult? Function()? noRecipients, + TResult? Function()? noUtxosSelected, + TResult? Function(int field0)? outputBelowDustLimit, + TResult? Function(int needed, int available)? insufficientFunds, + TResult? Function()? bnBTotalTriesExceeded, + TResult? Function()? bnBNoExactMatch, + TResult? Function()? unknownUtxo, + TResult? Function()? transactionNotFound, + TResult? Function()? transactionConfirmed, + TResult? Function()? irreplaceableTransaction, + TResult? Function(double needed)? feeRateTooLow, + TResult? Function(int needed)? feeTooLow, + TResult? Function()? feeRateUnavailable, + TResult? Function(String field0)? missingKeyOrigin, + TResult? Function(String field0)? key, + TResult? Function()? checksumMismatch, + TResult? Function(KeychainKind field0)? spendingPolicyRequired, + TResult? Function(String field0)? invalidPolicyPathError, + TResult? Function(String field0)? signer, + TResult? Function(Network requested, Network found)? invalidNetwork, + TResult? Function(OutPoint field0)? invalidOutpoint, + TResult? Function(String field0)? encode, + TResult? Function(String field0)? miniscript, + TResult? Function(String field0)? miniscriptPsbt, + TResult? Function(String field0)? bip32, + TResult? Function(String field0)? bip39, + TResult? Function(String field0)? 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(String field0)? electrum, + TResult? Function(String field0)? esplora, + TResult? Function(String field0)? sled, + TResult? Function(String field0)? rpc, + TResult? Function(String field0)? rusqlite, + TResult? Function(String field0)? invalidInput, + TResult? Function(String field0)? invalidLockTime, + TResult? Function(String field0)? invalidTransaction, + }) { + return invalidTransaction?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(HexError field0)? hex, + TResult Function(ConsensusError field0)? consensus, + TResult Function(AddressError field0)? address, + TResult Function(DescriptorError field0)? descriptor, + TResult Function(Uint8List field0)? invalidU32Bytes, + TResult Function(String field0)? generic, + TResult Function()? scriptDoesntHaveAddressForm, + TResult Function()? noRecipients, + TResult Function()? noUtxosSelected, + TResult Function(int field0)? outputBelowDustLimit, + TResult Function(int needed, int available)? insufficientFunds, + TResult Function()? bnBTotalTriesExceeded, + TResult Function()? bnBNoExactMatch, + TResult Function()? unknownUtxo, + TResult Function()? transactionNotFound, + TResult Function()? transactionConfirmed, + TResult Function()? irreplaceableTransaction, + TResult Function(double needed)? feeRateTooLow, + TResult Function(int needed)? feeTooLow, + TResult Function()? feeRateUnavailable, + TResult Function(String field0)? missingKeyOrigin, + TResult Function(String field0)? key, + TResult Function()? checksumMismatch, + TResult Function(KeychainKind field0)? spendingPolicyRequired, + TResult Function(String field0)? invalidPolicyPathError, + TResult Function(String field0)? signer, + TResult Function(Network requested, Network found)? invalidNetwork, + TResult Function(OutPoint field0)? invalidOutpoint, + TResult Function(String field0)? encode, + TResult Function(String field0)? miniscript, + TResult Function(String field0)? miniscriptPsbt, + TResult Function(String field0)? bip32, + TResult Function(String field0)? bip39, + TResult Function(String field0)? 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(String field0)? electrum, + TResult Function(String field0)? esplora, + TResult Function(String field0)? sled, + TResult Function(String field0)? rpc, + TResult Function(String field0)? rusqlite, + TResult Function(String field0)? invalidInput, + TResult Function(String field0)? invalidLockTime, + TResult Function(String field0)? invalidTransaction, + required TResult orElse(), + }) { + if (invalidTransaction != null) { + return invalidTransaction(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(BdkError_Hex value) hex, + required TResult Function(BdkError_Consensus value) consensus, + required TResult Function(BdkError_Address value) address, + required TResult Function(BdkError_Descriptor value) descriptor, + required TResult Function(BdkError_InvalidU32Bytes value) invalidU32Bytes, + required TResult Function(BdkError_Generic value) generic, + required TResult Function(BdkError_ScriptDoesntHaveAddressForm value) + scriptDoesntHaveAddressForm, + required TResult Function(BdkError_NoRecipients value) noRecipients, + required TResult Function(BdkError_NoUtxosSelected value) noUtxosSelected, + required TResult Function(BdkError_OutputBelowDustLimit value) + outputBelowDustLimit, + required TResult Function(BdkError_InsufficientFunds value) + insufficientFunds, + required TResult Function(BdkError_BnBTotalTriesExceeded value) + bnBTotalTriesExceeded, + required TResult Function(BdkError_BnBNoExactMatch value) bnBNoExactMatch, + required TResult Function(BdkError_UnknownUtxo value) unknownUtxo, + required TResult Function(BdkError_TransactionNotFound value) + transactionNotFound, + required TResult Function(BdkError_TransactionConfirmed value) + transactionConfirmed, + required TResult Function(BdkError_IrreplaceableTransaction value) + irreplaceableTransaction, + required TResult Function(BdkError_FeeRateTooLow value) feeRateTooLow, + required TResult Function(BdkError_FeeTooLow value) feeTooLow, + required TResult Function(BdkError_FeeRateUnavailable value) + feeRateUnavailable, + required TResult Function(BdkError_MissingKeyOrigin value) missingKeyOrigin, + required TResult Function(BdkError_Key value) key, + required TResult Function(BdkError_ChecksumMismatch value) checksumMismatch, + required TResult Function(BdkError_SpendingPolicyRequired value) + spendingPolicyRequired, + required TResult Function(BdkError_InvalidPolicyPathError value) + invalidPolicyPathError, + required TResult Function(BdkError_Signer value) signer, + required TResult Function(BdkError_InvalidNetwork value) invalidNetwork, + required TResult Function(BdkError_InvalidOutpoint value) invalidOutpoint, + required TResult Function(BdkError_Encode value) encode, + required TResult Function(BdkError_Miniscript value) miniscript, + required TResult Function(BdkError_MiniscriptPsbt value) miniscriptPsbt, + required TResult Function(BdkError_Bip32 value) bip32, + required TResult Function(BdkError_Bip39 value) bip39, + required TResult Function(BdkError_Secp256k1 value) secp256K1, + required TResult Function(BdkError_Json value) json, + required TResult Function(BdkError_Psbt value) psbt, + required TResult Function(BdkError_PsbtParse value) psbtParse, + required TResult Function(BdkError_MissingCachedScripts value) + missingCachedScripts, + required TResult Function(BdkError_Electrum value) electrum, + required TResult Function(BdkError_Esplora value) esplora, + required TResult Function(BdkError_Sled value) sled, + required TResult Function(BdkError_Rpc value) rpc, + required TResult Function(BdkError_Rusqlite value) rusqlite, + required TResult Function(BdkError_InvalidInput value) invalidInput, + required TResult Function(BdkError_InvalidLockTime value) invalidLockTime, + required TResult Function(BdkError_InvalidTransaction value) + invalidTransaction, + }) { + return invalidTransaction(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(BdkError_Hex value)? hex, + TResult? Function(BdkError_Consensus value)? consensus, + TResult? Function(BdkError_Address value)? address, + TResult? Function(BdkError_Descriptor value)? descriptor, + TResult? Function(BdkError_InvalidU32Bytes value)? invalidU32Bytes, + TResult? Function(BdkError_Generic value)? generic, + TResult? Function(BdkError_ScriptDoesntHaveAddressForm value)? + scriptDoesntHaveAddressForm, + TResult? Function(BdkError_NoRecipients value)? noRecipients, + TResult? Function(BdkError_NoUtxosSelected value)? noUtxosSelected, + TResult? Function(BdkError_OutputBelowDustLimit value)? + outputBelowDustLimit, + TResult? Function(BdkError_InsufficientFunds value)? insufficientFunds, + TResult? Function(BdkError_BnBTotalTriesExceeded value)? + bnBTotalTriesExceeded, + TResult? Function(BdkError_BnBNoExactMatch value)? bnBNoExactMatch, + TResult? Function(BdkError_UnknownUtxo value)? unknownUtxo, + TResult? Function(BdkError_TransactionNotFound value)? transactionNotFound, + TResult? Function(BdkError_TransactionConfirmed value)? + transactionConfirmed, + TResult? Function(BdkError_IrreplaceableTransaction value)? + irreplaceableTransaction, + TResult? Function(BdkError_FeeRateTooLow value)? feeRateTooLow, + TResult? Function(BdkError_FeeTooLow value)? feeTooLow, + TResult? Function(BdkError_FeeRateUnavailable value)? feeRateUnavailable, + TResult? Function(BdkError_MissingKeyOrigin value)? missingKeyOrigin, + TResult? Function(BdkError_Key value)? key, + TResult? Function(BdkError_ChecksumMismatch value)? checksumMismatch, + TResult? Function(BdkError_SpendingPolicyRequired value)? + spendingPolicyRequired, + TResult? Function(BdkError_InvalidPolicyPathError value)? + invalidPolicyPathError, + TResult? Function(BdkError_Signer value)? signer, + TResult? Function(BdkError_InvalidNetwork value)? invalidNetwork, + TResult? Function(BdkError_InvalidOutpoint value)? invalidOutpoint, + TResult? Function(BdkError_Encode value)? encode, + TResult? Function(BdkError_Miniscript value)? miniscript, + TResult? Function(BdkError_MiniscriptPsbt value)? miniscriptPsbt, + TResult? Function(BdkError_Bip32 value)? bip32, + TResult? Function(BdkError_Bip39 value)? bip39, + TResult? Function(BdkError_Secp256k1 value)? secp256K1, + TResult? Function(BdkError_Json value)? json, + TResult? Function(BdkError_Psbt value)? psbt, + TResult? Function(BdkError_PsbtParse value)? psbtParse, + TResult? Function(BdkError_MissingCachedScripts value)? + missingCachedScripts, + TResult? Function(BdkError_Electrum value)? electrum, + TResult? Function(BdkError_Esplora value)? esplora, + TResult? Function(BdkError_Sled value)? sled, + TResult? Function(BdkError_Rpc value)? rpc, + TResult? Function(BdkError_Rusqlite value)? rusqlite, + TResult? Function(BdkError_InvalidInput value)? invalidInput, + TResult? Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult? Function(BdkError_InvalidTransaction value)? invalidTransaction, + }) { + return invalidTransaction?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(BdkError_Hex value)? hex, + TResult Function(BdkError_Consensus value)? consensus, + TResult Function(BdkError_Address value)? address, + TResult Function(BdkError_Descriptor value)? descriptor, + TResult Function(BdkError_InvalidU32Bytes value)? invalidU32Bytes, + TResult Function(BdkError_Generic value)? generic, + TResult Function(BdkError_ScriptDoesntHaveAddressForm value)? + scriptDoesntHaveAddressForm, + TResult Function(BdkError_NoRecipients value)? noRecipients, + TResult Function(BdkError_NoUtxosSelected value)? noUtxosSelected, + TResult Function(BdkError_OutputBelowDustLimit value)? outputBelowDustLimit, + TResult Function(BdkError_InsufficientFunds value)? insufficientFunds, + TResult Function(BdkError_BnBTotalTriesExceeded value)? + bnBTotalTriesExceeded, + TResult Function(BdkError_BnBNoExactMatch value)? bnBNoExactMatch, + TResult Function(BdkError_UnknownUtxo value)? unknownUtxo, + TResult Function(BdkError_TransactionNotFound value)? transactionNotFound, + TResult Function(BdkError_TransactionConfirmed value)? transactionConfirmed, + TResult Function(BdkError_IrreplaceableTransaction value)? + irreplaceableTransaction, + TResult Function(BdkError_FeeRateTooLow value)? feeRateTooLow, + TResult Function(BdkError_FeeTooLow value)? feeTooLow, + TResult Function(BdkError_FeeRateUnavailable value)? feeRateUnavailable, + TResult Function(BdkError_MissingKeyOrigin value)? missingKeyOrigin, + TResult Function(BdkError_Key value)? key, + TResult Function(BdkError_ChecksumMismatch value)? checksumMismatch, + TResult Function(BdkError_SpendingPolicyRequired value)? + spendingPolicyRequired, + TResult Function(BdkError_InvalidPolicyPathError value)? + invalidPolicyPathError, + TResult Function(BdkError_Signer value)? signer, + TResult Function(BdkError_InvalidNetwork value)? invalidNetwork, + TResult Function(BdkError_InvalidOutpoint value)? invalidOutpoint, + TResult Function(BdkError_Encode value)? encode, + TResult Function(BdkError_Miniscript value)? miniscript, + TResult Function(BdkError_MiniscriptPsbt value)? miniscriptPsbt, + TResult Function(BdkError_Bip32 value)? bip32, + TResult Function(BdkError_Bip39 value)? bip39, + TResult Function(BdkError_Secp256k1 value)? secp256K1, + TResult Function(BdkError_Json value)? json, + TResult Function(BdkError_Psbt value)? psbt, + TResult Function(BdkError_PsbtParse value)? psbtParse, + TResult Function(BdkError_MissingCachedScripts value)? missingCachedScripts, + TResult Function(BdkError_Electrum value)? electrum, + TResult Function(BdkError_Esplora value)? esplora, + TResult Function(BdkError_Sled value)? sled, + TResult Function(BdkError_Rpc value)? rpc, + TResult Function(BdkError_Rusqlite value)? rusqlite, + TResult Function(BdkError_InvalidInput value)? invalidInput, + TResult Function(BdkError_InvalidLockTime value)? invalidLockTime, + TResult Function(BdkError_InvalidTransaction value)? invalidTransaction, + required TResult orElse(), + }) { + if (invalidTransaction != null) { + return invalidTransaction(this); + } + return orElse(); + } +} + +abstract class BdkError_InvalidTransaction extends BdkError { + const factory BdkError_InvalidTransaction(final String field0) = + _$BdkError_InvalidTransactionImpl; + const BdkError_InvalidTransaction._() : super._(); + + String get field0; + @JsonKey(ignore: true) + _$$BdkError_InvalidTransactionImplCopyWith<_$BdkError_InvalidTransactionImpl> + get copyWith => throw _privateConstructorUsedError; +} + /// @nodoc mixin _$ConsensusError { @optionalTypeArgs @@ -21205,8 +23381,8 @@ class __$$ConsensusError_IoImplCopyWithImpl<$Res> /// @nodoc -class _$ConsensusError_IoImpl implements ConsensusError_Io { - const _$ConsensusError_IoImpl(this.field0); +class _$ConsensusError_IoImpl extends ConsensusError_Io { + const _$ConsensusError_IoImpl(this.field0) : super._(); @override final String field0; @@ -21330,9 +23506,10 @@ class _$ConsensusError_IoImpl implements ConsensusError_Io { } } -abstract class ConsensusError_Io implements ConsensusError { +abstract class ConsensusError_Io extends ConsensusError { const factory ConsensusError_Io(final String field0) = _$ConsensusError_IoImpl; + const ConsensusError_Io._() : super._(); String get field0; @JsonKey(ignore: true) @@ -21382,9 +23559,10 @@ class __$$ConsensusError_OversizedVectorAllocationImplCopyWithImpl<$Res> /// @nodoc class _$ConsensusError_OversizedVectorAllocationImpl - implements ConsensusError_OversizedVectorAllocation { + extends ConsensusError_OversizedVectorAllocation { const _$ConsensusError_OversizedVectorAllocationImpl( - {required this.requested, required this.max}); + {required this.requested, required this.max}) + : super._(); @override final int requested; @@ -21514,11 +23692,11 @@ class _$ConsensusError_OversizedVectorAllocationImpl } } -abstract class ConsensusError_OversizedVectorAllocation - implements ConsensusError { +abstract class ConsensusError_OversizedVectorAllocation extends ConsensusError { const factory ConsensusError_OversizedVectorAllocation( {required final int requested, required final int max}) = _$ConsensusError_OversizedVectorAllocationImpl; + const ConsensusError_OversizedVectorAllocation._() : super._(); int get requested; int get max; @@ -21570,9 +23748,10 @@ class __$$ConsensusError_InvalidChecksumImplCopyWithImpl<$Res> /// @nodoc class _$ConsensusError_InvalidChecksumImpl - implements ConsensusError_InvalidChecksum { + extends ConsensusError_InvalidChecksum { const _$ConsensusError_InvalidChecksumImpl( - {required this.expected, required this.actual}); + {required this.expected, required this.actual}) + : super._(); @override final U8Array4 expected; @@ -21703,10 +23882,11 @@ class _$ConsensusError_InvalidChecksumImpl } } -abstract class ConsensusError_InvalidChecksum implements ConsensusError { +abstract class ConsensusError_InvalidChecksum extends ConsensusError { const factory ConsensusError_InvalidChecksum( {required final U8Array4 expected, required final U8Array4 actual}) = _$ConsensusError_InvalidChecksumImpl; + const ConsensusError_InvalidChecksum._() : super._(); U8Array4 get expected; U8Array4 get actual; @@ -21738,8 +23918,8 @@ class __$$ConsensusError_NonMinimalVarIntImplCopyWithImpl<$Res> /// @nodoc class _$ConsensusError_NonMinimalVarIntImpl - implements ConsensusError_NonMinimalVarInt { - const _$ConsensusError_NonMinimalVarIntImpl(); + extends ConsensusError_NonMinimalVarInt { + const _$ConsensusError_NonMinimalVarIntImpl() : super._(); @override String toString() { @@ -21852,9 +24032,10 @@ class _$ConsensusError_NonMinimalVarIntImpl } } -abstract class ConsensusError_NonMinimalVarInt implements ConsensusError { +abstract class ConsensusError_NonMinimalVarInt extends ConsensusError { const factory ConsensusError_NonMinimalVarInt() = _$ConsensusError_NonMinimalVarIntImpl; + const ConsensusError_NonMinimalVarInt._() : super._(); } /// @nodoc @@ -21892,8 +24073,8 @@ class __$$ConsensusError_ParseFailedImplCopyWithImpl<$Res> /// @nodoc -class _$ConsensusError_ParseFailedImpl implements ConsensusError_ParseFailed { - const _$ConsensusError_ParseFailedImpl(this.field0); +class _$ConsensusError_ParseFailedImpl extends ConsensusError_ParseFailed { + const _$ConsensusError_ParseFailedImpl(this.field0) : super._(); @override final String field0; @@ -22017,9 +24198,10 @@ class _$ConsensusError_ParseFailedImpl implements ConsensusError_ParseFailed { } } -abstract class ConsensusError_ParseFailed implements ConsensusError { +abstract class ConsensusError_ParseFailed extends ConsensusError { const factory ConsensusError_ParseFailed(final String field0) = _$ConsensusError_ParseFailedImpl; + const ConsensusError_ParseFailed._() : super._(); String get field0; @JsonKey(ignore: true) @@ -22064,8 +24246,8 @@ class __$$ConsensusError_UnsupportedSegwitFlagImplCopyWithImpl<$Res> /// @nodoc class _$ConsensusError_UnsupportedSegwitFlagImpl - implements ConsensusError_UnsupportedSegwitFlag { - const _$ConsensusError_UnsupportedSegwitFlagImpl(this.field0); + extends ConsensusError_UnsupportedSegwitFlag { + const _$ConsensusError_UnsupportedSegwitFlagImpl(this.field0) : super._(); @override final int field0; @@ -22190,9 +24372,10 @@ class _$ConsensusError_UnsupportedSegwitFlagImpl } } -abstract class ConsensusError_UnsupportedSegwitFlag implements ConsensusError { +abstract class ConsensusError_UnsupportedSegwitFlag extends ConsensusError { const factory ConsensusError_UnsupportedSegwitFlag(final int field0) = _$ConsensusError_UnsupportedSegwitFlagImpl; + const ConsensusError_UnsupportedSegwitFlag._() : super._(); int get field0; @JsonKey(ignore: true) @@ -22353,8 +24536,8 @@ class __$$DescriptorError_InvalidHdKeyPathImplCopyWithImpl<$Res> /// @nodoc class _$DescriptorError_InvalidHdKeyPathImpl - implements DescriptorError_InvalidHdKeyPath { - const _$DescriptorError_InvalidHdKeyPathImpl(); + extends DescriptorError_InvalidHdKeyPath { + const _$DescriptorError_InvalidHdKeyPathImpl() : super._(); @override String toString() { @@ -22504,9 +24687,10 @@ class _$DescriptorError_InvalidHdKeyPathImpl } } -abstract class DescriptorError_InvalidHdKeyPath implements DescriptorError { +abstract class DescriptorError_InvalidHdKeyPath extends DescriptorError { const factory DescriptorError_InvalidHdKeyPath() = _$DescriptorError_InvalidHdKeyPathImpl; + const DescriptorError_InvalidHdKeyPath._() : super._(); } /// @nodoc @@ -22531,8 +24715,8 @@ class __$$DescriptorError_InvalidDescriptorChecksumImplCopyWithImpl<$Res> /// @nodoc class _$DescriptorError_InvalidDescriptorChecksumImpl - implements DescriptorError_InvalidDescriptorChecksum { - const _$DescriptorError_InvalidDescriptorChecksumImpl(); + extends DescriptorError_InvalidDescriptorChecksum { + const _$DescriptorError_InvalidDescriptorChecksumImpl() : super._(); @override String toString() { @@ -22683,9 +24867,10 @@ class _$DescriptorError_InvalidDescriptorChecksumImpl } abstract class DescriptorError_InvalidDescriptorChecksum - implements DescriptorError { + extends DescriptorError { const factory DescriptorError_InvalidDescriptorChecksum() = _$DescriptorError_InvalidDescriptorChecksumImpl; + const DescriptorError_InvalidDescriptorChecksum._() : super._(); } /// @nodoc @@ -22710,8 +24895,8 @@ class __$$DescriptorError_HardenedDerivationXpubImplCopyWithImpl<$Res> /// @nodoc class _$DescriptorError_HardenedDerivationXpubImpl - implements DescriptorError_HardenedDerivationXpub { - const _$DescriptorError_HardenedDerivationXpubImpl(); + extends DescriptorError_HardenedDerivationXpub { + const _$DescriptorError_HardenedDerivationXpubImpl() : super._(); @override String toString() { @@ -22861,10 +25046,10 @@ class _$DescriptorError_HardenedDerivationXpubImpl } } -abstract class DescriptorError_HardenedDerivationXpub - implements DescriptorError { +abstract class DescriptorError_HardenedDerivationXpub extends DescriptorError { const factory DescriptorError_HardenedDerivationXpub() = _$DescriptorError_HardenedDerivationXpubImpl; + const DescriptorError_HardenedDerivationXpub._() : super._(); } /// @nodoc @@ -22887,8 +25072,8 @@ class __$$DescriptorError_MultiPathImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_MultiPathImpl implements DescriptorError_MultiPath { - const _$DescriptorError_MultiPathImpl(); +class _$DescriptorError_MultiPathImpl extends DescriptorError_MultiPath { + const _$DescriptorError_MultiPathImpl() : super._(); @override String toString() { @@ -23038,8 +25223,9 @@ class _$DescriptorError_MultiPathImpl implements DescriptorError_MultiPath { } } -abstract class DescriptorError_MultiPath implements DescriptorError { +abstract class DescriptorError_MultiPath extends DescriptorError { const factory DescriptorError_MultiPath() = _$DescriptorError_MultiPathImpl; + const DescriptorError_MultiPath._() : super._(); } /// @nodoc @@ -23075,8 +25261,8 @@ class __$$DescriptorError_KeyImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_KeyImpl implements DescriptorError_Key { - const _$DescriptorError_KeyImpl(this.field0); +class _$DescriptorError_KeyImpl extends DescriptorError_Key { + const _$DescriptorError_KeyImpl(this.field0) : super._(); @override final String field0; @@ -23237,9 +25423,10 @@ class _$DescriptorError_KeyImpl implements DescriptorError_Key { } } -abstract class DescriptorError_Key implements DescriptorError { +abstract class DescriptorError_Key extends DescriptorError { const factory DescriptorError_Key(final String field0) = _$DescriptorError_KeyImpl; + const DescriptorError_Key._() : super._(); String get field0; @JsonKey(ignore: true) @@ -23282,8 +25469,8 @@ class __$$DescriptorError_PolicyImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_PolicyImpl implements DescriptorError_Policy { - const _$DescriptorError_PolicyImpl(this.field0); +class _$DescriptorError_PolicyImpl extends DescriptorError_Policy { + const _$DescriptorError_PolicyImpl(this.field0) : super._(); @override final String field0; @@ -23444,9 +25631,10 @@ class _$DescriptorError_PolicyImpl implements DescriptorError_Policy { } } -abstract class DescriptorError_Policy implements DescriptorError { +abstract class DescriptorError_Policy extends DescriptorError { const factory DescriptorError_Policy(final String field0) = _$DescriptorError_PolicyImpl; + const DescriptorError_Policy._() : super._(); String get field0; @JsonKey(ignore: true) @@ -23492,8 +25680,9 @@ class __$$DescriptorError_InvalidDescriptorCharacterImplCopyWithImpl<$Res> /// @nodoc class _$DescriptorError_InvalidDescriptorCharacterImpl - implements DescriptorError_InvalidDescriptorCharacter { - const _$DescriptorError_InvalidDescriptorCharacterImpl(this.field0); + extends DescriptorError_InvalidDescriptorCharacter { + const _$DescriptorError_InvalidDescriptorCharacterImpl(this.field0) + : super._(); @override final int field0; @@ -23658,9 +25847,10 @@ class _$DescriptorError_InvalidDescriptorCharacterImpl } abstract class DescriptorError_InvalidDescriptorCharacter - implements DescriptorError { + extends DescriptorError { const factory DescriptorError_InvalidDescriptorCharacter(final int field0) = _$DescriptorError_InvalidDescriptorCharacterImpl; + const DescriptorError_InvalidDescriptorCharacter._() : super._(); int get field0; @JsonKey(ignore: true) @@ -23703,8 +25893,8 @@ class __$$DescriptorError_Bip32ImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_Bip32Impl implements DescriptorError_Bip32 { - const _$DescriptorError_Bip32Impl(this.field0); +class _$DescriptorError_Bip32Impl extends DescriptorError_Bip32 { + const _$DescriptorError_Bip32Impl(this.field0) : super._(); @override final String field0; @@ -23865,9 +26055,10 @@ class _$DescriptorError_Bip32Impl implements DescriptorError_Bip32 { } } -abstract class DescriptorError_Bip32 implements DescriptorError { +abstract class DescriptorError_Bip32 extends DescriptorError { const factory DescriptorError_Bip32(final String field0) = _$DescriptorError_Bip32Impl; + const DescriptorError_Bip32._() : super._(); String get field0; @JsonKey(ignore: true) @@ -23910,8 +26101,8 @@ class __$$DescriptorError_Base58ImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_Base58Impl implements DescriptorError_Base58 { - const _$DescriptorError_Base58Impl(this.field0); +class _$DescriptorError_Base58Impl extends DescriptorError_Base58 { + const _$DescriptorError_Base58Impl(this.field0) : super._(); @override final String field0; @@ -24072,9 +26263,10 @@ class _$DescriptorError_Base58Impl implements DescriptorError_Base58 { } } -abstract class DescriptorError_Base58 implements DescriptorError { +abstract class DescriptorError_Base58 extends DescriptorError { const factory DescriptorError_Base58(final String field0) = _$DescriptorError_Base58Impl; + const DescriptorError_Base58._() : super._(); String get field0; @JsonKey(ignore: true) @@ -24115,8 +26307,8 @@ class __$$DescriptorError_PkImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_PkImpl implements DescriptorError_Pk { - const _$DescriptorError_PkImpl(this.field0); +class _$DescriptorError_PkImpl extends DescriptorError_Pk { + const _$DescriptorError_PkImpl(this.field0) : super._(); @override final String field0; @@ -24277,9 +26469,10 @@ class _$DescriptorError_PkImpl implements DescriptorError_Pk { } } -abstract class DescriptorError_Pk implements DescriptorError { +abstract class DescriptorError_Pk extends DescriptorError { const factory DescriptorError_Pk(final String field0) = _$DescriptorError_PkImpl; + const DescriptorError_Pk._() : super._(); String get field0; @JsonKey(ignore: true) @@ -24323,8 +26516,8 @@ class __$$DescriptorError_MiniscriptImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_MiniscriptImpl implements DescriptorError_Miniscript { - const _$DescriptorError_MiniscriptImpl(this.field0); +class _$DescriptorError_MiniscriptImpl extends DescriptorError_Miniscript { + const _$DescriptorError_MiniscriptImpl(this.field0) : super._(); @override final String field0; @@ -24485,9 +26678,10 @@ class _$DescriptorError_MiniscriptImpl implements DescriptorError_Miniscript { } } -abstract class DescriptorError_Miniscript implements DescriptorError { +abstract class DescriptorError_Miniscript extends DescriptorError { const factory DescriptorError_Miniscript(final String field0) = _$DescriptorError_MiniscriptImpl; + const DescriptorError_Miniscript._() : super._(); String get field0; @JsonKey(ignore: true) @@ -24528,8 +26722,8 @@ class __$$DescriptorError_HexImplCopyWithImpl<$Res> /// @nodoc -class _$DescriptorError_HexImpl implements DescriptorError_Hex { - const _$DescriptorError_HexImpl(this.field0); +class _$DescriptorError_HexImpl extends DescriptorError_Hex { + const _$DescriptorError_HexImpl(this.field0) : super._(); @override final String field0; @@ -24690,9 +26884,10 @@ class _$DescriptorError_HexImpl implements DescriptorError_Hex { } } -abstract class DescriptorError_Hex implements DescriptorError { +abstract class DescriptorError_Hex extends DescriptorError { const factory DescriptorError_Hex(final String field0) = _$DescriptorError_HexImpl; + const DescriptorError_Hex._() : super._(); String get field0; @JsonKey(ignore: true) @@ -24820,8 +27015,8 @@ class __$$HexError_InvalidCharImplCopyWithImpl<$Res> /// @nodoc -class _$HexError_InvalidCharImpl implements HexError_InvalidChar { - const _$HexError_InvalidCharImpl(this.field0); +class _$HexError_InvalidCharImpl extends HexError_InvalidChar { + const _$HexError_InvalidCharImpl(this.field0) : super._(); @override final int field0; @@ -24919,9 +27114,10 @@ class _$HexError_InvalidCharImpl implements HexError_InvalidChar { } } -abstract class HexError_InvalidChar implements HexError { +abstract class HexError_InvalidChar extends HexError { const factory HexError_InvalidChar(final int field0) = _$HexError_InvalidCharImpl; + const HexError_InvalidChar._() : super._(); @override int get field0; @@ -24968,8 +27164,8 @@ class __$$HexError_OddLengthStringImplCopyWithImpl<$Res> /// @nodoc -class _$HexError_OddLengthStringImpl implements HexError_OddLengthString { - const _$HexError_OddLengthStringImpl(this.field0); +class _$HexError_OddLengthStringImpl extends HexError_OddLengthString { + const _$HexError_OddLengthStringImpl(this.field0) : super._(); @override final int field0; @@ -25066,9 +27262,10 @@ class _$HexError_OddLengthStringImpl implements HexError_OddLengthString { } } -abstract class HexError_OddLengthString implements HexError { +abstract class HexError_OddLengthString extends HexError { const factory HexError_OddLengthString(final int field0) = _$HexError_OddLengthStringImpl; + const HexError_OddLengthString._() : super._(); @override int get field0; @@ -25120,8 +27317,8 @@ class __$$HexError_InvalidLengthImplCopyWithImpl<$Res> /// @nodoc -class _$HexError_InvalidLengthImpl implements HexError_InvalidLength { - const _$HexError_InvalidLengthImpl(this.field0, this.field1); +class _$HexError_InvalidLengthImpl extends HexError_InvalidLength { + const _$HexError_InvalidLengthImpl(this.field0, this.field1) : super._(); @override final int field0; @@ -25221,9 +27418,10 @@ class _$HexError_InvalidLengthImpl implements HexError_InvalidLength { } } -abstract class HexError_InvalidLength implements HexError { +abstract class HexError_InvalidLength extends HexError { const factory HexError_InvalidLength(final int field0, final int field1) = _$HexError_InvalidLengthImpl; + const HexError_InvalidLength._() : super._(); @override int get field0; diff --git a/lib/src/generated/api/key.dart b/lib/src/generated/api/key.dart index 24dce7e8..41cd51f9 100644 --- a/lib/src/generated/api/key.dart +++ b/lib/src/generated/api/key.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.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -20,11 +20,11 @@ class BitcoinBip32DerivationPath extends RustOpaque { : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: BdkCore.instance.api + rustArcIncrementStrongCount: CApi.instance.api .rust_arc_increment_strong_count_BitcoinBip32DerivationPath, - rustArcDecrementStrongCount: BdkCore.instance.api + rustArcDecrementStrongCount: CApi.instance.api .rust_arc_decrement_strong_count_BitcoinBip32DerivationPath, - rustArcDecrementStrongCountPtr: BdkCore.instance.api + rustArcDecrementStrongCountPtr: CApi.instance.api .rust_arc_decrement_strong_count_BitcoinBip32DerivationPathPtr, ); } @@ -40,24 +40,24 @@ class KeysBip39Mnemonic extends RustOpaque { static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - BdkCore.instance.api.rust_arc_increment_strong_count_KeysBip39Mnemonic, + CApi.instance.api.rust_arc_increment_strong_count_KeysBip39Mnemonic, rustArcDecrementStrongCount: - BdkCore.instance.api.rust_arc_decrement_strong_count_KeysBip39Mnemonic, - rustArcDecrementStrongCountPtr: BdkCore - .instance.api.rust_arc_decrement_strong_count_KeysBip39MnemonicPtr, + CApi.instance.api.rust_arc_decrement_strong_count_KeysBip39Mnemonic, + rustArcDecrementStrongCountPtr: + CApi.instance.api.rust_arc_decrement_strong_count_KeysBip39MnemonicPtr, ); } -class DerivationPathBase { +class BdkDerivationPath { final BitcoinBip32DerivationPath ptr; - const DerivationPathBase({ + const BdkDerivationPath({ required this.ptr, }); - static Future fromString( + static Future fromString( {required String path, dynamic hint}) => - BdkCore.instance.api.derivationPathBaseFromString(path: path, hint: hint); + CApi.instance.api.bdkDerivationPathFromString(path: path, hint: hint); @override int get hashCode => ptr.hashCode; @@ -65,41 +65,39 @@ class DerivationPathBase { @override bool operator ==(Object other) => identical(this, other) || - other is DerivationPathBase && + other is BdkDerivationPath && runtimeType == other.runtimeType && ptr == other.ptr; } -class DescriptorPublicKeyBase { +class BdkDescriptorPublicKey { final KeysDescriptorPublicKey ptr; - const DescriptorPublicKeyBase({ + const BdkDescriptorPublicKey({ required this.ptr, }); Future asString({dynamic hint}) => - BdkCore.instance.api.descriptorPublicKeyBaseAsString( - that: this, - ); + CApi.instance.api.bdkDescriptorPublicKeyAsString(that: this, hint: hint); - static Future derive( - {required DescriptorPublicKeyBase ptr, - required DerivationPathBase path, + static Future derive( + {required BdkDescriptorPublicKey ptr, + required BdkDerivationPath path, dynamic hint}) => - BdkCore.instance.api - .descriptorPublicKeyBaseDerive(ptr: ptr, path: path, hint: hint); + CApi.instance.api + .bdkDescriptorPublicKeyDerive(ptr: ptr, path: path, hint: hint); - static Future extend( - {required DescriptorPublicKeyBase ptr, - required DerivationPathBase path, + static Future extend( + {required BdkDescriptorPublicKey ptr, + required BdkDerivationPath path, dynamic hint}) => - BdkCore.instance.api - .descriptorPublicKeyBaseExtend(ptr: ptr, path: path, hint: hint); + CApi.instance.api + .bdkDescriptorPublicKeyExtend(ptr: ptr, path: path, hint: hint); - static Future fromString( + static Future fromString( {required String publicKey, dynamic hint}) => - BdkCore.instance.api - .descriptorPublicKeyBaseFromString(publicKey: publicKey, hint: hint); + CApi.instance.api + .bdkDescriptorPublicKeyFromString(publicKey: publicKey, hint: hint); @override int get hashCode => ptr.hashCode; @@ -107,60 +105,55 @@ class DescriptorPublicKeyBase { @override bool operator ==(Object other) => identical(this, other) || - other is DescriptorPublicKeyBase && + other is BdkDescriptorPublicKey && runtimeType == other.runtimeType && ptr == other.ptr; } -class DescriptorSecretKeyBase { +class BdkDescriptorSecretKey { final KeysDescriptorSecretKey ptr; - const DescriptorSecretKeyBase({ + const BdkDescriptorSecretKey({ required this.ptr, }); - static Future asPublic( - {required DescriptorSecretKeyBase ptr, dynamic hint}) => - BdkCore.instance.api - .descriptorSecretKeyBaseAsPublic(ptr: ptr, hint: hint); + static Future asPublic( + {required BdkDescriptorSecretKey ptr, dynamic hint}) => + CApi.instance.api.bdkDescriptorSecretKeyAsPublic(ptr: ptr, hint: hint); Future asString({dynamic hint}) => - BdkCore.instance.api.descriptorSecretKeyBaseAsString( - that: this, - ); + CApi.instance.api.bdkDescriptorSecretKeyAsString(that: this, hint: hint); - static Future create( + static Future create( {required Network network, - required MnemonicBase mnemonic, + required BdkMnemonic mnemonic, String? password, dynamic hint}) => - BdkCore.instance.api.descriptorSecretKeyBaseCreate( + CApi.instance.api.bdkDescriptorSecretKeyCreate( network: network, mnemonic: mnemonic, password: password, hint: hint); - static Future derive( - {required DescriptorSecretKeyBase ptr, - required DerivationPathBase path, + static Future derive( + {required BdkDescriptorSecretKey ptr, + required BdkDerivationPath path, dynamic hint}) => - BdkCore.instance.api - .descriptorSecretKeyBaseDerive(ptr: ptr, path: path, hint: hint); + CApi.instance.api + .bdkDescriptorSecretKeyDerive(ptr: ptr, path: path, hint: hint); - static Future extend( - {required DescriptorSecretKeyBase ptr, - required DerivationPathBase path, + static Future extend( + {required BdkDescriptorSecretKey ptr, + required BdkDerivationPath path, dynamic hint}) => - BdkCore.instance.api - .descriptorSecretKeyBaseExtend(ptr: ptr, path: path, hint: hint); + CApi.instance.api + .bdkDescriptorSecretKeyExtend(ptr: ptr, path: path, hint: hint); - static Future fromString( + static Future fromString( {required String secretKey, dynamic hint}) => - BdkCore.instance.api - .descriptorSecretKeyBaseFromString(secretKey: secretKey, hint: hint); + CApi.instance.api + .bdkDescriptorSecretKeyFromString(secretKey: secretKey, hint: hint); /// Get the private key as bytes. - Future secretBytes({dynamic hint}) => - BdkCore.instance.api.descriptorSecretKeyBaseSecretBytes( - that: this, - ); + Future secretBytes({dynamic hint}) => CApi.instance.api + .bdkDescriptorSecretKeySecretBytes(that: this, hint: hint); @override int get hashCode => ptr.hashCode; @@ -168,42 +161,38 @@ class DescriptorSecretKeyBase { @override bool operator ==(Object other) => identical(this, other) || - other is DescriptorSecretKeyBase && + other is BdkDescriptorSecretKey && runtimeType == other.runtimeType && ptr == other.ptr; } -class MnemonicBase { +class BdkMnemonic { final KeysBip39Mnemonic ptr; - const MnemonicBase({ + const BdkMnemonic({ required this.ptr, }); /// Returns Mnemonic as string Future asString({dynamic hint}) => - BdkCore.instance.api.mnemonicBaseAsString( - that: this, - ); + CApi.instance.api.bdkMnemonicAsString(that: this, hint: hint); /// 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( + static Future fromEntropy( {required List entropy, dynamic hint}) => - BdkCore.instance.api - .mnemonicBaseFromEntropy(entropy: entropy, hint: hint); + CApi.instance.api.bdkMnemonicFromEntropy(entropy: entropy, hint: hint); /// Parse a Mnemonic with given string - static Future fromString( + static Future fromString( {required String mnemonic, dynamic hint}) => - BdkCore.instance.api - .mnemonicBaseFromString(mnemonic: mnemonic, hint: hint); + CApi.instance.api.bdkMnemonicFromString(mnemonic: mnemonic, hint: hint); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. /// Generates Mnemonic with a random entropy - static Future newInstance( + static Future newInstance( {required WordCount wordCount, dynamic hint}) => - BdkCore.instance.api.mnemonicBaseNew(wordCount: wordCount, hint: hint); + CApi.instance.api.bdkMnemonicNew(wordCount: wordCount, hint: hint); @override int get hashCode => ptr.hashCode; @@ -211,7 +200,7 @@ class MnemonicBase { @override bool operator ==(Object other) => identical(this, other) || - other is MnemonicBase && + other is BdkMnemonic && runtimeType == other.runtimeType && ptr == other.ptr; } diff --git a/lib/src/generated/api/psbt.dart b/lib/src/generated/api/psbt.dart index 3b2286a6..67a75d30 100644 --- a/lib/src/generated/api/psbt.dart +++ b/lib/src/generated/api/psbt.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.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -19,67 +19,58 @@ class MutexPartiallySignedTransaction extends RustOpaque { : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: BdkCore.instance.api + rustArcIncrementStrongCount: CApi.instance.api .rust_arc_increment_strong_count_MutexPartiallySignedTransaction, - rustArcDecrementStrongCount: BdkCore.instance.api + rustArcDecrementStrongCount: CApi.instance.api .rust_arc_decrement_strong_count_MutexPartiallySignedTransaction, - rustArcDecrementStrongCountPtr: BdkCore.instance.api + rustArcDecrementStrongCountPtr: CApi.instance.api .rust_arc_decrement_strong_count_MutexPartiallySignedTransactionPtr, ); } -class PsbtBase { +class BdkPsbt { final MutexPartiallySignedTransaction ptr; - const PsbtBase({ + const BdkPsbt({ required this.ptr, }); /// 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 PsbtBase ptr, required PsbtBase other, dynamic hint}) => - BdkCore.instance.api.psbtBaseCombine(ptr: ptr, other: other, hint: hint); + static Future combine( + {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}) => + CApi.instance.api.bdkPsbtCombine(ptr: ptr, other: other, hint: hint); /// Return the transaction. - static Future extractTx( - {required PsbtBase ptr, dynamic hint}) => - BdkCore.instance.api.psbtBaseExtractTx(ptr: ptr, hint: hint); + static Future extractTx( + {required BdkPsbt ptr, dynamic hint}) => + CApi.instance.api.bdkPsbtExtractTx(ptr: ptr, hint: hint); /// 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}) => - BdkCore.instance.api.psbtBaseFeeAmount( - that: this, - ); + CApi.instance.api.bdkPsbtFeeAmount(that: this, hint: hint); /// 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}) => - BdkCore.instance.api.psbtBaseFeeRate( - that: this, - ); + CApi.instance.api.bdkPsbtFeeRate(that: this, hint: hint); - static Future fromStr({required String psbtBase64, dynamic hint}) => - BdkCore.instance.api.psbtBaseFromStr(psbtBase64: psbtBase64, hint: hint); + static Future fromStr({required String psbtBase64, dynamic hint}) => + CApi.instance.api.bdkPsbtFromStr(psbtBase64: psbtBase64, hint: hint); /// Serialize the PSBT data structure as a String of JSON. Future jsonSerialize({dynamic hint}) => - BdkCore.instance.api.psbtBaseJsonSerialize( - that: this, - ); + CApi.instance.api.bdkPsbtJsonSerialize(that: this, hint: hint); Future serialize({dynamic hint}) => - BdkCore.instance.api.psbtBaseSerialize( - that: this, - ); + CApi.instance.api.bdkPsbtSerialize(that: this, hint: hint); - Future txid({dynamic hint}) => BdkCore.instance.api.psbtBaseTxid( - that: this, - ); + Future txid({dynamic hint}) => + CApi.instance.api.bdkPsbtTxid(that: this, hint: hint); @override int get hashCode => ptr.hashCode; @@ -87,5 +78,5 @@ class PsbtBase { @override bool operator ==(Object other) => identical(this, other) || - other is PsbtBase && runtimeType == other.runtimeType && ptr == other.ptr; + other is BdkPsbt && runtimeType == other.runtimeType && ptr == other.ptr; } diff --git a/lib/src/generated/api/types.dart b/lib/src/generated/api/types.dart index baf866ea..fe8e99f3 100644 --- a/lib/src/generated/api/types.dart +++ b/lib/src/generated/api/types.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -21,78 +21,18 @@ class BdkBitcoinAddress extends RustOpaque { static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - BdkCore.instance.api.rust_arc_increment_strong_count_BdkBitcoinAddress, + CApi.instance.api.rust_arc_increment_strong_count_BdkBitcoinAddress, rustArcDecrementStrongCount: - BdkCore.instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddress, - rustArcDecrementStrongCountPtr: BdkCore - .instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddressPtr, + CApi.instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddress, + rustArcDecrementStrongCountPtr: + CApi.instance.api.rust_arc_decrement_strong_count_BdkBitcoinAddressPtr, ); } -class AddressBase { - final BdkBitcoinAddress ptr; - - const AddressBase({ - required this.ptr, - }); - - Future asString({dynamic hint}) => - BdkCore.instance.api.addressBaseAsString( - that: this, - ); - - static Future fromScript( - {required ScriptBufBase script, - required Network network, - dynamic hint}) => - BdkCore.instance.api - .addressBaseFromScript(script: script, network: network, hint: hint); - - static Future fromString( - {required String address, required Network network, dynamic hint}) => - BdkCore.instance.api.addressBaseFromString( - address: address, network: network, hint: hint); - - Future isValidForNetwork({required Network network, dynamic hint}) => - BdkCore.instance.api.addressBaseIsValidForNetwork( - that: this, - network: network, - ); - - ///The network on which this address is usable. - Future network({dynamic hint}) => - BdkCore.instance.api.addressBaseNetwork( - that: this, - ); - - Future payload({dynamic hint}) => - BdkCore.instance.api.addressBasePayload( - that: this, - ); - - static Future script( - {required AddressBase ptr, dynamic hint}) => - BdkCore.instance.api.addressBaseScript(ptr: ptr, hint: hint); - - ///Creates a URI string bitcoin:address optimized to be encoded in QR codes. - Future toQrUri({dynamic hint}) => - BdkCore.instance.api.addressBaseToQrUri( - that: this, - ); - - @override - int get hashCode => ptr.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is AddressBase && - runtimeType == other.runtimeType && - ptr == other.ptr; -} - @freezed sealed class AddressIndex with _$AddressIndex { + const AddressIndex._(); + ///Return a new address after incrementing the current descriptor index. const factory AddressIndex.increase() = AddressIndex_Increase; @@ -120,31 +60,6 @@ sealed class AddressIndex with _$AddressIndex { }) = AddressIndex_Reset; } -///A derived address and the index it was found at For convenience this automatically derefs to Address -class AddressInfo { - ///Child index of this address - final int index; - - /// Address - final String address; - - const AddressInfo({ - required this.index, - required this.address, - }); - - @override - int get hashCode => index.hashCode ^ address.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is AddressInfo && - runtimeType == other.runtimeType && - index == other.index && - address == other.address; -} - /// Local Wallet's Balance class Balance { final int immature; @@ -195,6 +110,176 @@ class Balance { total == other.total; } +class BdkAddress { + final BdkBitcoinAddress ptr; + + const BdkAddress({ + required this.ptr, + }); + + Future asString({dynamic hint}) => + CApi.instance.api.bdkAddressAsString(that: this, hint: hint); + + static Future fromScript( + {required BdkScriptBuf script, + required Network network, + dynamic hint}) => + CApi.instance.api + .bdkAddressFromScript(script: script, network: network, hint: hint); + + static Future fromString( + {required String address, required Network network, dynamic hint}) => + CApi.instance.api + .bdkAddressFromString(address: address, network: network, hint: hint); + + Future isValidForNetwork({required Network network, dynamic hint}) => + CApi.instance.api.bdkAddressIsValidForNetwork( + that: this, network: network, hint: hint); + + ///The network on which this address is usable. + Future network({dynamic hint}) => + CApi.instance.api.bdkAddressNetwork(that: this, hint: hint); + + Future payload({dynamic hint}) => + CApi.instance.api.bdkAddressPayload(that: this, hint: hint); + + static Future script({required BdkAddress ptr, dynamic hint}) => + CApi.instance.api.bdkAddressScript(ptr: ptr, hint: hint); + + ///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); + + @override + int get hashCode => ptr.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is BdkAddress && + runtimeType == other.runtimeType && + ptr == other.ptr; +} + +class BdkScriptBuf { + final Uint8List bytes; + + const BdkScriptBuf({ + required this.bytes, + }); + + ///Creates a new empty script. + static Future empty({dynamic hint}) => + CApi.instance.api.bdkScriptBufEmpty(hint: hint); + + static Future fromHex({required String s, dynamic hint}) => + CApi.instance.api.bdkScriptBufFromHex(s: s, hint: hint); + + ///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); + + @override + int get hashCode => bytes.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is BdkScriptBuf && + runtimeType == other.runtimeType && + bytes == other.bytes; +} + +class BdkTransaction { + final String inner; + + const BdkTransaction({ + required this.inner, + }); + + static Future fromBytes( + {required List transactionBytes, dynamic hint}) => + CApi.instance.api.bdkTransactionFromBytes( + transactionBytes: transactionBytes, hint: hint); + + ///List of transaction inputs. + Future> input({dynamic hint}) => + CApi.instance.api.bdkTransactionInput(that: this, hint: hint); + + ///Is this a coin base transaction? + Future isCoinBase({dynamic hint}) => + CApi.instance.api.bdkTransactionIsCoinBase(that: this, hint: hint); + + ///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); + + ///Returns true if this transactions nLockTime is enabled (BIP-65 ). + Future isLockTimeEnabled({dynamic hint}) => + CApi.instance.api.bdkTransactionIsLockTimeEnabled(that: this, hint: hint); + + ///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); + + // 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); + + ///List of transaction outputs. + Future> output({dynamic hint}) => + CApi.instance.api.bdkTransactionOutput(that: this, hint: hint); + + ///Encodes an object into a vector. + Future serialize({dynamic hint}) => + CApi.instance.api.bdkTransactionSerialize(that: this, hint: hint); + + ///Returns the regular byte-wise consensus-serialized size of this transaction. + Future size({dynamic hint}) => + CApi.instance.api.bdkTransactionSize(that: this, hint: hint); + + ///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); + + ///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); + + ///Returns the “virtual size” (vsize) of this transaction. + /// + Future vsize({dynamic hint}) => + CApi.instance.api.bdkTransactionVsize(that: this, hint: hint); + + ///Returns the regular byte-wise consensus-serialized size of this transaction. + Future weight({dynamic hint}) => + CApi.instance.api.bdkTransactionWeight(that: this, hint: hint); + + @override + int get hashCode => inner.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is BdkTransaction && + runtimeType == other.runtimeType && + inner == other.inner; +} + ///Block height and timestamp of a block class BlockTime { ///Confirmation block height @@ -228,6 +313,8 @@ enum ChangeSpendPolicy { @freezed sealed class DatabaseConfig with _$DatabaseConfig { + const DatabaseConfig._(); + const factory DatabaseConfig.memory() = DatabaseConfig_Memory; ///Simple key-value embedded database based on sled @@ -313,6 +400,18 @@ class LocalUtxo { isSpent == other.isSpent; } +@freezed +sealed class LockTime with _$LockTime { + const LockTime._(); + + const factory LockTime.blocks( + int field0, + ) = LockTime_Blocks; + const factory LockTime.seconds( + int field0, + ) = LockTime_Seconds; +} + ///The cryptocurrency to act on enum Network { ///Bitcoin’s testnet @@ -355,6 +454,8 @@ class OutPoint { @freezed sealed class Payload with _$Payload { + const Payload._(); + /// P2PKH address. const factory Payload.pubkeyHash({ required String pubkeyHash, @@ -395,6 +496,8 @@ class PsbtSigHashType { @freezed sealed class RbfValue with _$RbfValue { + const RbfValue._(); + const factory RbfValue.rbfDefault() = RbfValue_RbfDefault; const factory RbfValue.value( int field0, @@ -403,7 +506,7 @@ sealed class RbfValue with _$RbfValue { /// A output script and an amount of satoshis. class ScriptAmount { - final ScriptBufBase script; + final BdkScriptBuf script; final int amount; const ScriptAmount({ @@ -423,37 +526,6 @@ class ScriptAmount { amount == other.amount; } -class ScriptBufBase { - final Uint8List bytes; - - const ScriptBufBase({ - required this.bytes, - }); - - ///Creates a new empty script. - static Future empty({dynamic hint}) => - BdkCore.instance.api.scriptBufBaseEmpty(hint: hint); - - static Future fromHex({required String s, dynamic hint}) => - BdkCore.instance.api.scriptBufBaseFromHex(s: s, hint: hint); - - ///Creates a new empty script with pre-allocated capacity. - static Future withCapacity( - {required int capacity, dynamic hint}) => - BdkCore.instance.api - .scriptBufBaseWithCapacity(capacity: capacity, hint: hint); - - @override - int get hashCode => bytes.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ScriptBufBase && - runtimeType == other.runtimeType && - bytes == other.bytes; -} - /// Options for a software signer /// /// Adjust the behavior of our software signers and the way a transaction is finalized @@ -591,107 +663,9 @@ class SqliteDbConfiguration { path == other.path; } -class TransactionBase { - final String inner; - - const TransactionBase({ - required this.inner, - }); - - ///List of transaction inputs. - Future> input({dynamic hint}) => - BdkCore.instance.api.transactionBaseInput( - that: this, - ); - - ///Is this a coin base transaction? - Future isCoinBase({dynamic hint}) => - BdkCore.instance.api.transactionBaseIsCoinBase( - 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}) => - BdkCore.instance.api.transactionBaseIsExplicitlyRbf( - that: this, - ); - - ///Returns true if this transactions nLockTime is enabled (BIP-65 ). - Future isLockTimeEnabled({dynamic hint}) => - BdkCore.instance.api.transactionBaseIsLockTimeEnabled( - that: this, - ); - - ///Block height or timestamp. Transaction cannot be included in a block until this height/time. - Future lockTime({dynamic hint}) => - BdkCore.instance.api.transactionBaseLockTime( - that: this, - ); - - // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. - static Future newInstance( - {required List transactionBytes, dynamic hint}) => - BdkCore.instance.api - .transactionBaseNew(transactionBytes: transactionBytes, hint: hint); - - ///List of transaction outputs. - Future> output({dynamic hint}) => - BdkCore.instance.api.transactionBaseOutput( - that: this, - ); - - ///Encodes an object into a vector. - Future serialize({dynamic hint}) => - BdkCore.instance.api.transactionBaseSerialize( - that: this, - ); - - ///Returns the regular byte-wise consensus-serialized size of this transaction. - Future size({dynamic hint}) => BdkCore.instance.api.transactionBaseSize( - 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}) => - BdkCore.instance.api.transactionBaseTxid( - that: this, - ); - - ///The protocol version, is currently expected to be 1 or 2 (BIP 68). - Future version({dynamic hint}) => - BdkCore.instance.api.transactionBaseVersion( - that: this, - ); - - ///Returns the “virtual size” (vsize) of this transaction. - /// - Future vsize({dynamic hint}) => - BdkCore.instance.api.transactionBaseVsize( - that: this, - ); - - ///Returns the regular byte-wise consensus-serialized size of this transaction. - Future weight({dynamic hint}) => - BdkCore.instance.api.transactionBaseWeight( - that: this, - ); - - @override - int get hashCode => inner.hashCode; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is TransactionBase && - runtimeType == other.runtimeType && - inner == other.inner; -} - ///A wallet transaction class TransactionDetails { - final TransactionBase? transaction; + final BdkTransaction? transaction; /// Transaction id. final String txid; @@ -747,7 +721,7 @@ class TransactionDetails { class TxIn { final OutPoint previousOutput; - final ScriptBufBase scriptSig; + final BdkScriptBuf scriptSig; final int sequence; final List witness; @@ -782,7 +756,7 @@ class TxOut { final int value; /// The address of the output. - final ScriptBufBase scriptPubkey; + final BdkScriptBuf scriptPubkey; const TxOut({ required this.value, diff --git a/lib/src/generated/api/types.freezed.dart b/lib/src/generated/api/types.freezed.dart index 90dffd16..6b9d7255 100644 --- a/lib/src/generated/api/types.freezed.dart +++ b/lib/src/generated/api/types.freezed.dart @@ -105,8 +105,8 @@ class __$$AddressIndex_IncreaseImplCopyWithImpl<$Res> /// @nodoc -class _$AddressIndex_IncreaseImpl implements AddressIndex_Increase { - const _$AddressIndex_IncreaseImpl(); +class _$AddressIndex_IncreaseImpl extends AddressIndex_Increase { + const _$AddressIndex_IncreaseImpl() : super._(); @override String toString() { @@ -198,8 +198,9 @@ class _$AddressIndex_IncreaseImpl implements AddressIndex_Increase { } } -abstract class AddressIndex_Increase implements AddressIndex { +abstract class AddressIndex_Increase extends AddressIndex { const factory AddressIndex_Increase() = _$AddressIndex_IncreaseImpl; + const AddressIndex_Increase._() : super._(); } /// @nodoc @@ -222,8 +223,8 @@ class __$$AddressIndex_LastUnusedImplCopyWithImpl<$Res> /// @nodoc -class _$AddressIndex_LastUnusedImpl implements AddressIndex_LastUnused { - const _$AddressIndex_LastUnusedImpl(); +class _$AddressIndex_LastUnusedImpl extends AddressIndex_LastUnused { + const _$AddressIndex_LastUnusedImpl() : super._(); @override String toString() { @@ -315,8 +316,9 @@ class _$AddressIndex_LastUnusedImpl implements AddressIndex_LastUnused { } } -abstract class AddressIndex_LastUnused implements AddressIndex { +abstract class AddressIndex_LastUnused extends AddressIndex { const factory AddressIndex_LastUnused() = _$AddressIndex_LastUnusedImpl; + const AddressIndex_LastUnused._() : super._(); } /// @nodoc @@ -352,8 +354,8 @@ class __$$AddressIndex_PeekImplCopyWithImpl<$Res> /// @nodoc -class _$AddressIndex_PeekImpl implements AddressIndex_Peek { - const _$AddressIndex_PeekImpl({required this.index}); +class _$AddressIndex_PeekImpl extends AddressIndex_Peek { + const _$AddressIndex_PeekImpl({required this.index}) : super._(); @override final int index; @@ -456,9 +458,10 @@ class _$AddressIndex_PeekImpl implements AddressIndex_Peek { } } -abstract class AddressIndex_Peek implements AddressIndex { +abstract class AddressIndex_Peek extends AddressIndex { const factory AddressIndex_Peek({required final int index}) = _$AddressIndex_PeekImpl; + const AddressIndex_Peek._() : super._(); int get index; @JsonKey(ignore: true) @@ -499,8 +502,8 @@ class __$$AddressIndex_ResetImplCopyWithImpl<$Res> /// @nodoc -class _$AddressIndex_ResetImpl implements AddressIndex_Reset { - const _$AddressIndex_ResetImpl({required this.index}); +class _$AddressIndex_ResetImpl extends AddressIndex_Reset { + const _$AddressIndex_ResetImpl({required this.index}) : super._(); @override final int index; @@ -603,9 +606,10 @@ class _$AddressIndex_ResetImpl implements AddressIndex_Reset { } } -abstract class AddressIndex_Reset implements AddressIndex { +abstract class AddressIndex_Reset extends AddressIndex { const factory AddressIndex_Reset({required final int index}) = _$AddressIndex_ResetImpl; + const AddressIndex_Reset._() : super._(); int get index; @JsonKey(ignore: true) @@ -698,8 +702,8 @@ class __$$DatabaseConfig_MemoryImplCopyWithImpl<$Res> /// @nodoc -class _$DatabaseConfig_MemoryImpl implements DatabaseConfig_Memory { - const _$DatabaseConfig_MemoryImpl(); +class _$DatabaseConfig_MemoryImpl extends DatabaseConfig_Memory { + const _$DatabaseConfig_MemoryImpl() : super._(); @override String toString() { @@ -785,8 +789,9 @@ class _$DatabaseConfig_MemoryImpl implements DatabaseConfig_Memory { } } -abstract class DatabaseConfig_Memory implements DatabaseConfig { +abstract class DatabaseConfig_Memory extends DatabaseConfig { const factory DatabaseConfig_Memory() = _$DatabaseConfig_MemoryImpl; + const DatabaseConfig_Memory._() : super._(); } /// @nodoc @@ -823,8 +828,8 @@ class __$$DatabaseConfig_SqliteImplCopyWithImpl<$Res> /// @nodoc -class _$DatabaseConfig_SqliteImpl implements DatabaseConfig_Sqlite { - const _$DatabaseConfig_SqliteImpl({required this.config}); +class _$DatabaseConfig_SqliteImpl extends DatabaseConfig_Sqlite { + const _$DatabaseConfig_SqliteImpl({required this.config}) : super._(); @override final SqliteDbConfiguration config; @@ -921,10 +926,11 @@ class _$DatabaseConfig_SqliteImpl implements DatabaseConfig_Sqlite { } } -abstract class DatabaseConfig_Sqlite implements DatabaseConfig { +abstract class DatabaseConfig_Sqlite extends DatabaseConfig { const factory DatabaseConfig_Sqlite( {required final SqliteDbConfiguration config}) = _$DatabaseConfig_SqliteImpl; + const DatabaseConfig_Sqlite._() : super._(); SqliteDbConfiguration get config; @JsonKey(ignore: true) @@ -965,8 +971,8 @@ class __$$DatabaseConfig_SledImplCopyWithImpl<$Res> /// @nodoc -class _$DatabaseConfig_SledImpl implements DatabaseConfig_Sled { - const _$DatabaseConfig_SledImpl({required this.config}); +class _$DatabaseConfig_SledImpl extends DatabaseConfig_Sled { + const _$DatabaseConfig_SledImpl({required this.config}) : super._(); @override final SledDbConfiguration config; @@ -1063,9 +1069,10 @@ class _$DatabaseConfig_SledImpl implements DatabaseConfig_Sled { } } -abstract class DatabaseConfig_Sled implements DatabaseConfig { +abstract class DatabaseConfig_Sled extends DatabaseConfig { const factory DatabaseConfig_Sled( {required final SledDbConfiguration config}) = _$DatabaseConfig_SledImpl; + const DatabaseConfig_Sled._() : super._(); SledDbConfiguration get config; @JsonKey(ignore: true) @@ -1073,6 +1080,363 @@ abstract class DatabaseConfig_Sled implements DatabaseConfig { throw _privateConstructorUsedError; } +/// @nodoc +mixin _$LockTime { + int get field0 => throw _privateConstructorUsedError; + @optionalTypeArgs + TResult when({ + required TResult Function(int field0) blocks, + required TResult Function(int field0) seconds, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(int field0)? blocks, + TResult? Function(int field0)? seconds, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(int field0)? blocks, + TResult Function(int field0)? seconds, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(LockTime_Blocks value) blocks, + required TResult Function(LockTime_Seconds value) seconds, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(LockTime_Blocks value)? blocks, + TResult? Function(LockTime_Seconds value)? seconds, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(LockTime_Blocks value)? blocks, + TResult Function(LockTime_Seconds value)? seconds, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + + @JsonKey(ignore: true) + $LockTimeCopyWith get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $LockTimeCopyWith<$Res> { + factory $LockTimeCopyWith(LockTime value, $Res Function(LockTime) then) = + _$LockTimeCopyWithImpl<$Res, LockTime>; + @useResult + $Res call({int field0}); +} + +/// @nodoc +class _$LockTimeCopyWithImpl<$Res, $Val extends LockTime> + implements $LockTimeCopyWith<$Res> { + _$LockTimeCopyWithImpl(this._value, this._then); + + // ignore: unused_field + 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 _$$LockTime_BlocksImplCopyWith<$Res> + implements $LockTimeCopyWith<$Res> { + factory _$$LockTime_BlocksImplCopyWith(_$LockTime_BlocksImpl value, + $Res Function(_$LockTime_BlocksImpl) then) = + __$$LockTime_BlocksImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({int field0}); +} + +/// @nodoc +class __$$LockTime_BlocksImplCopyWithImpl<$Res> + extends _$LockTimeCopyWithImpl<$Res, _$LockTime_BlocksImpl> + implements _$$LockTime_BlocksImplCopyWith<$Res> { + __$$LockTime_BlocksImplCopyWithImpl( + _$LockTime_BlocksImpl _value, $Res Function(_$LockTime_BlocksImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? field0 = null, + }) { + return _then(_$LockTime_BlocksImpl( + null == field0 + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// @nodoc + +class _$LockTime_BlocksImpl extends LockTime_Blocks { + const _$LockTime_BlocksImpl(this.field0) : super._(); + + @override + final int field0; + + @override + String toString() { + return 'LockTime.blocks(field0: $field0)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$LockTime_BlocksImpl && + (identical(other.field0, field0) || other.field0 == field0)); + } + + @override + int get hashCode => Object.hash(runtimeType, field0); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$LockTime_BlocksImplCopyWith<_$LockTime_BlocksImpl> get copyWith => + __$$LockTime_BlocksImplCopyWithImpl<_$LockTime_BlocksImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(int field0) blocks, + required TResult Function(int field0) seconds, + }) { + return blocks(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(int field0)? blocks, + TResult? Function(int field0)? seconds, + }) { + return blocks?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(int field0)? blocks, + TResult Function(int field0)? seconds, + required TResult orElse(), + }) { + if (blocks != null) { + return blocks(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(LockTime_Blocks value) blocks, + required TResult Function(LockTime_Seconds value) seconds, + }) { + return blocks(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(LockTime_Blocks value)? blocks, + TResult? Function(LockTime_Seconds value)? seconds, + }) { + return blocks?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(LockTime_Blocks value)? blocks, + TResult Function(LockTime_Seconds value)? seconds, + required TResult orElse(), + }) { + if (blocks != null) { + return blocks(this); + } + return orElse(); + } +} + +abstract class LockTime_Blocks extends LockTime { + const factory LockTime_Blocks(final int field0) = _$LockTime_BlocksImpl; + const LockTime_Blocks._() : super._(); + + @override + int get field0; + @override + @JsonKey(ignore: true) + _$$LockTime_BlocksImplCopyWith<_$LockTime_BlocksImpl> get copyWith => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$LockTime_SecondsImplCopyWith<$Res> + implements $LockTimeCopyWith<$Res> { + factory _$$LockTime_SecondsImplCopyWith(_$LockTime_SecondsImpl value, + $Res Function(_$LockTime_SecondsImpl) then) = + __$$LockTime_SecondsImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({int field0}); +} + +/// @nodoc +class __$$LockTime_SecondsImplCopyWithImpl<$Res> + extends _$LockTimeCopyWithImpl<$Res, _$LockTime_SecondsImpl> + implements _$$LockTime_SecondsImplCopyWith<$Res> { + __$$LockTime_SecondsImplCopyWithImpl(_$LockTime_SecondsImpl _value, + $Res Function(_$LockTime_SecondsImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? field0 = null, + }) { + return _then(_$LockTime_SecondsImpl( + null == field0 + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as int, + )); + } +} + +/// @nodoc + +class _$LockTime_SecondsImpl extends LockTime_Seconds { + const _$LockTime_SecondsImpl(this.field0) : super._(); + + @override + final int field0; + + @override + String toString() { + return 'LockTime.seconds(field0: $field0)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$LockTime_SecondsImpl && + (identical(other.field0, field0) || other.field0 == field0)); + } + + @override + int get hashCode => Object.hash(runtimeType, field0); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$LockTime_SecondsImplCopyWith<_$LockTime_SecondsImpl> get copyWith => + __$$LockTime_SecondsImplCopyWithImpl<_$LockTime_SecondsImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(int field0) blocks, + required TResult Function(int field0) seconds, + }) { + return seconds(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(int field0)? blocks, + TResult? Function(int field0)? seconds, + }) { + return seconds?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(int field0)? blocks, + TResult Function(int field0)? seconds, + required TResult orElse(), + }) { + if (seconds != null) { + return seconds(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(LockTime_Blocks value) blocks, + required TResult Function(LockTime_Seconds value) seconds, + }) { + return seconds(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(LockTime_Blocks value)? blocks, + TResult? Function(LockTime_Seconds value)? seconds, + }) { + return seconds?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(LockTime_Blocks value)? blocks, + TResult Function(LockTime_Seconds value)? seconds, + required TResult orElse(), + }) { + if (seconds != null) { + return seconds(this); + } + return orElse(); + } +} + +abstract class LockTime_Seconds extends LockTime { + const factory LockTime_Seconds(final int field0) = _$LockTime_SecondsImpl; + const LockTime_Seconds._() : super._(); + + @override + int get field0; + @override + @JsonKey(ignore: true) + _$$LockTime_SecondsImplCopyWith<_$LockTime_SecondsImpl> get copyWith => + throw _privateConstructorUsedError; +} + /// @nodoc mixin _$Payload { @optionalTypeArgs @@ -1173,8 +1537,8 @@ class __$$Payload_PubkeyHashImplCopyWithImpl<$Res> /// @nodoc -class _$Payload_PubkeyHashImpl implements Payload_PubkeyHash { - const _$Payload_PubkeyHashImpl({required this.pubkeyHash}); +class _$Payload_PubkeyHashImpl extends Payload_PubkeyHash { + const _$Payload_PubkeyHashImpl({required this.pubkeyHash}) : super._(); @override final String pubkeyHash; @@ -1274,9 +1638,10 @@ class _$Payload_PubkeyHashImpl implements Payload_PubkeyHash { } } -abstract class Payload_PubkeyHash implements Payload { +abstract class Payload_PubkeyHash extends Payload { const factory Payload_PubkeyHash({required final String pubkeyHash}) = _$Payload_PubkeyHashImpl; + const Payload_PubkeyHash._() : super._(); String get pubkeyHash; @JsonKey(ignore: true) @@ -1317,8 +1682,8 @@ class __$$Payload_ScriptHashImplCopyWithImpl<$Res> /// @nodoc -class _$Payload_ScriptHashImpl implements Payload_ScriptHash { - const _$Payload_ScriptHashImpl({required this.scriptHash}); +class _$Payload_ScriptHashImpl extends Payload_ScriptHash { + const _$Payload_ScriptHashImpl({required this.scriptHash}) : super._(); @override final String scriptHash; @@ -1418,9 +1783,10 @@ class _$Payload_ScriptHashImpl implements Payload_ScriptHash { } } -abstract class Payload_ScriptHash implements Payload { +abstract class Payload_ScriptHash extends Payload { const factory Payload_ScriptHash({required final String scriptHash}) = _$Payload_ScriptHashImpl; + const Payload_ScriptHash._() : super._(); String get scriptHash; @JsonKey(ignore: true) @@ -1468,9 +1834,10 @@ class __$$Payload_WitnessProgramImplCopyWithImpl<$Res> /// @nodoc -class _$Payload_WitnessProgramImpl implements Payload_WitnessProgram { +class _$Payload_WitnessProgramImpl extends Payload_WitnessProgram { const _$Payload_WitnessProgramImpl( - {required this.version, required this.program}); + {required this.version, required this.program}) + : super._(); /// The witness program version. @override @@ -1576,10 +1943,11 @@ class _$Payload_WitnessProgramImpl implements Payload_WitnessProgram { } } -abstract class Payload_WitnessProgram implements Payload { +abstract class Payload_WitnessProgram extends Payload { const factory Payload_WitnessProgram( {required final WitnessVersion version, required final Uint8List program}) = _$Payload_WitnessProgramImpl; + const Payload_WitnessProgram._() : super._(); /// The witness program version. WitnessVersion get version; @@ -1668,8 +2036,8 @@ class __$$RbfValue_RbfDefaultImplCopyWithImpl<$Res> /// @nodoc -class _$RbfValue_RbfDefaultImpl implements RbfValue_RbfDefault { - const _$RbfValue_RbfDefaultImpl(); +class _$RbfValue_RbfDefaultImpl extends RbfValue_RbfDefault { + const _$RbfValue_RbfDefaultImpl() : super._(); @override String toString() { @@ -1749,8 +2117,9 @@ class _$RbfValue_RbfDefaultImpl implements RbfValue_RbfDefault { } } -abstract class RbfValue_RbfDefault implements RbfValue { +abstract class RbfValue_RbfDefault extends RbfValue { const factory RbfValue_RbfDefault() = _$RbfValue_RbfDefaultImpl; + const RbfValue_RbfDefault._() : super._(); } /// @nodoc @@ -1786,8 +2155,8 @@ class __$$RbfValue_ValueImplCopyWithImpl<$Res> /// @nodoc -class _$RbfValue_ValueImpl implements RbfValue_Value { - const _$RbfValue_ValueImpl(this.field0); +class _$RbfValue_ValueImpl extends RbfValue_Value { + const _$RbfValue_ValueImpl(this.field0) : super._(); @override final int field0; @@ -1878,8 +2247,9 @@ class _$RbfValue_ValueImpl implements RbfValue_Value { } } -abstract class RbfValue_Value implements RbfValue { +abstract class RbfValue_Value extends RbfValue { const factory RbfValue_Value(final int field0) = _$RbfValue_ValueImpl; + const RbfValue_Value._() : super._(); int get field0; @JsonKey(ignore: true) diff --git a/lib/src/generated/api/wallet.dart b/lib/src/generated/api/wallet.dart index 34e4530f..51b15058 100644 --- a/lib/src/generated/api/wallet.dart +++ b/lib/src/generated/api/wallet.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.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -11,15 +11,15 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'psbt.dart'; import 'types.dart'; -Future<(PsbtBase, TransactionDetails)> finishBumpFeeTxBuilder( +Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( {required String txid, required double feeRate, - AddressBase? allowShrinking, - required WalletBase wallet, + BdkAddress? allowShrinking, + required BdkWallet wallet, required bool enableRbf, int? nSequence, dynamic hint}) => - BdkCore.instance.api.finishBumpFeeTxBuilder( + CApi.instance.api.finishBumpFeeTxBuilder( txid: txid, feeRate: feeRate, allowShrinking: allowShrinking, @@ -28,8 +28,8 @@ Future<(PsbtBase, TransactionDetails)> finishBumpFeeTxBuilder( nSequence: nSequence, hint: hint); -Future<(PsbtBase, TransactionDetails)> txBuilderFinish( - {required WalletBase wallet, +Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( + {required BdkWallet wallet, required List recipients, required List utxos, (OutPoint, Input, int)? foreignUtxo, @@ -39,11 +39,11 @@ Future<(PsbtBase, TransactionDetails)> txBuilderFinish( double? feeRate, int? feeAbsolute, required bool drainWallet, - ScriptBufBase? drainTo, + BdkScriptBuf? drainTo, RbfValue? rbf, required List data, dynamic hint}) => - BdkCore.instance.api.txBuilderFinish( + CApi.instance.api.txBuilderFinish( wallet: wallet, recipients: recipients, utxos: utxos, @@ -69,45 +69,43 @@ class MutexBdkWalletAnyDatabase extends RustOpaque { : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: BdkCore + rustArcIncrementStrongCount: CApi .instance.api.rust_arc_increment_strong_count_MutexBdkWalletAnyDatabase, - rustArcDecrementStrongCount: BdkCore + rustArcDecrementStrongCount: CApi .instance.api.rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabase, - rustArcDecrementStrongCountPtr: BdkCore.instance.api + rustArcDecrementStrongCountPtr: CApi.instance.api .rust_arc_decrement_strong_count_MutexBdkWalletAnyDatabasePtr, ); } -class WalletBase { +class BdkWallet { final MutexBdkWalletAnyDatabase ptr; - const WalletBase({ + const BdkWallet({ required this.ptr, }); /// 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, dynamic hint}) => - BdkCore.instance.api.walletBaseGetAddress( - that: this, - addressIndex: addressIndex, - ); + static Future<(BdkAddress, int)> getAddress( + {required BdkWallet ptr, + required AddressIndex addressIndex, + dynamic hint}) => + CApi.instance.api.bdkWalletGetAddress( + ptr: ptr, addressIndex: addressIndex, hint: hint); /// 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}) => - BdkCore.instance.api.walletBaseGetBalance( - that: this, - ); + CApi.instance.api.bdkWalletGetBalance(that: this, hint: hint); ///Returns the descriptor used to create addresses for a particular keychain. - static Future getDescriptorForKeychain( - {required WalletBase ptr, + static Future getDescriptorForKeychain( + {required BdkWallet ptr, required KeychainKind keychain, dynamic hint}) => - BdkCore.instance.api.walletBaseGetDescriptorForKeychain( + CApi.instance.api.bdkWalletGetDescriptorForKeychain( ptr: ptr, keychain: keychain, hint: hint); /// Return a derived address using the internal (change) descriptor. @@ -117,12 +115,12 @@ class WalletBase { /// 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]. - Future getInternalAddress( - {required AddressIndex addressIndex, dynamic hint}) => - BdkCore.instance.api.walletBaseGetInternalAddress( - that: this, - addressIndex: addressIndex, - ); + static Future<(BdkAddress, int)> getInternalAddress( + {required BdkWallet ptr, + required AddressIndex addressIndex, + dynamic hint}) => + CApi.instance.api.bdkWalletGetInternalAddress( + ptr: ptr, addressIndex: addressIndex, hint: hint); ///get the corresponding PSBT Input for a LocalUtxo Future getPsbtInput( @@ -130,49 +128,40 @@ class WalletBase { required bool onlyWitnessUtxo, PsbtSigHashType? sighashType, dynamic hint}) => - BdkCore.instance.api.walletBaseGetPsbtInput( - that: this, - utxo: utxo, - onlyWitnessUtxo: onlyWitnessUtxo, - sighashType: sighashType, - ); + CApi.instance.api.bdkWalletGetPsbtInput( + that: this, + utxo: utxo, + onlyWitnessUtxo: onlyWitnessUtxo, + sighashType: sighashType, + hint: hint); /// Return whether or not a script is part of this wallet (either internal or external). - Future isMine({required ScriptBufBase script, dynamic hint}) => - BdkCore.instance.api.walletBaseIsMine( - that: this, - script: script, - ); + Future isMine({required BdkScriptBuf script, dynamic hint}) => + CApi.instance.api.bdkWalletIsMine(that: this, script: script, hint: hint); /// 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}) => - BdkCore.instance.api.walletBaseListTransactions( - that: this, - includeRaw: includeRaw, - ); + CApi.instance.api.bdkWalletListTransactions( + that: this, includeRaw: includeRaw, hint: hint); /// 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}) => - BdkCore.instance.api.walletBaseListUnspent( - that: this, - ); + CApi.instance.api.bdkWalletListUnspent(that: this, hint: hint); /// Get the Bitcoin network the wallet is using. Future network({dynamic hint}) => - BdkCore.instance.api.walletBaseNetwork( - that: this, - ); + CApi.instance.api.bdkWalletNetwork(that: this, hint: hint); // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. - static Future newInstance( - {required DescriptorBase descriptor, - DescriptorBase? changeDescriptor, + static Future newInstance( + {required BdkDescriptor descriptor, + BdkDescriptor? changeDescriptor, required Network network, required DatabaseConfig databaseConfig, dynamic hint}) => - BdkCore.instance.api.walletBaseNew( + CApi.instance.api.bdkWalletNew( descriptor: descriptor, changeDescriptor: changeDescriptor, network: network, @@ -187,20 +176,20 @@ class WalletBase { /// signers will follow the options, but the "software signers" (WIF keys and `xprv`) defined /// in this library will. static Future sign( - {required WalletBase ptr, - required PsbtBase psbt, + {required BdkWallet ptr, + required BdkPsbt psbt, SignOptions? signOptions, dynamic hint}) => - BdkCore.instance.api.walletBaseSign( + CApi.instance.api.bdkWalletSign( ptr: ptr, psbt: psbt, signOptions: signOptions, hint: hint); /// Sync the internal database with the blockchain. static Future sync( - {required WalletBase ptr, - required BlockchainBase blockchain, + {required BdkWallet ptr, + required BdkBlockchain blockchain, dynamic hint}) => - BdkCore.instance.api - .walletBaseSync(ptr: ptr, blockchain: blockchain, hint: hint); + CApi.instance.api + .bdkWalletSync(ptr: ptr, blockchain: blockchain, hint: hint); @override int get hashCode => ptr.hashCode; @@ -208,7 +197,7 @@ class WalletBase { @override bool operator ==(Object other) => identical(this, other) || - other is WalletBase && + other is BdkWallet && runtimeType == other.runtimeType && ptr == other.ptr; } diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index 4ca83a0e..0b4c7516 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.28. +// 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 @@ -16,15 +16,15 @@ import 'frb_generated.io.dart' if (dart.library.html) 'frb_generated.web.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; /// Main entrypoint of the Rust API -class BdkCore extends BaseEntrypoint { +class CApi extends BaseEntrypoint { @internal - static final instance = BdkCore._(); + static final instance = CApi._(); - BdkCore._(); + CApi._(); /// Initialize flutter_rust_bridge static Future init({ - BdkCoreApi? api, + CApiApi? api, BaseHandler? handler, ExternalLibrary? externalLibrary, }) async { @@ -42,12 +42,11 @@ class BdkCore extends BaseEntrypoint { static void dispose() => instance.disposeImpl(); @override - ApiImplConstructor get apiImplConstructor => - BdkCoreApiImpl.new; + ApiImplConstructor get apiImplConstructor => + CApiApiImpl.new; @override - WireConstructor get wireConstructor => - BdkCoreWire.fromExternalLibrary; + WireConstructor get wireConstructor => CApiWire.fromExternalLibrary; @override Future executeRustInitializers() async {} @@ -57,7 +56,7 @@ class BdkCore extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.0.0-dev.28'; + String get codegenVersion => '2.0.0-dev.31'; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -67,294 +66,296 @@ class BdkCore extends BaseEntrypoint { ); } -abstract class BdkCoreApi extends BaseApi { - Future blockchainBaseBroadcast( - {required BlockchainBase that, - required TransactionBase transaction, +abstract class CApiApi extends BaseApi { + Future bdkBlockchainBroadcast( + {required BdkBlockchain that, + required BdkTransaction transaction, dynamic hint}); - Future blockchainBaseEstimateFee( - {required BlockchainBase that, required int target, dynamic hint}); + Future bdkBlockchainEstimateFee( + {required BdkBlockchain that, required int target, dynamic hint}); - Future blockchainBaseGetBlockHash( - {required BlockchainBase that, required int height, dynamic hint}); + Future bdkBlockchainGetBlockHash( + {required BdkBlockchain that, required int height, dynamic hint}); - Future blockchainBaseGetHeight( - {required BlockchainBase that, dynamic hint}); + Future bdkBlockchainGetHeight( + {required BdkBlockchain that, dynamic hint}); - Future blockchainBaseNew( + Future bdkBlockchainNew( {required BlockchainConfig blockchainConfig, dynamic hint}); - Future descriptorBaseAsString( - {required DescriptorBase that, dynamic hint}); + Future bdkDescriptorAsString( + {required BdkDescriptor that, dynamic hint}); - Future descriptorBaseAsStringPrivate( - {required DescriptorBase that, dynamic hint}); + Future bdkDescriptorAsStringPrivate( + {required BdkDescriptor that, dynamic hint}); - Future descriptorBaseMaxSatisfactionWeight( - {required DescriptorBase that, dynamic hint}); + Future bdkDescriptorMaxSatisfactionWeight( + {required BdkDescriptor that, dynamic hint}); - Future descriptorBaseNew( + Future bdkDescriptorNew( {required String descriptor, required Network network, dynamic hint}); - Future descriptorBaseNewBip44( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip44( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future descriptorBaseNewBip44Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip44Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future descriptorBaseNewBip49( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip49( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future descriptorBaseNewBip49Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip49Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future descriptorBaseNewBip84( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip84( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future descriptorBaseNewBip84Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip84Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future descriptorBaseNewBip86( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip86( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future descriptorBaseNewBip86Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip86Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}); - Future derivationPathBaseFromString( + Future bdkDerivationPathFromString( {required String path, dynamic hint}); - Future descriptorPublicKeyBaseAsString( - {required DescriptorPublicKeyBase that, dynamic hint}); + Future bdkDescriptorPublicKeyAsString( + {required BdkDescriptorPublicKey that, dynamic hint}); - Future descriptorPublicKeyBaseDerive( - {required DescriptorPublicKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorPublicKeyDerive( + {required BdkDescriptorPublicKey ptr, + required BdkDerivationPath path, dynamic hint}); - Future descriptorPublicKeyBaseExtend( - {required DescriptorPublicKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorPublicKeyExtend( + {required BdkDescriptorPublicKey ptr, + required BdkDerivationPath path, dynamic hint}); - Future descriptorPublicKeyBaseFromString( + Future bdkDescriptorPublicKeyFromString( {required String publicKey, dynamic hint}); - Future descriptorSecretKeyBaseAsPublic( - {required DescriptorSecretKeyBase ptr, dynamic hint}); + Future bdkDescriptorSecretKeyAsPublic( + {required BdkDescriptorSecretKey ptr, dynamic hint}); - Future descriptorSecretKeyBaseAsString( - {required DescriptorSecretKeyBase that, dynamic hint}); + Future bdkDescriptorSecretKeyAsString( + {required BdkDescriptorSecretKey that, dynamic hint}); - Future descriptorSecretKeyBaseCreate( + Future bdkDescriptorSecretKeyCreate( {required Network network, - required MnemonicBase mnemonic, + required BdkMnemonic mnemonic, String? password, dynamic hint}); - Future descriptorSecretKeyBaseDerive( - {required DescriptorSecretKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorSecretKeyDerive( + {required BdkDescriptorSecretKey ptr, + required BdkDerivationPath path, dynamic hint}); - Future descriptorSecretKeyBaseExtend( - {required DescriptorSecretKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorSecretKeyExtend( + {required BdkDescriptorSecretKey ptr, + required BdkDerivationPath path, dynamic hint}); - Future descriptorSecretKeyBaseFromString( + Future bdkDescriptorSecretKeyFromString( {required String secretKey, dynamic hint}); - Future descriptorSecretKeyBaseSecretBytes( - {required DescriptorSecretKeyBase that, dynamic hint}); + Future bdkDescriptorSecretKeySecretBytes( + {required BdkDescriptorSecretKey that, dynamic hint}); - Future mnemonicBaseAsString( - {required MnemonicBase that, dynamic hint}); + Future bdkMnemonicAsString({required BdkMnemonic that, dynamic hint}); - Future mnemonicBaseFromEntropy( + Future bdkMnemonicFromEntropy( {required List entropy, dynamic hint}); - Future mnemonicBaseFromString( + Future bdkMnemonicFromString( {required String mnemonic, dynamic hint}); - Future mnemonicBaseNew( + Future bdkMnemonicNew( {required WordCount wordCount, dynamic hint}); - Future psbtBaseCombine( - {required PsbtBase ptr, required PsbtBase other, dynamic hint}); + Future bdkPsbtCombine( + {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}); - Future psbtBaseExtractTx( - {required PsbtBase ptr, dynamic hint}); + Future bdkPsbtExtractTx({required BdkPsbt ptr, dynamic hint}); - Future psbtBaseFeeAmount({required PsbtBase that, dynamic hint}); + Future bdkPsbtFeeAmount({required BdkPsbt that, dynamic hint}); - Future psbtBaseFeeRate({required PsbtBase that, dynamic hint}); + Future bdkPsbtFeeRate({required BdkPsbt that, dynamic hint}); - Future psbtBaseFromStr({required String psbtBase64, dynamic hint}); + Future bdkPsbtFromStr({required String psbtBase64, dynamic hint}); - Future psbtBaseJsonSerialize({required PsbtBase that, dynamic hint}); + Future bdkPsbtJsonSerialize({required BdkPsbt that, dynamic hint}); - Future psbtBaseSerialize({required PsbtBase that, dynamic hint}); + Future bdkPsbtSerialize({required BdkPsbt that, dynamic hint}); - Future psbtBaseTxid({required PsbtBase that, dynamic hint}); + Future bdkPsbtTxid({required BdkPsbt that, dynamic hint}); - Future addressBaseAsString({required AddressBase that, dynamic hint}); + Future bdkAddressAsString({required BdkAddress that, dynamic hint}); - Future addressBaseFromScript( - {required ScriptBufBase script, required Network network, dynamic hint}); + Future bdkAddressFromScript( + {required BdkScriptBuf script, required Network network, dynamic hint}); - Future addressBaseFromString( + Future bdkAddressFromString( {required String address, required Network network, dynamic hint}); - Future addressBaseIsValidForNetwork( - {required AddressBase that, required Network network, dynamic hint}); + Future bdkAddressIsValidForNetwork( + {required BdkAddress that, required Network network, dynamic hint}); - Future addressBaseNetwork({required AddressBase that, dynamic hint}); + Future bdkAddressNetwork({required BdkAddress that, dynamic hint}); - Future addressBasePayload({required AddressBase that, dynamic hint}); + Future bdkAddressPayload({required BdkAddress that, dynamic hint}); - Future addressBaseScript( - {required AddressBase ptr, dynamic hint}); + Future bdkAddressScript( + {required BdkAddress ptr, dynamic hint}); - Future addressBaseToQrUri({required AddressBase that, dynamic hint}); + Future bdkAddressToQrUri({required BdkAddress that, dynamic hint}); - Future scriptBufBaseEmpty({dynamic hint}); + Future bdkScriptBufEmpty({dynamic hint}); - Future scriptBufBaseFromHex({required String s, dynamic hint}); + Future bdkScriptBufFromHex({required String s, dynamic hint}); - Future scriptBufBaseWithCapacity( + Future bdkScriptBufWithCapacity( {required int capacity, dynamic hint}); - Future> transactionBaseInput( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionFromBytes( + {required List transactionBytes, dynamic hint}); - Future transactionBaseIsCoinBase( - {required TransactionBase that, dynamic hint}); + Future> bdkTransactionInput( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseIsExplicitlyRbf( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionIsCoinBase( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseIsLockTimeEnabled( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionIsExplicitlyRbf( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseLockTime( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionIsLockTimeEnabled( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseNew( - {required List transactionBytes, dynamic hint}); + Future bdkTransactionLockTime( + {required BdkTransaction that, dynamic hint}); + + Future bdkTransactionNew( + {required int version, + required LockTime lockTime, + required List input, + required List output, + dynamic hint}); - Future> transactionBaseOutput( - {required TransactionBase that, dynamic hint}); + Future> bdkTransactionOutput( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseSerialize( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionSerialize( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseSize( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionSize({required BdkTransaction that, dynamic hint}); - Future transactionBaseTxid( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionTxid( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseVersion( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionVersion( + {required BdkTransaction that, dynamic hint}); - Future transactionBaseVsize( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionVsize({required BdkTransaction that, dynamic hint}); - Future transactionBaseWeight( - {required TransactionBase that, dynamic hint}); + Future bdkTransactionWeight( + {required BdkTransaction that, dynamic hint}); - Future walletBaseGetAddress( - {required WalletBase that, + Future<(BdkAddress, int)> bdkWalletGetAddress( + {required BdkWallet ptr, required AddressIndex addressIndex, dynamic hint}); - Future walletBaseGetBalance( - {required WalletBase that, dynamic hint}); + Future bdkWalletGetBalance({required BdkWallet that, dynamic hint}); - Future walletBaseGetDescriptorForKeychain( - {required WalletBase ptr, required KeychainKind keychain, dynamic hint}); + Future bdkWalletGetDescriptorForKeychain( + {required BdkWallet ptr, required KeychainKind keychain, dynamic hint}); - Future walletBaseGetInternalAddress( - {required WalletBase that, + Future<(BdkAddress, int)> bdkWalletGetInternalAddress( + {required BdkWallet ptr, required AddressIndex addressIndex, dynamic hint}); - Future walletBaseGetPsbtInput( - {required WalletBase that, + Future bdkWalletGetPsbtInput( + {required BdkWallet that, required LocalUtxo utxo, required bool onlyWitnessUtxo, PsbtSigHashType? sighashType, dynamic hint}); - Future walletBaseIsMine( - {required WalletBase that, required ScriptBufBase script, dynamic hint}); + Future bdkWalletIsMine( + {required BdkWallet that, required BdkScriptBuf script, dynamic hint}); - Future> walletBaseListTransactions( - {required WalletBase that, required bool includeRaw, dynamic hint}); + Future> bdkWalletListTransactions( + {required BdkWallet that, required bool includeRaw, dynamic hint}); - Future> walletBaseListUnspent( - {required WalletBase that, dynamic hint}); + Future> bdkWalletListUnspent( + {required BdkWallet that, dynamic hint}); - Future walletBaseNetwork({required WalletBase that, dynamic hint}); + Future bdkWalletNetwork({required BdkWallet that, dynamic hint}); - Future walletBaseNew( - {required DescriptorBase descriptor, - DescriptorBase? changeDescriptor, + Future bdkWalletNew( + {required BdkDescriptor descriptor, + BdkDescriptor? changeDescriptor, required Network network, required DatabaseConfig databaseConfig, dynamic hint}); - Future walletBaseSign( - {required WalletBase ptr, - required PsbtBase psbt, + Future bdkWalletSign( + {required BdkWallet ptr, + required BdkPsbt psbt, SignOptions? signOptions, dynamic hint}); - Future walletBaseSync( - {required WalletBase ptr, - required BlockchainBase blockchain, + Future bdkWalletSync( + {required BdkWallet ptr, + required BdkBlockchain blockchain, dynamic hint}); - Future<(PsbtBase, TransactionDetails)> finishBumpFeeTxBuilder( + Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( {required String txid, required double feeRate, - AddressBase? allowShrinking, - required WalletBase wallet, + BdkAddress? allowShrinking, + required BdkWallet wallet, required bool enableRbf, int? nSequence, dynamic hint}); - Future<(PsbtBase, TransactionDetails)> txBuilderFinish( - {required WalletBase wallet, + Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( + {required BdkWallet wallet, required List recipients, required List utxos, (OutPoint, Input, int)? foreignUtxo, @@ -364,7 +365,7 @@ abstract class BdkCoreApi extends BaseApi { double? feeRate, int? feeAbsolute, required bool drainWallet, - ScriptBufBase? drainTo, + BdkScriptBuf? drainTo, RbfValue? rbf, required List data, dynamic hint}); @@ -459,8 +460,8 @@ abstract class BdkCoreApi extends BaseApi { get rust_arc_decrement_strong_count_KeysBip39MnemonicPtr; } -class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { - BdkCoreApiImpl({ +class CApiApiImpl extends CApiApiImplPlatform implements CApiApi { + CApiApiImpl({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, @@ -468,1920 +469,1945 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { }); @override - Future blockchainBaseBroadcast( - {required BlockchainBase that, - required TransactionBase transaction, + Future bdkBlockchainBroadcast( + {required BdkBlockchain that, + required BdkTransaction transaction, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_blockchain_base(that); - var arg1 = cst_encode_box_autoadd_transaction_base(transaction); - return wire.wire_BlockchainBase_broadcast(port_, arg0, arg1); + 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); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBlockchainBaseBroadcastConstMeta, + constMeta: kBdkBlockchainBroadcastConstMeta, argValues: [that, transaction], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBlockchainBaseBroadcastConstMeta => const TaskConstMeta( - debugName: "BlockchainBase_broadcast", + TaskConstMeta get kBdkBlockchainBroadcastConstMeta => const TaskConstMeta( + debugName: "bdk_blockchain_broadcast", argNames: ["that", "transaction"], ); @override - Future blockchainBaseEstimateFee( - {required BlockchainBase that, required int target, dynamic hint}) { + Future bdkBlockchainEstimateFee( + {required BdkBlockchain that, required int target, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_blockchain_base(that); + var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); var arg1 = cst_encode_u_64(target); - return wire.wire_BlockchainBase_estimate_fee(port_, arg0, arg1); + return wire.wire_bdk_blockchain_estimate_fee(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_fee_rate, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBlockchainBaseEstimateFeeConstMeta, + constMeta: kBdkBlockchainEstimateFeeConstMeta, argValues: [that, target], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBlockchainBaseEstimateFeeConstMeta => const TaskConstMeta( - debugName: "BlockchainBase_estimate_fee", + TaskConstMeta get kBdkBlockchainEstimateFeeConstMeta => const TaskConstMeta( + debugName: "bdk_blockchain_estimate_fee", argNames: ["that", "target"], ); @override - Future blockchainBaseGetBlockHash( - {required BlockchainBase that, required int height, dynamic hint}) { + Future bdkBlockchainGetBlockHash( + {required BdkBlockchain that, required int height, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_blockchain_base(that); + var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); var arg1 = cst_encode_u_32(height); - return wire.wire_BlockchainBase_get_block_hash(port_, arg0, arg1); + return wire.wire_bdk_blockchain_get_block_hash(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBlockchainBaseGetBlockHashConstMeta, + constMeta: kBdkBlockchainGetBlockHashConstMeta, argValues: [that, height], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBlockchainBaseGetBlockHashConstMeta => const TaskConstMeta( - debugName: "BlockchainBase_get_block_hash", + TaskConstMeta get kBdkBlockchainGetBlockHashConstMeta => const TaskConstMeta( + debugName: "bdk_blockchain_get_block_hash", argNames: ["that", "height"], ); @override - Future blockchainBaseGetHeight( - {required BlockchainBase that, dynamic hint}) { + Future bdkBlockchainGetHeight( + {required BdkBlockchain that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_blockchain_base(that); - return wire.wire_BlockchainBase_get_height(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_blockchain(that); + return wire.wire_bdk_blockchain_get_height(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBlockchainBaseGetHeightConstMeta, + constMeta: kBdkBlockchainGetHeightConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBlockchainBaseGetHeightConstMeta => const TaskConstMeta( - debugName: "BlockchainBase_get_height", + TaskConstMeta get kBdkBlockchainGetHeightConstMeta => const TaskConstMeta( + debugName: "bdk_blockchain_get_height", argNames: ["that"], ); @override - Future blockchainBaseNew( + Future bdkBlockchainNew( {required BlockchainConfig blockchainConfig, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_blockchain_config(blockchainConfig); - return wire.wire_BlockchainBase_new(port_, arg0); + return wire.wire_bdk_blockchain_new(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_blockchain_base, + decodeSuccessData: dco_decode_bdk_blockchain, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kBlockchainBaseNewConstMeta, + constMeta: kBdkBlockchainNewConstMeta, argValues: [blockchainConfig], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBlockchainBaseNewConstMeta => const TaskConstMeta( - debugName: "BlockchainBase_new", + TaskConstMeta get kBdkBlockchainNewConstMeta => const TaskConstMeta( + debugName: "bdk_blockchain_new", argNames: ["blockchainConfig"], ); @override - Future descriptorBaseAsString( - {required DescriptorBase that, dynamic hint}) { + Future bdkDescriptorAsString( + {required BdkDescriptor that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_base(that); - return wire.wire_DescriptorBase_as_string(port_, arg0); + 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: kDescriptorBaseAsStringConstMeta, + constMeta: kBdkDescriptorAsStringConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseAsStringConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_as_string", + TaskConstMeta get kBdkDescriptorAsStringConstMeta => const TaskConstMeta( + debugName: "bdk_descriptor_as_string", argNames: ["that"], ); @override - Future descriptorBaseAsStringPrivate( - {required DescriptorBase that, dynamic hint}) { + Future bdkDescriptorAsStringPrivate( + {required BdkDescriptor that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_base(that); - return wire.wire_DescriptorBase_as_string_private(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); + return wire.wire_bdk_descriptor_as_string_private(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kDescriptorBaseAsStringPrivateConstMeta, + constMeta: kBdkDescriptorAsStringPrivateConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseAsStringPrivateConstMeta => + TaskConstMeta get kBdkDescriptorAsStringPrivateConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_as_string_private", + debugName: "bdk_descriptor_as_string_private", argNames: ["that"], ); @override - Future descriptorBaseMaxSatisfactionWeight( - {required DescriptorBase that, dynamic hint}) { + Future bdkDescriptorMaxSatisfactionWeight( + {required BdkDescriptor that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_base(that); - return wire.wire_DescriptorBase_max_satisfaction_weight(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_descriptor(that); + return wire.wire_bdk_descriptor_max_satisfaction_weight(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_usize, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseMaxSatisfactionWeightConstMeta, + constMeta: kBdkDescriptorMaxSatisfactionWeightConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseMaxSatisfactionWeightConstMeta => + TaskConstMeta get kBdkDescriptorMaxSatisfactionWeightConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_max_satisfaction_weight", + debugName: "bdk_descriptor_max_satisfaction_weight", argNames: ["that"], ); @override - Future descriptorBaseNew( + Future bdkDescriptorNew( {required String descriptor, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(descriptor); var arg1 = cst_encode_network(network); - return wire.wire_DescriptorBase_new(port_, arg0, arg1); + return wire.wire_bdk_descriptor_new(port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewConstMeta, + constMeta: kBdkDescriptorNewConstMeta, argValues: [descriptor, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new", + TaskConstMeta get kBdkDescriptorNewConstMeta => const TaskConstMeta( + debugName: "bdk_descriptor_new", argNames: ["descriptor", "network"], ); @override - Future descriptorBaseNewBip44( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip44( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(secretKey); + 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_DescriptorBase_new_bip44(port_, arg0, arg1, arg2); + return wire.wire_bdk_descriptor_new_bip44(port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip44ConstMeta, + constMeta: kBdkDescriptorNewBip44ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip44ConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip44", + TaskConstMeta get kBdkDescriptorNewBip44ConstMeta => const TaskConstMeta( + debugName: "bdk_descriptor_new_bip44", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future descriptorBaseNewBip44Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip44Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_public_key_base(publicKey); + 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_DescriptorBase_new_bip44_public( + return wire.wire_bdk_descriptor_new_bip44_public( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip44PublicConstMeta, + constMeta: kBdkDescriptorNewBip44PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip44PublicConstMeta => + TaskConstMeta get kBdkDescriptorNewBip44PublicConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip44_public", + debugName: "bdk_descriptor_new_bip44_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future descriptorBaseNewBip49( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip49( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(secretKey); + 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_DescriptorBase_new_bip49(port_, arg0, arg1, arg2); + return wire.wire_bdk_descriptor_new_bip49(port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip49ConstMeta, + constMeta: kBdkDescriptorNewBip49ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip49ConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip49", + TaskConstMeta get kBdkDescriptorNewBip49ConstMeta => const TaskConstMeta( + debugName: "bdk_descriptor_new_bip49", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future descriptorBaseNewBip49Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip49Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_public_key_base(publicKey); + 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_DescriptorBase_new_bip49_public( + return wire.wire_bdk_descriptor_new_bip49_public( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip49PublicConstMeta, + constMeta: kBdkDescriptorNewBip49PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip49PublicConstMeta => + TaskConstMeta get kBdkDescriptorNewBip49PublicConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip49_public", + debugName: "bdk_descriptor_new_bip49_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future descriptorBaseNewBip84( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip84( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(secretKey); + 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_DescriptorBase_new_bip84(port_, arg0, arg1, arg2); + return wire.wire_bdk_descriptor_new_bip84(port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip84ConstMeta, + constMeta: kBdkDescriptorNewBip84ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip84ConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip84", + TaskConstMeta get kBdkDescriptorNewBip84ConstMeta => const TaskConstMeta( + debugName: "bdk_descriptor_new_bip84", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future descriptorBaseNewBip84Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip84Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_public_key_base(publicKey); + 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_DescriptorBase_new_bip84_public( + return wire.wire_bdk_descriptor_new_bip84_public( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip84PublicConstMeta, + constMeta: kBdkDescriptorNewBip84PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip84PublicConstMeta => + TaskConstMeta get kBdkDescriptorNewBip84PublicConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip84_public", + debugName: "bdk_descriptor_new_bip84_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future descriptorBaseNewBip86( - {required DescriptorSecretKeyBase secretKey, + Future bdkDescriptorNewBip86( + {required BdkDescriptorSecretKey secretKey, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(secretKey); + 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_DescriptorBase_new_bip86(port_, arg0, arg1, arg2); + return wire.wire_bdk_descriptor_new_bip86(port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip86ConstMeta, + constMeta: kBdkDescriptorNewBip86ConstMeta, argValues: [secretKey, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip86ConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip86", + TaskConstMeta get kBdkDescriptorNewBip86ConstMeta => const TaskConstMeta( + debugName: "bdk_descriptor_new_bip86", argNames: ["secretKey", "keychainKind", "network"], ); @override - Future descriptorBaseNewBip86Public( - {required DescriptorPublicKeyBase publicKey, + Future bdkDescriptorNewBip86Public( + {required BdkDescriptorPublicKey publicKey, required String fingerprint, required KeychainKind keychainKind, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_public_key_base(publicKey); + 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_DescriptorBase_new_bip86_public( + return wire.wire_bdk_descriptor_new_bip86_public( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorBaseNewBip86PublicConstMeta, + constMeta: kBdkDescriptorNewBip86PublicConstMeta, argValues: [publicKey, fingerprint, keychainKind, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorBaseNewBip86PublicConstMeta => + TaskConstMeta get kBdkDescriptorNewBip86PublicConstMeta => const TaskConstMeta( - debugName: "DescriptorBase_new_bip86_public", + debugName: "bdk_descriptor_new_bip86_public", argNames: ["publicKey", "fingerprint", "keychainKind", "network"], ); @override - Future derivationPathBaseFromString( + Future bdkDerivationPathFromString( {required String path, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(path); - return wire.wire_DerivationPathBase_from_string(port_, arg0); + return wire.wire_bdk_derivation_path_from_string(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_derivation_path_base, + decodeSuccessData: dco_decode_bdk_derivation_path, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDerivationPathBaseFromStringConstMeta, + constMeta: kBdkDerivationPathFromStringConstMeta, argValues: [path], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDerivationPathBaseFromStringConstMeta => + TaskConstMeta get kBdkDerivationPathFromStringConstMeta => const TaskConstMeta( - debugName: "DerivationPathBase_from_string", + debugName: "bdk_derivation_path_from_string", argNames: ["path"], ); @override - Future descriptorPublicKeyBaseAsString( - {required DescriptorPublicKeyBase that, dynamic hint}) { + Future bdkDescriptorPublicKeyAsString( + {required BdkDescriptorPublicKey that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_public_key_base(that); - return wire.wire_DescriptorPublicKeyBase_as_string(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_descriptor_public_key(that); + return wire.wire_bdk_descriptor_public_key_as_string(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kDescriptorPublicKeyBaseAsStringConstMeta, + constMeta: kBdkDescriptorPublicKeyAsStringConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorPublicKeyBaseAsStringConstMeta => + TaskConstMeta get kBdkDescriptorPublicKeyAsStringConstMeta => const TaskConstMeta( - debugName: "DescriptorPublicKeyBase_as_string", + debugName: "bdk_descriptor_public_key_as_string", argNames: ["that"], ); @override - Future descriptorPublicKeyBaseDerive( - {required DescriptorPublicKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorPublicKeyDerive( + {required BdkDescriptorPublicKey ptr, + required BdkDerivationPath path, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_public_key_base(ptr); - var arg1 = cst_encode_box_autoadd_derivation_path_base(path); - return wire.wire_DescriptorPublicKeyBase_derive(port_, arg0, arg1); + 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); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_public_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorPublicKeyBaseDeriveConstMeta, + constMeta: kBdkDescriptorPublicKeyDeriveConstMeta, argValues: [ptr, path], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorPublicKeyBaseDeriveConstMeta => + TaskConstMeta get kBdkDescriptorPublicKeyDeriveConstMeta => const TaskConstMeta( - debugName: "DescriptorPublicKeyBase_derive", + debugName: "bdk_descriptor_public_key_derive", argNames: ["ptr", "path"], ); @override - Future descriptorPublicKeyBaseExtend( - {required DescriptorPublicKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorPublicKeyExtend( + {required BdkDescriptorPublicKey ptr, + required BdkDerivationPath path, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_public_key_base(ptr); - var arg1 = cst_encode_box_autoadd_derivation_path_base(path); - return wire.wire_DescriptorPublicKeyBase_extend(port_, arg0, arg1); + 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); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_public_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorPublicKeyBaseExtendConstMeta, + constMeta: kBdkDescriptorPublicKeyExtendConstMeta, argValues: [ptr, path], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorPublicKeyBaseExtendConstMeta => + TaskConstMeta get kBdkDescriptorPublicKeyExtendConstMeta => const TaskConstMeta( - debugName: "DescriptorPublicKeyBase_extend", + debugName: "bdk_descriptor_public_key_extend", argNames: ["ptr", "path"], ); @override - Future descriptorPublicKeyBaseFromString( + Future bdkDescriptorPublicKeyFromString( {required String publicKey, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(publicKey); - return wire.wire_DescriptorPublicKeyBase_from_string(port_, arg0); + return wire.wire_bdk_descriptor_public_key_from_string(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_public_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorPublicKeyBaseFromStringConstMeta, + constMeta: kBdkDescriptorPublicKeyFromStringConstMeta, argValues: [publicKey], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorPublicKeyBaseFromStringConstMeta => + TaskConstMeta get kBdkDescriptorPublicKeyFromStringConstMeta => const TaskConstMeta( - debugName: "DescriptorPublicKeyBase_from_string", + debugName: "bdk_descriptor_public_key_from_string", argNames: ["publicKey"], ); @override - Future descriptorSecretKeyBaseAsPublic( - {required DescriptorSecretKeyBase ptr, dynamic hint}) { + Future bdkDescriptorSecretKeyAsPublic( + {required BdkDescriptorSecretKey ptr, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(ptr); - return wire.wire_DescriptorSecretKeyBase_as_public(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(ptr); + return wire.wire_bdk_descriptor_secret_key_as_public(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_public_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_public_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorSecretKeyBaseAsPublicConstMeta, + constMeta: kBdkDescriptorSecretKeyAsPublicConstMeta, argValues: [ptr], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorSecretKeyBaseAsPublicConstMeta => + TaskConstMeta get kBdkDescriptorSecretKeyAsPublicConstMeta => const TaskConstMeta( - debugName: "DescriptorSecretKeyBase_as_public", + debugName: "bdk_descriptor_secret_key_as_public", argNames: ["ptr"], ); @override - Future descriptorSecretKeyBaseAsString( - {required DescriptorSecretKeyBase that, dynamic hint}) { + Future bdkDescriptorSecretKeyAsString( + {required BdkDescriptorSecretKey that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(that); - return wire.wire_DescriptorSecretKeyBase_as_string(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(that); + return wire.wire_bdk_descriptor_secret_key_as_string(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kDescriptorSecretKeyBaseAsStringConstMeta, + constMeta: kBdkDescriptorSecretKeyAsStringConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorSecretKeyBaseAsStringConstMeta => + TaskConstMeta get kBdkDescriptorSecretKeyAsStringConstMeta => const TaskConstMeta( - debugName: "DescriptorSecretKeyBase_as_string", + debugName: "bdk_descriptor_secret_key_as_string", argNames: ["that"], ); @override - Future descriptorSecretKeyBaseCreate( + Future bdkDescriptorSecretKeyCreate( {required Network network, - required MnemonicBase mnemonic, + required BdkMnemonic mnemonic, String? password, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_network(network); - var arg1 = cst_encode_box_autoadd_mnemonic_base(mnemonic); + var arg1 = cst_encode_box_autoadd_bdk_mnemonic(mnemonic); var arg2 = cst_encode_opt_String(password); - return wire.wire_DescriptorSecretKeyBase_create( + return wire.wire_bdk_descriptor_secret_key_create( port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_secret_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorSecretKeyBaseCreateConstMeta, + constMeta: kBdkDescriptorSecretKeyCreateConstMeta, argValues: [network, mnemonic, password], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorSecretKeyBaseCreateConstMeta => + TaskConstMeta get kBdkDescriptorSecretKeyCreateConstMeta => const TaskConstMeta( - debugName: "DescriptorSecretKeyBase_create", + debugName: "bdk_descriptor_secret_key_create", argNames: ["network", "mnemonic", "password"], ); @override - Future descriptorSecretKeyBaseDerive( - {required DescriptorSecretKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorSecretKeyDerive( + {required BdkDescriptorSecretKey ptr, + required BdkDerivationPath path, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(ptr); - var arg1 = cst_encode_box_autoadd_derivation_path_base(path); - return wire.wire_DescriptorSecretKeyBase_derive(port_, arg0, arg1); + 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); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_secret_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorSecretKeyBaseDeriveConstMeta, + constMeta: kBdkDescriptorSecretKeyDeriveConstMeta, argValues: [ptr, path], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorSecretKeyBaseDeriveConstMeta => + TaskConstMeta get kBdkDescriptorSecretKeyDeriveConstMeta => const TaskConstMeta( - debugName: "DescriptorSecretKeyBase_derive", + debugName: "bdk_descriptor_secret_key_derive", argNames: ["ptr", "path"], ); @override - Future descriptorSecretKeyBaseExtend( - {required DescriptorSecretKeyBase ptr, - required DerivationPathBase path, + Future bdkDescriptorSecretKeyExtend( + {required BdkDescriptorSecretKey ptr, + required BdkDerivationPath path, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(ptr); - var arg1 = cst_encode_box_autoadd_derivation_path_base(path); - return wire.wire_DescriptorSecretKeyBase_extend(port_, arg0, arg1); + 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); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_secret_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorSecretKeyBaseExtendConstMeta, + constMeta: kBdkDescriptorSecretKeyExtendConstMeta, argValues: [ptr, path], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorSecretKeyBaseExtendConstMeta => + TaskConstMeta get kBdkDescriptorSecretKeyExtendConstMeta => const TaskConstMeta( - debugName: "DescriptorSecretKeyBase_extend", + debugName: "bdk_descriptor_secret_key_extend", argNames: ["ptr", "path"], ); @override - Future descriptorSecretKeyBaseFromString( + Future bdkDescriptorSecretKeyFromString( {required String secretKey, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(secretKey); - return wire.wire_DescriptorSecretKeyBase_from_string(port_, arg0); + return wire.wire_bdk_descriptor_secret_key_from_string(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_secret_key_base, + decodeSuccessData: dco_decode_bdk_descriptor_secret_key, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorSecretKeyBaseFromStringConstMeta, + constMeta: kBdkDescriptorSecretKeyFromStringConstMeta, argValues: [secretKey], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorSecretKeyBaseFromStringConstMeta => + TaskConstMeta get kBdkDescriptorSecretKeyFromStringConstMeta => const TaskConstMeta( - debugName: "DescriptorSecretKeyBase_from_string", + debugName: "bdk_descriptor_secret_key_from_string", argNames: ["secretKey"], ); @override - Future descriptorSecretKeyBaseSecretBytes( - {required DescriptorSecretKeyBase that, dynamic hint}) { + Future bdkDescriptorSecretKeySecretBytes( + {required BdkDescriptorSecretKey that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_secret_key_base(that); - return wire.wire_DescriptorSecretKeyBase_secret_bytes(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_descriptor_secret_key(that); + return wire.wire_bdk_descriptor_secret_key_secret_bytes(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kDescriptorSecretKeyBaseSecretBytesConstMeta, + constMeta: kBdkDescriptorSecretKeySecretBytesConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDescriptorSecretKeyBaseSecretBytesConstMeta => + TaskConstMeta get kBdkDescriptorSecretKeySecretBytesConstMeta => const TaskConstMeta( - debugName: "DescriptorSecretKeyBase_secret_bytes", + debugName: "bdk_descriptor_secret_key_secret_bytes", argNames: ["that"], ); @override - Future mnemonicBaseAsString( - {required MnemonicBase that, dynamic hint}) { + Future bdkMnemonicAsString( + {required BdkMnemonic that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_mnemonic_base(that); - return wire.wire_MnemonicBase_as_string(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_mnemonic(that); + return wire.wire_bdk_mnemonic_as_string(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kMnemonicBaseAsStringConstMeta, + constMeta: kBdkMnemonicAsStringConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kMnemonicBaseAsStringConstMeta => const TaskConstMeta( - debugName: "MnemonicBase_as_string", + TaskConstMeta get kBdkMnemonicAsStringConstMeta => const TaskConstMeta( + debugName: "bdk_mnemonic_as_string", argNames: ["that"], ); @override - Future mnemonicBaseFromEntropy( + Future bdkMnemonicFromEntropy( {required List entropy, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_list_prim_u_8_loose(entropy); - return wire.wire_MnemonicBase_from_entropy(port_, arg0); + return wire.wire_bdk_mnemonic_from_entropy(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_mnemonic_base, + decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kMnemonicBaseFromEntropyConstMeta, + constMeta: kBdkMnemonicFromEntropyConstMeta, argValues: [entropy], apiImpl: this, hint: hint, )); } - TaskConstMeta get kMnemonicBaseFromEntropyConstMeta => const TaskConstMeta( - debugName: "MnemonicBase_from_entropy", + TaskConstMeta get kBdkMnemonicFromEntropyConstMeta => const TaskConstMeta( + debugName: "bdk_mnemonic_from_entropy", argNames: ["entropy"], ); @override - Future mnemonicBaseFromString( + Future bdkMnemonicFromString( {required String mnemonic, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(mnemonic); - return wire.wire_MnemonicBase_from_string(port_, arg0); + return wire.wire_bdk_mnemonic_from_string(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_mnemonic_base, + decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kMnemonicBaseFromStringConstMeta, + constMeta: kBdkMnemonicFromStringConstMeta, argValues: [mnemonic], apiImpl: this, hint: hint, )); } - TaskConstMeta get kMnemonicBaseFromStringConstMeta => const TaskConstMeta( - debugName: "MnemonicBase_from_string", + TaskConstMeta get kBdkMnemonicFromStringConstMeta => const TaskConstMeta( + debugName: "bdk_mnemonic_from_string", argNames: ["mnemonic"], ); @override - Future mnemonicBaseNew( + Future bdkMnemonicNew( {required WordCount wordCount, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_word_count(wordCount); - return wire.wire_MnemonicBase_new(port_, arg0); + return wire.wire_bdk_mnemonic_new(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_mnemonic_base, + decodeSuccessData: dco_decode_bdk_mnemonic, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kMnemonicBaseNewConstMeta, + constMeta: kBdkMnemonicNewConstMeta, argValues: [wordCount], apiImpl: this, hint: hint, )); } - TaskConstMeta get kMnemonicBaseNewConstMeta => const TaskConstMeta( - debugName: "MnemonicBase_new", + TaskConstMeta get kBdkMnemonicNewConstMeta => const TaskConstMeta( + debugName: "bdk_mnemonic_new", argNames: ["wordCount"], ); @override - Future psbtBaseCombine( - {required PsbtBase ptr, required PsbtBase other, dynamic hint}) { + Future bdkPsbtCombine( + {required BdkPsbt ptr, required BdkPsbt other, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_psbt_base(ptr); - var arg1 = cst_encode_box_autoadd_psbt_base(other); - return wire.wire_PsbtBase_combine(port_, arg0, arg1); + 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); }, codec: DcoCodec( - decodeSuccessData: dco_decode_psbt_base, + decodeSuccessData: dco_decode_bdk_psbt, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kPsbtBaseCombineConstMeta, + constMeta: kBdkPsbtCombineConstMeta, argValues: [ptr, other], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseCombineConstMeta => const TaskConstMeta( - debugName: "PsbtBase_combine", + TaskConstMeta get kBdkPsbtCombineConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_combine", argNames: ["ptr", "other"], ); @override - Future psbtBaseExtractTx( - {required PsbtBase ptr, dynamic hint}) { + Future bdkPsbtExtractTx( + {required BdkPsbt ptr, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_psbt_base(ptr); - return wire.wire_PsbtBase_extract_tx(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_psbt(ptr); + return wire.wire_bdk_psbt_extract_tx(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_transaction_base, - decodeErrorData: null, + decodeSuccessData: dco_decode_bdk_transaction, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kPsbtBaseExtractTxConstMeta, + constMeta: kBdkPsbtExtractTxConstMeta, argValues: [ptr], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseExtractTxConstMeta => const TaskConstMeta( - debugName: "PsbtBase_extract_tx", + TaskConstMeta get kBdkPsbtExtractTxConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_extract_tx", argNames: ["ptr"], ); @override - Future psbtBaseFeeAmount({required PsbtBase that, dynamic hint}) { + Future bdkPsbtFeeAmount({required BdkPsbt that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_psbt_base(that); - return wire.wire_PsbtBase_fee_amount(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_psbt(that); + return wire.wire_bdk_psbt_fee_amount(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_u_64, decodeErrorData: null, ), - constMeta: kPsbtBaseFeeAmountConstMeta, + constMeta: kBdkPsbtFeeAmountConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseFeeAmountConstMeta => const TaskConstMeta( - debugName: "PsbtBase_fee_amount", + TaskConstMeta get kBdkPsbtFeeAmountConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_fee_amount", argNames: ["that"], ); @override - Future psbtBaseFeeRate({required PsbtBase that, dynamic hint}) { + Future bdkPsbtFeeRate({required BdkPsbt that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_psbt_base(that); - return wire.wire_PsbtBase_fee_rate(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_psbt(that); + return wire.wire_bdk_psbt_fee_rate(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_fee_rate, decodeErrorData: null, ), - constMeta: kPsbtBaseFeeRateConstMeta, + constMeta: kBdkPsbtFeeRateConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseFeeRateConstMeta => const TaskConstMeta( - debugName: "PsbtBase_fee_rate", + TaskConstMeta get kBdkPsbtFeeRateConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_fee_rate", argNames: ["that"], ); @override - Future psbtBaseFromStr({required String psbtBase64, dynamic hint}) { + Future bdkPsbtFromStr({required String psbtBase64, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(psbtBase64); - return wire.wire_PsbtBase_from_str(port_, arg0); + return wire.wire_bdk_psbt_from_str(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_psbt_base, + decodeSuccessData: dco_decode_bdk_psbt, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kPsbtBaseFromStrConstMeta, + constMeta: kBdkPsbtFromStrConstMeta, argValues: [psbtBase64], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseFromStrConstMeta => const TaskConstMeta( - debugName: "PsbtBase_from_str", + TaskConstMeta get kBdkPsbtFromStrConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_from_str", argNames: ["psbtBase64"], ); @override - Future psbtBaseJsonSerialize({required PsbtBase that, dynamic hint}) { + Future bdkPsbtJsonSerialize({required BdkPsbt that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_psbt_base(that); - return wire.wire_PsbtBase_json_serialize(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_psbt(that); + return wire.wire_bdk_psbt_json_serialize(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kPsbtBaseJsonSerializeConstMeta, + constMeta: kBdkPsbtJsonSerializeConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseJsonSerializeConstMeta => const TaskConstMeta( - debugName: "PsbtBase_json_serialize", + TaskConstMeta get kBdkPsbtJsonSerializeConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_json_serialize", argNames: ["that"], ); @override - Future psbtBaseSerialize({required PsbtBase that, dynamic hint}) { + Future bdkPsbtSerialize({required BdkPsbt that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_psbt_base(that); - return wire.wire_PsbtBase_serialize(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_psbt(that); + return wire.wire_bdk_psbt_serialize(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kPsbtBaseSerializeConstMeta, + constMeta: kBdkPsbtSerializeConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseSerializeConstMeta => const TaskConstMeta( - debugName: "PsbtBase_serialize", + TaskConstMeta get kBdkPsbtSerializeConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_serialize", argNames: ["that"], ); @override - Future psbtBaseTxid({required PsbtBase that, dynamic hint}) { + Future bdkPsbtTxid({required BdkPsbt that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_psbt_base(that); - return wire.wire_PsbtBase_txid(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_psbt(that); + return wire.wire_bdk_psbt_txid(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kPsbtBaseTxidConstMeta, + constMeta: kBdkPsbtTxidConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPsbtBaseTxidConstMeta => const TaskConstMeta( - debugName: "PsbtBase_txid", + TaskConstMeta get kBdkPsbtTxidConstMeta => const TaskConstMeta( + debugName: "bdk_psbt_txid", argNames: ["that"], ); @override - Future addressBaseAsString( - {required AddressBase that, dynamic hint}) { + Future bdkAddressAsString({required BdkAddress that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_address_base(that); - return wire.wire_AddressBase_as_string(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_address(that); + return wire.wire_bdk_address_as_string(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kAddressBaseAsStringConstMeta, + constMeta: kBdkAddressAsStringConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBaseAsStringConstMeta => const TaskConstMeta( - debugName: "AddressBase_as_string", + TaskConstMeta get kBdkAddressAsStringConstMeta => const TaskConstMeta( + debugName: "bdk_address_as_string", argNames: ["that"], ); @override - Future addressBaseFromScript( - {required ScriptBufBase script, required Network network, dynamic hint}) { + Future bdkAddressFromScript( + {required BdkScriptBuf script, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_script_buf_base(script); + var arg0 = cst_encode_box_autoadd_bdk_script_buf(script); var arg1 = cst_encode_network(network); - return wire.wire_AddressBase_from_script(port_, arg0, arg1); + return wire.wire_bdk_address_from_script(port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_address_base, + decodeSuccessData: dco_decode_bdk_address, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kAddressBaseFromScriptConstMeta, + constMeta: kBdkAddressFromScriptConstMeta, argValues: [script, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBaseFromScriptConstMeta => const TaskConstMeta( - debugName: "AddressBase_from_script", + TaskConstMeta get kBdkAddressFromScriptConstMeta => const TaskConstMeta( + debugName: "bdk_address_from_script", argNames: ["script", "network"], ); @override - Future addressBaseFromString( + Future bdkAddressFromString( {required String address, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(address); var arg1 = cst_encode_network(network); - return wire.wire_AddressBase_from_string(port_, arg0, arg1); + return wire.wire_bdk_address_from_string(port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_address_base, + decodeSuccessData: dco_decode_bdk_address, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kAddressBaseFromStringConstMeta, + constMeta: kBdkAddressFromStringConstMeta, argValues: [address, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBaseFromStringConstMeta => const TaskConstMeta( - debugName: "AddressBase_from_string", + TaskConstMeta get kBdkAddressFromStringConstMeta => const TaskConstMeta( + debugName: "bdk_address_from_string", argNames: ["address", "network"], ); @override - Future addressBaseIsValidForNetwork( - {required AddressBase that, required Network network, dynamic hint}) { + Future bdkAddressIsValidForNetwork( + {required BdkAddress that, required Network network, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_address_base(that); + var arg0 = cst_encode_box_autoadd_bdk_address(that); var arg1 = cst_encode_network(network); - return wire.wire_AddressBase_is_valid_for_network(port_, arg0, arg1); + return wire.wire_bdk_address_is_valid_for_network(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: null, ), - constMeta: kAddressBaseIsValidForNetworkConstMeta, + constMeta: kBdkAddressIsValidForNetworkConstMeta, argValues: [that, network], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBaseIsValidForNetworkConstMeta => + TaskConstMeta get kBdkAddressIsValidForNetworkConstMeta => const TaskConstMeta( - debugName: "AddressBase_is_valid_for_network", + debugName: "bdk_address_is_valid_for_network", argNames: ["that", "network"], ); @override - Future addressBaseNetwork( - {required AddressBase that, dynamic hint}) { + Future bdkAddressNetwork({required BdkAddress that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_address_base(that); - return wire.wire_AddressBase_network(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_address(that); + return wire.wire_bdk_address_network(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_network, decodeErrorData: null, ), - constMeta: kAddressBaseNetworkConstMeta, + constMeta: kBdkAddressNetworkConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBaseNetworkConstMeta => const TaskConstMeta( - debugName: "AddressBase_network", + TaskConstMeta get kBdkAddressNetworkConstMeta => const TaskConstMeta( + debugName: "bdk_address_network", argNames: ["that"], ); @override - Future addressBasePayload( - {required AddressBase that, dynamic hint}) { + Future bdkAddressPayload({required BdkAddress that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_address_base(that); - return wire.wire_AddressBase_payload(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_address(that); + return wire.wire_bdk_address_payload(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_payload, decodeErrorData: null, ), - constMeta: kAddressBasePayloadConstMeta, + constMeta: kBdkAddressPayloadConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBasePayloadConstMeta => const TaskConstMeta( - debugName: "AddressBase_payload", + TaskConstMeta get kBdkAddressPayloadConstMeta => const TaskConstMeta( + debugName: "bdk_address_payload", argNames: ["that"], ); @override - Future addressBaseScript( - {required AddressBase ptr, dynamic hint}) { + Future bdkAddressScript( + {required BdkAddress ptr, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_address_base(ptr); - return wire.wire_AddressBase_script(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_address(ptr); + return wire.wire_bdk_address_script(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_script_buf_base, + decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kAddressBaseScriptConstMeta, + constMeta: kBdkAddressScriptConstMeta, argValues: [ptr], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBaseScriptConstMeta => const TaskConstMeta( - debugName: "AddressBase_script", + TaskConstMeta get kBdkAddressScriptConstMeta => const TaskConstMeta( + debugName: "bdk_address_script", argNames: ["ptr"], ); @override - Future addressBaseToQrUri({required AddressBase that, dynamic hint}) { + Future bdkAddressToQrUri({required BdkAddress that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_address_base(that); - return wire.wire_AddressBase_to_qr_uri(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_address(that); + return wire.wire_bdk_address_to_qr_uri(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kAddressBaseToQrUriConstMeta, + constMeta: kBdkAddressToQrUriConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kAddressBaseToQrUriConstMeta => const TaskConstMeta( - debugName: "AddressBase_to_qr_uri", + TaskConstMeta get kBdkAddressToQrUriConstMeta => const TaskConstMeta( + debugName: "bdk_address_to_qr_uri", argNames: ["that"], ); @override - Future scriptBufBaseEmpty({dynamic hint}) { + Future bdkScriptBufEmpty({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_ScriptBufBase_empty(port_); + return wire.wire_bdk_script_buf_empty(port_); }, codec: DcoCodec( - decodeSuccessData: dco_decode_script_buf_base, + decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kScriptBufBaseEmptyConstMeta, + constMeta: kBdkScriptBufEmptyConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kScriptBufBaseEmptyConstMeta => const TaskConstMeta( - debugName: "ScriptBufBase_empty", + TaskConstMeta get kBdkScriptBufEmptyConstMeta => const TaskConstMeta( + debugName: "bdk_script_buf_empty", argNames: [], ); @override - Future scriptBufBaseFromHex( - {required String s, dynamic hint}) { + Future bdkScriptBufFromHex({required String s, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(s); - return wire.wire_ScriptBufBase_from_hex(port_, arg0); + return wire.wire_bdk_script_buf_from_hex(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_script_buf_base, + decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kScriptBufBaseFromHexConstMeta, + constMeta: kBdkScriptBufFromHexConstMeta, argValues: [s], apiImpl: this, hint: hint, )); } - TaskConstMeta get kScriptBufBaseFromHexConstMeta => const TaskConstMeta( - debugName: "ScriptBufBase_from_hex", + TaskConstMeta get kBdkScriptBufFromHexConstMeta => const TaskConstMeta( + debugName: "bdk_script_buf_from_hex", argNames: ["s"], ); @override - Future scriptBufBaseWithCapacity( + Future bdkScriptBufWithCapacity( {required int capacity, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_usize(capacity); - return wire.wire_ScriptBufBase_with_capacity(port_, arg0); + return wire.wire_bdk_script_buf_with_capacity(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_script_buf_base, + decodeSuccessData: dco_decode_bdk_script_buf, decodeErrorData: null, ), - constMeta: kScriptBufBaseWithCapacityConstMeta, + constMeta: kBdkScriptBufWithCapacityConstMeta, argValues: [capacity], apiImpl: this, hint: hint, )); } - TaskConstMeta get kScriptBufBaseWithCapacityConstMeta => const TaskConstMeta( - debugName: "ScriptBufBase_with_capacity", + TaskConstMeta get kBdkScriptBufWithCapacityConstMeta => const TaskConstMeta( + debugName: "bdk_script_buf_with_capacity", argNames: ["capacity"], ); @override - Future> transactionBaseInput( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionFromBytes( + {required List transactionBytes, dynamic hint}) { + 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); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_bdk_transaction, + decodeErrorData: dco_decode_bdk_error, + ), + constMeta: kBdkTransactionFromBytesConstMeta, + argValues: [transactionBytes], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kBdkTransactionFromBytesConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_from_bytes", + argNames: ["transactionBytes"], + ); + + @override + Future> bdkTransactionInput( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_input(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_input(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_tx_in, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseInputConstMeta, + constMeta: kBdkTransactionInputConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseInputConstMeta => const TaskConstMeta( - debugName: "TransactionBase_input", + TaskConstMeta get kBdkTransactionInputConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_input", argNames: ["that"], ); @override - Future transactionBaseIsCoinBase( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionIsCoinBase( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_is_coin_base(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_is_coin_base(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseIsCoinBaseConstMeta, + constMeta: kBdkTransactionIsCoinBaseConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseIsCoinBaseConstMeta => const TaskConstMeta( - debugName: "TransactionBase_is_coin_base", + TaskConstMeta get kBdkTransactionIsCoinBaseConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_is_coin_base", argNames: ["that"], ); @override - Future transactionBaseIsExplicitlyRbf( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionIsExplicitlyRbf( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_is_explicitly_rbf(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_is_explicitly_rbf(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseIsExplicitlyRbfConstMeta, + constMeta: kBdkTransactionIsExplicitlyRbfConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseIsExplicitlyRbfConstMeta => + TaskConstMeta get kBdkTransactionIsExplicitlyRbfConstMeta => const TaskConstMeta( - debugName: "TransactionBase_is_explicitly_rbf", + debugName: "bdk_transaction_is_explicitly_rbf", argNames: ["that"], ); @override - Future transactionBaseIsLockTimeEnabled( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionIsLockTimeEnabled( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_is_lock_time_enabled(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_is_lock_time_enabled(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseIsLockTimeEnabledConstMeta, + constMeta: kBdkTransactionIsLockTimeEnabledConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseIsLockTimeEnabledConstMeta => + TaskConstMeta get kBdkTransactionIsLockTimeEnabledConstMeta => const TaskConstMeta( - debugName: "TransactionBase_is_lock_time_enabled", + debugName: "bdk_transaction_is_lock_time_enabled", argNames: ["that"], ); @override - Future transactionBaseLockTime( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionLockTime( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_lock_time(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_lock_time(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_u_32, - decodeErrorData: null, + decodeSuccessData: dco_decode_lock_time, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseLockTimeConstMeta, + constMeta: kBdkTransactionLockTimeConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseLockTimeConstMeta => const TaskConstMeta( - debugName: "TransactionBase_lock_time", + TaskConstMeta get kBdkTransactionLockTimeConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_lock_time", argNames: ["that"], ); @override - Future transactionBaseNew( - {required List transactionBytes, dynamic hint}) { + Future bdkTransactionNew( + {required int version, + required LockTime lockTime, + required List input, + required List output, + dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_list_prim_u_8_loose(transactionBytes); - return wire.wire_TransactionBase_new(port_, arg0); + 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); }, codec: DcoCodec( - decodeSuccessData: dco_decode_transaction_base, + decodeSuccessData: dco_decode_bdk_transaction, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseNewConstMeta, - argValues: [transactionBytes], + constMeta: kBdkTransactionNewConstMeta, + argValues: [version, lockTime, input, output], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseNewConstMeta => const TaskConstMeta( - debugName: "TransactionBase_new", - argNames: ["transactionBytes"], + TaskConstMeta get kBdkTransactionNewConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_new", + argNames: ["version", "lockTime", "input", "output"], ); @override - Future> transactionBaseOutput( - {required TransactionBase that, dynamic hint}) { + Future> bdkTransactionOutput( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_output(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_output(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_tx_out, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseOutputConstMeta, + constMeta: kBdkTransactionOutputConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseOutputConstMeta => const TaskConstMeta( - debugName: "TransactionBase_output", + TaskConstMeta get kBdkTransactionOutputConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_output", argNames: ["that"], ); @override - Future transactionBaseSerialize( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionSerialize( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_serialize(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_serialize(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseSerializeConstMeta, + constMeta: kBdkTransactionSerializeConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseSerializeConstMeta => const TaskConstMeta( - debugName: "TransactionBase_serialize", + TaskConstMeta get kBdkTransactionSerializeConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_serialize", argNames: ["that"], ); @override - Future transactionBaseSize( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionSize({required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_size(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_size(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseSizeConstMeta, + constMeta: kBdkTransactionSizeConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseSizeConstMeta => const TaskConstMeta( - debugName: "TransactionBase_size", + TaskConstMeta get kBdkTransactionSizeConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_size", argNames: ["that"], ); @override - Future transactionBaseTxid( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionTxid( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_txid(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_txid(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseTxidConstMeta, + constMeta: kBdkTransactionTxidConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseTxidConstMeta => const TaskConstMeta( - debugName: "TransactionBase_txid", + TaskConstMeta get kBdkTransactionTxidConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_txid", argNames: ["that"], ); @override - Future transactionBaseVersion( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionVersion( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_version(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_version(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_i_32, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseVersionConstMeta, + constMeta: kBdkTransactionVersionConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseVersionConstMeta => const TaskConstMeta( - debugName: "TransactionBase_version", + TaskConstMeta get kBdkTransactionVersionConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_version", argNames: ["that"], ); @override - Future transactionBaseVsize( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionVsize( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_vsize(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_vsize(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseVsizeConstMeta, + constMeta: kBdkTransactionVsizeConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseVsizeConstMeta => const TaskConstMeta( - debugName: "TransactionBase_vsize", + TaskConstMeta get kBdkTransactionVsizeConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_vsize", argNames: ["that"], ); @override - Future transactionBaseWeight( - {required TransactionBase that, dynamic hint}) { + Future bdkTransactionWeight( + {required BdkTransaction that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_transaction_base(that); - return wire.wire_TransactionBase_weight(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_transaction(that); + return wire.wire_bdk_transaction_weight(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_u_64, - decodeErrorData: null, + decodeErrorData: dco_decode_bdk_error, ), - constMeta: kTransactionBaseWeightConstMeta, + constMeta: kBdkTransactionWeightConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kTransactionBaseWeightConstMeta => const TaskConstMeta( - debugName: "TransactionBase_weight", + TaskConstMeta get kBdkTransactionWeightConstMeta => const TaskConstMeta( + debugName: "bdk_transaction_weight", argNames: ["that"], ); @override - Future walletBaseGetAddress( - {required WalletBase that, + Future<(BdkAddress, int)> bdkWalletGetAddress( + {required BdkWallet ptr, required AddressIndex addressIndex, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); + var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); - return wire.wire_WalletBase_get_address(port_, arg0, arg1); + return wire.wire_bdk_wallet_get_address(port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_address_info, + decodeSuccessData: dco_decode_record_bdk_address_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseGetAddressConstMeta, - argValues: [that, addressIndex], + constMeta: kBdkWalletGetAddressConstMeta, + argValues: [ptr, addressIndex], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseGetAddressConstMeta => const TaskConstMeta( - debugName: "WalletBase_get_address", - argNames: ["that", "addressIndex"], + TaskConstMeta get kBdkWalletGetAddressConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_get_address", + argNames: ["ptr", "addressIndex"], ); @override - Future walletBaseGetBalance( - {required WalletBase that, dynamic hint}) { + Future bdkWalletGetBalance({required BdkWallet that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); - return wire.wire_WalletBase_get_balance(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_wallet(that); + return wire.wire_bdk_wallet_get_balance(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_balance, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseGetBalanceConstMeta, + constMeta: kBdkWalletGetBalanceConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseGetBalanceConstMeta => const TaskConstMeta( - debugName: "WalletBase_get_balance", + TaskConstMeta get kBdkWalletGetBalanceConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_get_balance", argNames: ["that"], ); @override - Future walletBaseGetDescriptorForKeychain( - {required WalletBase ptr, required KeychainKind keychain, dynamic hint}) { + Future bdkWalletGetDescriptorForKeychain( + {required BdkWallet ptr, required KeychainKind keychain, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(ptr); + var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_keychain_kind(keychain); - return wire.wire_WalletBase_get_descriptor_for_keychain( + return wire.wire_bdk_wallet_get_descriptor_for_keychain( port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_descriptor_base, + decodeSuccessData: dco_decode_bdk_descriptor, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseGetDescriptorForKeychainConstMeta, + constMeta: kBdkWalletGetDescriptorForKeychainConstMeta, argValues: [ptr, keychain], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseGetDescriptorForKeychainConstMeta => + TaskConstMeta get kBdkWalletGetDescriptorForKeychainConstMeta => const TaskConstMeta( - debugName: "WalletBase_get_descriptor_for_keychain", + debugName: "bdk_wallet_get_descriptor_for_keychain", argNames: ["ptr", "keychain"], ); @override - Future walletBaseGetInternalAddress( - {required WalletBase that, + Future<(BdkAddress, int)> bdkWalletGetInternalAddress( + {required BdkWallet ptr, required AddressIndex addressIndex, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); + var arg0 = cst_encode_box_autoadd_bdk_wallet(ptr); var arg1 = cst_encode_box_autoadd_address_index(addressIndex); - return wire.wire_WalletBase_get_internal_address(port_, arg0, arg1); + return wire.wire_bdk_wallet_get_internal_address(port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_address_info, + decodeSuccessData: dco_decode_record_bdk_address_u_32, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseGetInternalAddressConstMeta, - argValues: [that, addressIndex], + constMeta: kBdkWalletGetInternalAddressConstMeta, + argValues: [ptr, addressIndex], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseGetInternalAddressConstMeta => + TaskConstMeta get kBdkWalletGetInternalAddressConstMeta => const TaskConstMeta( - debugName: "WalletBase_get_internal_address", - argNames: ["that", "addressIndex"], + debugName: "bdk_wallet_get_internal_address", + argNames: ["ptr", "addressIndex"], ); @override - Future walletBaseGetPsbtInput( - {required WalletBase that, + Future bdkWalletGetPsbtInput( + {required BdkWallet that, required LocalUtxo utxo, required bool onlyWitnessUtxo, PsbtSigHashType? sighashType, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); + 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_WalletBase_get_psbt_input( + return wire.wire_bdk_wallet_get_psbt_input( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_input, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseGetPsbtInputConstMeta, + constMeta: kBdkWalletGetPsbtInputConstMeta, argValues: [that, utxo, onlyWitnessUtxo, sighashType], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseGetPsbtInputConstMeta => const TaskConstMeta( - debugName: "WalletBase_get_psbt_input", + TaskConstMeta get kBdkWalletGetPsbtInputConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_get_psbt_input", argNames: ["that", "utxo", "onlyWitnessUtxo", "sighashType"], ); @override - Future walletBaseIsMine( - {required WalletBase that, required ScriptBufBase script, dynamic hint}) { + Future bdkWalletIsMine( + {required BdkWallet that, required BdkScriptBuf script, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); - var arg1 = cst_encode_box_autoadd_script_buf_base(script); - return wire.wire_WalletBase_is_mine(port_, arg0, arg1); + 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); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseIsMineConstMeta, + constMeta: kBdkWalletIsMineConstMeta, argValues: [that, script], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseIsMineConstMeta => const TaskConstMeta( - debugName: "WalletBase_is_mine", + TaskConstMeta get kBdkWalletIsMineConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_is_mine", argNames: ["that", "script"], ); @override - Future> walletBaseListTransactions( - {required WalletBase that, required bool includeRaw, dynamic hint}) { + Future> bdkWalletListTransactions( + {required BdkWallet that, required bool includeRaw, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); + var arg0 = cst_encode_box_autoadd_bdk_wallet(that); var arg1 = cst_encode_bool(includeRaw); - return wire.wire_WalletBase_list_transactions(port_, arg0, arg1); + return wire.wire_bdk_wallet_list_transactions(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_transaction_details, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseListTransactionsConstMeta, + constMeta: kBdkWalletListTransactionsConstMeta, argValues: [that, includeRaw], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseListTransactionsConstMeta => const TaskConstMeta( - debugName: "WalletBase_list_transactions", + TaskConstMeta get kBdkWalletListTransactionsConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_list_transactions", argNames: ["that", "includeRaw"], ); @override - Future> walletBaseListUnspent( - {required WalletBase that, dynamic hint}) { + Future> bdkWalletListUnspent( + {required BdkWallet that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); - return wire.wire_WalletBase_list_unspent(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_wallet(that); + return wire.wire_bdk_wallet_list_unspent(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_local_utxo, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseListUnspentConstMeta, + constMeta: kBdkWalletListUnspentConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseListUnspentConstMeta => const TaskConstMeta( - debugName: "WalletBase_list_unspent", + TaskConstMeta get kBdkWalletListUnspentConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_list_unspent", argNames: ["that"], ); @override - Future walletBaseNetwork({required WalletBase that, dynamic hint}) { + Future bdkWalletNetwork({required BdkWallet that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(that); - return wire.wire_WalletBase_network(port_, arg0); + var arg0 = cst_encode_box_autoadd_bdk_wallet(that); + return wire.wire_bdk_wallet_network(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_network, decodeErrorData: null, ), - constMeta: kWalletBaseNetworkConstMeta, + constMeta: kBdkWalletNetworkConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseNetworkConstMeta => const TaskConstMeta( - debugName: "WalletBase_network", + TaskConstMeta get kBdkWalletNetworkConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_network", argNames: ["that"], ); @override - Future walletBaseNew( - {required DescriptorBase descriptor, - DescriptorBase? changeDescriptor, + Future bdkWalletNew( + {required BdkDescriptor descriptor, + BdkDescriptor? changeDescriptor, required Network network, required DatabaseConfig databaseConfig, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_descriptor_base(descriptor); - var arg1 = cst_encode_opt_box_autoadd_descriptor_base(changeDescriptor); + 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_WalletBase_new(port_, arg0, arg1, arg2, arg3); + return wire.wire_bdk_wallet_new(port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( - decodeSuccessData: dco_decode_wallet_base, + decodeSuccessData: dco_decode_bdk_wallet, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseNewConstMeta, + constMeta: kBdkWalletNewConstMeta, argValues: [descriptor, changeDescriptor, network, databaseConfig], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseNewConstMeta => const TaskConstMeta( - debugName: "WalletBase_new", + TaskConstMeta get kBdkWalletNewConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_new", argNames: [ "descriptor", "changeDescriptor", @@ -2391,67 +2417,67 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { ); @override - Future walletBaseSign( - {required WalletBase ptr, - required PsbtBase psbt, + Future bdkWalletSign( + {required BdkWallet ptr, + required BdkPsbt psbt, SignOptions? signOptions, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(ptr); - var arg1 = cst_encode_box_autoadd_psbt_base(psbt); + 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_WalletBase_sign(port_, arg0, arg1, arg2); + return wire.wire_bdk_wallet_sign(port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseSignConstMeta, + constMeta: kBdkWalletSignConstMeta, argValues: [ptr, psbt, signOptions], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseSignConstMeta => const TaskConstMeta( - debugName: "WalletBase_sign", + TaskConstMeta get kBdkWalletSignConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_sign", argNames: ["ptr", "psbt", "signOptions"], ); @override - Future walletBaseSync( - {required WalletBase ptr, - required BlockchainBase blockchain, + Future bdkWalletSync( + {required BdkWallet ptr, + required BdkBlockchain blockchain, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(ptr); - var arg1 = cst_encode_box_autoadd_blockchain_base(blockchain); - return wire.wire_WalletBase_sync(port_, arg0, arg1); + 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); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_bdk_error, ), - constMeta: kWalletBaseSyncConstMeta, + constMeta: kBdkWalletSyncConstMeta, argValues: [ptr, blockchain], apiImpl: this, hint: hint, )); } - TaskConstMeta get kWalletBaseSyncConstMeta => const TaskConstMeta( - debugName: "WalletBase_sync", + TaskConstMeta get kBdkWalletSyncConstMeta => const TaskConstMeta( + debugName: "bdk_wallet_sync", argNames: ["ptr", "blockchain"], ); @override - Future<(PsbtBase, TransactionDetails)> finishBumpFeeTxBuilder( + Future<(BdkPsbt, TransactionDetails)> finishBumpFeeTxBuilder( {required String txid, required double feeRate, - AddressBase? allowShrinking, - required WalletBase wallet, + BdkAddress? allowShrinking, + required BdkWallet wallet, required bool enableRbf, int? nSequence, dynamic hint}) { @@ -2459,15 +2485,15 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { callFfi: (port_) { var arg0 = cst_encode_String(txid); var arg1 = cst_encode_f_32(feeRate); - var arg2 = cst_encode_opt_box_autoadd_address_base(allowShrinking); - var arg3 = cst_encode_box_autoadd_wallet_base(wallet); + var arg2 = cst_encode_opt_box_autoadd_bdk_address(allowShrinking); + 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( port_, arg0, arg1, arg2, arg3, arg4, arg5); }, codec: DcoCodec( - decodeSuccessData: dco_decode_record_psbt_base_transaction_details, + decodeSuccessData: dco_decode_record_bdk_psbt_transaction_details, decodeErrorData: dco_decode_bdk_error, ), constMeta: kFinishBumpFeeTxBuilderConstMeta, @@ -2490,8 +2516,8 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { ); @override - Future<(PsbtBase, TransactionDetails)> txBuilderFinish( - {required WalletBase wallet, + Future<(BdkPsbt, TransactionDetails)> txBuilderFinish( + {required BdkWallet wallet, required List recipients, required List utxos, (OutPoint, Input, int)? foreignUtxo, @@ -2501,13 +2527,13 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { double? feeRate, int? feeAbsolute, required bool drainWallet, - ScriptBufBase? drainTo, + BdkScriptBuf? drainTo, RbfValue? rbf, required List data, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_wallet_base(wallet); + var arg0 = cst_encode_box_autoadd_bdk_wallet(wallet); var arg1 = cst_encode_list_script_amount(recipients); var arg2 = cst_encode_list_out_point(utxos); var arg3 = cst_encode_opt_box_autoadd_record_out_point_input_usize( @@ -2518,14 +2544,14 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { var arg7 = cst_encode_opt_box_autoadd_f_32(feeRate); var arg8 = cst_encode_opt_box_autoadd_u_64(feeAbsolute); var arg9 = cst_encode_bool(drainWallet); - var arg10 = cst_encode_opt_box_autoadd_script_buf_base(drainTo); + 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); }, codec: DcoCodec( - decodeSuccessData: dco_decode_record_psbt_base_transaction_details, + decodeSuccessData: dco_decode_record_bdk_psbt_transaction_details, decodeErrorData: dco_decode_bdk_error, ), constMeta: kTxBuilderFinishConstMeta, @@ -2719,17 +2745,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return raw as String; } - @protected - AddressBase dco_decode_address_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return AddressBase( - ptr: dco_decode_RustOpaque_bdkbitcoinAddress(arr[0]), - ); - } - @protected AddressError dco_decode_address_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2809,18 +2824,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - AddressInfo dco_decode_address_info(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 2) - throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); - return AddressInfo( - index: dco_decode_u_32(arr[0]), - address: dco_decode_String(arr[1]), - ); - } - @protected Auth dco_decode_auth(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2857,6 +2860,73 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { ); } + @protected + BdkAddress dco_decode_bdk_address(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkAddress( + ptr: dco_decode_RustOpaque_bdkbitcoinAddress(arr[0]), + ); + } + + @protected + BdkBlockchain dco_decode_bdk_blockchain(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkBlockchain( + ptr: dco_decode_RustOpaque_AnyBlockchain(arr[0]), + ); + } + + @protected + BdkDerivationPath dco_decode_bdk_derivation_path(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkDerivationPath( + ptr: dco_decode_RustOpaque_bitcoinbip32DerivationPath(arr[0]), + ); + } + + @protected + BdkDescriptor dco_decode_bdk_descriptor(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return BdkDescriptor( + extendedDescriptor: dco_decode_RustOpaque_ExtendedDescriptor(arr[0]), + keyMap: dco_decode_RustOpaque_keysKeyMap(arr[1]), + ); + } + + @protected + BdkDescriptorPublicKey dco_decode_bdk_descriptor_public_key(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkDescriptorPublicKey( + ptr: dco_decode_RustOpaque_keysDescriptorPublicKey(arr[0]), + ); + } + + @protected + BdkDescriptorSecretKey dco_decode_bdk_descriptor_secret_key(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkDescriptorSecretKey( + ptr: dco_decode_RustOpaque_keysDescriptorSecretKey(arr[0]), + ); + } + @protected BdkError dco_decode_bdk_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3014,31 +3084,87 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return BdkError_Rusqlite( dco_decode_String(raw[1]), ); + case 43: + return BdkError_InvalidInput( + dco_decode_String(raw[1]), + ); + case 44: + return BdkError_InvalidLockTime( + dco_decode_String(raw[1]), + ); + case 45: + return BdkError_InvalidTransaction( + dco_decode_String(raw[1]), + ); default: throw Exception("unreachable"); } } @protected - BlockTime dco_decode_block_time(dynamic raw) { + BdkMnemonic dco_decode_bdk_mnemonic(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 2) - throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); - return BlockTime( - height: dco_decode_u_32(arr[0]), - timestamp: dco_decode_u_64(arr[1]), + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkMnemonic( + ptr: dco_decode_RustOpaque_keysbip39Mnemonic(arr[0]), ); } @protected - BlockchainBase dco_decode_blockchain_base(dynamic raw) { + BdkPsbt dco_decode_bdk_psbt(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return BlockchainBase( - ptr: dco_decode_RustOpaque_AnyBlockchain(arr[0]), + return BdkPsbt( + ptr: dco_decode_RustOpaque_MutexPartiallySignedTransaction(arr[0]), + ); + } + + @protected + BdkScriptBuf dco_decode_bdk_script_buf(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkScriptBuf( + bytes: dco_decode_list_prim_u_8_strict(arr[0]), + ); + } + + @protected + BdkTransaction dco_decode_bdk_transaction(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkTransaction( + inner: dco_decode_String(arr[0]), + ); + } + + @protected + BdkWallet dco_decode_bdk_wallet(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return BdkWallet( + ptr: dco_decode_RustOpaque_MutexbdkWalletAnyDatabase(arr[0]), + ); + } + + @protected + BlockTime dco_decode_block_time(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return BlockTime( + height: dco_decode_u_32(arr[0]), + timestamp: dco_decode_u_64(arr[1]), ); } @@ -3069,12 +3195,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return raw as bool; } - @protected - AddressBase dco_decode_box_autoadd_address_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_address_base(raw); - } - @protected AddressError dco_decode_box_autoadd_address_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3088,65 +3208,101 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - BlockTime dco_decode_box_autoadd_block_time(dynamic raw) { + BdkAddress dco_decode_box_autoadd_bdk_address(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_block_time(raw); + return dco_decode_bdk_address(raw); } @protected - BlockchainBase dco_decode_box_autoadd_blockchain_base(dynamic raw) { + BdkBlockchain dco_decode_box_autoadd_bdk_blockchain(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_blockchain_base(raw); + return dco_decode_bdk_blockchain(raw); } @protected - BlockchainConfig dco_decode_box_autoadd_blockchain_config(dynamic raw) { + BdkDerivationPath dco_decode_box_autoadd_bdk_derivation_path(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_blockchain_config(raw); + return dco_decode_bdk_derivation_path(raw); } @protected - ConsensusError dco_decode_box_autoadd_consensus_error(dynamic raw) { + BdkDescriptor dco_decode_box_autoadd_bdk_descriptor(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_consensus_error(raw); + return dco_decode_bdk_descriptor(raw); } @protected - DatabaseConfig dco_decode_box_autoadd_database_config(dynamic raw) { + BdkDescriptorPublicKey dco_decode_box_autoadd_bdk_descriptor_public_key( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_database_config(raw); + return dco_decode_bdk_descriptor_public_key(raw); } @protected - DerivationPathBase dco_decode_box_autoadd_derivation_path_base(dynamic raw) { + BdkDescriptorSecretKey dco_decode_box_autoadd_bdk_descriptor_secret_key( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_derivation_path_base(raw); + return dco_decode_bdk_descriptor_secret_key(raw); } @protected - DescriptorBase dco_decode_box_autoadd_descriptor_base(dynamic raw) { + BdkMnemonic dco_decode_box_autoadd_bdk_mnemonic(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_descriptor_base(raw); + return dco_decode_bdk_mnemonic(raw); } @protected - DescriptorError dco_decode_box_autoadd_descriptor_error(dynamic raw) { + BdkPsbt dco_decode_box_autoadd_bdk_psbt(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_descriptor_error(raw); + return dco_decode_bdk_psbt(raw); } @protected - DescriptorPublicKeyBase dco_decode_box_autoadd_descriptor_public_key_base( - dynamic raw) { + BdkScriptBuf dco_decode_box_autoadd_bdk_script_buf(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_descriptor_public_key_base(raw); + return dco_decode_bdk_script_buf(raw); } @protected - DescriptorSecretKeyBase dco_decode_box_autoadd_descriptor_secret_key_base( - dynamic raw) { + BdkTransaction dco_decode_box_autoadd_bdk_transaction(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_bdk_transaction(raw); + } + + @protected + BdkWallet dco_decode_box_autoadd_bdk_wallet(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_bdk_wallet(raw); + } + + @protected + BlockTime dco_decode_box_autoadd_block_time(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_block_time(raw); + } + + @protected + BlockchainConfig dco_decode_box_autoadd_blockchain_config(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_blockchain_config(raw); + } + + @protected + ConsensusError dco_decode_box_autoadd_consensus_error(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_consensus_error(raw); + } + + @protected + DatabaseConfig dco_decode_box_autoadd_database_config(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_database_config(raw); + } + + @protected + DescriptorError dco_decode_box_autoadd_descriptor_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_descriptor_secret_key_base(raw); + return dco_decode_descriptor_error(raw); } @protected @@ -3186,9 +3342,9 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - MnemonicBase dco_decode_box_autoadd_mnemonic_base(dynamic raw) { + LockTime dco_decode_box_autoadd_lock_time(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_mnemonic_base(raw); + return dco_decode_lock_time(raw); } @protected @@ -3197,12 +3353,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return dco_decode_out_point(raw); } - @protected - PsbtBase dco_decode_box_autoadd_psbt_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_psbt_base(raw); - } - @protected PsbtSigHashType dco_decode_box_autoadd_psbt_sig_hash_type(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3234,12 +3384,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return dco_decode_rpc_sync_params(raw); } - @protected - ScriptBufBase dco_decode_box_autoadd_script_buf_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_script_buf_base(raw); - } - @protected SignOptions dco_decode_box_autoadd_sign_options(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3260,12 +3404,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return dco_decode_sqlite_db_configuration(raw); } - @protected - TransactionBase dco_decode_box_autoadd_transaction_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_transaction_base(raw); - } - @protected int dco_decode_box_autoadd_u_32(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3284,12 +3422,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return raw as int; } - @protected - WalletBase dco_decode_box_autoadd_wallet_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_wallet_base(raw); - } - @protected ChangeSpendPolicy dco_decode_change_spend_policy(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3349,30 +3481,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - DerivationPathBase dco_decode_derivation_path_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return DerivationPathBase( - ptr: dco_decode_RustOpaque_bitcoinbip32DerivationPath(arr[0]), - ); - } - - @protected - DescriptorBase dco_decode_descriptor_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 2) - throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); - return DescriptorBase( - extendedDescriptor: dco_decode_RustOpaque_ExtendedDescriptor(arr[0]), - keyMap: dco_decode_RustOpaque_keysKeyMap(arr[1]), - ); - } - - @protected - DescriptorError dco_decode_descriptor_error(dynamic raw) { + DescriptorError dco_decode_descriptor_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs switch (raw[0]) { case 0: @@ -3420,28 +3529,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - DescriptorPublicKeyBase dco_decode_descriptor_public_key_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return DescriptorPublicKeyBase( - ptr: dco_decode_RustOpaque_keysDescriptorPublicKey(arr[0]), - ); - } - - @protected - DescriptorSecretKeyBase dco_decode_descriptor_secret_key_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return DescriptorSecretKeyBase( - ptr: dco_decode_RustOpaque_keysDescriptorSecretKey(arr[0]), - ); - } - @protected ElectrumConfig dco_decode_electrum_config(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3604,14 +3691,20 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - MnemonicBase dco_decode_mnemonic_base(dynamic raw) { + LockTime dco_decode_lock_time(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return MnemonicBase( - ptr: dco_decode_RustOpaque_keysbip39Mnemonic(arr[0]), - ); + switch (raw[0]) { + case 0: + return LockTime_Blocks( + dco_decode_u_32(raw[1]), + ); + case 1: + return LockTime_Seconds( + dco_decode_u_32(raw[1]), + ); + default: + throw Exception("unreachable"); + } } @protected @@ -3627,21 +3720,33 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - AddressBase? dco_decode_opt_box_autoadd_address_base(dynamic raw) { + BdkAddress? dco_decode_opt_box_autoadd_bdk_address(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_address_base(raw); + return raw == null ? null : dco_decode_box_autoadd_bdk_address(raw); } @protected - BlockTime? dco_decode_opt_box_autoadd_block_time(dynamic raw) { + BdkDescriptor? dco_decode_opt_box_autoadd_bdk_descriptor(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_block_time(raw); + return raw == null ? null : dco_decode_box_autoadd_bdk_descriptor(raw); } @protected - DescriptorBase? dco_decode_opt_box_autoadd_descriptor_base(dynamic raw) { + BdkScriptBuf? dco_decode_opt_box_autoadd_bdk_script_buf(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_descriptor_base(raw); + return raw == null ? null : dco_decode_box_autoadd_bdk_script_buf(raw); + } + + @protected + BdkTransaction? dco_decode_opt_box_autoadd_bdk_transaction(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_bdk_transaction(raw); + } + + @protected + BlockTime? dco_decode_opt_box_autoadd_block_time(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_block_time(raw); } @protected @@ -3683,24 +3788,12 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return raw == null ? null : dco_decode_box_autoadd_rpc_sync_params(raw); } - @protected - ScriptBufBase? dco_decode_opt_box_autoadd_script_buf_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_script_buf_base(raw); - } - @protected SignOptions? dco_decode_opt_box_autoadd_sign_options(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null ? null : dco_decode_box_autoadd_sign_options(raw); } - @protected - TransactionBase? dco_decode_opt_box_autoadd_transaction_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_transaction_base(raw); - } - @protected int? dco_decode_opt_box_autoadd_u_32(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3753,17 +3846,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - PsbtBase dco_decode_psbt_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return PsbtBase( - ptr: dco_decode_RustOpaque_MutexPartiallySignedTransaction(arr[0]), - ); - } - @protected PsbtSigHashType dco_decode_psbt_sig_hash_type(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3791,33 +3873,46 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw) { + (BdkAddress, int) dco_decode_record_bdk_address_u_32(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 3) { - throw Exception('Expected 3 elements, got ${arr.length}'); + if (arr.length != 2) { + throw Exception('Expected 2 elements, got ${arr.length}'); } return ( - dco_decode_out_point(arr[0]), - dco_decode_input(arr[1]), - dco_decode_usize(arr[2]), + dco_decode_bdk_address(arr[0]), + dco_decode_u_32(arr[1]), ); } @protected - (PsbtBase, TransactionDetails) - dco_decode_record_psbt_base_transaction_details(dynamic raw) { + (BdkPsbt, TransactionDetails) dco_decode_record_bdk_psbt_transaction_details( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 2) { throw Exception('Expected 2 elements, got ${arr.length}'); } return ( - dco_decode_psbt_base(arr[0]), + dco_decode_bdk_psbt(arr[0]), dco_decode_transaction_details(arr[1]), ); } + @protected + (OutPoint, Input, int) 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) { + throw Exception('Expected 3 elements, got ${arr.length}'); + } + return ( + dco_decode_out_point(arr[0]), + dco_decode_input(arr[1]), + dco_decode_usize(arr[2]), + ); + } + @protected RpcConfig dco_decode_rpc_config(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3854,22 +3949,11 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return ScriptAmount( - script: dco_decode_script_buf_base(arr[0]), + script: dco_decode_bdk_script_buf(arr[0]), amount: dco_decode_u_64(arr[1]), ); } - @protected - ScriptBufBase dco_decode_script_buf_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return ScriptBufBase( - bytes: dco_decode_list_prim_u_8_strict(arr[0]), - ); - } - @protected SignOptions dco_decode_sign_options(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3911,17 +3995,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { ); } - @protected - TransactionBase dco_decode_transaction_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return TransactionBase( - inner: dco_decode_String(arr[0]), - ); - } - @protected TransactionDetails dco_decode_transaction_details(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3929,7 +4002,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { if (arr.length != 6) throw Exception('unexpected arr length: expect 6 but see ${arr.length}'); return TransactionDetails( - transaction: dco_decode_opt_box_autoadd_transaction_base(arr[0]), + transaction: dco_decode_opt_box_autoadd_bdk_transaction(arr[0]), txid: dco_decode_String(arr[1]), received: dco_decode_u_64(arr[2]), sent: dco_decode_u_64(arr[3]), @@ -3946,7 +4019,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { throw Exception('unexpected arr length: expect 4 but see ${arr.length}'); return TxIn( previousOutput: dco_decode_out_point(arr[0]), - scriptSig: dco_decode_script_buf_base(arr[1]), + scriptSig: dco_decode_bdk_script_buf(arr[1]), sequence: dco_decode_u_32(arr[2]), witness: dco_decode_list_list_prim_u_8_strict(arr[3]), ); @@ -3960,7 +4033,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return TxOut( value: dco_decode_u_64(arr[0]), - scriptPubkey: dco_decode_script_buf_base(arr[1]), + scriptPubkey: dco_decode_bdk_script_buf(arr[1]), ); } @@ -4006,17 +4079,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return Variant.values[raw as int]; } - @protected - WalletBase dco_decode_wallet_base(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return WalletBase( - ptr: dco_decode_RustOpaque_MutexbdkWalletAnyDatabase(arr[0]), - ); - } - @protected WitnessVersion dco_decode_witness_version(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -4116,13 +4178,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return utf8.decoder.convert(inner); } - @protected - AddressBase sse_decode_address_base(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_bdkbitcoinAddress(deserializer); - return AddressBase(ptr: var_ptr); - } - @protected AddressError sse_decode_address_error(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4199,14 +4254,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - AddressInfo sse_decode_address_info(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_index = sse_decode_u_32(deserializer); - var var_address = sse_decode_String(deserializer); - return AddressInfo(index: var_index, address: var_address); - } - @protected Auth sse_decode_auth(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4245,6 +4292,55 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { total: var_total); } + @protected + BdkAddress sse_decode_bdk_address(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_ptr = sse_decode_RustOpaque_bdkbitcoinAddress(deserializer); + return BdkAddress(ptr: var_ptr); + } + + @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); + return BdkBlockchain(ptr: var_ptr); + } + + @protected + BdkDerivationPath sse_decode_bdk_derivation_path( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_ptr = + sse_decode_RustOpaque_bitcoinbip32DerivationPath(deserializer); + return BdkDerivationPath(ptr: var_ptr); + } + + @protected + 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); + return BdkDescriptor( + extendedDescriptor: var_extendedDescriptor, keyMap: var_keyMap); + } + + @protected + 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); + return BdkDescriptorPublicKey(ptr: var_ptr); + } + + @protected + 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); + return BdkDescriptorSecretKey(ptr: var_ptr); + } + @protected BdkError sse_decode_bdk_error(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4374,24 +4470,62 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { case 42: var var_field0 = sse_decode_String(deserializer); return BdkError_Rusqlite(var_field0); + case 43: + var var_field0 = sse_decode_String(deserializer); + return BdkError_InvalidInput(var_field0); + case 44: + var var_field0 = sse_decode_String(deserializer); + return BdkError_InvalidLockTime(var_field0); + case 45: + var var_field0 = sse_decode_String(deserializer); + return BdkError_InvalidTransaction(var_field0); default: throw UnimplementedError(''); } } @protected - BlockTime sse_decode_block_time(SseDeserializer deserializer) { + BdkMnemonic sse_decode_bdk_mnemonic(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_height = sse_decode_u_32(deserializer); - var var_timestamp = sse_decode_u_64(deserializer); - return BlockTime(height: var_height, timestamp: var_timestamp); + var var_ptr = sse_decode_RustOpaque_keysbip39Mnemonic(deserializer); + return BdkMnemonic(ptr: var_ptr); } @protected - BlockchainBase sse_decode_blockchain_base(SseDeserializer deserializer) { + BdkPsbt sse_decode_bdk_psbt(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_AnyBlockchain(deserializer); - return BlockchainBase(ptr: var_ptr); + var var_ptr = + sse_decode_RustOpaque_MutexPartiallySignedTransaction(deserializer); + return BdkPsbt(ptr: var_ptr); + } + + @protected + BdkScriptBuf sse_decode_bdk_script_buf(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_bytes = sse_decode_list_prim_u_8_strict(deserializer); + return BdkScriptBuf(bytes: var_bytes); + } + + @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); + } + + @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); + return BdkWallet(ptr: var_ptr); + } + + @protected + BlockTime sse_decode_block_time(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_height = sse_decode_u_32(deserializer); + var var_timestamp = sse_decode_u_64(deserializer); + return BlockTime(height: var_height, timestamp: var_timestamp); } @protected @@ -4421,93 +4555,125 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - AddressBase sse_decode_box_autoadd_address_base( + AddressError sse_decode_box_autoadd_address_error( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_address_base(deserializer)); + return (sse_decode_address_error(deserializer)); } @protected - AddressError sse_decode_box_autoadd_address_error( + AddressIndex sse_decode_box_autoadd_address_index( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_address_error(deserializer)); + return (sse_decode_address_index(deserializer)); } @protected - AddressIndex sse_decode_box_autoadd_address_index( + BdkAddress sse_decode_box_autoadd_bdk_address(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_bdk_address(deserializer)); + } + + @protected + BdkBlockchain sse_decode_box_autoadd_bdk_blockchain( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_address_index(deserializer)); + return (sse_decode_bdk_blockchain(deserializer)); } @protected - BlockTime sse_decode_box_autoadd_block_time(SseDeserializer deserializer) { + BdkDerivationPath sse_decode_box_autoadd_bdk_derivation_path( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_block_time(deserializer)); + return (sse_decode_bdk_derivation_path(deserializer)); } @protected - BlockchainBase sse_decode_box_autoadd_blockchain_base( + BdkDescriptor sse_decode_box_autoadd_bdk_descriptor( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_blockchain_base(deserializer)); + return (sse_decode_bdk_descriptor(deserializer)); } @protected - BlockchainConfig sse_decode_box_autoadd_blockchain_config( + BdkDescriptorPublicKey sse_decode_box_autoadd_bdk_descriptor_public_key( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_blockchain_config(deserializer)); + return (sse_decode_bdk_descriptor_public_key(deserializer)); } @protected - ConsensusError sse_decode_box_autoadd_consensus_error( + BdkDescriptorSecretKey sse_decode_box_autoadd_bdk_descriptor_secret_key( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_consensus_error(deserializer)); + return (sse_decode_bdk_descriptor_secret_key(deserializer)); } @protected - DatabaseConfig sse_decode_box_autoadd_database_config( + BdkMnemonic sse_decode_box_autoadd_bdk_mnemonic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_database_config(deserializer)); + return (sse_decode_bdk_mnemonic(deserializer)); } @protected - DerivationPathBase sse_decode_box_autoadd_derivation_path_base( + BdkPsbt sse_decode_box_autoadd_bdk_psbt(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_bdk_psbt(deserializer)); + } + + @protected + BdkScriptBuf sse_decode_box_autoadd_bdk_script_buf( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_derivation_path_base(deserializer)); + return (sse_decode_bdk_script_buf(deserializer)); } @protected - DescriptorBase sse_decode_box_autoadd_descriptor_base( + BdkTransaction sse_decode_box_autoadd_bdk_transaction( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_descriptor_base(deserializer)); + return (sse_decode_bdk_transaction(deserializer)); } @protected - DescriptorError sse_decode_box_autoadd_descriptor_error( + BdkWallet sse_decode_box_autoadd_bdk_wallet(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_bdk_wallet(deserializer)); + } + + @protected + BlockTime sse_decode_box_autoadd_block_time(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_block_time(deserializer)); + } + + @protected + BlockchainConfig sse_decode_box_autoadd_blockchain_config( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_descriptor_error(deserializer)); + return (sse_decode_blockchain_config(deserializer)); } @protected - DescriptorPublicKeyBase sse_decode_box_autoadd_descriptor_public_key_base( + ConsensusError sse_decode_box_autoadd_consensus_error( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_descriptor_public_key_base(deserializer)); + return (sse_decode_consensus_error(deserializer)); } @protected - DescriptorSecretKeyBase sse_decode_box_autoadd_descriptor_secret_key_base( + DatabaseConfig sse_decode_box_autoadd_database_config( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_descriptor_secret_key_base(deserializer)); + return (sse_decode_database_config(deserializer)); + } + + @protected + DescriptorError sse_decode_box_autoadd_descriptor_error( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_descriptor_error(deserializer)); } @protected @@ -4549,10 +4715,9 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - MnemonicBase sse_decode_box_autoadd_mnemonic_base( - SseDeserializer deserializer) { + LockTime sse_decode_box_autoadd_lock_time(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_mnemonic_base(deserializer)); + return (sse_decode_lock_time(deserializer)); } @protected @@ -4561,12 +4726,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return (sse_decode_out_point(deserializer)); } - @protected - PsbtBase sse_decode_box_autoadd_psbt_base(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_psbt_base(deserializer)); - } - @protected PsbtSigHashType sse_decode_box_autoadd_psbt_sig_hash_type( SseDeserializer deserializer) { @@ -4600,13 +4759,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return (sse_decode_rpc_sync_params(deserializer)); } - @protected - ScriptBufBase sse_decode_box_autoadd_script_buf_base( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_script_buf_base(deserializer)); - } - @protected SignOptions sse_decode_box_autoadd_sign_options( SseDeserializer deserializer) { @@ -4628,13 +4780,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return (sse_decode_sqlite_db_configuration(deserializer)); } - @protected - TransactionBase sse_decode_box_autoadd_transaction_base( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_transaction_base(deserializer)); - } - @protected int sse_decode_box_autoadd_u_32(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4653,12 +4798,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return (sse_decode_u_8(deserializer)); } - @protected - WalletBase sse_decode_box_autoadd_wallet_base(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_wallet_base(deserializer)); - } - @protected ChangeSpendPolicy sse_decode_change_spend_policy( SseDeserializer deserializer) { @@ -4720,25 +4859,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - DerivationPathBase sse_decode_derivation_path_base( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = - sse_decode_RustOpaque_bitcoinbip32DerivationPath(deserializer); - return DerivationPathBase(ptr: var_ptr); - } - - @protected - DescriptorBase sse_decode_descriptor_base(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); - return DescriptorBase( - extendedDescriptor: var_extendedDescriptor, keyMap: var_keyMap); - } - @protected DescriptorError sse_decode_descriptor_error(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4782,22 +4902,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - DescriptorPublicKeyBase sse_decode_descriptor_public_key_base( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysDescriptorPublicKey(deserializer); - return DescriptorPublicKeyBase(ptr: var_ptr); - } - - @protected - DescriptorSecretKeyBase sse_decode_descriptor_secret_key_base( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysDescriptorSecretKey(deserializer); - return DescriptorSecretKeyBase(ptr: var_ptr); - } - @protected ElectrumConfig sse_decode_electrum_config(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5002,10 +5106,20 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - MnemonicBase sse_decode_mnemonic_base(SseDeserializer deserializer) { + LockTime sse_decode_lock_time(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_keysbip39Mnemonic(deserializer); - return MnemonicBase(ptr: var_ptr); + + var tag_ = sse_decode_i_32(deserializer); + switch (tag_) { + case 0: + var var_field0 = sse_decode_u_32(deserializer); + return LockTime_Blocks(var_field0); + case 1: + var var_field0 = sse_decode_u_32(deserializer); + return LockTime_Seconds(var_field0); + default: + throw UnimplementedError(''); + } } @protected @@ -5027,143 +5141,143 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - AddressBase? sse_decode_opt_box_autoadd_address_base( + BdkAddress? sse_decode_opt_box_autoadd_bdk_address( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_address_base(deserializer)); + return (sse_decode_box_autoadd_bdk_address(deserializer)); } else { return null; } } @protected - BlockTime? sse_decode_opt_box_autoadd_block_time( + BdkDescriptor? sse_decode_opt_box_autoadd_bdk_descriptor( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_block_time(deserializer)); + return (sse_decode_box_autoadd_bdk_descriptor(deserializer)); } else { return null; } } @protected - DescriptorBase? sse_decode_opt_box_autoadd_descriptor_base( + BdkScriptBuf? sse_decode_opt_box_autoadd_bdk_script_buf( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_descriptor_base(deserializer)); + return (sse_decode_box_autoadd_bdk_script_buf(deserializer)); } else { return null; } } @protected - double? sse_decode_opt_box_autoadd_f_32(SseDeserializer deserializer) { + BdkTransaction? sse_decode_opt_box_autoadd_bdk_transaction( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_f_32(deserializer)); + return (sse_decode_box_autoadd_bdk_transaction(deserializer)); } else { return null; } } @protected - FeeRate? sse_decode_opt_box_autoadd_fee_rate(SseDeserializer deserializer) { + BlockTime? sse_decode_opt_box_autoadd_block_time( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_fee_rate(deserializer)); + return (sse_decode_box_autoadd_block_time(deserializer)); } else { return null; } } @protected - PsbtSigHashType? sse_decode_opt_box_autoadd_psbt_sig_hash_type( - SseDeserializer deserializer) { + double? sse_decode_opt_box_autoadd_f_32(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_psbt_sig_hash_type(deserializer)); + return (sse_decode_box_autoadd_f_32(deserializer)); } else { return null; } } @protected - RbfValue? sse_decode_opt_box_autoadd_rbf_value(SseDeserializer deserializer) { + FeeRate? sse_decode_opt_box_autoadd_fee_rate(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_rbf_value(deserializer)); + return (sse_decode_box_autoadd_fee_rate(deserializer)); } else { return null; } } @protected - (OutPoint, Input, int)? - sse_decode_opt_box_autoadd_record_out_point_input_usize( - SseDeserializer deserializer) { + PsbtSigHashType? sse_decode_opt_box_autoadd_psbt_sig_hash_type( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_record_out_point_input_usize( - deserializer)); + return (sse_decode_box_autoadd_psbt_sig_hash_type(deserializer)); } else { return null; } } @protected - RpcSyncParams? sse_decode_opt_box_autoadd_rpc_sync_params( - SseDeserializer deserializer) { + RbfValue? sse_decode_opt_box_autoadd_rbf_value(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_rpc_sync_params(deserializer)); + return (sse_decode_box_autoadd_rbf_value(deserializer)); } else { return null; } } @protected - ScriptBufBase? sse_decode_opt_box_autoadd_script_buf_base( - SseDeserializer deserializer) { + (OutPoint, Input, int)? + sse_decode_opt_box_autoadd_record_out_point_input_usize( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_script_buf_base(deserializer)); + return (sse_decode_box_autoadd_record_out_point_input_usize( + deserializer)); } else { return null; } } @protected - SignOptions? sse_decode_opt_box_autoadd_sign_options( + RpcSyncParams? sse_decode_opt_box_autoadd_rpc_sync_params( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_sign_options(deserializer)); + return (sse_decode_box_autoadd_rpc_sync_params(deserializer)); } else { return null; } } @protected - TransactionBase? sse_decode_opt_box_autoadd_transaction_base( + SignOptions? sse_decode_opt_box_autoadd_sign_options( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_transaction_base(deserializer)); + return (sse_decode_box_autoadd_sign_options(deserializer)); } else { return null; } @@ -5232,14 +5346,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - PsbtBase sse_decode_psbt_base(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = - sse_decode_RustOpaque_MutexPartiallySignedTransaction(deserializer); - return PsbtBase(ptr: var_ptr); - } - @protected PsbtSigHashType sse_decode_psbt_sig_hash_type(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5264,25 +5370,33 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( + (BdkAddress, int) sse_decode_record_bdk_address_u_32( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = sse_decode_out_point(deserializer); - var var_field1 = sse_decode_input(deserializer); - var var_field2 = sse_decode_usize(deserializer); - return (var_field0, var_field1, var_field2); + var var_field0 = sse_decode_bdk_address(deserializer); + var var_field1 = sse_decode_u_32(deserializer); + return (var_field0, var_field1); } @protected - (PsbtBase, TransactionDetails) - sse_decode_record_psbt_base_transaction_details( - SseDeserializer deserializer) { + (BdkPsbt, TransactionDetails) sse_decode_record_bdk_psbt_transaction_details( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = sse_decode_psbt_base(deserializer); + var var_field0 = sse_decode_bdk_psbt(deserializer); var var_field1 = sse_decode_transaction_details(deserializer); return (var_field0, var_field1); } + @protected + (OutPoint, Input, int) 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); + var var_field1 = sse_decode_input(deserializer); + var var_field2 = sse_decode_usize(deserializer); + return (var_field0, var_field1, var_field2); + } + @protected RpcConfig sse_decode_rpc_config(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5317,18 +5431,11 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { @protected ScriptAmount sse_decode_script_amount(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_script = sse_decode_script_buf_base(deserializer); + var var_script = sse_decode_bdk_script_buf(deserializer); var var_amount = sse_decode_u_64(deserializer); return ScriptAmount(script: var_script, amount: var_amount); } - @protected - ScriptBufBase sse_decode_script_buf_base(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_bytes = sse_decode_list_prim_u_8_strict(deserializer); - return ScriptBufBase(bytes: var_bytes); - } - @protected SignOptions sse_decode_sign_options(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5362,17 +5469,10 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { @protected SqliteDbConfiguration sse_decode_sqlite_db_configuration( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_path = sse_decode_String(deserializer); - return SqliteDbConfiguration(path: var_path); - } - - @protected - TransactionBase sse_decode_transaction_base(SseDeserializer deserializer) { + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_inner = sse_decode_String(deserializer); - return TransactionBase(inner: var_inner); + var var_path = sse_decode_String(deserializer); + return SqliteDbConfiguration(path: var_path); } @protected @@ -5380,7 +5480,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_transaction = - sse_decode_opt_box_autoadd_transaction_base(deserializer); + sse_decode_opt_box_autoadd_bdk_transaction(deserializer); var var_txid = sse_decode_String(deserializer); var var_received = sse_decode_u_64(deserializer); var var_sent = sse_decode_u_64(deserializer); @@ -5400,7 +5500,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { TxIn sse_decode_tx_in(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_previousOutput = sse_decode_out_point(deserializer); - var var_scriptSig = sse_decode_script_buf_base(deserializer); + var var_scriptSig = sse_decode_bdk_script_buf(deserializer); var var_sequence = sse_decode_u_32(deserializer); var var_witness = sse_decode_list_list_prim_u_8_strict(deserializer); return TxIn( @@ -5414,7 +5514,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { TxOut sse_decode_tx_out(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_value = sse_decode_u_64(deserializer); - var var_scriptPubkey = sse_decode_script_buf_base(deserializer); + var var_scriptPubkey = sse_decode_bdk_script_buf(deserializer); return TxOut(value: var_value, scriptPubkey: var_scriptPubkey); } @@ -5461,13 +5561,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { return Variant.values[inner]; } - @protected - WalletBase sse_decode_wallet_base(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_MutexbdkWalletAnyDatabase(deserializer); - return WalletBase(ptr: var_ptr); - } - @protected WitnessVersion sse_decode_witness_version(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5711,12 +5804,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_list_prim_u_8_strict(utf8.encoder.convert(self), serializer); } - @protected - void sse_encode_address_base(AddressBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_bdkbitcoinAddress(self.ptr, serializer); - } - @protected void sse_encode_address_error(AddressError self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5788,13 +5875,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - void sse_encode_address_info(AddressInfo self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_u_32(self.index, serializer); - sse_encode_String(self.address, serializer); - } - @protected void sse_encode_auth(Auth self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5822,6 +5902,47 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_u_64(self.total, serializer); } + @protected + void sse_encode_bdk_address(BdkAddress self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_bdkbitcoinAddress(self.ptr, serializer); + } + + @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); + } + + @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); + } + + @protected + void sse_encode_bdk_descriptor(BdkDescriptor self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_ExtendedDescriptor( + self.extendedDescriptor, serializer); + sse_encode_RustOpaque_keysKeyMap(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); + } + + @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); + } + @protected void sse_encode_bdk_error(BdkError self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5956,21 +6077,54 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { case BdkError_Rusqlite(field0: final field0): sse_encode_i_32(42, serializer); sse_encode_String(field0, serializer); + case BdkError_InvalidInput(field0: final field0): + sse_encode_i_32(43, serializer); + sse_encode_String(field0, serializer); + case BdkError_InvalidLockTime(field0: final field0): + sse_encode_i_32(44, serializer); + sse_encode_String(field0, serializer); + case BdkError_InvalidTransaction(field0: final field0): + sse_encode_i_32(45, serializer); + sse_encode_String(field0, serializer); } } @protected - void sse_encode_block_time(BlockTime self, SseSerializer serializer) { + void sse_encode_bdk_mnemonic(BdkMnemonic self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_u_32(self.height, serializer); - sse_encode_u_64(self.timestamp, serializer); + sse_encode_RustOpaque_keysbip39Mnemonic(self.ptr, serializer); } @protected - void sse_encode_blockchain_base( - BlockchainBase self, SseSerializer serializer) { + void sse_encode_bdk_psbt(BdkPsbt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_AnyBlockchain(self.ptr, serializer); + sse_encode_RustOpaque_MutexPartiallySignedTransaction(self.ptr, serializer); + } + + @protected + void sse_encode_bdk_script_buf(BdkScriptBuf self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_list_prim_u_8_strict(self.bytes, serializer); + } + + @protected + 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); + } + + @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); + } + + @protected + void sse_encode_block_time(BlockTime self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_u_32(self.height, serializer); + sse_encode_u_64(self.timestamp, serializer); } @protected @@ -5996,13 +6150,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { serializer.buffer.putUint8(self ? 1 : 0); } - @protected - void sse_encode_box_autoadd_address_base( - AddressBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_address_base(self, serializer); - } - @protected void sse_encode_box_autoadd_address_error( AddressError self, SseSerializer serializer) { @@ -6018,73 +6165,114 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - void sse_encode_box_autoadd_block_time( - BlockTime self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_address( + BdkAddress self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_block_time(self, serializer); + sse_encode_bdk_address(self, serializer); } @protected - void sse_encode_box_autoadd_blockchain_base( - BlockchainBase self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_blockchain( + BdkBlockchain self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_blockchain_base(self, serializer); + sse_encode_bdk_blockchain(self, serializer); } @protected - void sse_encode_box_autoadd_blockchain_config( - BlockchainConfig self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_derivation_path( + BdkDerivationPath self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_blockchain_config(self, serializer); + sse_encode_bdk_derivation_path(self, serializer); } @protected - void sse_encode_box_autoadd_consensus_error( - ConsensusError self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_descriptor( + BdkDescriptor self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_consensus_error(self, serializer); + sse_encode_bdk_descriptor(self, serializer); } @protected - void sse_encode_box_autoadd_database_config( - DatabaseConfig self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_descriptor_public_key( + BdkDescriptorPublicKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_database_config(self, serializer); + sse_encode_bdk_descriptor_public_key(self, serializer); } @protected - void sse_encode_box_autoadd_derivation_path_base( - DerivationPathBase self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_descriptor_secret_key( + BdkDescriptorSecretKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_derivation_path_base(self, serializer); + sse_encode_bdk_descriptor_secret_key(self, serializer); } @protected - void sse_encode_box_autoadd_descriptor_base( - DescriptorBase self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_mnemonic( + BdkMnemonic self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_descriptor_base(self, serializer); + sse_encode_bdk_mnemonic(self, serializer); } @protected - void sse_encode_box_autoadd_descriptor_error( - DescriptorError self, SseSerializer serializer) { + void sse_encode_box_autoadd_bdk_psbt(BdkPsbt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_descriptor_error(self, serializer); + sse_encode_bdk_psbt(self, serializer); + } + + @protected + void sse_encode_box_autoadd_bdk_script_buf( + BdkScriptBuf self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_bdk_script_buf(self, serializer); + } + + @protected + void sse_encode_box_autoadd_bdk_transaction( + BdkTransaction self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_bdk_transaction(self, serializer); + } + + @protected + void sse_encode_box_autoadd_bdk_wallet( + BdkWallet self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_bdk_wallet(self, serializer); + } + + @protected + void sse_encode_box_autoadd_block_time( + BlockTime self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_block_time(self, serializer); + } + + @protected + void sse_encode_box_autoadd_blockchain_config( + BlockchainConfig self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_blockchain_config(self, serializer); + } + + @protected + void sse_encode_box_autoadd_consensus_error( + ConsensusError self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_consensus_error(self, serializer); } @protected - void sse_encode_box_autoadd_descriptor_public_key_base( - DescriptorPublicKeyBase self, SseSerializer serializer) { + void sse_encode_box_autoadd_database_config( + DatabaseConfig self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_descriptor_public_key_base(self, serializer); + sse_encode_database_config(self, serializer); } @protected - void sse_encode_box_autoadd_descriptor_secret_key_base( - DescriptorSecretKeyBase self, SseSerializer serializer) { + void sse_encode_box_autoadd_descriptor_error( + DescriptorError self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_descriptor_secret_key_base(self, serializer); + sse_encode_descriptor_error(self, serializer); } @protected @@ -6128,10 +6316,10 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - void sse_encode_box_autoadd_mnemonic_base( - MnemonicBase self, SseSerializer serializer) { + void sse_encode_box_autoadd_lock_time( + LockTime self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_mnemonic_base(self, serializer); + sse_encode_lock_time(self, serializer); } @protected @@ -6141,13 +6329,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_out_point(self, serializer); } - @protected - void sse_encode_box_autoadd_psbt_base( - PsbtBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_psbt_base(self, serializer); - } - @protected void sse_encode_box_autoadd_psbt_sig_hash_type( PsbtSigHashType self, SseSerializer serializer) { @@ -6183,13 +6364,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_rpc_sync_params(self, serializer); } - @protected - void sse_encode_box_autoadd_script_buf_base( - ScriptBufBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_script_buf_base(self, serializer); - } - @protected void sse_encode_box_autoadd_sign_options( SignOptions self, SseSerializer serializer) { @@ -6211,13 +6385,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_sqlite_db_configuration(self, serializer); } - @protected - void sse_encode_box_autoadd_transaction_base( - TransactionBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_transaction_base(self, serializer); - } - @protected void sse_encode_box_autoadd_u_32(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6236,13 +6403,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_u_8(self, serializer); } - @protected - void sse_encode_box_autoadd_wallet_base( - WalletBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_wallet_base(self, serializer); - } - @protected void sse_encode_change_spend_policy( ChangeSpendPolicy self, SseSerializer serializer) { @@ -6299,22 +6459,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - void sse_encode_derivation_path_base( - DerivationPathBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_bitcoinbip32DerivationPath(self.ptr, serializer); - } - - @protected - void sse_encode_descriptor_base( - DescriptorBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_ExtendedDescriptor( - self.extendedDescriptor, serializer); - sse_encode_RustOpaque_keysKeyMap(self.keyMap, serializer); - } - @protected void sse_encode_descriptor_error( DescriptorError self, SseSerializer serializer) { @@ -6355,20 +6499,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - void sse_encode_descriptor_public_key_base( - DescriptorPublicKeyBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysDescriptorPublicKey(self.ptr, serializer); - } - - @protected - void sse_encode_descriptor_secret_key_base( - DescriptorSecretKeyBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysDescriptorSecretKey(self.ptr, serializer); - } - @protected void sse_encode_electrum_config( ElectrumConfig self, SseSerializer serializer) { @@ -6533,9 +6663,16 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - void sse_encode_mnemonic_base(MnemonicBase self, SseSerializer serializer) { + void sse_encode_lock_time(LockTime self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_keysbip39Mnemonic(self.ptr, serializer); + switch (self) { + case LockTime_Blocks(field0: final field0): + sse_encode_i_32(0, serializer); + sse_encode_u_32(field0, serializer); + case LockTime_Seconds(field0: final field0): + sse_encode_i_32(1, serializer); + sse_encode_u_32(field0, serializer); + } } @protected @@ -6555,35 +6692,57 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - void sse_encode_opt_box_autoadd_address_base( - AddressBase? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_bdk_address( + BdkAddress? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); if (self != null) { - sse_encode_box_autoadd_address_base(self, serializer); + sse_encode_box_autoadd_bdk_address(self, serializer); } } @protected - void sse_encode_opt_box_autoadd_block_time( - BlockTime? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_bdk_descriptor( + BdkDescriptor? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); if (self != null) { - sse_encode_box_autoadd_block_time(self, serializer); + sse_encode_box_autoadd_bdk_descriptor(self, serializer); + } + } + + @protected + void sse_encode_opt_box_autoadd_bdk_script_buf( + BdkScriptBuf? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_bdk_script_buf(self, serializer); + } + } + + @protected + void sse_encode_opt_box_autoadd_bdk_transaction( + BdkTransaction? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_bdk_transaction(self, serializer); } } @protected - void sse_encode_opt_box_autoadd_descriptor_base( - DescriptorBase? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_block_time( + BlockTime? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); if (self != null) { - sse_encode_box_autoadd_descriptor_base(self, serializer); + sse_encode_box_autoadd_block_time(self, serializer); } } @@ -6652,17 +6811,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - void sse_encode_opt_box_autoadd_script_buf_base( - ScriptBufBase? self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - - sse_encode_bool(self != null, serializer); - if (self != null) { - sse_encode_box_autoadd_script_buf_base(self, serializer); - } - } - @protected void sse_encode_opt_box_autoadd_sign_options( SignOptions? self, SseSerializer serializer) { @@ -6674,17 +6822,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - void sse_encode_opt_box_autoadd_transaction_base( - TransactionBase? self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - - sse_encode_bool(self != null, serializer); - if (self != null) { - sse_encode_box_autoadd_transaction_base(self, serializer); - } - } - @protected void sse_encode_opt_box_autoadd_u_32(int? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6742,12 +6879,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } } - @protected - void sse_encode_psbt_base(PsbtBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_MutexPartiallySignedTransaction(self.ptr, serializer); - } - @protected void sse_encode_psbt_sig_hash_type( PsbtSigHashType self, SseSerializer serializer) { @@ -6768,22 +6899,30 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { } @protected - void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer) { + void sse_encode_record_bdk_address_u_32( + (BdkAddress, int) 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); - sse_encode_usize(self.$3, serializer); + sse_encode_bdk_address(self.$1, serializer); + sse_encode_u_32(self.$2, serializer); } @protected - void sse_encode_record_psbt_base_transaction_details( - (PsbtBase, TransactionDetails) self, SseSerializer serializer) { + void sse_encode_record_bdk_psbt_transaction_details( + (BdkPsbt, TransactionDetails) self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_psbt_base(self.$1, serializer); + sse_encode_bdk_psbt(self.$1, serializer); sse_encode_transaction_details(self.$2, serializer); } + @protected + void sse_encode_record_out_point_input_usize( + (OutPoint, Input, int) 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); + sse_encode_usize(self.$3, serializer); + } + @protected void sse_encode_rpc_config(RpcConfig self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6807,17 +6946,10 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { @protected void sse_encode_script_amount(ScriptAmount self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_script_buf_base(self.script, serializer); + sse_encode_bdk_script_buf(self.script, serializer); sse_encode_u_64(self.amount, serializer); } - @protected - void sse_encode_script_buf_base( - ScriptBufBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_list_prim_u_8_strict(self.bytes, serializer); - } - @protected void sse_encode_sign_options(SignOptions self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6846,18 +6978,11 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_String(self.path, serializer); } - @protected - void sse_encode_transaction_base( - TransactionBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_String(self.inner, serializer); - } - @protected void sse_encode_transaction_details( TransactionDetails self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_opt_box_autoadd_transaction_base(self.transaction, serializer); + sse_encode_opt_box_autoadd_bdk_transaction(self.transaction, serializer); sse_encode_String(self.txid, serializer); sse_encode_u_64(self.received, serializer); sse_encode_u_64(self.sent, serializer); @@ -6869,7 +6994,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { void sse_encode_tx_in(TxIn self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_out_point(self.previousOutput, serializer); - sse_encode_script_buf_base(self.scriptSig, serializer); + sse_encode_bdk_script_buf(self.scriptSig, serializer); sse_encode_u_32(self.sequence, serializer); sse_encode_list_list_prim_u_8_strict(self.witness, serializer); } @@ -6878,7 +7003,7 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { void sse_encode_tx_out(TxOut self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_u_64(self.value, serializer); - sse_encode_script_buf_base(self.scriptPubkey, serializer); + sse_encode_bdk_script_buf(self.scriptPubkey, serializer); } @protected @@ -6922,12 +7047,6 @@ class BdkCoreApiImpl extends BdkCoreApiImplPlatform implements BdkCoreApi { sse_encode_i_32(self.index, serializer); } - @protected - void sse_encode_wallet_base(WalletBase self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_MutexbdkWalletAnyDatabase(self.ptr, serializer); - } - @protected void sse_encode_witness_version( WitnessVersion self, SseSerializer serializer) { diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 24b359ce..c9af61fe 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.28. +// 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 @@ -16,8 +16,8 @@ import 'dart:ffi' as ffi; import 'frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_io.dart'; -abstract class BdkCoreApiImplPlatform extends BaseApiImpl { - BdkCoreApiImplPlatform({ +abstract class CApiApiImplPlatform extends BaseApiImpl { + CApiApiImplPlatform({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, @@ -101,41 +101,62 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected String dco_decode_String(dynamic raw); - @protected - AddressBase dco_decode_address_base(dynamic raw); - @protected AddressError dco_decode_address_error(dynamic raw); @protected AddressIndex dco_decode_address_index(dynamic raw); - @protected - AddressInfo dco_decode_address_info(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 - BlockTime dco_decode_block_time(dynamic raw); + BdkMnemonic dco_decode_bdk_mnemonic(dynamic raw); @protected - BlockchainBase dco_decode_blockchain_base(dynamic raw); + BdkPsbt dco_decode_bdk_psbt(dynamic raw); @protected - BlockchainConfig dco_decode_blockchain_config(dynamic raw); + BdkScriptBuf dco_decode_bdk_script_buf(dynamic raw); @protected - bool dco_decode_bool(dynamic raw); + 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 - AddressBase dco_decode_box_autoadd_address_base(dynamic raw); + bool dco_decode_bool(dynamic raw); @protected AddressError dco_decode_box_autoadd_address_error(dynamic raw); @@ -144,36 +165,54 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { AddressIndex dco_decode_box_autoadd_address_index(dynamic raw); @protected - BlockTime dco_decode_box_autoadd_block_time(dynamic raw); + BdkAddress dco_decode_box_autoadd_bdk_address(dynamic raw); @protected - BlockchainBase dco_decode_box_autoadd_blockchain_base(dynamic raw); + BdkBlockchain dco_decode_box_autoadd_bdk_blockchain(dynamic raw); @protected - BlockchainConfig dco_decode_box_autoadd_blockchain_config(dynamic raw); + BdkDerivationPath dco_decode_box_autoadd_bdk_derivation_path(dynamic raw); @protected - ConsensusError dco_decode_box_autoadd_consensus_error(dynamic raw); + BdkDescriptor dco_decode_box_autoadd_bdk_descriptor(dynamic raw); @protected - DatabaseConfig dco_decode_box_autoadd_database_config(dynamic raw); + BdkDescriptorPublicKey dco_decode_box_autoadd_bdk_descriptor_public_key( + dynamic raw); @protected - DerivationPathBase dco_decode_box_autoadd_derivation_path_base(dynamic raw); + BdkDescriptorSecretKey dco_decode_box_autoadd_bdk_descriptor_secret_key( + dynamic raw); @protected - DescriptorBase dco_decode_box_autoadd_descriptor_base(dynamic raw); + BdkMnemonic dco_decode_box_autoadd_bdk_mnemonic(dynamic raw); @protected - DescriptorError dco_decode_box_autoadd_descriptor_error(dynamic raw); + BdkPsbt dco_decode_box_autoadd_bdk_psbt(dynamic raw); @protected - DescriptorPublicKeyBase dco_decode_box_autoadd_descriptor_public_key_base( - dynamic raw); + BdkScriptBuf dco_decode_box_autoadd_bdk_script_buf(dynamic raw); @protected - DescriptorSecretKeyBase dco_decode_box_autoadd_descriptor_secret_key_base( - dynamic raw); + 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); @@ -194,14 +233,11 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo dco_decode_box_autoadd_local_utxo(dynamic raw); @protected - MnemonicBase dco_decode_box_autoadd_mnemonic_base(dynamic raw); + LockTime dco_decode_box_autoadd_lock_time(dynamic raw); @protected OutPoint dco_decode_box_autoadd_out_point(dynamic raw); - @protected - PsbtBase dco_decode_box_autoadd_psbt_base(dynamic raw); - @protected PsbtSigHashType dco_decode_box_autoadd_psbt_sig_hash_type(dynamic raw); @@ -218,9 +254,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected RpcSyncParams dco_decode_box_autoadd_rpc_sync_params(dynamic raw); - @protected - ScriptBufBase dco_decode_box_autoadd_script_buf_base(dynamic raw); - @protected SignOptions dco_decode_box_autoadd_sign_options(dynamic raw); @@ -231,9 +264,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SqliteDbConfiguration dco_decode_box_autoadd_sqlite_db_configuration( dynamic raw); - @protected - TransactionBase dco_decode_box_autoadd_transaction_base(dynamic raw); - @protected int dco_decode_box_autoadd_u_32(dynamic raw); @@ -243,9 +273,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected int dco_decode_box_autoadd_u_8(dynamic raw); - @protected - WalletBase dco_decode_box_autoadd_wallet_base(dynamic raw); - @protected ChangeSpendPolicy dco_decode_change_spend_policy(dynamic raw); @@ -255,21 +282,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected DatabaseConfig dco_decode_database_config(dynamic raw); - @protected - DerivationPathBase dco_decode_derivation_path_base(dynamic raw); - - @protected - DescriptorBase dco_decode_descriptor_base(dynamic raw); - @protected DescriptorError dco_decode_descriptor_error(dynamic raw); - @protected - DescriptorPublicKeyBase dco_decode_descriptor_public_key_base(dynamic raw); - - @protected - DescriptorSecretKeyBase dco_decode_descriptor_secret_key_base(dynamic raw); - @protected ElectrumConfig dco_decode_electrum_config(dynamic raw); @@ -325,7 +340,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo dco_decode_local_utxo(dynamic raw); @protected - MnemonicBase dco_decode_mnemonic_base(dynamic raw); + LockTime dco_decode_lock_time(dynamic raw); @protected Network dco_decode_network(dynamic raw); @@ -334,13 +349,19 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { String? dco_decode_opt_String(dynamic raw); @protected - AddressBase? dco_decode_opt_box_autoadd_address_base(dynamic raw); + BdkAddress? dco_decode_opt_box_autoadd_bdk_address(dynamic raw); @protected - BlockTime? dco_decode_opt_box_autoadd_block_time(dynamic raw); + BdkDescriptor? dco_decode_opt_box_autoadd_bdk_descriptor(dynamic raw); @protected - DescriptorBase? dco_decode_opt_box_autoadd_descriptor_base(dynamic raw); + 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); @@ -361,15 +382,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected RpcSyncParams? dco_decode_opt_box_autoadd_rpc_sync_params(dynamic raw); - @protected - ScriptBufBase? dco_decode_opt_box_autoadd_script_buf_base(dynamic raw); - @protected SignOptions? dco_decode_opt_box_autoadd_sign_options(dynamic raw); - @protected - TransactionBase? dco_decode_opt_box_autoadd_transaction_base(dynamic raw); - @protected int? dco_decode_opt_box_autoadd_u_32(dynamic raw); @@ -385,9 +400,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Payload dco_decode_payload(dynamic raw); - @protected - PsbtBase dco_decode_psbt_base(dynamic raw); - @protected PsbtSigHashType dco_decode_psbt_sig_hash_type(dynamic raw); @@ -395,11 +407,14 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RbfValue dco_decode_rbf_value(dynamic raw); @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw); + (BdkAddress, int) dco_decode_record_bdk_address_u_32(dynamic raw); @protected - (PsbtBase, TransactionDetails) - dco_decode_record_psbt_base_transaction_details(dynamic raw); + (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); @@ -410,9 +425,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected ScriptAmount dco_decode_script_amount(dynamic raw); - @protected - ScriptBufBase dco_decode_script_buf_base(dynamic raw); - @protected SignOptions dco_decode_sign_options(dynamic raw); @@ -422,9 +434,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected SqliteDbConfiguration dco_decode_sqlite_db_configuration(dynamic raw); - @protected - TransactionBase dco_decode_transaction_base(dynamic raw); - @protected TransactionDetails dco_decode_transaction_details(dynamic raw); @@ -455,9 +464,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Variant dco_decode_variant(dynamic raw); - @protected - WalletBase dco_decode_wallet_base(dynamic raw); - @protected WitnessVersion dco_decode_witness_version(dynamic raw); @@ -507,41 +513,65 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected String sse_decode_String(SseDeserializer deserializer); - @protected - AddressBase sse_decode_address_base(SseDeserializer deserializer); - @protected AddressError sse_decode_address_error(SseDeserializer deserializer); @protected AddressIndex sse_decode_address_index(SseDeserializer deserializer); - @protected - AddressInfo sse_decode_address_info(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 - BlockTime sse_decode_block_time(SseDeserializer deserializer); + BdkMnemonic sse_decode_bdk_mnemonic(SseDeserializer deserializer); @protected - BlockchainBase sse_decode_blockchain_base(SseDeserializer deserializer); + BdkPsbt sse_decode_bdk_psbt(SseDeserializer deserializer); @protected - BlockchainConfig sse_decode_blockchain_config(SseDeserializer deserializer); + BdkScriptBuf sse_decode_bdk_script_buf(SseDeserializer deserializer); @protected - bool sse_decode_bool(SseDeserializer deserializer); + 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 - AddressBase sse_decode_box_autoadd_address_base(SseDeserializer deserializer); + bool sse_decode_bool(SseDeserializer deserializer); @protected AddressError sse_decode_box_autoadd_address_error( @@ -552,42 +582,62 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - BlockTime sse_decode_box_autoadd_block_time(SseDeserializer deserializer); + BdkAddress sse_decode_box_autoadd_bdk_address(SseDeserializer deserializer); @protected - BlockchainBase sse_decode_box_autoadd_blockchain_base( + BdkBlockchain sse_decode_box_autoadd_bdk_blockchain( SseDeserializer deserializer); @protected - BlockchainConfig sse_decode_box_autoadd_blockchain_config( + BdkDerivationPath sse_decode_box_autoadd_bdk_derivation_path( SseDeserializer deserializer); @protected - ConsensusError sse_decode_box_autoadd_consensus_error( + BdkDescriptor sse_decode_box_autoadd_bdk_descriptor( SseDeserializer deserializer); @protected - DatabaseConfig sse_decode_box_autoadd_database_config( + 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 - DerivationPathBase sse_decode_box_autoadd_derivation_path_base( + BdkTransaction sse_decode_box_autoadd_bdk_transaction( SseDeserializer deserializer); @protected - DescriptorBase sse_decode_box_autoadd_descriptor_base( + 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 - DescriptorError sse_decode_box_autoadd_descriptor_error( + ConsensusError sse_decode_box_autoadd_consensus_error( SseDeserializer deserializer); @protected - DescriptorPublicKeyBase sse_decode_box_autoadd_descriptor_public_key_base( + DatabaseConfig sse_decode_box_autoadd_database_config( SseDeserializer deserializer); @protected - DescriptorSecretKeyBase sse_decode_box_autoadd_descriptor_secret_key_base( + DescriptorError sse_decode_box_autoadd_descriptor_error( SseDeserializer deserializer); @protected @@ -611,15 +661,11 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo sse_decode_box_autoadd_local_utxo(SseDeserializer deserializer); @protected - MnemonicBase sse_decode_box_autoadd_mnemonic_base( - SseDeserializer deserializer); + LockTime sse_decode_box_autoadd_lock_time(SseDeserializer deserializer); @protected OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); - @protected - PsbtBase sse_decode_box_autoadd_psbt_base(SseDeserializer deserializer); - @protected PsbtSigHashType sse_decode_box_autoadd_psbt_sig_hash_type( SseDeserializer deserializer); @@ -638,10 +684,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RpcSyncParams sse_decode_box_autoadd_rpc_sync_params( SseDeserializer deserializer); - @protected - ScriptBufBase sse_decode_box_autoadd_script_buf_base( - SseDeserializer deserializer); - @protected SignOptions sse_decode_box_autoadd_sign_options(SseDeserializer deserializer); @@ -653,10 +695,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SqliteDbConfiguration sse_decode_box_autoadd_sqlite_db_configuration( SseDeserializer deserializer); - @protected - TransactionBase sse_decode_box_autoadd_transaction_base( - SseDeserializer deserializer); - @protected int sse_decode_box_autoadd_u_32(SseDeserializer deserializer); @@ -666,9 +704,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); - @protected - WalletBase sse_decode_box_autoadd_wallet_base(SseDeserializer deserializer); - @protected ChangeSpendPolicy sse_decode_change_spend_policy( SseDeserializer deserializer); @@ -679,24 +714,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected DatabaseConfig sse_decode_database_config(SseDeserializer deserializer); - @protected - DerivationPathBase sse_decode_derivation_path_base( - SseDeserializer deserializer); - - @protected - DescriptorBase sse_decode_descriptor_base(SseDeserializer deserializer); - @protected DescriptorError sse_decode_descriptor_error(SseDeserializer deserializer); - @protected - DescriptorPublicKeyBase sse_decode_descriptor_public_key_base( - SseDeserializer deserializer); - - @protected - DescriptorSecretKeyBase sse_decode_descriptor_secret_key_base( - SseDeserializer deserializer); - @protected ElectrumConfig sse_decode_electrum_config(SseDeserializer deserializer); @@ -755,7 +775,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo sse_decode_local_utxo(SseDeserializer deserializer); @protected - MnemonicBase sse_decode_mnemonic_base(SseDeserializer deserializer); + LockTime sse_decode_lock_time(SseDeserializer deserializer); @protected Network sse_decode_network(SseDeserializer deserializer); @@ -764,15 +784,23 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { String? sse_decode_opt_String(SseDeserializer deserializer); @protected - AddressBase? sse_decode_opt_box_autoadd_address_base( + BdkAddress? sse_decode_opt_box_autoadd_bdk_address( SseDeserializer deserializer); @protected - BlockTime? sse_decode_opt_box_autoadd_block_time( + BdkDescriptor? sse_decode_opt_box_autoadd_bdk_descriptor( SseDeserializer deserializer); @protected - DescriptorBase? sse_decode_opt_box_autoadd_descriptor_base( + 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 @@ -797,18 +825,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RpcSyncParams? sse_decode_opt_box_autoadd_rpc_sync_params( SseDeserializer deserializer); - @protected - ScriptBufBase? sse_decode_opt_box_autoadd_script_buf_base( - SseDeserializer deserializer); - @protected SignOptions? sse_decode_opt_box_autoadd_sign_options( SseDeserializer deserializer); - @protected - TransactionBase? sse_decode_opt_box_autoadd_transaction_base( - SseDeserializer deserializer); - @protected int? sse_decode_opt_box_autoadd_u_32(SseDeserializer deserializer); @@ -824,9 +844,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Payload sse_decode_payload(SseDeserializer deserializer); - @protected - PsbtBase sse_decode_psbt_base(SseDeserializer deserializer); - @protected PsbtSigHashType sse_decode_psbt_sig_hash_type(SseDeserializer deserializer); @@ -834,13 +851,16 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RbfValue sse_decode_rbf_value(SseDeserializer deserializer); @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( + (BdkAddress, int) sse_decode_record_bdk_address_u_32( SseDeserializer deserializer); @protected - (PsbtBase, TransactionDetails) - sse_decode_record_psbt_base_transaction_details( - SseDeserializer deserializer); + (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); @@ -851,9 +871,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected ScriptAmount sse_decode_script_amount(SseDeserializer deserializer); - @protected - ScriptBufBase sse_decode_script_buf_base(SseDeserializer deserializer); - @protected SignOptions sse_decode_sign_options(SseDeserializer deserializer); @@ -865,9 +882,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SqliteDbConfiguration sse_decode_sqlite_db_configuration( SseDeserializer deserializer); - @protected - TransactionBase sse_decode_transaction_base(SseDeserializer deserializer); - @protected TransactionDetails sse_decode_transaction_details( SseDeserializer deserializer); @@ -899,9 +913,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Variant sse_decode_variant(SseDeserializer deserializer); - @protected - WalletBase sse_decode_wallet_base(SseDeserializer deserializer); - @protected WitnessVersion sse_decode_witness_version(SseDeserializer deserializer); @@ -914,15 +925,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return cst_encode_list_prim_u_8_strict(utf8.encoder.convert(raw)); } - @protected - ffi.Pointer cst_encode_box_autoadd_address_base( - AddressBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_address_base(); - cst_api_fill_to_wire_address_base(raw, ptr.ref); - return ptr; - } - @protected ffi.Pointer cst_encode_box_autoadd_address_error( AddressError raw) { @@ -942,94 +944,147 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_box_autoadd_block_time( - BlockTime raw) { + ffi.Pointer cst_encode_box_autoadd_bdk_address( + BdkAddress raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_block_time(); - cst_api_fill_to_wire_block_time(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_address(); + cst_api_fill_to_wire_bdk_address(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_blockchain_base( - BlockchainBase raw) { + ffi.Pointer cst_encode_box_autoadd_bdk_blockchain( + BdkBlockchain raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_blockchain_base(); - cst_api_fill_to_wire_blockchain_base(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_blockchain(); + cst_api_fill_to_wire_bdk_blockchain(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_blockchain_config(BlockchainConfig raw) { + ffi.Pointer + cst_encode_box_autoadd_bdk_derivation_path(BdkDerivationPath raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_blockchain_config(); - cst_api_fill_to_wire_blockchain_config(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_derivation_path(); + cst_api_fill_to_wire_bdk_derivation_path(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_consensus_error( - ConsensusError raw) { + ffi.Pointer cst_encode_box_autoadd_bdk_descriptor( + BdkDescriptor raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_consensus_error(); - cst_api_fill_to_wire_consensus_error(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_descriptor(); + cst_api_fill_to_wire_bdk_descriptor(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_database_config( - DatabaseConfig raw) { + ffi.Pointer + cst_encode_box_autoadd_bdk_descriptor_public_key( + BdkDescriptorPublicKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_database_config(); - cst_api_fill_to_wire_database_config(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_descriptor_public_key(); + cst_api_fill_to_wire_bdk_descriptor_public_key(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_derivation_path_base(DerivationPathBase raw) { + ffi.Pointer + cst_encode_box_autoadd_bdk_descriptor_secret_key( + BdkDescriptorSecretKey raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_derivation_path_base(); - cst_api_fill_to_wire_derivation_path_base(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_descriptor_secret_key(); + cst_api_fill_to_wire_bdk_descriptor_secret_key(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_descriptor_base( - DescriptorBase raw) { + ffi.Pointer cst_encode_box_autoadd_bdk_mnemonic( + BdkMnemonic raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_descriptor_base(); - cst_api_fill_to_wire_descriptor_base(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_mnemonic(); + cst_api_fill_to_wire_bdk_mnemonic(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_descriptor_error(DescriptorError raw) { + ffi.Pointer cst_encode_box_autoadd_bdk_psbt(BdkPsbt raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_descriptor_error(); - cst_api_fill_to_wire_descriptor_error(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_bdk_psbt(); + cst_api_fill_to_wire_bdk_psbt(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_bdk_script_buf( + BdkScriptBuf raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_bdk_script_buf(); + cst_api_fill_to_wire_bdk_script_buf(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_bdk_transaction( + BdkTransaction raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_bdk_transaction(); + cst_api_fill_to_wire_bdk_transaction(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_bdk_wallet( + BdkWallet raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_bdk_wallet(); + cst_api_fill_to_wire_bdk_wallet(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_block_time( + BlockTime raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_block_time(); + cst_api_fill_to_wire_block_time(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_descriptor_public_key_base( - DescriptorPublicKeyBase raw) { + ffi.Pointer + cst_encode_box_autoadd_blockchain_config(BlockchainConfig raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_descriptor_public_key_base(); - cst_api_fill_to_wire_descriptor_public_key_base(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_blockchain_config(); + cst_api_fill_to_wire_blockchain_config(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_descriptor_secret_key_base( - DescriptorSecretKeyBase raw) { + ffi.Pointer cst_encode_box_autoadd_consensus_error( + ConsensusError raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_descriptor_secret_key_base(); - cst_api_fill_to_wire_descriptor_secret_key_base(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_consensus_error(); + cst_api_fill_to_wire_consensus_error(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_database_config( + DatabaseConfig raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_database_config(); + cst_api_fill_to_wire_database_config(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_descriptor_error(DescriptorError raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_descriptor_error(); + cst_api_fill_to_wire_descriptor_error(raw, ptr.ref); return ptr; } @@ -1084,11 +1139,11 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_box_autoadd_mnemonic_base( - MnemonicBase raw) { + ffi.Pointer cst_encode_box_autoadd_lock_time( + LockTime raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_mnemonic_base(); - cst_api_fill_to_wire_mnemonic_base(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_lock_time(); + cst_api_fill_to_wire_lock_time(raw, ptr.ref); return ptr; } @@ -1101,15 +1156,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return ptr; } - @protected - ffi.Pointer cst_encode_box_autoadd_psbt_base( - PsbtBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_psbt_base(); - cst_api_fill_to_wire_psbt_base(raw, ptr.ref); - return ptr; - } - @protected ffi.Pointer cst_encode_box_autoadd_psbt_sig_hash_type(PsbtSigHashType raw) { @@ -1156,15 +1202,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return ptr; } - @protected - ffi.Pointer cst_encode_box_autoadd_script_buf_base( - ScriptBufBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_script_buf_base(); - cst_api_fill_to_wire_script_buf_base(raw, ptr.ref); - return ptr; - } - @protected ffi.Pointer cst_encode_box_autoadd_sign_options( SignOptions raw) { @@ -1193,15 +1230,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return ptr; } - @protected - ffi.Pointer - cst_encode_box_autoadd_transaction_base(TransactionBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_transaction_base(); - cst_api_fill_to_wire_transaction_base(raw, ptr.ref); - return ptr; - } - @protected ffi.Pointer cst_encode_box_autoadd_u_32(int raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1220,15 +1248,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return wire.cst_new_box_autoadd_u_8(cst_encode_u_8(raw)); } - @protected - ffi.Pointer cst_encode_box_autoadd_wallet_base( - WalletBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_wallet_base(); - cst_api_fill_to_wire_wallet_base(raw, ptr.ref); - return ptr; - } - @protected ffi.Pointer cst_encode_list_list_prim_u_8_strict(List raw) { @@ -1330,26 +1349,44 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_opt_box_autoadd_address_base( - AddressBase? raw) { + ffi.Pointer cst_encode_opt_box_autoadd_bdk_address( + BdkAddress? raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? ffi.nullptr : cst_encode_box_autoadd_address_base(raw); + return raw == null ? ffi.nullptr : cst_encode_box_autoadd_bdk_address(raw); } @protected - ffi.Pointer cst_encode_opt_box_autoadd_block_time( - BlockTime? raw) { + ffi.Pointer + cst_encode_opt_box_autoadd_bdk_descriptor(BdkDescriptor? raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? ffi.nullptr : cst_encode_box_autoadd_block_time(raw); + return raw == null + ? ffi.nullptr + : cst_encode_box_autoadd_bdk_descriptor(raw); } @protected - ffi.Pointer - cst_encode_opt_box_autoadd_descriptor_base(DescriptorBase? raw) { + ffi.Pointer + cst_encode_opt_box_autoadd_bdk_script_buf(BdkScriptBuf? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr - : cst_encode_box_autoadd_descriptor_base(raw); + : cst_encode_box_autoadd_bdk_script_buf(raw); + } + + @protected + ffi.Pointer + cst_encode_opt_box_autoadd_bdk_transaction(BdkTransaction? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null + ? ffi.nullptr + : cst_encode_box_autoadd_bdk_transaction(raw); + } + + @protected + ffi.Pointer cst_encode_opt_box_autoadd_block_time( + BlockTime? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null ? ffi.nullptr : cst_encode_box_autoadd_block_time(raw); } @protected @@ -1400,15 +1437,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { : cst_encode_box_autoadd_rpc_sync_params(raw); } - @protected - ffi.Pointer - cst_encode_opt_box_autoadd_script_buf_base(ScriptBufBase? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null - ? ffi.nullptr - : cst_encode_box_autoadd_script_buf_base(raw); - } - @protected ffi.Pointer cst_encode_opt_box_autoadd_sign_options( SignOptions? raw) { @@ -1416,15 +1444,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return raw == null ? ffi.nullptr : cst_encode_box_autoadd_sign_options(raw); } - @protected - ffi.Pointer - cst_encode_opt_box_autoadd_transaction_base(TransactionBase? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null - ? ffi.nullptr - : cst_encode_box_autoadd_transaction_base(raw); - } - @protected ffi.Pointer cst_encode_opt_box_autoadd_u_32(int? raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1458,12 +1477,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return ans; } - @protected - void cst_api_fill_to_wire_address_base( - AddressBase apiObj, wire_cst_address_base wireObj) { - wireObj.ptr = cst_encode_RustOpaque_bdkbitcoinAddress(apiObj.ptr); - } - @protected void cst_api_fill_to_wire_address_error( AddressError apiObj, wire_cst_address_error wireObj) { @@ -1574,13 +1587,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } } - @protected - void cst_api_fill_to_wire_address_info( - AddressInfo apiObj, wire_cst_address_info wireObj) { - wireObj.index = cst_encode_u_32(apiObj.index); - wireObj.address = cst_encode_String(apiObj.address); - } - @protected void cst_api_fill_to_wire_auth(Auth apiObj, wire_cst_auth wireObj) { if (apiObj is Auth_None) { @@ -1604,13 +1610,53 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_balance(Balance apiObj, wire_cst_balance wireObj) { - wireObj.immature = cst_encode_u_64(apiObj.immature); - wireObj.trusted_pending = cst_encode_u_64(apiObj.trustedPending); - wireObj.untrusted_pending = cst_encode_u_64(apiObj.untrustedPending); - wireObj.confirmed = cst_encode_u_64(apiObj.confirmed); - wireObj.spendable = cst_encode_u_64(apiObj.spendable); - wireObj.total = cst_encode_u_64(apiObj.total); + void cst_api_fill_to_wire_balance(Balance apiObj, wire_cst_balance wireObj) { + wireObj.immature = cst_encode_u_64(apiObj.immature); + wireObj.trusted_pending = cst_encode_u_64(apiObj.trustedPending); + wireObj.untrusted_pending = cst_encode_u_64(apiObj.untrustedPending); + wireObj.confirmed = cst_encode_u_64(apiObj.confirmed); + wireObj.spendable = cst_encode_u_64(apiObj.spendable); + wireObj.total = cst_encode_u_64(apiObj.total); + } + + @protected + void cst_api_fill_to_wire_bdk_address( + BdkAddress apiObj, wire_cst_bdk_address wireObj) { + wireObj.ptr = cst_encode_RustOpaque_bdkbitcoinAddress(apiObj.ptr); + } + + @protected + void cst_api_fill_to_wire_bdk_blockchain( + BdkBlockchain apiObj, wire_cst_bdk_blockchain wireObj) { + wireObj.ptr = cst_encode_RustOpaque_AnyBlockchain(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); + } + + @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); + } + + @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); + } + + @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); } @protected @@ -1858,6 +1904,55 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { wireObj.kind.Rusqlite.field0 = pre_field0; return; } + if (apiObj is BdkError_InvalidInput) { + var pre_field0 = cst_encode_String(apiObj.field0); + wireObj.tag = 43; + wireObj.kind.InvalidInput.field0 = pre_field0; + return; + } + if (apiObj is BdkError_InvalidLockTime) { + var pre_field0 = cst_encode_String(apiObj.field0); + wireObj.tag = 44; + wireObj.kind.InvalidLockTime.field0 = pre_field0; + return; + } + if (apiObj is BdkError_InvalidTransaction) { + var pre_field0 = cst_encode_String(apiObj.field0); + wireObj.tag = 45; + wireObj.kind.InvalidTransaction.field0 = pre_field0; + return; + } + } + + @protected + void cst_api_fill_to_wire_bdk_mnemonic( + BdkMnemonic apiObj, wire_cst_bdk_mnemonic wireObj) { + wireObj.ptr = cst_encode_RustOpaque_keysbip39Mnemonic(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); + } + + @protected + void cst_api_fill_to_wire_bdk_script_buf( + BdkScriptBuf apiObj, wire_cst_bdk_script_buf wireObj) { + wireObj.bytes = cst_encode_list_prim_u_8_strict(apiObj.bytes); + } + + @protected + void cst_api_fill_to_wire_bdk_transaction( + BdkTransaction apiObj, wire_cst_bdk_transaction wireObj) { + wireObj.inner = cst_encode_String(apiObj.inner); + } + + @protected + void cst_api_fill_to_wire_bdk_wallet( + BdkWallet apiObj, wire_cst_bdk_wallet wireObj) { + wireObj.ptr = cst_encode_RustOpaque_MutexbdkWalletAnyDatabase(apiObj.ptr); } @protected @@ -1867,12 +1962,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { wireObj.timestamp = cst_encode_u_64(apiObj.timestamp); } - @protected - void cst_api_fill_to_wire_blockchain_base( - BlockchainBase apiObj, wire_cst_blockchain_base wireObj) { - wireObj.ptr = cst_encode_RustOpaque_AnyBlockchain(apiObj.ptr); - } - @protected void cst_api_fill_to_wire_blockchain_config( BlockchainConfig apiObj, wire_cst_blockchain_config wireObj) { @@ -1896,12 +1985,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } } - @protected - void cst_api_fill_to_wire_box_autoadd_address_base( - AddressBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_address_base(apiObj, wireObj.ref); - } - @protected void cst_api_fill_to_wire_box_autoadd_address_error( AddressError apiObj, ffi.Pointer wireObj) { @@ -1915,15 +1998,78 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_box_autoadd_block_time( - BlockTime apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_block_time(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_bdk_address( + BdkAddress apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_address(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_blockchain( + BdkBlockchain apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_blockchain(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_derivation_path( + BdkDerivationPath apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_derivation_path(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_descriptor( + BdkDescriptor apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_descriptor(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_descriptor_public_key( + BdkDescriptorPublicKey apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_descriptor_public_key(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_descriptor_secret_key( + BdkDescriptorSecretKey apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_descriptor_secret_key(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_mnemonic( + BdkMnemonic apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_mnemonic(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_psbt( + BdkPsbt apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_psbt(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_script_buf( + BdkScriptBuf apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_script_buf(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_transaction( + BdkTransaction apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_transaction(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_bdk_wallet( + BdkWallet apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_bdk_wallet(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_blockchain_base( - BlockchainBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_blockchain_base(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_block_time( + BlockTime apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_block_time(apiObj, wireObj.ref); } @protected @@ -1945,39 +2091,12 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_database_config(apiObj, wireObj.ref); } - @protected - void cst_api_fill_to_wire_box_autoadd_derivation_path_base( - DerivationPathBase apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_derivation_path_base(apiObj, wireObj.ref); - } - - @protected - void cst_api_fill_to_wire_box_autoadd_descriptor_base( - DescriptorBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_descriptor_base(apiObj, wireObj.ref); - } - @protected void cst_api_fill_to_wire_box_autoadd_descriptor_error( DescriptorError apiObj, ffi.Pointer wireObj) { cst_api_fill_to_wire_descriptor_error(apiObj, wireObj.ref); } - @protected - void cst_api_fill_to_wire_box_autoadd_descriptor_public_key_base( - DescriptorPublicKeyBase apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_descriptor_public_key_base(apiObj, wireObj.ref); - } - - @protected - void cst_api_fill_to_wire_box_autoadd_descriptor_secret_key_base( - DescriptorSecretKeyBase apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_descriptor_secret_key_base(apiObj, wireObj.ref); - } - @protected void cst_api_fill_to_wire_box_autoadd_electrum_config( ElectrumConfig apiObj, ffi.Pointer wireObj) { @@ -2009,9 +2128,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_box_autoadd_mnemonic_base( - MnemonicBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_mnemonic_base(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_lock_time( + LockTime apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_lock_time(apiObj, wireObj.ref); } @protected @@ -2020,12 +2139,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_out_point(apiObj, wireObj.ref); } - @protected - void cst_api_fill_to_wire_box_autoadd_psbt_base( - PsbtBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_psbt_base(apiObj, wireObj.ref); - } - @protected void cst_api_fill_to_wire_box_autoadd_psbt_sig_hash_type( PsbtSigHashType apiObj, @@ -2058,12 +2171,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_rpc_sync_params(apiObj, wireObj.ref); } - @protected - void cst_api_fill_to_wire_box_autoadd_script_buf_base( - ScriptBufBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_script_buf_base(apiObj, wireObj.ref); - } - @protected void cst_api_fill_to_wire_box_autoadd_sign_options( SignOptions apiObj, ffi.Pointer wireObj) { @@ -2084,18 +2191,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_sqlite_db_configuration(apiObj, wireObj.ref); } - @protected - void cst_api_fill_to_wire_box_autoadd_transaction_base( - TransactionBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_transaction_base(apiObj, wireObj.ref); - } - - @protected - void cst_api_fill_to_wire_box_autoadd_wallet_base( - WalletBase apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_wallet_base(apiObj, wireObj.ref); - } - @protected void cst_api_fill_to_wire_consensus_error( ConsensusError apiObj, wire_cst_consensus_error wireObj) { @@ -2162,20 +2257,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } } - @protected - void cst_api_fill_to_wire_derivation_path_base( - DerivationPathBase apiObj, wire_cst_derivation_path_base wireObj) { - wireObj.ptr = cst_encode_RustOpaque_bitcoinbip32DerivationPath(apiObj.ptr); - } - - @protected - void cst_api_fill_to_wire_descriptor_base( - DescriptorBase apiObj, wire_cst_descriptor_base wireObj) { - wireObj.extended_descriptor = - cst_encode_RustOpaque_ExtendedDescriptor(apiObj.extendedDescriptor); - wireObj.key_map = cst_encode_RustOpaque_keysKeyMap(apiObj.keyMap); - } - @protected void cst_api_fill_to_wire_descriptor_error( DescriptorError apiObj, wire_cst_descriptor_error wireObj) { @@ -2245,20 +2326,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } } - @protected - void cst_api_fill_to_wire_descriptor_public_key_base( - DescriptorPublicKeyBase apiObj, - wire_cst_descriptor_public_key_base wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysDescriptorPublicKey(apiObj.ptr); - } - - @protected - void cst_api_fill_to_wire_descriptor_secret_key_base( - DescriptorSecretKeyBase apiObj, - wire_cst_descriptor_secret_key_base wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysDescriptorSecretKey(apiObj.ptr); - } - @protected void cst_api_fill_to_wire_electrum_config( ElectrumConfig apiObj, wire_cst_electrum_config wireObj) { @@ -2326,9 +2393,20 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_mnemonic_base( - MnemonicBase apiObj, wire_cst_mnemonic_base wireObj) { - wireObj.ptr = cst_encode_RustOpaque_keysbip39Mnemonic(apiObj.ptr); + void cst_api_fill_to_wire_lock_time( + LockTime apiObj, wire_cst_lock_time wireObj) { + if (apiObj is LockTime_Blocks) { + var pre_field0 = cst_encode_u_32(apiObj.field0); + wireObj.tag = 0; + wireObj.kind.Blocks.field0 = pre_field0; + return; + } + if (apiObj is LockTime_Seconds) { + var pre_field0 = cst_encode_u_32(apiObj.field0); + wireObj.tag = 1; + wireObj.kind.Seconds.field0 = pre_field0; + return; + } } @protected @@ -2362,13 +2440,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } } - @protected - void cst_api_fill_to_wire_psbt_base( - PsbtBase apiObj, wire_cst_psbt_base wireObj) { - wireObj.ptr = - cst_encode_RustOpaque_MutexPartiallySignedTransaction(apiObj.ptr); - } - @protected void cst_api_fill_to_wire_psbt_sig_hash_type( PsbtSigHashType apiObj, wire_cst_psbt_sig_hash_type wireObj) { @@ -2390,6 +2461,21 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } } + @protected + void cst_api_fill_to_wire_record_bdk_address_u_32( + (BdkAddress, int) apiObj, wire_cst_record_bdk_address_u_32 wireObj) { + cst_api_fill_to_wire_bdk_address(apiObj.$1, wireObj.field0); + wireObj.field1 = cst_encode_u_32(apiObj.$2); + } + + @protected + void cst_api_fill_to_wire_record_bdk_psbt_transaction_details( + (BdkPsbt, TransactionDetails) apiObj, + wire_cst_record_bdk_psbt_transaction_details wireObj) { + cst_api_fill_to_wire_bdk_psbt(apiObj.$1, wireObj.field0); + cst_api_fill_to_wire_transaction_details(apiObj.$2, wireObj.field1); + } + @protected void cst_api_fill_to_wire_record_out_point_input_usize( (OutPoint, Input, int) apiObj, @@ -2399,14 +2485,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { wireObj.field2 = cst_encode_usize(apiObj.$3); } - @protected - void cst_api_fill_to_wire_record_psbt_base_transaction_details( - (PsbtBase, TransactionDetails) apiObj, - wire_cst_record_psbt_base_transaction_details wireObj) { - cst_api_fill_to_wire_psbt_base(apiObj.$1, wireObj.field0); - cst_api_fill_to_wire_transaction_details(apiObj.$2, wireObj.field1); - } - @protected void cst_api_fill_to_wire_rpc_config( RpcConfig apiObj, wire_cst_rpc_config wireObj) { @@ -2430,16 +2508,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_script_amount( ScriptAmount apiObj, wire_cst_script_amount wireObj) { - cst_api_fill_to_wire_script_buf_base(apiObj.script, wireObj.script); + cst_api_fill_to_wire_bdk_script_buf(apiObj.script, wireObj.script); wireObj.amount = cst_encode_u_64(apiObj.amount); } - @protected - void cst_api_fill_to_wire_script_buf_base( - ScriptBufBase apiObj, wire_cst_script_buf_base wireObj) { - wireObj.bytes = cst_encode_list_prim_u_8_strict(apiObj.bytes); - } - @protected void cst_api_fill_to_wire_sign_options( SignOptions apiObj, wire_cst_sign_options wireObj) { @@ -2468,17 +2540,11 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { wireObj.path = cst_encode_String(apiObj.path); } - @protected - void cst_api_fill_to_wire_transaction_base( - TransactionBase apiObj, wire_cst_transaction_base wireObj) { - wireObj.inner = cst_encode_String(apiObj.inner); - } - @protected void cst_api_fill_to_wire_transaction_details( TransactionDetails apiObj, wire_cst_transaction_details wireObj) { wireObj.transaction = - cst_encode_opt_box_autoadd_transaction_base(apiObj.transaction); + cst_encode_opt_box_autoadd_bdk_transaction(apiObj.transaction); wireObj.txid = cst_encode_String(apiObj.txid); wireObj.received = cst_encode_u_64(apiObj.received); wireObj.sent = cst_encode_u_64(apiObj.sent); @@ -2491,7 +2557,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void cst_api_fill_to_wire_tx_in(TxIn apiObj, wire_cst_tx_in wireObj) { cst_api_fill_to_wire_out_point( apiObj.previousOutput, wireObj.previous_output); - cst_api_fill_to_wire_script_buf_base(apiObj.scriptSig, wireObj.script_sig); + cst_api_fill_to_wire_bdk_script_buf(apiObj.scriptSig, wireObj.script_sig); wireObj.sequence = cst_encode_u_32(apiObj.sequence); wireObj.witness = cst_encode_list_list_prim_u_8_strict(apiObj.witness); } @@ -2499,16 +2565,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_tx_out(TxOut apiObj, wire_cst_tx_out wireObj) { wireObj.value = cst_encode_u_64(apiObj.value); - cst_api_fill_to_wire_script_buf_base( + cst_api_fill_to_wire_bdk_script_buf( apiObj.scriptPubkey, wireObj.script_pubkey); } - @protected - void cst_api_fill_to_wire_wallet_base( - WalletBase apiObj, wire_cst_wallet_base wireObj) { - wireObj.ptr = cst_encode_RustOpaque_MutexbdkWalletAnyDatabase(apiObj.ptr); - } - @protected int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw); @@ -2626,33 +2686,60 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_String(String self, SseSerializer serializer); - @protected - void sse_encode_address_base(AddressBase 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_address_info(AddressInfo 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_block_time(BlockTime self, SseSerializer serializer); + 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_blockchain_base( - BlockchainBase self, SseSerializer serializer); + void sse_encode_block_time(BlockTime self, SseSerializer serializer); @protected void sse_encode_blockchain_config( @@ -2661,10 +2748,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_bool(bool self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_address_base( - AddressBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_address_error( AddressError self, SseSerializer serializer); @@ -2674,44 +2757,67 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { AddressIndex self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_block_time( - BlockTime self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_address( + BdkAddress self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_blockchain_base( - BlockchainBase self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_blockchain( + BdkBlockchain self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_blockchain_config( - BlockchainConfig self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_derivation_path( + BdkDerivationPath self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_consensus_error( - ConsensusError self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_descriptor( + BdkDescriptor self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_database_config( - DatabaseConfig self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_descriptor_public_key( + BdkDescriptorPublicKey self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_derivation_path_base( - DerivationPathBase self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_descriptor_secret_key( + BdkDescriptorSecretKey self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_descriptor_base( - DescriptorBase self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_mnemonic( + BdkMnemonic self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_descriptor_error( - DescriptorError self, SseSerializer serializer); + 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_descriptor_public_key_base( - DescriptorPublicKeyBase self, SseSerializer serializer); + 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_secret_key_base( - DescriptorSecretKeyBase self, SseSerializer serializer); + void sse_encode_box_autoadd_descriptor_error( + DescriptorError self, SseSerializer serializer); @protected void sse_encode_box_autoadd_electrum_config( @@ -2736,17 +2842,13 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_mnemonic_base( - MnemonicBase self, SseSerializer serializer); + 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_base( - PsbtBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_psbt_sig_hash_type( PsbtSigHashType self, SseSerializer serializer); @@ -2767,10 +2869,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_rpc_sync_params( RpcSyncParams self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_script_buf_base( - ScriptBufBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_sign_options( SignOptions self, SseSerializer serializer); @@ -2783,10 +2881,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_sqlite_db_configuration( SqliteDbConfiguration self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_transaction_base( - TransactionBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_u_32(int self, SseSerializer serializer); @@ -2796,10 +2890,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_wallet_base( - WalletBase self, SseSerializer serializer); - @protected void sse_encode_change_spend_policy( ChangeSpendPolicy self, SseSerializer serializer); @@ -2812,26 +2902,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_database_config( DatabaseConfig self, SseSerializer serializer); - @protected - void sse_encode_derivation_path_base( - DerivationPathBase self, SseSerializer serializer); - - @protected - void sse_encode_descriptor_base( - DescriptorBase self, SseSerializer serializer); - @protected void sse_encode_descriptor_error( DescriptorError self, SseSerializer serializer); - @protected - void sse_encode_descriptor_public_key_base( - DescriptorPublicKeyBase self, SseSerializer serializer); - - @protected - void sse_encode_descriptor_secret_key_base( - DescriptorSecretKeyBase self, SseSerializer serializer); - @protected void sse_encode_electrum_config( ElectrumConfig self, SseSerializer serializer); @@ -2893,26 +2967,34 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_local_utxo(LocalUtxo self, SseSerializer serializer); @protected - void sse_encode_mnemonic_base(MnemonicBase self, SseSerializer serializer); + 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_network(Network self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_bdk_descriptor( + BdkDescriptor? self, SseSerializer serializer); @protected - void sse_encode_opt_String(String? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_bdk_script_buf( + BdkScriptBuf? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_address_base( - AddressBase? self, SseSerializer serializer); + 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_descriptor_base( - DescriptorBase? self, SseSerializer serializer); - @protected void sse_encode_opt_box_autoadd_f_32(double? self, SseSerializer serializer); @@ -2936,18 +3018,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_opt_box_autoadd_rpc_sync_params( RpcSyncParams? self, SseSerializer serializer); - @protected - void sse_encode_opt_box_autoadd_script_buf_base( - ScriptBufBase? self, SseSerializer serializer); - @protected void sse_encode_opt_box_autoadd_sign_options( SignOptions? self, SseSerializer serializer); - @protected - void sse_encode_opt_box_autoadd_transaction_base( - TransactionBase? self, SseSerializer serializer); - @protected void sse_encode_opt_box_autoadd_u_32(int? self, SseSerializer serializer); @@ -2963,9 +3037,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_payload(Payload self, SseSerializer serializer); - @protected - void sse_encode_psbt_base(PsbtBase self, SseSerializer serializer); - @protected void sse_encode_psbt_sig_hash_type( PsbtSigHashType self, SseSerializer serializer); @@ -2974,12 +3045,16 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_rbf_value(RbfValue self, SseSerializer serializer); @protected - void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); + void sse_encode_record_bdk_address_u_32( + (BdkAddress, int) self, SseSerializer serializer); @protected - void sse_encode_record_psbt_base_transaction_details( - (PsbtBase, TransactionDetails) self, SseSerializer serializer); + 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); @@ -2990,9 +3065,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_script_amount(ScriptAmount self, SseSerializer serializer); - @protected - void sse_encode_script_buf_base(ScriptBufBase self, SseSerializer serializer); - @protected void sse_encode_sign_options(SignOptions self, SseSerializer serializer); @@ -3004,10 +3076,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_sqlite_db_configuration( SqliteDbConfiguration self, SseSerializer serializer); - @protected - void sse_encode_transaction_base( - TransactionBase self, SseSerializer serializer); - @protected void sse_encode_transaction_details( TransactionDetails self, SseSerializer serializer); @@ -3039,9 +3107,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_variant(Variant self, SseSerializer serializer); - @protected - void sse_encode_wallet_base(WalletBase self, SseSerializer serializer); - @protected void sse_encode_witness_version( WitnessVersion self, SseSerializer serializer); @@ -3059,20 +3124,19 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { // ignore_for_file: type=lint /// generated by flutter_rust_bridge -class BdkCoreWire implements BaseWire { - factory BdkCoreWire.fromExternalLibrary(ExternalLibrary lib) => - BdkCoreWire(lib.ffiDynamicLibrary); +class CApiWire implements BaseWire { + factory CApiWire.fromExternalLibrary(ExternalLibrary lib) => + CApiWire(lib.ffiDynamicLibrary); /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) _lookup; /// The symbols are looked up in [dynamicLibrary]. - BdkCoreWire(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + CApiWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - BdkCoreWire.fromLookup( + CApiWire.fromLookup( ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; @@ -3091,193 +3155,191 @@ class BdkCoreWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); - void wire_BlockchainBase_broadcast( + void wire_bdk_blockchain_broadcast( int port_, - ffi.Pointer that, - ffi.Pointer transaction, + ffi.Pointer that, + ffi.Pointer transaction, ) { - return _wire_BlockchainBase_broadcast( + return _wire_bdk_blockchain_broadcast( port_, that, transaction, ); } - late final _wire_BlockchainBase_broadcastPtr = _lookup< + late final _wire_bdk_blockchain_broadcastPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_BlockchainBase_broadcast'); - late final _wire_BlockchainBase_broadcast = - _wire_BlockchainBase_broadcastPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_BlockchainBase_estimate_fee( + 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< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_bdk_blockchain_estimate_fee( int port_, - ffi.Pointer that, + ffi.Pointer that, int target, ) { - return _wire_BlockchainBase_estimate_fee( + return _wire_bdk_blockchain_estimate_fee( port_, that, target, ); } - late final _wire_BlockchainBase_estimate_feePtr = _lookup< + late final _wire_bdk_blockchain_estimate_feePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer, ffi.Uint64)>>( - 'frbgen_bdk_flutter_wire_BlockchainBase_estimate_fee'); - late final _wire_BlockchainBase_estimate_fee = - _wire_BlockchainBase_estimate_feePtr.asFunction< - void Function(int, ffi.Pointer, int)>(); - - void wire_BlockchainBase_get_block_hash( + 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)>(); + + void wire_bdk_blockchain_get_block_hash( int port_, - ffi.Pointer that, + ffi.Pointer that, int height, ) { - return _wire_BlockchainBase_get_block_hash( + return _wire_bdk_blockchain_get_block_hash( port_, that, height, ); } - late final _wire_BlockchainBase_get_block_hashPtr = _lookup< + late final _wire_bdk_blockchain_get_block_hashPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer, ffi.Uint32)>>( - 'frbgen_bdk_flutter_wire_BlockchainBase_get_block_hash'); - late final _wire_BlockchainBase_get_block_hash = - _wire_BlockchainBase_get_block_hashPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); - - void wire_BlockchainBase_get_height( + 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< + void Function(int, ffi.Pointer, int)>(); + + void wire_bdk_blockchain_get_height( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_BlockchainBase_get_height( + return _wire_bdk_blockchain_get_height( port_, that, ); } - late final _wire_BlockchainBase_get_heightPtr = _lookup< + late final _wire_bdk_blockchain_get_heightPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_BlockchainBase_get_height'); - late final _wire_BlockchainBase_get_height = - _wire_BlockchainBase_get_heightPtr.asFunction< - void Function(int, ffi.Pointer)>(); + 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_BlockchainBase_new( + void wire_bdk_blockchain_new( int port_, ffi.Pointer blockchain_config, ) { - return _wire_BlockchainBase_new( + return _wire_bdk_blockchain_new( port_, blockchain_config, ); } - late final _wire_BlockchainBase_newPtr = _lookup< + late final _wire_bdk_blockchain_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_BlockchainBase_new'); - late final _wire_BlockchainBase_new = _wire_BlockchainBase_newPtr.asFunction< + '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_DescriptorBase_as_string( + void wire_bdk_descriptor_as_string( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_DescriptorBase_as_string( + return _wire_bdk_descriptor_as_string( port_, that, ); } - late final _wire_DescriptorBase_as_stringPtr = _lookup< + late final _wire_bdk_descriptor_as_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorBase_as_string'); - late final _wire_DescriptorBase_as_string = _wire_DescriptorBase_as_stringPtr - .asFunction)>(); + 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)>(); - void wire_DescriptorBase_as_string_private( + void wire_bdk_descriptor_as_string_private( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_DescriptorBase_as_string_private( + return _wire_bdk_descriptor_as_string_private( port_, that, ); } - late final _wire_DescriptorBase_as_string_privatePtr = _lookup< + late final _wire_bdk_descriptor_as_string_privatePtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorBase_as_string_private'); - late final _wire_DescriptorBase_as_string_private = - _wire_DescriptorBase_as_string_privatePtr.asFunction< - void Function(int, ffi.Pointer)>(); + 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_DescriptorBase_max_satisfaction_weight( + void wire_bdk_descriptor_max_satisfaction_weight( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_DescriptorBase_max_satisfaction_weight( + return _wire_bdk_descriptor_max_satisfaction_weight( port_, that, ); } - late final _wire_DescriptorBase_max_satisfaction_weightPtr = _lookup< + late final _wire_bdk_descriptor_max_satisfaction_weightPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorBase_max_satisfaction_weight'); - late final _wire_DescriptorBase_max_satisfaction_weight = - _wire_DescriptorBase_max_satisfaction_weightPtr.asFunction< - void Function(int, ffi.Pointer)>(); + 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)>(); - void wire_DescriptorBase_new( + void wire_bdk_descriptor_new( int port_, ffi.Pointer descriptor, int network, ) { - return _wire_DescriptorBase_new( + return _wire_bdk_descriptor_new( port_, descriptor, network, ); } - late final _wire_DescriptorBase_newPtr = _lookup< + late final _wire_bdk_descriptor_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_DescriptorBase_new'); - late final _wire_DescriptorBase_new = _wire_DescriptorBase_newPtr.asFunction< + 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)>(); - void wire_DescriptorBase_new_bip44( + void wire_bdk_descriptor_new_bip44( int port_, - ffi.Pointer secret_key, + ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip44( + return _wire_bdk_descriptor_new_bip44( port_, secret_key, keychain_kind, @@ -3285,26 +3347,26 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip44Ptr = _lookup< + late final _wire_bdk_descriptor_new_bip44Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_DescriptorBase_new_bip44'); - late final _wire_DescriptorBase_new_bip44 = - _wire_DescriptorBase_new_bip44Ptr.asFunction< - void Function(int, ffi.Pointer, + ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44'); + late final _wire_bdk_descriptor_new_bip44 = + _wire_bdk_descriptor_new_bip44Ptr.asFunction< + void Function(int, ffi.Pointer, int, int)>(); - void wire_DescriptorBase_new_bip44_public( + void wire_bdk_descriptor_new_bip44_public( int port_, - ffi.Pointer public_key, + ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip44_public( + return _wire_bdk_descriptor_new_bip44_public( port_, public_key, fingerprint, @@ -3313,27 +3375,27 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip44_publicPtr = _lookup< + late final _wire_bdk_descriptor_new_bip44_publicPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_DescriptorBase_new_bip44_public'); - late final _wire_DescriptorBase_new_bip44_public = - _wire_DescriptorBase_new_bip44_publicPtr.asFunction< - void Function(int, ffi.Pointer, + '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)>(); - void wire_DescriptorBase_new_bip49( + void wire_bdk_descriptor_new_bip49( int port_, - ffi.Pointer secret_key, + ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip49( + return _wire_bdk_descriptor_new_bip49( port_, secret_key, keychain_kind, @@ -3341,26 +3403,26 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip49Ptr = _lookup< + late final _wire_bdk_descriptor_new_bip49Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_DescriptorBase_new_bip49'); - late final _wire_DescriptorBase_new_bip49 = - _wire_DescriptorBase_new_bip49Ptr.asFunction< - void Function(int, ffi.Pointer, + ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49'); + late final _wire_bdk_descriptor_new_bip49 = + _wire_bdk_descriptor_new_bip49Ptr.asFunction< + void Function(int, ffi.Pointer, int, int)>(); - void wire_DescriptorBase_new_bip49_public( + void wire_bdk_descriptor_new_bip49_public( int port_, - ffi.Pointer public_key, + ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip49_public( + return _wire_bdk_descriptor_new_bip49_public( port_, public_key, fingerprint, @@ -3369,27 +3431,27 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip49_publicPtr = _lookup< + late final _wire_bdk_descriptor_new_bip49_publicPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_DescriptorBase_new_bip49_public'); - late final _wire_DescriptorBase_new_bip49_public = - _wire_DescriptorBase_new_bip49_publicPtr.asFunction< - void Function(int, ffi.Pointer, + '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)>(); - void wire_DescriptorBase_new_bip84( + void wire_bdk_descriptor_new_bip84( int port_, - ffi.Pointer secret_key, + ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip84( + return _wire_bdk_descriptor_new_bip84( port_, secret_key, keychain_kind, @@ -3397,26 +3459,26 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip84Ptr = _lookup< + late final _wire_bdk_descriptor_new_bip84Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_DescriptorBase_new_bip84'); - late final _wire_DescriptorBase_new_bip84 = - _wire_DescriptorBase_new_bip84Ptr.asFunction< - void Function(int, ffi.Pointer, + ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84'); + late final _wire_bdk_descriptor_new_bip84 = + _wire_bdk_descriptor_new_bip84Ptr.asFunction< + void Function(int, ffi.Pointer, int, int)>(); - void wire_DescriptorBase_new_bip84_public( + void wire_bdk_descriptor_new_bip84_public( int port_, - ffi.Pointer public_key, + ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip84_public( + return _wire_bdk_descriptor_new_bip84_public( port_, public_key, fingerprint, @@ -3425,27 +3487,27 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip84_publicPtr = _lookup< + late final _wire_bdk_descriptor_new_bip84_publicPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_DescriptorBase_new_bip84_public'); - late final _wire_DescriptorBase_new_bip84_public = - _wire_DescriptorBase_new_bip84_publicPtr.asFunction< - void Function(int, ffi.Pointer, + '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)>(); - void wire_DescriptorBase_new_bip86( + void wire_bdk_descriptor_new_bip86( int port_, - ffi.Pointer secret_key, + ffi.Pointer secret_key, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip86( + return _wire_bdk_descriptor_new_bip86( port_, secret_key, keychain_kind, @@ -3453,26 +3515,26 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip86Ptr = _lookup< + late final _wire_bdk_descriptor_new_bip86Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Int32, - ffi.Int32)>>('frbgen_bdk_flutter_wire_DescriptorBase_new_bip86'); - late final _wire_DescriptorBase_new_bip86 = - _wire_DescriptorBase_new_bip86Ptr.asFunction< - void Function(int, ffi.Pointer, + ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86'); + late final _wire_bdk_descriptor_new_bip86 = + _wire_bdk_descriptor_new_bip86Ptr.asFunction< + void Function(int, ffi.Pointer, int, int)>(); - void wire_DescriptorBase_new_bip86_public( + void wire_bdk_descriptor_new_bip86_public( int port_, - ffi.Pointer public_key, + ffi.Pointer public_key, ffi.Pointer fingerprint, int keychain_kind, int network, ) { - return _wire_DescriptorBase_new_bip86_public( + return _wire_bdk_descriptor_new_bip86_public( port_, public_key, fingerprint, @@ -3481,173 +3543,173 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorBase_new_bip86_publicPtr = _lookup< + late final _wire_bdk_descriptor_new_bip86_publicPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>( - 'frbgen_bdk_flutter_wire_DescriptorBase_new_bip86_public'); - late final _wire_DescriptorBase_new_bip86_public = - _wire_DescriptorBase_new_bip86_publicPtr.asFunction< - void Function(int, ffi.Pointer, + '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)>(); - void wire_DerivationPathBase_from_string( + void wire_bdk_derivation_path_from_string( int port_, ffi.Pointer path, ) { - return _wire_DerivationPathBase_from_string( + return _wire_bdk_derivation_path_from_string( port_, path, ); } - late final _wire_DerivationPathBase_from_stringPtr = _lookup< + late final _wire_bdk_derivation_path_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DerivationPathBase_from_string'); - late final _wire_DerivationPathBase_from_string = - _wire_DerivationPathBase_from_stringPtr.asFunction< + 'frbgen_bdk_flutter_wire_bdk_derivation_path_from_string'); + late final _wire_bdk_derivation_path_from_string = + _wire_bdk_derivation_path_from_stringPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_DescriptorPublicKeyBase_as_string( + void wire_bdk_descriptor_public_key_as_string( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_DescriptorPublicKeyBase_as_string( + return _wire_bdk_descriptor_public_key_as_string( port_, that, ); } - late final _wire_DescriptorPublicKeyBase_as_stringPtr = _lookup< + late final _wire_bdk_descriptor_public_key_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_as_string'); - late final _wire_DescriptorPublicKeyBase_as_string = - _wire_DescriptorPublicKeyBase_as_stringPtr.asFunction< + 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)>(); + int, ffi.Pointer)>(); - void wire_DescriptorPublicKeyBase_derive( + void wire_bdk_descriptor_public_key_derive( int port_, - ffi.Pointer ptr, - ffi.Pointer path, + ffi.Pointer ptr, + ffi.Pointer path, ) { - return _wire_DescriptorPublicKeyBase_derive( + return _wire_bdk_descriptor_public_key_derive( port_, ptr, path, ); } - late final _wire_DescriptorPublicKeyBase_derivePtr = _lookup< + late final _wire_bdk_descriptor_public_key_derivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_derive'); - late final _wire_DescriptorPublicKeyBase_derive = - _wire_DescriptorPublicKeyBase_derivePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_DescriptorPublicKeyBase_extend( + 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< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_bdk_descriptor_public_key_extend( int port_, - ffi.Pointer ptr, - ffi.Pointer path, + ffi.Pointer ptr, + ffi.Pointer path, ) { - return _wire_DescriptorPublicKeyBase_extend( + return _wire_bdk_descriptor_public_key_extend( port_, ptr, path, ); } - late final _wire_DescriptorPublicKeyBase_extendPtr = _lookup< + late final _wire_bdk_descriptor_public_key_extendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_extend'); - late final _wire_DescriptorPublicKeyBase_extend = - _wire_DescriptorPublicKeyBase_extendPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_DescriptorPublicKeyBase_from_string( + 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< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_bdk_descriptor_public_key_from_string( int port_, ffi.Pointer public_key, ) { - return _wire_DescriptorPublicKeyBase_from_string( + return _wire_bdk_descriptor_public_key_from_string( port_, public_key, ); } - late final _wire_DescriptorPublicKeyBase_from_stringPtr = _lookup< + late final _wire_bdk_descriptor_public_key_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_from_string'); - late final _wire_DescriptorPublicKeyBase_from_string = - _wire_DescriptorPublicKeyBase_from_stringPtr.asFunction< + '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)>(); - void wire_DescriptorSecretKeyBase_as_public( + void wire_bdk_descriptor_secret_key_as_public( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire_DescriptorSecretKeyBase_as_public( + return _wire_bdk_descriptor_secret_key_as_public( port_, ptr, ); } - late final _wire_DescriptorSecretKeyBase_as_publicPtr = _lookup< + late final _wire_bdk_descriptor_secret_key_as_publicPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_public'); - late final _wire_DescriptorSecretKeyBase_as_public = - _wire_DescriptorSecretKeyBase_as_publicPtr.asFunction< + 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)>(); + int, ffi.Pointer)>(); - void wire_DescriptorSecretKeyBase_as_string( + void wire_bdk_descriptor_secret_key_as_string( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_DescriptorSecretKeyBase_as_string( + return _wire_bdk_descriptor_secret_key_as_string( port_, that, ); } - late final _wire_DescriptorSecretKeyBase_as_stringPtr = _lookup< + late final _wire_bdk_descriptor_secret_key_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_string'); - late final _wire_DescriptorSecretKeyBase_as_string = - _wire_DescriptorSecretKeyBase_as_stringPtr.asFunction< + 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)>(); + int, ffi.Pointer)>(); - void wire_DescriptorSecretKeyBase_create( + void wire_bdk_descriptor_secret_key_create( int port_, int network, - ffi.Pointer mnemonic, + ffi.Pointer mnemonic, ffi.Pointer password, ) { - return _wire_DescriptorSecretKeyBase_create( + return _wire_bdk_descriptor_secret_key_create( port_, network, mnemonic, @@ -3655,853 +3717,882 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_DescriptorSecretKeyBase_createPtr = _lookup< + late final _wire_bdk_descriptor_secret_key_createPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Int32, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_create'); - late final _wire_DescriptorSecretKeyBase_create = - _wire_DescriptorSecretKeyBase_createPtr.asFunction< - void Function(int, int, 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< + void Function(int, int, ffi.Pointer, ffi.Pointer)>(); - void wire_DescriptorSecretKeyBase_derive( + void wire_bdk_descriptor_secret_key_derive( int port_, - ffi.Pointer ptr, - ffi.Pointer path, + ffi.Pointer ptr, + ffi.Pointer path, ) { - return _wire_DescriptorSecretKeyBase_derive( + return _wire_bdk_descriptor_secret_key_derive( port_, ptr, path, ); } - late final _wire_DescriptorSecretKeyBase_derivePtr = _lookup< + late final _wire_bdk_descriptor_secret_key_derivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_derive'); - late final _wire_DescriptorSecretKeyBase_derive = - _wire_DescriptorSecretKeyBase_derivePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_DescriptorSecretKeyBase_extend( + 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< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_bdk_descriptor_secret_key_extend( int port_, - ffi.Pointer ptr, - ffi.Pointer path, + ffi.Pointer ptr, + ffi.Pointer path, ) { - return _wire_DescriptorSecretKeyBase_extend( + return _wire_bdk_descriptor_secret_key_extend( port_, ptr, path, ); } - late final _wire_DescriptorSecretKeyBase_extendPtr = _lookup< + late final _wire_bdk_descriptor_secret_key_extendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_extend'); - late final _wire_DescriptorSecretKeyBase_extend = - _wire_DescriptorSecretKeyBase_extendPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_DescriptorSecretKeyBase_from_string( + 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< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_bdk_descriptor_secret_key_from_string( int port_, ffi.Pointer secret_key, ) { - return _wire_DescriptorSecretKeyBase_from_string( + return _wire_bdk_descriptor_secret_key_from_string( port_, secret_key, ); } - late final _wire_DescriptorSecretKeyBase_from_stringPtr = _lookup< + late final _wire_bdk_descriptor_secret_key_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_from_string'); - late final _wire_DescriptorSecretKeyBase_from_string = - _wire_DescriptorSecretKeyBase_from_stringPtr.asFunction< + '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)>(); - void wire_DescriptorSecretKeyBase_secret_bytes( + void wire_bdk_descriptor_secret_key_secret_bytes( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_DescriptorSecretKeyBase_secret_bytes( + return _wire_bdk_descriptor_secret_key_secret_bytes( port_, that, ); } - late final _wire_DescriptorSecretKeyBase_secret_bytesPtr = _lookup< + late final _wire_bdk_descriptor_secret_key_secret_bytesPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_secret_bytes'); - late final _wire_DescriptorSecretKeyBase_secret_bytes = - _wire_DescriptorSecretKeyBase_secret_bytesPtr.asFunction< + 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)>(); + int, ffi.Pointer)>(); - void wire_MnemonicBase_as_string( + void wire_bdk_mnemonic_as_string( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_MnemonicBase_as_string( + return _wire_bdk_mnemonic_as_string( port_, that, ); } - late final _wire_MnemonicBase_as_stringPtr = _lookup< + late final _wire_bdk_mnemonic_as_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_MnemonicBase_as_string'); - late final _wire_MnemonicBase_as_string = _wire_MnemonicBase_as_stringPtr - .asFunction)>(); + 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_MnemonicBase_from_entropy( + void wire_bdk_mnemonic_from_entropy( int port_, ffi.Pointer entropy, ) { - return _wire_MnemonicBase_from_entropy( + return _wire_bdk_mnemonic_from_entropy( port_, entropy, ); } - late final _wire_MnemonicBase_from_entropyPtr = _lookup< + late final _wire_bdk_mnemonic_from_entropyPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_MnemonicBase_from_entropy'); - late final _wire_MnemonicBase_from_entropy = - _wire_MnemonicBase_from_entropyPtr.asFunction< + 'frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy'); + late final _wire_bdk_mnemonic_from_entropy = + _wire_bdk_mnemonic_from_entropyPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_MnemonicBase_from_string( + void wire_bdk_mnemonic_from_string( int port_, ffi.Pointer mnemonic, ) { - return _wire_MnemonicBase_from_string( + return _wire_bdk_mnemonic_from_string( port_, mnemonic, ); } - late final _wire_MnemonicBase_from_stringPtr = _lookup< + late final _wire_bdk_mnemonic_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_MnemonicBase_from_string'); - late final _wire_MnemonicBase_from_string = - _wire_MnemonicBase_from_stringPtr.asFunction< + 'frbgen_bdk_flutter_wire_bdk_mnemonic_from_string'); + late final _wire_bdk_mnemonic_from_string = + _wire_bdk_mnemonic_from_stringPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_MnemonicBase_new( + void wire_bdk_mnemonic_new( int port_, int word_count, ) { - return _wire_MnemonicBase_new( + return _wire_bdk_mnemonic_new( port_, word_count, ); } - late final _wire_MnemonicBase_newPtr = + late final _wire_bdk_mnemonic_newPtr = _lookup>( - 'frbgen_bdk_flutter_wire_MnemonicBase_new'); - late final _wire_MnemonicBase_new = - _wire_MnemonicBase_newPtr.asFunction(); + 'frbgen_bdk_flutter_wire_bdk_mnemonic_new'); + late final _wire_bdk_mnemonic_new = + _wire_bdk_mnemonic_newPtr.asFunction(); - void wire_PsbtBase_combine( + void wire_bdk_psbt_combine( int port_, - ffi.Pointer ptr, - ffi.Pointer other, + ffi.Pointer ptr, + ffi.Pointer other, ) { - return _wire_PsbtBase_combine( + return _wire_bdk_psbt_combine( port_, ptr, other, ); } - late final _wire_PsbtBase_combinePtr = _lookup< + late final _wire_bdk_psbt_combinePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_combine'); - late final _wire_PsbtBase_combine = _wire_PsbtBase_combinePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_PsbtBase_extract_tx( + 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)>(); + + void wire_bdk_psbt_extract_tx( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire_PsbtBase_extract_tx( + return _wire_bdk_psbt_extract_tx( port_, ptr, ); } - late final _wire_PsbtBase_extract_txPtr = _lookup< + late final _wire_bdk_psbt_extract_txPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_extract_tx'); - late final _wire_PsbtBase_extract_tx = _wire_PsbtBase_extract_txPtr - .asFunction)>(); + 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)>(); - void wire_PsbtBase_fee_amount( + void wire_bdk_psbt_fee_amount( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_PsbtBase_fee_amount( + return _wire_bdk_psbt_fee_amount( port_, that, ); } - late final _wire_PsbtBase_fee_amountPtr = _lookup< + late final _wire_bdk_psbt_fee_amountPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_fee_amount'); - late final _wire_PsbtBase_fee_amount = _wire_PsbtBase_fee_amountPtr - .asFunction)>(); + 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)>(); - void wire_PsbtBase_fee_rate( + void wire_bdk_psbt_fee_rate( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_PsbtBase_fee_rate( + return _wire_bdk_psbt_fee_rate( port_, that, ); } - late final _wire_PsbtBase_fee_ratePtr = _lookup< + late final _wire_bdk_psbt_fee_ratePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_fee_rate'); - late final _wire_PsbtBase_fee_rate = _wire_PsbtBase_fee_ratePtr - .asFunction)>(); + 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)>(); - void wire_PsbtBase_from_str( + void wire_bdk_psbt_from_str( int port_, ffi.Pointer psbt_base64, ) { - return _wire_PsbtBase_from_str( + return _wire_bdk_psbt_from_str( port_, psbt_base64, ); } - late final _wire_PsbtBase_from_strPtr = _lookup< + late final _wire_bdk_psbt_from_strPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_from_str'); - late final _wire_PsbtBase_from_str = _wire_PsbtBase_from_strPtr.asFunction< + '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)>(); - void wire_PsbtBase_json_serialize( + void wire_bdk_psbt_json_serialize( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_PsbtBase_json_serialize( + return _wire_bdk_psbt_json_serialize( port_, that, ); } - late final _wire_PsbtBase_json_serializePtr = _lookup< + late final _wire_bdk_psbt_json_serializePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_json_serialize'); - late final _wire_PsbtBase_json_serialize = _wire_PsbtBase_json_serializePtr - .asFunction)>(); + 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)>(); - void wire_PsbtBase_serialize( + void wire_bdk_psbt_serialize( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_PsbtBase_serialize( + return _wire_bdk_psbt_serialize( port_, that, ); } - late final _wire_PsbtBase_serializePtr = _lookup< + late final _wire_bdk_psbt_serializePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_serialize'); - late final _wire_PsbtBase_serialize = _wire_PsbtBase_serializePtr - .asFunction)>(); + 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)>(); - void wire_PsbtBase_txid( + void wire_bdk_psbt_txid( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_PsbtBase_txid( + return _wire_bdk_psbt_txid( port_, that, ); } - late final _wire_PsbtBase_txidPtr = _lookup< + late final _wire_bdk_psbt_txidPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_PsbtBase_txid'); - late final _wire_PsbtBase_txid = _wire_PsbtBase_txidPtr - .asFunction)>(); + 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)>(); - void wire_AddressBase_as_string( + void wire_bdk_address_as_string( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_AddressBase_as_string( + return _wire_bdk_address_as_string( port_, that, ); } - late final _wire_AddressBase_as_stringPtr = _lookup< + late final _wire_bdk_address_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_AddressBase_as_string'); - late final _wire_AddressBase_as_string = _wire_AddressBase_as_stringPtr - .asFunction)>(); + 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_AddressBase_from_script( + void wire_bdk_address_from_script( int port_, - ffi.Pointer script, + ffi.Pointer script, int network, ) { - return _wire_AddressBase_from_script( + return _wire_bdk_address_from_script( port_, script, network, ); } - late final _wire_AddressBase_from_scriptPtr = _lookup< + late final _wire_bdk_address_from_scriptPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_AddressBase_from_script'); - late final _wire_AddressBase_from_script = - _wire_AddressBase_from_scriptPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + 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< + void Function(int, ffi.Pointer, int)>(); - void wire_AddressBase_from_string( + void wire_bdk_address_from_string( int port_, ffi.Pointer address, int network, ) { - return _wire_AddressBase_from_string( + return _wire_bdk_address_from_string( port_, address, network, ); } - late final _wire_AddressBase_from_stringPtr = _lookup< + late final _wire_bdk_address_from_stringPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer, - ffi.Int32)>>('frbgen_bdk_flutter_wire_AddressBase_from_string'); - late final _wire_AddressBase_from_string = - _wire_AddressBase_from_stringPtr.asFunction< + ffi.Int32)>>('frbgen_bdk_flutter_wire_bdk_address_from_string'); + late final _wire_bdk_address_from_string = + _wire_bdk_address_from_stringPtr.asFunction< void Function( int, ffi.Pointer, int)>(); - void wire_AddressBase_is_valid_for_network( + void wire_bdk_address_is_valid_for_network( int port_, - ffi.Pointer that, + ffi.Pointer that, int network, ) { - return _wire_AddressBase_is_valid_for_network( + return _wire_bdk_address_is_valid_for_network( port_, that, network, ); } - late final _wire_AddressBase_is_valid_for_networkPtr = _lookup< + 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_AddressBase_is_valid_for_network'); - late final _wire_AddressBase_is_valid_for_network = - _wire_AddressBase_is_valid_for_networkPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + 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)>(); - void wire_AddressBase_network( + void wire_bdk_address_network( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_AddressBase_network( + return _wire_bdk_address_network( port_, that, ); } - late final _wire_AddressBase_networkPtr = _lookup< + late final _wire_bdk_address_networkPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_AddressBase_network'); - late final _wire_AddressBase_network = _wire_AddressBase_networkPtr - .asFunction)>(); + 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_AddressBase_payload( + void wire_bdk_address_payload( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_AddressBase_payload( + return _wire_bdk_address_payload( port_, that, ); } - late final _wire_AddressBase_payloadPtr = _lookup< + late final _wire_bdk_address_payloadPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_AddressBase_payload'); - late final _wire_AddressBase_payload = _wire_AddressBase_payloadPtr - .asFunction)>(); + 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_AddressBase_script( + void wire_bdk_address_script( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire_AddressBase_script( + return _wire_bdk_address_script( port_, ptr, ); } - late final _wire_AddressBase_scriptPtr = _lookup< + late final _wire_bdk_address_scriptPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_AddressBase_script'); - late final _wire_AddressBase_script = _wire_AddressBase_scriptPtr - .asFunction)>(); + 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_AddressBase_to_qr_uri( + void wire_bdk_address_to_qr_uri( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_AddressBase_to_qr_uri( + return _wire_bdk_address_to_qr_uri( port_, that, ); } - late final _wire_AddressBase_to_qr_uriPtr = _lookup< + late final _wire_bdk_address_to_qr_uriPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_AddressBase_to_qr_uri'); - late final _wire_AddressBase_to_qr_uri = _wire_AddressBase_to_qr_uriPtr - .asFunction)>(); + 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_ScriptBufBase_empty( + void wire_bdk_script_buf_empty( int port_, ) { - return _wire_ScriptBufBase_empty( + return _wire_bdk_script_buf_empty( port_, ); } - late final _wire_ScriptBufBase_emptyPtr = + late final _wire_bdk_script_buf_emptyPtr = _lookup>( - 'frbgen_bdk_flutter_wire_ScriptBufBase_empty'); - late final _wire_ScriptBufBase_empty = - _wire_ScriptBufBase_emptyPtr.asFunction(); + 'frbgen_bdk_flutter_wire_bdk_script_buf_empty'); + late final _wire_bdk_script_buf_empty = + _wire_bdk_script_buf_emptyPtr.asFunction(); - void wire_ScriptBufBase_from_hex( + void wire_bdk_script_buf_from_hex( int port_, ffi.Pointer s, ) { - return _wire_ScriptBufBase_from_hex( + return _wire_bdk_script_buf_from_hex( port_, s, ); } - late final _wire_ScriptBufBase_from_hexPtr = _lookup< + late final _wire_bdk_script_buf_from_hexPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_ScriptBufBase_from_hex'); - late final _wire_ScriptBufBase_from_hex = - _wire_ScriptBufBase_from_hexPtr.asFunction< + 'frbgen_bdk_flutter_wire_bdk_script_buf_from_hex'); + late final _wire_bdk_script_buf_from_hex = + _wire_bdk_script_buf_from_hexPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_ScriptBufBase_with_capacity( + void wire_bdk_script_buf_with_capacity( int port_, int capacity, ) { - return _wire_ScriptBufBase_with_capacity( + return _wire_bdk_script_buf_with_capacity( port_, capacity, ); } - late final _wire_ScriptBufBase_with_capacityPtr = + late final _wire_bdk_script_buf_with_capacityPtr = _lookup>( - 'frbgen_bdk_flutter_wire_ScriptBufBase_with_capacity'); - late final _wire_ScriptBufBase_with_capacity = - _wire_ScriptBufBase_with_capacityPtr + 'frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity'); + late final _wire_bdk_script_buf_with_capacity = + _wire_bdk_script_buf_with_capacityPtr .asFunction(); - void wire_TransactionBase_input( + void wire_bdk_transaction_from_bytes( + int port_, + ffi.Pointer transaction_bytes, + ) { + return _wire_bdk_transaction_from_bytes( + port_, + transaction_bytes, + ); + } + + late final _wire_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< + void Function(int, ffi.Pointer)>(); + + void wire_bdk_transaction_input( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_input( + return _wire_bdk_transaction_input( port_, that, ); } - late final _wire_TransactionBase_inputPtr = _lookup< + late final _wire_bdk_transaction_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_input'); - late final _wire_TransactionBase_input = _wire_TransactionBase_inputPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_input'); + late final _wire_bdk_transaction_input = _wire_bdk_transaction_inputPtr + .asFunction)>(); - void wire_TransactionBase_is_coin_base( + void wire_bdk_transaction_is_coin_base( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_is_coin_base( + return _wire_bdk_transaction_is_coin_base( port_, that, ); } - late final _wire_TransactionBase_is_coin_basePtr = _lookup< + late final _wire_bdk_transaction_is_coin_basePtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_is_coin_base'); - late final _wire_TransactionBase_is_coin_base = - _wire_TransactionBase_is_coin_basePtr.asFunction< - void Function(int, ffi.Pointer)>(); + 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< + void Function(int, ffi.Pointer)>(); - void wire_TransactionBase_is_explicitly_rbf( + void wire_bdk_transaction_is_explicitly_rbf( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_is_explicitly_rbf( + return _wire_bdk_transaction_is_explicitly_rbf( port_, that, ); } - late final _wire_TransactionBase_is_explicitly_rbfPtr = _lookup< + late final _wire_bdk_transaction_is_explicitly_rbfPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_is_explicitly_rbf'); - late final _wire_TransactionBase_is_explicitly_rbf = - _wire_TransactionBase_is_explicitly_rbfPtr.asFunction< - void Function(int, ffi.Pointer)>(); + 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< + void Function(int, ffi.Pointer)>(); - void wire_TransactionBase_is_lock_time_enabled( + void wire_bdk_transaction_is_lock_time_enabled( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_is_lock_time_enabled( + return _wire_bdk_transaction_is_lock_time_enabled( port_, that, ); } - late final _wire_TransactionBase_is_lock_time_enabledPtr = _lookup< + late final _wire_bdk_transaction_is_lock_time_enabledPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_is_lock_time_enabled'); - late final _wire_TransactionBase_is_lock_time_enabled = - _wire_TransactionBase_is_lock_time_enabledPtr.asFunction< - void Function(int, ffi.Pointer)>(); + 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)>(); - void wire_TransactionBase_lock_time( + void wire_bdk_transaction_lock_time( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_lock_time( + return _wire_bdk_transaction_lock_time( port_, that, ); } - late final _wire_TransactionBase_lock_timePtr = _lookup< + late final _wire_bdk_transaction_lock_timePtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_lock_time'); - late final _wire_TransactionBase_lock_time = - _wire_TransactionBase_lock_timePtr.asFunction< - void Function(int, ffi.Pointer)>(); + 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< + void Function(int, ffi.Pointer)>(); - void wire_TransactionBase_new( + void wire_bdk_transaction_new( int port_, - ffi.Pointer transaction_bytes, + int version, + ffi.Pointer lock_time, + ffi.Pointer input, + ffi.Pointer output, ) { - return _wire_TransactionBase_new( + return _wire_bdk_transaction_new( port_, - transaction_bytes, + version, + lock_time, + input, + output, ); } - late final _wire_TransactionBase_newPtr = _lookup< + late final _wire_bdk_transaction_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_new'); - late final _wire_TransactionBase_new = - _wire_TransactionBase_newPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_new'); + late final _wire_bdk_transaction_new = + _wire_bdk_transaction_newPtr.asFunction< + void Function( + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_TransactionBase_output( + void wire_bdk_transaction_output( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_output( + return _wire_bdk_transaction_output( port_, that, ); } - late final _wire_TransactionBase_outputPtr = _lookup< + late final _wire_bdk_transaction_outputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_output'); - late final _wire_TransactionBase_output = _wire_TransactionBase_outputPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_output'); + late final _wire_bdk_transaction_output = _wire_bdk_transaction_outputPtr + .asFunction)>(); - void wire_TransactionBase_serialize( + void wire_bdk_transaction_serialize( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_serialize( + return _wire_bdk_transaction_serialize( port_, that, ); } - late final _wire_TransactionBase_serializePtr = _lookup< + late final _wire_bdk_transaction_serializePtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_serialize'); - late final _wire_TransactionBase_serialize = - _wire_TransactionBase_serializePtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_serialize'); + late final _wire_bdk_transaction_serialize = + _wire_bdk_transaction_serializePtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_TransactionBase_size( + void wire_bdk_transaction_size( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_size( + return _wire_bdk_transaction_size( port_, that, ); } - late final _wire_TransactionBase_sizePtr = _lookup< + late final _wire_bdk_transaction_sizePtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_size'); - late final _wire_TransactionBase_size = _wire_TransactionBase_sizePtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_size'); + late final _wire_bdk_transaction_size = _wire_bdk_transaction_sizePtr + .asFunction)>(); - void wire_TransactionBase_txid( + void wire_bdk_transaction_txid( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_txid( + return _wire_bdk_transaction_txid( port_, that, ); } - late final _wire_TransactionBase_txidPtr = _lookup< + late final _wire_bdk_transaction_txidPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_txid'); - late final _wire_TransactionBase_txid = _wire_TransactionBase_txidPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_txid'); + late final _wire_bdk_transaction_txid = _wire_bdk_transaction_txidPtr + .asFunction)>(); - void wire_TransactionBase_version( + void wire_bdk_transaction_version( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_version( + return _wire_bdk_transaction_version( port_, that, ); } - late final _wire_TransactionBase_versionPtr = _lookup< + late final _wire_bdk_transaction_versionPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_version'); - late final _wire_TransactionBase_version = _wire_TransactionBase_versionPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_version'); + late final _wire_bdk_transaction_version = _wire_bdk_transaction_versionPtr + .asFunction)>(); - void wire_TransactionBase_vsize( + void wire_bdk_transaction_vsize( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_vsize( + return _wire_bdk_transaction_vsize( port_, that, ); } - late final _wire_TransactionBase_vsizePtr = _lookup< + late final _wire_bdk_transaction_vsizePtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_vsize'); - late final _wire_TransactionBase_vsize = _wire_TransactionBase_vsizePtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_vsize'); + late final _wire_bdk_transaction_vsize = _wire_bdk_transaction_vsizePtr + .asFunction)>(); - void wire_TransactionBase_weight( + void wire_bdk_transaction_weight( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_TransactionBase_weight( + return _wire_bdk_transaction_weight( port_, that, ); } - late final _wire_TransactionBase_weightPtr = _lookup< + late final _wire_bdk_transaction_weightPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_TransactionBase_weight'); - late final _wire_TransactionBase_weight = _wire_TransactionBase_weightPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_bdk_flutter_wire_bdk_transaction_weight'); + late final _wire_bdk_transaction_weight = _wire_bdk_transaction_weightPtr + .asFunction)>(); - void wire_WalletBase_get_address( + void wire_bdk_wallet_get_address( int port_, - ffi.Pointer that, + ffi.Pointer ptr, ffi.Pointer address_index, ) { - return _wire_WalletBase_get_address( + return _wire_bdk_wallet_get_address( port_, - that, + ptr, address_index, ); } - late final _wire_WalletBase_get_addressPtr = _lookup< + late final _wire_bdk_wallet_get_addressPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_get_address'); - late final _wire_WalletBase_get_address = - _wire_WalletBase_get_addressPtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_bdk_flutter_wire_bdk_wallet_get_address'); + late final _wire_bdk_wallet_get_address = + _wire_bdk_wallet_get_addressPtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_WalletBase_get_balance( + void wire_bdk_wallet_get_balance( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_WalletBase_get_balance( + return _wire_bdk_wallet_get_balance( port_, that, ); } - late final _wire_WalletBase_get_balancePtr = _lookup< + late final _wire_bdk_wallet_get_balancePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_get_balance'); - late final _wire_WalletBase_get_balance = _wire_WalletBase_get_balancePtr - .asFunction)>(); + 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)>(); - void wire_WalletBase_get_descriptor_for_keychain( + void wire_bdk_wallet_get_descriptor_for_keychain( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, int keychain, ) { - return _wire_WalletBase_get_descriptor_for_keychain( + return _wire_bdk_wallet_get_descriptor_for_keychain( port_, ptr, keychain, ); } - late final _wire_WalletBase_get_descriptor_for_keychainPtr = _lookup< + 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_WalletBase_get_descriptor_for_keychain'); - late final _wire_WalletBase_get_descriptor_for_keychain = - _wire_WalletBase_get_descriptor_for_keychainPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + 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)>(); - void wire_WalletBase_get_internal_address( + void wire_bdk_wallet_get_internal_address( int port_, - ffi.Pointer that, + ffi.Pointer ptr, ffi.Pointer address_index, ) { - return _wire_WalletBase_get_internal_address( + return _wire_bdk_wallet_get_internal_address( port_, - that, + ptr, address_index, ); } - late final _wire_WalletBase_get_internal_addressPtr = _lookup< + late final _wire_bdk_wallet_get_internal_addressPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_get_internal_address'); - late final _wire_WalletBase_get_internal_address = - _wire_WalletBase_get_internal_addressPtr.asFunction< - void Function(int, 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< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_WalletBase_get_psbt_input( + void wire_bdk_wallet_get_psbt_input( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer utxo, bool only_witness_utxo, ffi.Pointer sighash_type, ) { - return _wire_WalletBase_get_psbt_input( + return _wire_bdk_wallet_get_psbt_input( port_, that, utxo, @@ -4510,108 +4601,108 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_WalletBase_get_psbt_inputPtr = _lookup< + late final _wire_bdk_wallet_get_psbt_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_get_psbt_input'); - late final _wire_WalletBase_get_psbt_input = - _wire_WalletBase_get_psbt_inputPtr.asFunction< + 'frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input'); + late final _wire_bdk_wallet_get_psbt_input = + _wire_bdk_wallet_get_psbt_inputPtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool, ffi.Pointer)>(); - void wire_WalletBase_is_mine( + void wire_bdk_wallet_is_mine( int port_, - ffi.Pointer that, - ffi.Pointer script, + ffi.Pointer that, + ffi.Pointer script, ) { - return _wire_WalletBase_is_mine( + return _wire_bdk_wallet_is_mine( port_, that, script, ); } - late final _wire_WalletBase_is_minePtr = _lookup< + late final _wire_bdk_wallet_is_minePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_is_mine'); - late final _wire_WalletBase_is_mine = _wire_WalletBase_is_minePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_WalletBase_list_transactions( + 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)>(); + + void wire_bdk_wallet_list_transactions( int port_, - ffi.Pointer that, + ffi.Pointer that, bool include_raw, ) { - return _wire_WalletBase_list_transactions( + return _wire_bdk_wallet_list_transactions( port_, that, include_raw, ); } - late final _wire_WalletBase_list_transactionsPtr = _lookup< + late final _wire_bdk_wallet_list_transactionsPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Bool)>>( - 'frbgen_bdk_flutter_wire_WalletBase_list_transactions'); - late final _wire_WalletBase_list_transactions = - _wire_WalletBase_list_transactionsPtr.asFunction< - void Function(int, ffi.Pointer, bool)>(); + 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< + void Function(int, ffi.Pointer, bool)>(); - void wire_WalletBase_list_unspent( + void wire_bdk_wallet_list_unspent( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_WalletBase_list_unspent( + return _wire_bdk_wallet_list_unspent( port_, that, ); } - late final _wire_WalletBase_list_unspentPtr = _lookup< + late final _wire_bdk_wallet_list_unspentPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_list_unspent'); - late final _wire_WalletBase_list_unspent = _wire_WalletBase_list_unspentPtr - .asFunction)>(); + 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)>(); - void wire_WalletBase_network( + void wire_bdk_wallet_network( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_WalletBase_network( + return _wire_bdk_wallet_network( port_, that, ); } - late final _wire_WalletBase_networkPtr = _lookup< + late final _wire_bdk_wallet_networkPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_network'); - late final _wire_WalletBase_network = _wire_WalletBase_networkPtr - .asFunction)>(); + 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)>(); - void wire_WalletBase_new( + void wire_bdk_wallet_new( int port_, - ffi.Pointer descriptor, - ffi.Pointer change_descriptor, + ffi.Pointer descriptor, + ffi.Pointer change_descriptor, int network, ffi.Pointer database_config, ) { - return _wire_WalletBase_new( + return _wire_bdk_wallet_new( port_, descriptor, change_descriptor, @@ -4620,30 +4711,30 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_WalletBase_newPtr = _lookup< + late final _wire_bdk_wallet_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_new'); - late final _wire_WalletBase_new = _wire_WalletBase_newPtr.asFunction< + '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, + ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); - void wire_WalletBase_sign( + void wire_bdk_wallet_sign( int port_, - ffi.Pointer ptr, - ffi.Pointer psbt, + ffi.Pointer ptr, + ffi.Pointer psbt, ffi.Pointer sign_options, ) { - return _wire_WalletBase_sign( + return _wire_bdk_wallet_sign( port_, ptr, psbt, @@ -4651,48 +4742,48 @@ class BdkCoreWire implements BaseWire { ); } - late final _wire_WalletBase_signPtr = _lookup< + late final _wire_bdk_wallet_signPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_sign'); - late final _wire_WalletBase_sign = _wire_WalletBase_signPtr.asFunction< + '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, + ffi.Pointer, ffi.Pointer)>(); - void wire_WalletBase_sync( + void wire_bdk_wallet_sync( int port_, - ffi.Pointer ptr, - ffi.Pointer blockchain, + ffi.Pointer ptr, + ffi.Pointer blockchain, ) { - return _wire_WalletBase_sync( + return _wire_bdk_wallet_sync( port_, ptr, blockchain, ); } - late final _wire_WalletBase_syncPtr = _lookup< + late final _wire_bdk_wallet_syncPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_bdk_flutter_wire_WalletBase_sync'); - late final _wire_WalletBase_sync = _wire_WalletBase_syncPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + 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)>(); void wire_finish_bump_fee_tx_builder( int port_, ffi.Pointer txid, double fee_rate, - ffi.Pointer allow_shrinking, - ffi.Pointer wallet, + ffi.Pointer allow_shrinking, + ffi.Pointer wallet, bool enable_rbf, ffi.Pointer n_sequence, ) { @@ -4713,8 +4804,8 @@ class BdkCoreWire implements BaseWire { ffi.Int64, ffi.Pointer, ffi.Float, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Bool, ffi.Pointer)>>( 'frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder'); @@ -4724,14 +4815,14 @@ class BdkCoreWire implements BaseWire { int, ffi.Pointer, double, - ffi.Pointer, - ffi.Pointer, + ffi.Pointer, + ffi.Pointer, bool, ffi.Pointer)>(); void wire_tx_builder_finish( int port_, - ffi.Pointer wallet, + ffi.Pointer wallet, ffi.Pointer recipients, ffi.Pointer utxos, ffi.Pointer foreign_utxo, @@ -4741,7 +4832,7 @@ class BdkCoreWire implements BaseWire { ffi.Pointer fee_rate, ffi.Pointer fee_absolute, bool drain_wallet, - ffi.Pointer drain_to, + ffi.Pointer drain_to, ffi.Pointer rbf, ffi.Pointer data, ) { @@ -4767,7 +4858,7 @@ class BdkCoreWire implements BaseWire { ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -4777,14 +4868,14 @@ class BdkCoreWire implements BaseWire { ffi.Pointer, ffi.Pointer, ffi.Bool, - ffi.Pointer, + 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, @@ -4794,7 +4885,7 @@ class BdkCoreWire implements BaseWire { ffi.Pointer, ffi.Pointer, bool, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5100,17 +5191,6 @@ class BdkCoreWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_keysbip39MnemonicPtr .asFunction)>(); - ffi.Pointer cst_new_box_autoadd_address_base() { - return _cst_new_box_autoadd_address_base(); - } - - late final _cst_new_box_autoadd_address_basePtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_address_base'); - late final _cst_new_box_autoadd_address_base = - _cst_new_box_autoadd_address_basePtr - .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_address_error() { return _cst_new_box_autoadd_address_error(); } @@ -5133,6 +5213,132 @@ class BdkCoreWire implements BaseWire { _cst_new_box_autoadd_address_indexPtr .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_bdk_address() { + return _cst_new_box_autoadd_bdk_address(); + } + + late final _cst_new_box_autoadd_bdk_addressPtr = + _lookup Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_address'); + late final _cst_new_box_autoadd_bdk_address = + _cst_new_box_autoadd_bdk_addressPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_bdk_blockchain() { + return _cst_new_box_autoadd_bdk_blockchain(); + } + + late final _cst_new_box_autoadd_bdk_blockchainPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_blockchain'); + late final _cst_new_box_autoadd_bdk_blockchain = + _cst_new_box_autoadd_bdk_blockchainPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_bdk_derivation_path() { + return _cst_new_box_autoadd_bdk_derivation_path(); + } + + late final _cst_new_box_autoadd_bdk_derivation_pathPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_derivation_path'); + late final _cst_new_box_autoadd_bdk_derivation_path = + _cst_new_box_autoadd_bdk_derivation_pathPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_bdk_descriptor() { + return _cst_new_box_autoadd_bdk_descriptor(); + } + + late final _cst_new_box_autoadd_bdk_descriptorPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor'); + late final _cst_new_box_autoadd_bdk_descriptor = + _cst_new_box_autoadd_bdk_descriptorPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_bdk_descriptor_public_key() { + return _cst_new_box_autoadd_bdk_descriptor_public_key(); + } + + late final _cst_new_box_autoadd_bdk_descriptor_public_keyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_public_key'); + late final _cst_new_box_autoadd_bdk_descriptor_public_key = + _cst_new_box_autoadd_bdk_descriptor_public_keyPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer + cst_new_box_autoadd_bdk_descriptor_secret_key() { + return _cst_new_box_autoadd_bdk_descriptor_secret_key(); + } + + late final _cst_new_box_autoadd_bdk_descriptor_secret_keyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_secret_key'); + late final _cst_new_box_autoadd_bdk_descriptor_secret_key = + _cst_new_box_autoadd_bdk_descriptor_secret_keyPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer cst_new_box_autoadd_bdk_mnemonic() { + return _cst_new_box_autoadd_bdk_mnemonic(); + } + + late final _cst_new_box_autoadd_bdk_mnemonicPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_mnemonic'); + late final _cst_new_box_autoadd_bdk_mnemonic = + _cst_new_box_autoadd_bdk_mnemonicPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_bdk_psbt() { + return _cst_new_box_autoadd_bdk_psbt(); + } + + late final _cst_new_box_autoadd_bdk_psbtPtr = + _lookup Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_psbt'); + late final _cst_new_box_autoadd_bdk_psbt = _cst_new_box_autoadd_bdk_psbtPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_bdk_script_buf() { + return _cst_new_box_autoadd_bdk_script_buf(); + } + + late final _cst_new_box_autoadd_bdk_script_bufPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_script_buf'); + late final _cst_new_box_autoadd_bdk_script_buf = + _cst_new_box_autoadd_bdk_script_bufPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_bdk_transaction() { + return _cst_new_box_autoadd_bdk_transaction(); + } + + late final _cst_new_box_autoadd_bdk_transactionPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_transaction'); + late final _cst_new_box_autoadd_bdk_transaction = + _cst_new_box_autoadd_bdk_transactionPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_bdk_wallet() { + return _cst_new_box_autoadd_bdk_wallet(); + } + + late final _cst_new_box_autoadd_bdk_walletPtr = + _lookup Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_bdk_wallet'); + late final _cst_new_box_autoadd_bdk_wallet = + _cst_new_box_autoadd_bdk_walletPtr + .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_block_time() { return _cst_new_box_autoadd_block_time(); } @@ -5144,17 +5350,6 @@ class BdkCoreWire implements BaseWire { _cst_new_box_autoadd_block_timePtr .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_blockchain_base() { - return _cst_new_box_autoadd_blockchain_base(); - } - - late final _cst_new_box_autoadd_blockchain_basePtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_base'); - late final _cst_new_box_autoadd_blockchain_base = - _cst_new_box_autoadd_blockchain_basePtr - .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_blockchain_config() { return _cst_new_box_autoadd_blockchain_config(); @@ -5190,30 +5385,6 @@ class BdkCoreWire implements BaseWire { _cst_new_box_autoadd_database_configPtr .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_derivation_path_base() { - return _cst_new_box_autoadd_derivation_path_base(); - } - - late final _cst_new_box_autoadd_derivation_path_basePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_derivation_path_base'); - late final _cst_new_box_autoadd_derivation_path_base = - _cst_new_box_autoadd_derivation_path_basePtr - .asFunction Function()>(); - - ffi.Pointer cst_new_box_autoadd_descriptor_base() { - return _cst_new_box_autoadd_descriptor_base(); - } - - late final _cst_new_box_autoadd_descriptor_basePtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_base'); - late final _cst_new_box_autoadd_descriptor_base = - _cst_new_box_autoadd_descriptor_basePtr - .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_descriptor_error() { return _cst_new_box_autoadd_descriptor_error(); @@ -5227,32 +5398,6 @@ class BdkCoreWire implements BaseWire { _cst_new_box_autoadd_descriptor_errorPtr .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_descriptor_public_key_base() { - return _cst_new_box_autoadd_descriptor_public_key_base(); - } - - late final _cst_new_box_autoadd_descriptor_public_key_basePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_public_key_base'); - late final _cst_new_box_autoadd_descriptor_public_key_base = - _cst_new_box_autoadd_descriptor_public_key_basePtr.asFunction< - ffi.Pointer Function()>(); - - ffi.Pointer - cst_new_box_autoadd_descriptor_secret_key_base() { - return _cst_new_box_autoadd_descriptor_secret_key_base(); - } - - late final _cst_new_box_autoadd_descriptor_secret_key_basePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_secret_key_base'); - late final _cst_new_box_autoadd_descriptor_secret_key_base = - _cst_new_box_autoadd_descriptor_secret_key_basePtr.asFunction< - ffi.Pointer Function()>(); - ffi.Pointer cst_new_box_autoadd_electrum_config() { return _cst_new_box_autoadd_electrum_config(); } @@ -5320,16 +5465,15 @@ class BdkCoreWire implements BaseWire { _cst_new_box_autoadd_local_utxoPtr .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_mnemonic_base() { - return _cst_new_box_autoadd_mnemonic_base(); + ffi.Pointer cst_new_box_autoadd_lock_time() { + return _cst_new_box_autoadd_lock_time(); } - late final _cst_new_box_autoadd_mnemonic_basePtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_mnemonic_base'); - late final _cst_new_box_autoadd_mnemonic_base = - _cst_new_box_autoadd_mnemonic_basePtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_lock_timePtr = + _lookup Function()>>( + 'frbgen_bdk_flutter_cst_new_box_autoadd_lock_time'); + late final _cst_new_box_autoadd_lock_time = _cst_new_box_autoadd_lock_timePtr + .asFunction Function()>(); ffi.Pointer cst_new_box_autoadd_out_point() { return _cst_new_box_autoadd_out_point(); @@ -5341,16 +5485,6 @@ class BdkCoreWire implements BaseWire { late final _cst_new_box_autoadd_out_point = _cst_new_box_autoadd_out_pointPtr .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_psbt_base() { - return _cst_new_box_autoadd_psbt_base(); - } - - late final _cst_new_box_autoadd_psbt_basePtr = - _lookup Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_psbt_base'); - late final _cst_new_box_autoadd_psbt_base = _cst_new_box_autoadd_psbt_basePtr - .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_psbt_sig_hash_type() { return _cst_new_box_autoadd_psbt_sig_hash_type(); @@ -5409,17 +5543,6 @@ class BdkCoreWire implements BaseWire { _cst_new_box_autoadd_rpc_sync_paramsPtr .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_script_buf_base() { - return _cst_new_box_autoadd_script_buf_base(); - } - - late final _cst_new_box_autoadd_script_buf_basePtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_script_buf_base'); - late final _cst_new_box_autoadd_script_buf_base = - _cst_new_box_autoadd_script_buf_basePtr - .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_sign_options() { return _cst_new_box_autoadd_sign_options(); } @@ -5457,19 +5580,6 @@ class BdkCoreWire implements BaseWire { _cst_new_box_autoadd_sqlite_db_configurationPtr.asFunction< ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_transaction_base() { - return _cst_new_box_autoadd_transaction_base(); - } - - late final _cst_new_box_autoadd_transaction_basePtr = _lookup< - ffi - .NativeFunction Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_transaction_base'); - late final _cst_new_box_autoadd_transaction_base = - _cst_new_box_autoadd_transaction_basePtr - .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_u_32( int value, ) { @@ -5512,17 +5622,6 @@ class BdkCoreWire implements BaseWire { late final _cst_new_box_autoadd_u_8 = _cst_new_box_autoadd_u_8Ptr .asFunction Function(int)>(); - ffi.Pointer cst_new_box_autoadd_wallet_base() { - return _cst_new_box_autoadd_wallet_base(); - } - - late final _cst_new_box_autoadd_wallet_basePtr = - _lookup Function()>>( - 'frbgen_bdk_flutter_cst_new_box_autoadd_wallet_base'); - late final _cst_new_box_autoadd_wallet_base = - _cst_new_box_autoadd_wallet_basePtr - .asFunction Function()>(); - ffi.Pointer cst_new_list_list_prim_u_8_strict( int len, @@ -5680,7 +5779,7 @@ typedef DartPostCObjectFnType = ffi.Pointer< ffi.Bool Function(DartPort port_id, ffi.Pointer message)>>; typedef DartPort = ffi.Int64; -final class wire_cst_blockchain_base extends ffi.Struct { +final class wire_cst_bdk_blockchain extends ffi.Struct { @ffi.UintPtr() external int ptr; } @@ -5692,7 +5791,7 @@ final class wire_cst_list_prim_u_8_strict extends ffi.Struct { external int len; } -final class wire_cst_transaction_base extends ffi.Struct { +final class wire_cst_bdk_transaction extends ffi.Struct { external ffi.Pointer inner; } @@ -5803,7 +5902,7 @@ final class wire_cst_blockchain_config extends ffi.Struct { external BlockchainConfigKind kind; } -final class wire_cst_descriptor_base extends ffi.Struct { +final class wire_cst_bdk_descriptor extends ffi.Struct { @ffi.UintPtr() external int extended_descriptor; @@ -5811,22 +5910,22 @@ final class wire_cst_descriptor_base extends ffi.Struct { external int key_map; } -final class wire_cst_descriptor_secret_key_base extends ffi.Struct { +final class wire_cst_bdk_descriptor_secret_key extends ffi.Struct { @ffi.UintPtr() external int ptr; } -final class wire_cst_descriptor_public_key_base extends ffi.Struct { +final class wire_cst_bdk_descriptor_public_key extends ffi.Struct { @ffi.UintPtr() external int ptr; } -final class wire_cst_derivation_path_base extends ffi.Struct { +final class wire_cst_bdk_derivation_path extends ffi.Struct { @ffi.UintPtr() external int ptr; } -final class wire_cst_mnemonic_base extends ffi.Struct { +final class wire_cst_bdk_mnemonic extends ffi.Struct { @ffi.UintPtr() external int ptr; } @@ -5838,46 +5937,41 @@ final class wire_cst_list_prim_u_8_loose extends ffi.Struct { external int len; } -final class wire_cst_psbt_base extends ffi.Struct { +final class wire_cst_bdk_psbt extends ffi.Struct { @ffi.UintPtr() external int ptr; } -final class wire_cst_address_base extends ffi.Struct { +final class wire_cst_bdk_address extends ffi.Struct { @ffi.UintPtr() external int ptr; } -final class wire_cst_script_buf_base extends ffi.Struct { +final class wire_cst_bdk_script_buf extends ffi.Struct { external ffi.Pointer bytes; } -final class wire_cst_wallet_base extends ffi.Struct { - @ffi.UintPtr() - external int ptr; -} - -final class wire_cst_AddressIndex_Peek extends ffi.Struct { +final class wire_cst_LockTime_Blocks extends ffi.Struct { @ffi.Uint32() - external int index; + external int field0; } -final class wire_cst_AddressIndex_Reset extends ffi.Struct { +final class wire_cst_LockTime_Seconds extends ffi.Struct { @ffi.Uint32() - external int index; + external int field0; } -final class AddressIndexKind extends ffi.Union { - external wire_cst_AddressIndex_Peek Peek; +final class LockTimeKind extends ffi.Union { + external wire_cst_LockTime_Blocks Blocks; - external wire_cst_AddressIndex_Reset Reset; + external wire_cst_LockTime_Seconds Seconds; } -final class wire_cst_address_index extends ffi.Struct { +final class wire_cst_lock_time extends ffi.Struct { @ffi.Int32() external int tag; - external AddressIndexKind kind; + external LockTimeKind kind; } final class wire_cst_out_point extends ffi.Struct { @@ -5887,11 +5981,71 @@ final class wire_cst_out_point extends ffi.Struct { external int vout; } +final class wire_cst_list_list_prim_u_8_strict extends ffi.Struct { + external ffi.Pointer> ptr; + + @ffi.Int32() + external int len; +} + +final class wire_cst_tx_in extends ffi.Struct { + external wire_cst_out_point previous_output; + + external wire_cst_bdk_script_buf script_sig; + + @ffi.Uint32() + external int sequence; + + external ffi.Pointer witness; +} + +final class wire_cst_list_tx_in extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; +} + final class wire_cst_tx_out extends ffi.Struct { @ffi.Uint64() external int value; - external wire_cst_script_buf_base script_pubkey; + external wire_cst_bdk_script_buf script_pubkey; +} + +final class wire_cst_list_tx_out extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; +} + +final class wire_cst_bdk_wallet extends ffi.Struct { + @ffi.UintPtr() + external int ptr; +} + +final class wire_cst_AddressIndex_Peek extends ffi.Struct { + @ffi.Uint32() + external int index; +} + +final class wire_cst_AddressIndex_Reset extends ffi.Struct { + @ffi.Uint32() + external int index; +} + +final class AddressIndexKind extends ffi.Union { + external wire_cst_AddressIndex_Peek Peek; + + external wire_cst_AddressIndex_Reset Reset; +} + +final class wire_cst_address_index extends ffi.Struct { + @ffi.Int32() + external int tag; + + external AddressIndexKind kind; } final class wire_cst_local_utxo extends ffi.Struct { @@ -5968,7 +6122,7 @@ final class wire_cst_sign_options extends ffi.Struct { } final class wire_cst_script_amount extends ffi.Struct { - external wire_cst_script_buf_base script; + external wire_cst_bdk_script_buf script; @ffi.Uint64() external int amount; @@ -6252,13 +6406,6 @@ final class wire_cst_hex_error extends ffi.Struct { external HexErrorKind kind; } -final class wire_cst_list_list_prim_u_8_strict extends ffi.Struct { - external ffi.Pointer> ptr; - - @ffi.Int32() - external int len; -} - final class wire_cst_list_local_utxo extends ffi.Struct { external ffi.Pointer ptr; @@ -6267,7 +6414,7 @@ final class wire_cst_list_local_utxo extends ffi.Struct { } final class wire_cst_transaction_details extends ffi.Struct { - external ffi.Pointer transaction; + external ffi.Pointer transaction; external ffi.Pointer txid; @@ -6289,38 +6436,6 @@ final class wire_cst_list_transaction_details extends ffi.Struct { external int len; } -final class wire_cst_tx_in extends ffi.Struct { - external wire_cst_out_point previous_output; - - external wire_cst_script_buf_base script_sig; - - @ffi.Uint32() - external int sequence; - - external ffi.Pointer witness; -} - -final class wire_cst_list_tx_in extends ffi.Struct { - external ffi.Pointer ptr; - - @ffi.Int32() - external int len; -} - -final class wire_cst_list_tx_out extends ffi.Struct { - external ffi.Pointer ptr; - - @ffi.Int32() - external int len; -} - -final class wire_cst_address_info extends ffi.Struct { - @ffi.Uint32() - external int index; - - external ffi.Pointer address; -} - final class wire_cst_balance extends ffi.Struct { @ffi.Uint64() external int immature; @@ -6485,6 +6600,18 @@ final class wire_cst_BdkError_Rusqlite extends ffi.Struct { external ffi.Pointer field0; } +final class wire_cst_BdkError_InvalidInput extends ffi.Struct { + external ffi.Pointer field0; +} + +final class wire_cst_BdkError_InvalidLockTime extends ffi.Struct { + external ffi.Pointer field0; +} + +final class wire_cst_BdkError_InvalidTransaction extends ffi.Struct { + external ffi.Pointer field0; +} + final class BdkErrorKind extends ffi.Union { external wire_cst_BdkError_Hex Hex; @@ -6549,6 +6676,12 @@ final class BdkErrorKind extends ffi.Union { external wire_cst_BdkError_Rpc Rpc; external wire_cst_BdkError_Rusqlite Rusqlite; + + external wire_cst_BdkError_InvalidInput InvalidInput; + + external wire_cst_BdkError_InvalidLockTime InvalidLockTime; + + external wire_cst_BdkError_InvalidTransaction InvalidTransaction; } final class wire_cst_bdk_error extends ffi.Struct { @@ -6588,8 +6721,15 @@ final class wire_cst_payload extends ffi.Struct { external PayloadKind kind; } -final class wire_cst_record_psbt_base_transaction_details extends ffi.Struct { - external wire_cst_psbt_base field0; +final class wire_cst_record_bdk_address_u_32 extends ffi.Struct { + external wire_cst_bdk_address field0; + + @ffi.Uint32() + external int field1; +} + +final class wire_cst_record_bdk_psbt_transaction_details extends ffi.Struct { + external wire_cst_bdk_psbt field0; external wire_cst_transaction_details field1; } diff --git a/lib/src/generated/frb_generated.web.dart b/lib/src/generated/frb_generated.web.dart index 32fbc33e..c30e669d 100644 --- a/lib/src/generated/frb_generated.web.dart +++ b/lib/src/generated/frb_generated.web.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28. +// 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 @@ -15,8 +15,8 @@ import 'dart:convert'; import 'frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_web.dart'; -abstract class BdkCoreApiImplPlatform extends BaseApiImpl { - BdkCoreApiImplPlatform({ +abstract class CApiApiImplPlatform extends BaseApiImpl { + CApiApiImplPlatform({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, @@ -100,41 +100,62 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected String dco_decode_String(dynamic raw); - @protected - AddressBase dco_decode_address_base(dynamic raw); - @protected AddressError dco_decode_address_error(dynamic raw); @protected AddressIndex dco_decode_address_index(dynamic raw); - @protected - AddressInfo dco_decode_address_info(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 - BlockTime dco_decode_block_time(dynamic raw); + BdkMnemonic dco_decode_bdk_mnemonic(dynamic raw); @protected - BlockchainBase dco_decode_blockchain_base(dynamic raw); + BdkPsbt dco_decode_bdk_psbt(dynamic raw); @protected - BlockchainConfig dco_decode_blockchain_config(dynamic raw); + BdkScriptBuf dco_decode_bdk_script_buf(dynamic raw); @protected - bool dco_decode_bool(dynamic raw); + BdkTransaction dco_decode_bdk_transaction(dynamic raw); @protected - AddressBase dco_decode_box_autoadd_address_base(dynamic raw); + 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); @@ -143,36 +164,54 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { AddressIndex dco_decode_box_autoadd_address_index(dynamic raw); @protected - BlockTime dco_decode_box_autoadd_block_time(dynamic raw); + BdkAddress dco_decode_box_autoadd_bdk_address(dynamic raw); @protected - BlockchainBase dco_decode_box_autoadd_blockchain_base(dynamic raw); + BdkBlockchain dco_decode_box_autoadd_bdk_blockchain(dynamic raw); @protected - BlockchainConfig dco_decode_box_autoadd_blockchain_config(dynamic raw); + BdkDerivationPath dco_decode_box_autoadd_bdk_derivation_path(dynamic raw); @protected - ConsensusError dco_decode_box_autoadd_consensus_error(dynamic raw); + BdkDescriptor dco_decode_box_autoadd_bdk_descriptor(dynamic raw); @protected - DatabaseConfig dco_decode_box_autoadd_database_config(dynamic raw); + BdkDescriptorPublicKey dco_decode_box_autoadd_bdk_descriptor_public_key( + dynamic raw); @protected - DerivationPathBase dco_decode_box_autoadd_derivation_path_base(dynamic raw); + BdkDescriptorSecretKey dco_decode_box_autoadd_bdk_descriptor_secret_key( + dynamic raw); @protected - DescriptorBase dco_decode_box_autoadd_descriptor_base(dynamic raw); + BdkMnemonic dco_decode_box_autoadd_bdk_mnemonic(dynamic raw); @protected - DescriptorError dco_decode_box_autoadd_descriptor_error(dynamic raw); + BdkPsbt dco_decode_box_autoadd_bdk_psbt(dynamic raw); @protected - DescriptorPublicKeyBase dco_decode_box_autoadd_descriptor_public_key_base( - dynamic raw); + BdkScriptBuf dco_decode_box_autoadd_bdk_script_buf(dynamic raw); @protected - DescriptorSecretKeyBase dco_decode_box_autoadd_descriptor_secret_key_base( - dynamic raw); + 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); @@ -193,14 +232,11 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo dco_decode_box_autoadd_local_utxo(dynamic raw); @protected - MnemonicBase dco_decode_box_autoadd_mnemonic_base(dynamic raw); + LockTime dco_decode_box_autoadd_lock_time(dynamic raw); @protected OutPoint dco_decode_box_autoadd_out_point(dynamic raw); - @protected - PsbtBase dco_decode_box_autoadd_psbt_base(dynamic raw); - @protected PsbtSigHashType dco_decode_box_autoadd_psbt_sig_hash_type(dynamic raw); @@ -217,9 +253,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected RpcSyncParams dco_decode_box_autoadd_rpc_sync_params(dynamic raw); - @protected - ScriptBufBase dco_decode_box_autoadd_script_buf_base(dynamic raw); - @protected SignOptions dco_decode_box_autoadd_sign_options(dynamic raw); @@ -230,9 +263,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SqliteDbConfiguration dco_decode_box_autoadd_sqlite_db_configuration( dynamic raw); - @protected - TransactionBase dco_decode_box_autoadd_transaction_base(dynamic raw); - @protected int dco_decode_box_autoadd_u_32(dynamic raw); @@ -242,9 +272,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected int dco_decode_box_autoadd_u_8(dynamic raw); - @protected - WalletBase dco_decode_box_autoadd_wallet_base(dynamic raw); - @protected ChangeSpendPolicy dco_decode_change_spend_policy(dynamic raw); @@ -254,21 +281,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected DatabaseConfig dco_decode_database_config(dynamic raw); - @protected - DerivationPathBase dco_decode_derivation_path_base(dynamic raw); - - @protected - DescriptorBase dco_decode_descriptor_base(dynamic raw); - @protected DescriptorError dco_decode_descriptor_error(dynamic raw); - @protected - DescriptorPublicKeyBase dco_decode_descriptor_public_key_base(dynamic raw); - - @protected - DescriptorSecretKeyBase dco_decode_descriptor_secret_key_base(dynamic raw); - @protected ElectrumConfig dco_decode_electrum_config(dynamic raw); @@ -324,7 +339,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo dco_decode_local_utxo(dynamic raw); @protected - MnemonicBase dco_decode_mnemonic_base(dynamic raw); + LockTime dco_decode_lock_time(dynamic raw); @protected Network dco_decode_network(dynamic raw); @@ -333,13 +348,19 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { String? dco_decode_opt_String(dynamic raw); @protected - AddressBase? dco_decode_opt_box_autoadd_address_base(dynamic raw); + BdkAddress? dco_decode_opt_box_autoadd_bdk_address(dynamic raw); @protected - BlockTime? dco_decode_opt_box_autoadd_block_time(dynamic raw); + 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 - DescriptorBase? dco_decode_opt_box_autoadd_descriptor_base(dynamic raw); + BlockTime? dco_decode_opt_box_autoadd_block_time(dynamic raw); @protected double? dco_decode_opt_box_autoadd_f_32(dynamic raw); @@ -360,15 +381,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected RpcSyncParams? dco_decode_opt_box_autoadd_rpc_sync_params(dynamic raw); - @protected - ScriptBufBase? dco_decode_opt_box_autoadd_script_buf_base(dynamic raw); - @protected SignOptions? dco_decode_opt_box_autoadd_sign_options(dynamic raw); - @protected - TransactionBase? dco_decode_opt_box_autoadd_transaction_base(dynamic raw); - @protected int? dco_decode_opt_box_autoadd_u_32(dynamic raw); @@ -384,9 +399,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Payload dco_decode_payload(dynamic raw); - @protected - PsbtBase dco_decode_psbt_base(dynamic raw); - @protected PsbtSigHashType dco_decode_psbt_sig_hash_type(dynamic raw); @@ -394,11 +406,14 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RbfValue dco_decode_rbf_value(dynamic raw); @protected - (OutPoint, Input, int) dco_decode_record_out_point_input_usize(dynamic raw); + (BdkAddress, int) dco_decode_record_bdk_address_u_32(dynamic raw); @protected - (PsbtBase, TransactionDetails) - dco_decode_record_psbt_base_transaction_details(dynamic raw); + (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); @@ -409,9 +424,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected ScriptAmount dco_decode_script_amount(dynamic raw); - @protected - ScriptBufBase dco_decode_script_buf_base(dynamic raw); - @protected SignOptions dco_decode_sign_options(dynamic raw); @@ -421,9 +433,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected SqliteDbConfiguration dco_decode_sqlite_db_configuration(dynamic raw); - @protected - TransactionBase dco_decode_transaction_base(dynamic raw); - @protected TransactionDetails dco_decode_transaction_details(dynamic raw); @@ -454,9 +463,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Variant dco_decode_variant(dynamic raw); - @protected - WalletBase dco_decode_wallet_base(dynamic raw); - @protected WitnessVersion dco_decode_witness_version(dynamic raw); @@ -506,41 +512,65 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected String sse_decode_String(SseDeserializer deserializer); - @protected - AddressBase sse_decode_address_base(SseDeserializer deserializer); - @protected AddressError sse_decode_address_error(SseDeserializer deserializer); @protected AddressIndex sse_decode_address_index(SseDeserializer deserializer); - @protected - AddressInfo sse_decode_address_info(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 - BlockTime sse_decode_block_time(SseDeserializer deserializer); + BdkMnemonic sse_decode_bdk_mnemonic(SseDeserializer deserializer); @protected - BlockchainBase sse_decode_blockchain_base(SseDeserializer deserializer); + BdkPsbt sse_decode_bdk_psbt(SseDeserializer deserializer); @protected - BlockchainConfig sse_decode_blockchain_config(SseDeserializer deserializer); + BdkScriptBuf sse_decode_bdk_script_buf(SseDeserializer deserializer); @protected - bool sse_decode_bool(SseDeserializer deserializer); + BdkTransaction sse_decode_bdk_transaction(SseDeserializer deserializer); + + @protected + BdkWallet sse_decode_bdk_wallet(SseDeserializer deserializer); @protected - AddressBase sse_decode_box_autoadd_address_base(SseDeserializer deserializer); + 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( @@ -551,42 +581,62 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - BlockTime sse_decode_box_autoadd_block_time(SseDeserializer deserializer); + BdkAddress sse_decode_box_autoadd_bdk_address(SseDeserializer deserializer); @protected - BlockchainBase sse_decode_box_autoadd_blockchain_base( + BdkBlockchain sse_decode_box_autoadd_bdk_blockchain( SseDeserializer deserializer); @protected - BlockchainConfig sse_decode_box_autoadd_blockchain_config( + BdkDerivationPath sse_decode_box_autoadd_bdk_derivation_path( SseDeserializer deserializer); @protected - ConsensusError sse_decode_box_autoadd_consensus_error( + BdkDescriptor sse_decode_box_autoadd_bdk_descriptor( SseDeserializer deserializer); @protected - DatabaseConfig sse_decode_box_autoadd_database_config( + BdkDescriptorPublicKey sse_decode_box_autoadd_bdk_descriptor_public_key( SseDeserializer deserializer); @protected - DerivationPathBase sse_decode_box_autoadd_derivation_path_base( + BdkDescriptorSecretKey sse_decode_box_autoadd_bdk_descriptor_secret_key( SseDeserializer deserializer); @protected - DescriptorBase sse_decode_box_autoadd_descriptor_base( + 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 - DescriptorError sse_decode_box_autoadd_descriptor_error( + 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 - DescriptorPublicKeyBase sse_decode_box_autoadd_descriptor_public_key_base( + ConsensusError sse_decode_box_autoadd_consensus_error( SseDeserializer deserializer); @protected - DescriptorSecretKeyBase sse_decode_box_autoadd_descriptor_secret_key_base( + DatabaseConfig sse_decode_box_autoadd_database_config( + SseDeserializer deserializer); + + @protected + DescriptorError sse_decode_box_autoadd_descriptor_error( SseDeserializer deserializer); @protected @@ -610,15 +660,11 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo sse_decode_box_autoadd_local_utxo(SseDeserializer deserializer); @protected - MnemonicBase sse_decode_box_autoadd_mnemonic_base( - SseDeserializer deserializer); + LockTime sse_decode_box_autoadd_lock_time(SseDeserializer deserializer); @protected OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); - @protected - PsbtBase sse_decode_box_autoadd_psbt_base(SseDeserializer deserializer); - @protected PsbtSigHashType sse_decode_box_autoadd_psbt_sig_hash_type( SseDeserializer deserializer); @@ -637,10 +683,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RpcSyncParams sse_decode_box_autoadd_rpc_sync_params( SseDeserializer deserializer); - @protected - ScriptBufBase sse_decode_box_autoadd_script_buf_base( - SseDeserializer deserializer); - @protected SignOptions sse_decode_box_autoadd_sign_options(SseDeserializer deserializer); @@ -652,10 +694,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SqliteDbConfiguration sse_decode_box_autoadd_sqlite_db_configuration( SseDeserializer deserializer); - @protected - TransactionBase sse_decode_box_autoadd_transaction_base( - SseDeserializer deserializer); - @protected int sse_decode_box_autoadd_u_32(SseDeserializer deserializer); @@ -665,9 +703,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); - @protected - WalletBase sse_decode_box_autoadd_wallet_base(SseDeserializer deserializer); - @protected ChangeSpendPolicy sse_decode_change_spend_policy( SseDeserializer deserializer); @@ -678,24 +713,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected DatabaseConfig sse_decode_database_config(SseDeserializer deserializer); - @protected - DerivationPathBase sse_decode_derivation_path_base( - SseDeserializer deserializer); - - @protected - DescriptorBase sse_decode_descriptor_base(SseDeserializer deserializer); - @protected DescriptorError sse_decode_descriptor_error(SseDeserializer deserializer); - @protected - DescriptorPublicKeyBase sse_decode_descriptor_public_key_base( - SseDeserializer deserializer); - - @protected - DescriptorSecretKeyBase sse_decode_descriptor_secret_key_base( - SseDeserializer deserializer); - @protected ElectrumConfig sse_decode_electrum_config(SseDeserializer deserializer); @@ -754,7 +774,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo sse_decode_local_utxo(SseDeserializer deserializer); @protected - MnemonicBase sse_decode_mnemonic_base(SseDeserializer deserializer); + LockTime sse_decode_lock_time(SseDeserializer deserializer); @protected Network sse_decode_network(SseDeserializer deserializer); @@ -763,15 +783,23 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { String? sse_decode_opt_String(SseDeserializer deserializer); @protected - AddressBase? sse_decode_opt_box_autoadd_address_base( + BdkAddress? sse_decode_opt_box_autoadd_bdk_address( SseDeserializer deserializer); @protected - BlockTime? sse_decode_opt_box_autoadd_block_time( + 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 - DescriptorBase? sse_decode_opt_box_autoadd_descriptor_base( + BlockTime? sse_decode_opt_box_autoadd_block_time( SseDeserializer deserializer); @protected @@ -796,18 +824,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RpcSyncParams? sse_decode_opt_box_autoadd_rpc_sync_params( SseDeserializer deserializer); - @protected - ScriptBufBase? sse_decode_opt_box_autoadd_script_buf_base( - SseDeserializer deserializer); - @protected SignOptions? sse_decode_opt_box_autoadd_sign_options( SseDeserializer deserializer); - @protected - TransactionBase? sse_decode_opt_box_autoadd_transaction_base( - SseDeserializer deserializer); - @protected int? sse_decode_opt_box_autoadd_u_32(SseDeserializer deserializer); @@ -823,9 +843,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Payload sse_decode_payload(SseDeserializer deserializer); - @protected - PsbtBase sse_decode_psbt_base(SseDeserializer deserializer); - @protected PsbtSigHashType sse_decode_psbt_sig_hash_type(SseDeserializer deserializer); @@ -833,13 +850,16 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { RbfValue sse_decode_rbf_value(SseDeserializer deserializer); @protected - (OutPoint, Input, int) sse_decode_record_out_point_input_usize( + (BdkAddress, int) sse_decode_record_bdk_address_u_32( SseDeserializer deserializer); @protected - (PsbtBase, TransactionDetails) - sse_decode_record_psbt_base_transaction_details( - SseDeserializer deserializer); + (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); @@ -850,9 +870,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected ScriptAmount sse_decode_script_amount(SseDeserializer deserializer); - @protected - ScriptBufBase sse_decode_script_buf_base(SseDeserializer deserializer); - @protected SignOptions sse_decode_sign_options(SseDeserializer deserializer); @@ -864,9 +881,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { SqliteDbConfiguration sse_decode_sqlite_db_configuration( SseDeserializer deserializer); - @protected - TransactionBase sse_decode_transaction_base(SseDeserializer deserializer); - @protected TransactionDetails sse_decode_transaction_details( SseDeserializer deserializer); @@ -898,9 +912,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected Variant sse_decode_variant(SseDeserializer deserializer); - @protected - WalletBase sse_decode_wallet_base(SseDeserializer deserializer); - @protected WitnessVersion sse_decode_witness_version(SseDeserializer deserializer); @@ -913,12 +924,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return raw; } - @protected - List cst_encode_address_base(AddressBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_bdkbitcoinAddress(raw.ptr)]; - } - @protected List cst_encode_address_error(AddressError raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -996,12 +1001,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { throw Exception('unreachable'); } - @protected - List cst_encode_address_info(AddressInfo raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_u_32(raw.index), cst_encode_String(raw.address)]; - } - @protected List cst_encode_auth(Auth raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1035,6 +1034,47 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { ]; } + @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 @@ -1171,117 +1211,180 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { if (raw is BdkError_Rusqlite) { return [42, cst_encode_String(raw.field0)]; } + if (raw is BdkError_InvalidInput) { + return [43, cst_encode_String(raw.field0)]; + } + if (raw is BdkError_InvalidLockTime) { + return [44, cst_encode_String(raw.field0)]; + } + if (raw is BdkError_InvalidTransaction) { + return [45, cst_encode_String(raw.field0)]; + } throw Exception('unreachable'); } @protected - List cst_encode_block_time(BlockTime raw) { + 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_u_32(raw.height), cst_encode_u_64(raw.timestamp)]; + return cst_encode_address_index(raw); } @protected - List cst_encode_blockchain_base(BlockchainBase raw) { + List cst_encode_box_autoadd_bdk_address(BdkAddress raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_AnyBlockchain(raw.ptr)]; + return cst_encode_bdk_address(raw); } @protected - List cst_encode_blockchain_config(BlockchainConfig raw) { + List cst_encode_box_autoadd_bdk_blockchain(BdkBlockchain 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)]; - } + return cst_encode_bdk_blockchain(raw); + } - throw Exception('unreachable'); + @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_address_base(AddressBase raw) { + List cst_encode_box_autoadd_bdk_descriptor(BdkDescriptor raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_address_base(raw); + return cst_encode_bdk_descriptor(raw); } @protected - List cst_encode_box_autoadd_address_error(AddressError raw) { + 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_address_error(raw); + return cst_encode_bdk_descriptor_public_key(raw); } @protected - List cst_encode_box_autoadd_address_index(AddressIndex raw) { + 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_address_index(raw); + return cst_encode_bdk_descriptor_secret_key(raw); } @protected - List cst_encode_box_autoadd_block_time(BlockTime raw) { + List cst_encode_box_autoadd_bdk_mnemonic(BdkMnemonic raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_block_time(raw); + return cst_encode_bdk_mnemonic(raw); } @protected - List cst_encode_box_autoadd_blockchain_base(BlockchainBase raw) { + List cst_encode_box_autoadd_bdk_psbt(BdkPsbt raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_blockchain_base(raw); + return cst_encode_bdk_psbt(raw); } @protected - List cst_encode_box_autoadd_blockchain_config(BlockchainConfig raw) { + List cst_encode_box_autoadd_bdk_script_buf(BdkScriptBuf raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_blockchain_config(raw); + return cst_encode_bdk_script_buf(raw); } @protected - List cst_encode_box_autoadd_consensus_error(ConsensusError raw) { + List cst_encode_box_autoadd_bdk_transaction(BdkTransaction raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_consensus_error(raw); + return cst_encode_bdk_transaction(raw); } @protected - List cst_encode_box_autoadd_database_config(DatabaseConfig raw) { + List cst_encode_box_autoadd_bdk_wallet(BdkWallet raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_database_config(raw); + return cst_encode_bdk_wallet(raw); } @protected - List cst_encode_box_autoadd_derivation_path_base( - DerivationPathBase raw) { + List cst_encode_box_autoadd_block_time(BlockTime raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_derivation_path_base(raw); + return cst_encode_block_time(raw); } @protected - List cst_encode_box_autoadd_descriptor_base(DescriptorBase raw) { + List cst_encode_box_autoadd_blockchain_config(BlockchainConfig raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_descriptor_base(raw); + return cst_encode_blockchain_config(raw); } @protected - List cst_encode_box_autoadd_descriptor_error(DescriptorError raw) { + List cst_encode_box_autoadd_consensus_error(ConsensusError raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_descriptor_error(raw); + return cst_encode_consensus_error(raw); } @protected - List cst_encode_box_autoadd_descriptor_public_key_base( - DescriptorPublicKeyBase raw) { + List cst_encode_box_autoadd_database_config(DatabaseConfig raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_descriptor_public_key_base(raw); + return cst_encode_database_config(raw); } @protected - List cst_encode_box_autoadd_descriptor_secret_key_base( - DescriptorSecretKeyBase raw) { + List cst_encode_box_autoadd_descriptor_error(DescriptorError raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_descriptor_secret_key_base(raw); + return cst_encode_descriptor_error(raw); } @protected @@ -1321,9 +1424,9 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - List cst_encode_box_autoadd_mnemonic_base(MnemonicBase raw) { + List cst_encode_box_autoadd_lock_time(LockTime raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_mnemonic_base(raw); + return cst_encode_lock_time(raw); } @protected @@ -1332,12 +1435,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return cst_encode_out_point(raw); } - @protected - List cst_encode_box_autoadd_psbt_base(PsbtBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_psbt_base(raw); - } - @protected List cst_encode_box_autoadd_psbt_sig_hash_type(PsbtSigHashType raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1369,12 +1466,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return cst_encode_rpc_sync_params(raw); } - @protected - List cst_encode_box_autoadd_script_buf_base(ScriptBufBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_script_buf_base(raw); - } - @protected List cst_encode_box_autoadd_sign_options(SignOptions raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1395,12 +1486,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return cst_encode_sqlite_db_configuration(raw); } - @protected - List cst_encode_box_autoadd_transaction_base(TransactionBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_transaction_base(raw); - } - @protected int cst_encode_box_autoadd_u_32(int raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1419,12 +1504,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return cst_encode_u_8(raw); } - @protected - List cst_encode_box_autoadd_wallet_base(WalletBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_wallet_base(raw); - } - @protected List cst_encode_consensus_error(ConsensusError raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1470,21 +1549,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { throw Exception('unreachable'); } - @protected - List cst_encode_derivation_path_base(DerivationPathBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_bitcoinbip32DerivationPath(raw.ptr)]; - } - - @protected - List cst_encode_descriptor_base(DescriptorBase 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_descriptor_error(DescriptorError raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1528,20 +1592,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { throw Exception('unreachable'); } - @protected - List cst_encode_descriptor_public_key_base( - DescriptorPublicKeyBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysDescriptorPublicKey(raw.ptr)]; - } - - @protected - List cst_encode_descriptor_secret_key_base( - DescriptorSecretKeyBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysDescriptorSecretKey(raw.ptr)]; - } - @protected List cst_encode_electrum_config(ElectrumConfig raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1662,9 +1712,16 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - List cst_encode_mnemonic_base(MnemonicBase raw) { + List cst_encode_lock_time(LockTime raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_keysbip39Mnemonic(raw.ptr)]; + 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 @@ -1674,22 +1731,34 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - List? cst_encode_opt_box_autoadd_address_base(AddressBase? raw) { + 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_address_base(raw); + return raw == null ? null : cst_encode_box_autoadd_bdk_address(raw); } @protected - List? cst_encode_opt_box_autoadd_block_time(BlockTime? raw) { + 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_block_time(raw); + 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_descriptor_base( - DescriptorBase? raw) { + 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_descriptor_base(raw); + 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 @@ -1733,26 +1802,12 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return raw == null ? null : cst_encode_box_autoadd_rpc_sync_params(raw); } - @protected - List? cst_encode_opt_box_autoadd_script_buf_base( - ScriptBufBase? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_script_buf_base(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 - List? cst_encode_opt_box_autoadd_transaction_base( - TransactionBase? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_transaction_base(raw); - } - @protected int? cst_encode_opt_box_autoadd_u_32(int? raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1797,12 +1852,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { throw Exception('unreachable'); } - @protected - List cst_encode_psbt_base(PsbtBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_MutexPartiallySignedTransaction(raw.ptr)]; - } - @protected List cst_encode_psbt_sig_hash_type(PsbtSigHashType raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1823,23 +1872,29 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { } @protected - List cst_encode_record_out_point_input_usize( - (OutPoint, Input, int) raw) { + 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_out_point(raw.$1), - cst_encode_input(raw.$2), - cst_encode_usize(raw.$3) + cst_encode_bdk_psbt(raw.$1), + cst_encode_transaction_details(raw.$2) ]; } @protected - List cst_encode_record_psbt_base_transaction_details( - (PsbtBase, TransactionDetails) raw) { + 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_psbt_base(raw.$1), - cst_encode_transaction_details(raw.$2) + cst_encode_out_point(raw.$1), + cst_encode_input(raw.$2), + cst_encode_usize(raw.$3) ]; } @@ -1869,16 +1924,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected List cst_encode_script_amount(ScriptAmount raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_script_buf_base(raw.script), - cst_encode_u_64(raw.amount) - ]; - } - - @protected - List cst_encode_script_buf_base(ScriptBufBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_list_prim_u_8_strict(raw.bytes)]; + return [cst_encode_bdk_script_buf(raw.script), cst_encode_u_64(raw.amount)]; } @protected @@ -1908,17 +1954,11 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return [cst_encode_String(raw.path)]; } - @protected - List cst_encode_transaction_base(TransactionBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_String(raw.inner)]; - } - @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_transaction_base(raw.transaction), + 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), @@ -1932,7 +1972,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { // Codec=Cst (C-struct based), see doc to use other codecs return [ cst_encode_out_point(raw.previousOutput), - cst_encode_script_buf_base(raw.scriptSig), + cst_encode_bdk_script_buf(raw.scriptSig), cst_encode_u_32(raw.sequence), cst_encode_list_list_prim_u_8_strict(raw.witness) ]; @@ -1943,7 +1983,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { // Codec=Cst (C-struct based), see doc to use other codecs return [ cst_encode_u_64(raw.value), - cst_encode_script_buf_base(raw.scriptPubkey) + cst_encode_bdk_script_buf(raw.scriptPubkey) ]; } @@ -1959,12 +1999,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { return Uint8List.fromList(raw); } - @protected - List cst_encode_wallet_base(WalletBase raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_MutexbdkWalletAnyDatabase(raw.ptr)]; - } - @protected int cst_encode_RustOpaque_AnyBlockchain(AnyBlockchain raw); @@ -2082,33 +2116,60 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_String(String self, SseSerializer serializer); - @protected - void sse_encode_address_base(AddressBase 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_address_info(AddressInfo 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_block_time(BlockTime self, SseSerializer serializer); + 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_blockchain_base( - BlockchainBase self, SseSerializer serializer); + void sse_encode_block_time(BlockTime self, SseSerializer serializer); @protected void sse_encode_blockchain_config( @@ -2117,10 +2178,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_bool(bool self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_address_base( - AddressBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_address_error( AddressError self, SseSerializer serializer); @@ -2130,44 +2187,67 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { AddressIndex self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_block_time( - BlockTime self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_address( + BdkAddress self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_blockchain_base( - BlockchainBase self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_blockchain( + BdkBlockchain self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_blockchain_config( - BlockchainConfig self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_derivation_path( + BdkDerivationPath self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_consensus_error( - ConsensusError self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_descriptor( + BdkDescriptor self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_database_config( - DatabaseConfig self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_descriptor_public_key( + BdkDescriptorPublicKey self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_derivation_path_base( - DerivationPathBase self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_descriptor_secret_key( + BdkDescriptorSecretKey self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_descriptor_base( - DescriptorBase self, SseSerializer serializer); + void sse_encode_box_autoadd_bdk_mnemonic( + BdkMnemonic self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_descriptor_error( - DescriptorError self, SseSerializer serializer); + 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_descriptor_public_key_base( - DescriptorPublicKeyBase self, SseSerializer serializer); + 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_secret_key_base( - DescriptorSecretKeyBase self, SseSerializer serializer); + void sse_encode_box_autoadd_descriptor_error( + DescriptorError self, SseSerializer serializer); @protected void sse_encode_box_autoadd_electrum_config( @@ -2192,17 +2272,13 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { LocalUtxo self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_mnemonic_base( - MnemonicBase self, SseSerializer serializer); + 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_base( - PsbtBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_psbt_sig_hash_type( PsbtSigHashType self, SseSerializer serializer); @@ -2223,10 +2299,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_rpc_sync_params( RpcSyncParams self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_script_buf_base( - ScriptBufBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_sign_options( SignOptions self, SseSerializer serializer); @@ -2239,10 +2311,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_sqlite_db_configuration( SqliteDbConfiguration self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_transaction_base( - TransactionBase self, SseSerializer serializer); - @protected void sse_encode_box_autoadd_u_32(int self, SseSerializer serializer); @@ -2252,10 +2320,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); - @protected - void sse_encode_box_autoadd_wallet_base( - WalletBase self, SseSerializer serializer); - @protected void sse_encode_change_spend_policy( ChangeSpendPolicy self, SseSerializer serializer); @@ -2268,26 +2332,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_database_config( DatabaseConfig self, SseSerializer serializer); - @protected - void sse_encode_derivation_path_base( - DerivationPathBase self, SseSerializer serializer); - - @protected - void sse_encode_descriptor_base( - DescriptorBase self, SseSerializer serializer); - @protected void sse_encode_descriptor_error( DescriptorError self, SseSerializer serializer); - @protected - void sse_encode_descriptor_public_key_base( - DescriptorPublicKeyBase self, SseSerializer serializer); - - @protected - void sse_encode_descriptor_secret_key_base( - DescriptorSecretKeyBase self, SseSerializer serializer); - @protected void sse_encode_electrum_config( ElectrumConfig self, SseSerializer serializer); @@ -2349,7 +2397,7 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_local_utxo(LocalUtxo self, SseSerializer serializer); @protected - void sse_encode_mnemonic_base(MnemonicBase self, SseSerializer serializer); + void sse_encode_lock_time(LockTime self, SseSerializer serializer); @protected void sse_encode_network(Network self, SseSerializer serializer); @@ -2358,16 +2406,24 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_opt_String(String? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_address_base( - AddressBase? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_bdk_address( + BdkAddress? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_block_time( - BlockTime? self, SseSerializer serializer); + 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_descriptor_base( - DescriptorBase? self, SseSerializer serializer); + 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); @@ -2392,18 +2448,10 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_opt_box_autoadd_rpc_sync_params( RpcSyncParams? self, SseSerializer serializer); - @protected - void sse_encode_opt_box_autoadd_script_buf_base( - ScriptBufBase? self, SseSerializer serializer); - @protected void sse_encode_opt_box_autoadd_sign_options( SignOptions? self, SseSerializer serializer); - @protected - void sse_encode_opt_box_autoadd_transaction_base( - TransactionBase? self, SseSerializer serializer); - @protected void sse_encode_opt_box_autoadd_u_32(int? self, SseSerializer serializer); @@ -2419,9 +2467,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_payload(Payload self, SseSerializer serializer); - @protected - void sse_encode_psbt_base(PsbtBase self, SseSerializer serializer); - @protected void sse_encode_psbt_sig_hash_type( PsbtSigHashType self, SseSerializer serializer); @@ -2430,12 +2475,16 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_rbf_value(RbfValue self, SseSerializer serializer); @protected - void sse_encode_record_out_point_input_usize( - (OutPoint, Input, int) self, SseSerializer serializer); + void sse_encode_record_bdk_address_u_32( + (BdkAddress, int) self, SseSerializer serializer); @protected - void sse_encode_record_psbt_base_transaction_details( - (PsbtBase, TransactionDetails) self, SseSerializer serializer); + 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); @@ -2446,9 +2495,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_script_amount(ScriptAmount self, SseSerializer serializer); - @protected - void sse_encode_script_buf_base(ScriptBufBase self, SseSerializer serializer); - @protected void sse_encode_sign_options(SignOptions self, SseSerializer serializer); @@ -2460,10 +2506,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { void sse_encode_sqlite_db_configuration( SqliteDbConfiguration self, SseSerializer serializer); - @protected - void sse_encode_transaction_base( - TransactionBase self, SseSerializer serializer); - @protected void sse_encode_transaction_details( TransactionDetails self, SseSerializer serializer); @@ -2495,9 +2537,6 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_variant(Variant self, SseSerializer serializer); - @protected - void sse_encode_wallet_base(WalletBase self, SseSerializer serializer); - @protected void sse_encode_witness_version( WitnessVersion self, SseSerializer serializer); @@ -2508,324 +2547,330 @@ abstract class BdkCoreApiImplPlatform extends BaseApiImpl { // Section: wire_class -class BdkCoreWire implements BaseWire { - BdkCoreWire.fromExternalLibrary(ExternalLibrary lib); +class CApiWire implements BaseWire { + CApiWire.fromExternalLibrary(ExternalLibrary lib); - void wire_BlockchainBase_broadcast(NativePortType port_, List that, + void wire_bdk_blockchain_broadcast(NativePortType port_, List that, List transaction) => - wasmModule.wire_BlockchainBase_broadcast(port_, that, transaction); + wasmModule.wire_bdk_blockchain_broadcast(port_, that, transaction); - void wire_BlockchainBase_estimate_fee( + void wire_bdk_blockchain_estimate_fee( NativePortType port_, List that, Object target) => - wasmModule.wire_BlockchainBase_estimate_fee(port_, that, target); + wasmModule.wire_bdk_blockchain_estimate_fee(port_, that, target); - void wire_BlockchainBase_get_block_hash( + void wire_bdk_blockchain_get_block_hash( NativePortType port_, List that, int height) => - wasmModule.wire_BlockchainBase_get_block_hash(port_, that, height); + wasmModule.wire_bdk_blockchain_get_block_hash(port_, that, height); - void wire_BlockchainBase_get_height( + void wire_bdk_blockchain_get_height( NativePortType port_, List that) => - wasmModule.wire_BlockchainBase_get_height(port_, that); + wasmModule.wire_bdk_blockchain_get_height(port_, that); - void wire_BlockchainBase_new( + void wire_bdk_blockchain_new( NativePortType port_, List blockchain_config) => - wasmModule.wire_BlockchainBase_new(port_, blockchain_config); + wasmModule.wire_bdk_blockchain_new(port_, blockchain_config); - void wire_DescriptorBase_as_string( + void wire_bdk_descriptor_as_string( NativePortType port_, List that) => - wasmModule.wire_DescriptorBase_as_string(port_, that); + wasmModule.wire_bdk_descriptor_as_string(port_, that); - void wire_DescriptorBase_as_string_private( + void wire_bdk_descriptor_as_string_private( NativePortType port_, List that) => - wasmModule.wire_DescriptorBase_as_string_private(port_, that); + wasmModule.wire_bdk_descriptor_as_string_private(port_, that); - void wire_DescriptorBase_max_satisfaction_weight( + void wire_bdk_descriptor_max_satisfaction_weight( NativePortType port_, List that) => - wasmModule.wire_DescriptorBase_max_satisfaction_weight(port_, that); + wasmModule.wire_bdk_descriptor_max_satisfaction_weight(port_, that); - void wire_DescriptorBase_new( + void wire_bdk_descriptor_new( NativePortType port_, String descriptor, int network) => - wasmModule.wire_DescriptorBase_new(port_, descriptor, network); + wasmModule.wire_bdk_descriptor_new(port_, descriptor, network); - void wire_DescriptorBase_new_bip44(NativePortType port_, + void wire_bdk_descriptor_new_bip44(NativePortType port_, List secret_key, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip44( + wasmModule.wire_bdk_descriptor_new_bip44( port_, secret_key, keychain_kind, network); - void wire_DescriptorBase_new_bip44_public( + void wire_bdk_descriptor_new_bip44_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip44_public( + wasmModule.wire_bdk_descriptor_new_bip44_public( port_, public_key, fingerprint, keychain_kind, network); - void wire_DescriptorBase_new_bip49(NativePortType port_, + void wire_bdk_descriptor_new_bip49(NativePortType port_, List secret_key, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip49( + wasmModule.wire_bdk_descriptor_new_bip49( port_, secret_key, keychain_kind, network); - void wire_DescriptorBase_new_bip49_public( + void wire_bdk_descriptor_new_bip49_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip49_public( + wasmModule.wire_bdk_descriptor_new_bip49_public( port_, public_key, fingerprint, keychain_kind, network); - void wire_DescriptorBase_new_bip84(NativePortType port_, + void wire_bdk_descriptor_new_bip84(NativePortType port_, List secret_key, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip84( + wasmModule.wire_bdk_descriptor_new_bip84( port_, secret_key, keychain_kind, network); - void wire_DescriptorBase_new_bip84_public( + void wire_bdk_descriptor_new_bip84_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip84_public( + wasmModule.wire_bdk_descriptor_new_bip84_public( port_, public_key, fingerprint, keychain_kind, network); - void wire_DescriptorBase_new_bip86(NativePortType port_, + void wire_bdk_descriptor_new_bip86(NativePortType port_, List secret_key, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip86( + wasmModule.wire_bdk_descriptor_new_bip86( port_, secret_key, keychain_kind, network); - void wire_DescriptorBase_new_bip86_public( + void wire_bdk_descriptor_new_bip86_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network) => - wasmModule.wire_DescriptorBase_new_bip86_public( + wasmModule.wire_bdk_descriptor_new_bip86_public( port_, public_key, fingerprint, keychain_kind, network); - void wire_DerivationPathBase_from_string(NativePortType port_, String path) => - wasmModule.wire_DerivationPathBase_from_string(port_, path); + void wire_bdk_derivation_path_from_string( + NativePortType port_, String path) => + wasmModule.wire_bdk_derivation_path_from_string(port_, path); - void wire_DescriptorPublicKeyBase_as_string( + void wire_bdk_descriptor_public_key_as_string( NativePortType port_, List that) => - wasmModule.wire_DescriptorPublicKeyBase_as_string(port_, that); + wasmModule.wire_bdk_descriptor_public_key_as_string(port_, that); - void wire_DescriptorPublicKeyBase_derive( + void wire_bdk_descriptor_public_key_derive( NativePortType port_, List ptr, List path) => - wasmModule.wire_DescriptorPublicKeyBase_derive(port_, ptr, path); + wasmModule.wire_bdk_descriptor_public_key_derive(port_, ptr, path); - void wire_DescriptorPublicKeyBase_extend( + void wire_bdk_descriptor_public_key_extend( NativePortType port_, List ptr, List path) => - wasmModule.wire_DescriptorPublicKeyBase_extend(port_, ptr, path); + wasmModule.wire_bdk_descriptor_public_key_extend(port_, ptr, path); - void wire_DescriptorPublicKeyBase_from_string( + void wire_bdk_descriptor_public_key_from_string( NativePortType port_, String public_key) => - wasmModule.wire_DescriptorPublicKeyBase_from_string(port_, public_key); + wasmModule.wire_bdk_descriptor_public_key_from_string(port_, public_key); - void wire_DescriptorSecretKeyBase_as_public( + void wire_bdk_descriptor_secret_key_as_public( NativePortType port_, List ptr) => - wasmModule.wire_DescriptorSecretKeyBase_as_public(port_, ptr); + wasmModule.wire_bdk_descriptor_secret_key_as_public(port_, ptr); - void wire_DescriptorSecretKeyBase_as_string( + void wire_bdk_descriptor_secret_key_as_string( NativePortType port_, List that) => - wasmModule.wire_DescriptorSecretKeyBase_as_string(port_, that); + wasmModule.wire_bdk_descriptor_secret_key_as_string(port_, that); - void wire_DescriptorSecretKeyBase_create(NativePortType port_, int network, + void wire_bdk_descriptor_secret_key_create(NativePortType port_, int network, List mnemonic, String? password) => - wasmModule.wire_DescriptorSecretKeyBase_create( + wasmModule.wire_bdk_descriptor_secret_key_create( port_, network, mnemonic, password); - void wire_DescriptorSecretKeyBase_derive( + void wire_bdk_descriptor_secret_key_derive( NativePortType port_, List ptr, List path) => - wasmModule.wire_DescriptorSecretKeyBase_derive(port_, ptr, path); + wasmModule.wire_bdk_descriptor_secret_key_derive(port_, ptr, path); - void wire_DescriptorSecretKeyBase_extend( + void wire_bdk_descriptor_secret_key_extend( NativePortType port_, List ptr, List path) => - wasmModule.wire_DescriptorSecretKeyBase_extend(port_, ptr, path); + wasmModule.wire_bdk_descriptor_secret_key_extend(port_, ptr, path); - void wire_DescriptorSecretKeyBase_from_string( + void wire_bdk_descriptor_secret_key_from_string( NativePortType port_, String secret_key) => - wasmModule.wire_DescriptorSecretKeyBase_from_string(port_, secret_key); + wasmModule.wire_bdk_descriptor_secret_key_from_string(port_, secret_key); - void wire_DescriptorSecretKeyBase_secret_bytes( + void wire_bdk_descriptor_secret_key_secret_bytes( NativePortType port_, List that) => - wasmModule.wire_DescriptorSecretKeyBase_secret_bytes(port_, that); + wasmModule.wire_bdk_descriptor_secret_key_secret_bytes(port_, that); - void wire_MnemonicBase_as_string(NativePortType port_, List that) => - wasmModule.wire_MnemonicBase_as_string(port_, that); + void wire_bdk_mnemonic_as_string(NativePortType port_, List that) => + wasmModule.wire_bdk_mnemonic_as_string(port_, that); - void wire_MnemonicBase_from_entropy( + void wire_bdk_mnemonic_from_entropy( NativePortType port_, List entropy) => - wasmModule.wire_MnemonicBase_from_entropy(port_, entropy); + wasmModule.wire_bdk_mnemonic_from_entropy(port_, entropy); - void wire_MnemonicBase_from_string(NativePortType port_, String mnemonic) => - wasmModule.wire_MnemonicBase_from_string(port_, mnemonic); + void wire_bdk_mnemonic_from_string(NativePortType port_, String mnemonic) => + wasmModule.wire_bdk_mnemonic_from_string(port_, mnemonic); - void wire_MnemonicBase_new(NativePortType port_, int word_count) => - wasmModule.wire_MnemonicBase_new(port_, word_count); + void wire_bdk_mnemonic_new(NativePortType port_, int word_count) => + wasmModule.wire_bdk_mnemonic_new(port_, word_count); - void wire_PsbtBase_combine( + void wire_bdk_psbt_combine( NativePortType port_, List ptr, List other) => - wasmModule.wire_PsbtBase_combine(port_, ptr, other); + wasmModule.wire_bdk_psbt_combine(port_, ptr, other); - void wire_PsbtBase_extract_tx(NativePortType port_, List ptr) => - wasmModule.wire_PsbtBase_extract_tx(port_, ptr); + void wire_bdk_psbt_extract_tx(NativePortType port_, List ptr) => + wasmModule.wire_bdk_psbt_extract_tx(port_, ptr); - void wire_PsbtBase_fee_amount(NativePortType port_, List that) => - wasmModule.wire_PsbtBase_fee_amount(port_, that); + void wire_bdk_psbt_fee_amount(NativePortType port_, List that) => + wasmModule.wire_bdk_psbt_fee_amount(port_, that); - void wire_PsbtBase_fee_rate(NativePortType port_, List that) => - wasmModule.wire_PsbtBase_fee_rate(port_, that); + void wire_bdk_psbt_fee_rate(NativePortType port_, List that) => + wasmModule.wire_bdk_psbt_fee_rate(port_, that); - void wire_PsbtBase_from_str(NativePortType port_, String psbt_base64) => - wasmModule.wire_PsbtBase_from_str(port_, psbt_base64); + void wire_bdk_psbt_from_str(NativePortType port_, String psbt_base64) => + wasmModule.wire_bdk_psbt_from_str(port_, psbt_base64); - void wire_PsbtBase_json_serialize(NativePortType port_, List that) => - wasmModule.wire_PsbtBase_json_serialize(port_, that); + void wire_bdk_psbt_json_serialize(NativePortType port_, List that) => + wasmModule.wire_bdk_psbt_json_serialize(port_, that); - void wire_PsbtBase_serialize(NativePortType port_, List that) => - wasmModule.wire_PsbtBase_serialize(port_, that); + void wire_bdk_psbt_serialize(NativePortType port_, List that) => + wasmModule.wire_bdk_psbt_serialize(port_, that); - void wire_PsbtBase_txid(NativePortType port_, List that) => - wasmModule.wire_PsbtBase_txid(port_, that); + void wire_bdk_psbt_txid(NativePortType port_, List that) => + wasmModule.wire_bdk_psbt_txid(port_, that); - void wire_AddressBase_as_string(NativePortType port_, List that) => - wasmModule.wire_AddressBase_as_string(port_, that); + void wire_bdk_address_as_string(NativePortType port_, List that) => + wasmModule.wire_bdk_address_as_string(port_, that); - void wire_AddressBase_from_script( + void wire_bdk_address_from_script( NativePortType port_, List script, int network) => - wasmModule.wire_AddressBase_from_script(port_, script, network); + wasmModule.wire_bdk_address_from_script(port_, script, network); - void wire_AddressBase_from_string( + void wire_bdk_address_from_string( NativePortType port_, String address, int network) => - wasmModule.wire_AddressBase_from_string(port_, address, network); + wasmModule.wire_bdk_address_from_string(port_, address, network); - void wire_AddressBase_is_valid_for_network( + void wire_bdk_address_is_valid_for_network( NativePortType port_, List that, int network) => - wasmModule.wire_AddressBase_is_valid_for_network(port_, that, network); + wasmModule.wire_bdk_address_is_valid_for_network(port_, that, network); - void wire_AddressBase_network(NativePortType port_, List that) => - wasmModule.wire_AddressBase_network(port_, that); + void wire_bdk_address_network(NativePortType port_, List that) => + wasmModule.wire_bdk_address_network(port_, that); - void wire_AddressBase_payload(NativePortType port_, List that) => - wasmModule.wire_AddressBase_payload(port_, that); + void wire_bdk_address_payload(NativePortType port_, List that) => + wasmModule.wire_bdk_address_payload(port_, that); - void wire_AddressBase_script(NativePortType port_, List ptr) => - wasmModule.wire_AddressBase_script(port_, ptr); + void wire_bdk_address_script(NativePortType port_, List ptr) => + wasmModule.wire_bdk_address_script(port_, ptr); - void wire_AddressBase_to_qr_uri(NativePortType port_, List that) => - wasmModule.wire_AddressBase_to_qr_uri(port_, that); + void wire_bdk_address_to_qr_uri(NativePortType port_, List that) => + wasmModule.wire_bdk_address_to_qr_uri(port_, that); - void wire_ScriptBufBase_empty(NativePortType port_) => - wasmModule.wire_ScriptBufBase_empty(port_); + void wire_bdk_script_buf_empty(NativePortType port_) => + wasmModule.wire_bdk_script_buf_empty(port_); - void wire_ScriptBufBase_from_hex(NativePortType port_, String s) => - wasmModule.wire_ScriptBufBase_from_hex(port_, s); + void wire_bdk_script_buf_from_hex(NativePortType port_, String s) => + wasmModule.wire_bdk_script_buf_from_hex(port_, s); - void wire_ScriptBufBase_with_capacity(NativePortType port_, int capacity) => - wasmModule.wire_ScriptBufBase_with_capacity(port_, capacity); + 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_TransactionBase_input(NativePortType port_, List that) => - wasmModule.wire_TransactionBase_input(port_, that); + void wire_bdk_transaction_input(NativePortType port_, List that) => + wasmModule.wire_bdk_transaction_input(port_, that); - void wire_TransactionBase_is_coin_base( + void wire_bdk_transaction_is_coin_base( NativePortType port_, List that) => - wasmModule.wire_TransactionBase_is_coin_base(port_, that); + wasmModule.wire_bdk_transaction_is_coin_base(port_, that); - void wire_TransactionBase_is_explicitly_rbf( + void wire_bdk_transaction_is_explicitly_rbf( NativePortType port_, List that) => - wasmModule.wire_TransactionBase_is_explicitly_rbf(port_, that); + wasmModule.wire_bdk_transaction_is_explicitly_rbf(port_, that); - void wire_TransactionBase_is_lock_time_enabled( + void wire_bdk_transaction_is_lock_time_enabled( NativePortType port_, List that) => - wasmModule.wire_TransactionBase_is_lock_time_enabled(port_, that); + wasmModule.wire_bdk_transaction_is_lock_time_enabled(port_, that); - void wire_TransactionBase_lock_time( + void wire_bdk_transaction_lock_time( NativePortType port_, List that) => - wasmModule.wire_TransactionBase_lock_time(port_, that); + wasmModule.wire_bdk_transaction_lock_time(port_, that); - void wire_TransactionBase_new( - NativePortType port_, List transaction_bytes) => - wasmModule.wire_TransactionBase_new(port_, transaction_bytes); + 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_TransactionBase_output(NativePortType port_, List that) => - wasmModule.wire_TransactionBase_output(port_, that); + void wire_bdk_transaction_output(NativePortType port_, List that) => + wasmModule.wire_bdk_transaction_output(port_, that); - void wire_TransactionBase_serialize( + void wire_bdk_transaction_serialize( NativePortType port_, List that) => - wasmModule.wire_TransactionBase_serialize(port_, that); + wasmModule.wire_bdk_transaction_serialize(port_, that); - void wire_TransactionBase_size(NativePortType port_, List that) => - wasmModule.wire_TransactionBase_size(port_, that); + void wire_bdk_transaction_size(NativePortType port_, List that) => + wasmModule.wire_bdk_transaction_size(port_, that); - void wire_TransactionBase_txid(NativePortType port_, List that) => - wasmModule.wire_TransactionBase_txid(port_, that); + void wire_bdk_transaction_txid(NativePortType port_, List that) => + wasmModule.wire_bdk_transaction_txid(port_, that); - void wire_TransactionBase_version(NativePortType port_, List that) => - wasmModule.wire_TransactionBase_version(port_, that); + void wire_bdk_transaction_version(NativePortType port_, List that) => + wasmModule.wire_bdk_transaction_version(port_, that); - void wire_TransactionBase_vsize(NativePortType port_, List that) => - wasmModule.wire_TransactionBase_vsize(port_, that); + void wire_bdk_transaction_vsize(NativePortType port_, List that) => + wasmModule.wire_bdk_transaction_vsize(port_, that); - void wire_TransactionBase_weight(NativePortType port_, List that) => - wasmModule.wire_TransactionBase_weight(port_, that); + void wire_bdk_transaction_weight(NativePortType port_, List that) => + wasmModule.wire_bdk_transaction_weight(port_, that); - void wire_WalletBase_get_address(NativePortType port_, List that, + void wire_bdk_wallet_get_address(NativePortType port_, List ptr, List address_index) => - wasmModule.wire_WalletBase_get_address(port_, that, address_index); + wasmModule.wire_bdk_wallet_get_address(port_, ptr, address_index); - void wire_WalletBase_get_balance(NativePortType port_, List that) => - wasmModule.wire_WalletBase_get_balance(port_, that); + void wire_bdk_wallet_get_balance(NativePortType port_, List that) => + wasmModule.wire_bdk_wallet_get_balance(port_, that); - void wire_WalletBase_get_descriptor_for_keychain( + void wire_bdk_wallet_get_descriptor_for_keychain( NativePortType port_, List ptr, int keychain) => - wasmModule.wire_WalletBase_get_descriptor_for_keychain( + wasmModule.wire_bdk_wallet_get_descriptor_for_keychain( port_, ptr, keychain); - void wire_WalletBase_get_internal_address(NativePortType port_, - List that, List address_index) => - wasmModule.wire_WalletBase_get_internal_address( - port_, that, address_index); + 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_WalletBase_get_psbt_input( + void wire_bdk_wallet_get_psbt_input( NativePortType port_, List that, List utxo, bool only_witness_utxo, List? sighash_type) => - wasmModule.wire_WalletBase_get_psbt_input( + wasmModule.wire_bdk_wallet_get_psbt_input( port_, that, utxo, only_witness_utxo, sighash_type); - void wire_WalletBase_is_mine( + void wire_bdk_wallet_is_mine( NativePortType port_, List that, List script) => - wasmModule.wire_WalletBase_is_mine(port_, that, script); + wasmModule.wire_bdk_wallet_is_mine(port_, that, script); - void wire_WalletBase_list_transactions( + void wire_bdk_wallet_list_transactions( NativePortType port_, List that, bool include_raw) => - wasmModule.wire_WalletBase_list_transactions(port_, that, include_raw); + wasmModule.wire_bdk_wallet_list_transactions(port_, that, include_raw); - void wire_WalletBase_list_unspent(NativePortType port_, List that) => - wasmModule.wire_WalletBase_list_unspent(port_, that); + void wire_bdk_wallet_list_unspent(NativePortType port_, List that) => + wasmModule.wire_bdk_wallet_list_unspent(port_, that); - void wire_WalletBase_network(NativePortType port_, List that) => - wasmModule.wire_WalletBase_network(port_, that); + void wire_bdk_wallet_network(NativePortType port_, List that) => + wasmModule.wire_bdk_wallet_network(port_, that); - void wire_WalletBase_new( + void wire_bdk_wallet_new( NativePortType port_, List descriptor, List? change_descriptor, int network, List database_config) => - wasmModule.wire_WalletBase_new( + wasmModule.wire_bdk_wallet_new( port_, descriptor, change_descriptor, network, database_config); - void wire_WalletBase_sign(NativePortType port_, List ptr, + void wire_bdk_wallet_sign(NativePortType port_, List ptr, List psbt, List? sign_options) => - wasmModule.wire_WalletBase_sign(port_, ptr, psbt, sign_options); + wasmModule.wire_bdk_wallet_sign(port_, ptr, psbt, sign_options); - void wire_WalletBase_sync( + void wire_bdk_wallet_sync( NativePortType port_, List ptr, List blockchain) => - wasmModule.wire_WalletBase_sync(port_, ptr, blockchain); + wasmModule.wire_bdk_wallet_sync(port_, ptr, blockchain); void wire_finish_bump_fee_tx_builder( NativePortType port_, @@ -2973,266 +3018,269 @@ class BdkCoreWire implements BaseWire { } @JS('wasm_bindgen') -external BdkCoreWasmModule get wasmModule; +external CApiWasmModule get wasmModule; @JS() @anonymous -class BdkCoreWasmModule implements WasmModule { +class CApiWasmModule implements WasmModule { @override external Object /* Promise */ call([String? moduleName]); @override - external BdkCoreWasmModule bind(dynamic thisArg, String moduleName); + external CApiWasmModule bind(dynamic thisArg, String moduleName); - external void wire_BlockchainBase_broadcast( + external void wire_bdk_blockchain_broadcast( NativePortType port_, List that, List transaction); - external void wire_BlockchainBase_estimate_fee( + external void wire_bdk_blockchain_estimate_fee( NativePortType port_, List that, Object target); - external void wire_BlockchainBase_get_block_hash( + external void wire_bdk_blockchain_get_block_hash( NativePortType port_, List that, int height); - external void wire_BlockchainBase_get_height( + external void wire_bdk_blockchain_get_height( NativePortType port_, List that); - external void wire_BlockchainBase_new( + external void wire_bdk_blockchain_new( NativePortType port_, List blockchain_config); - external void wire_DescriptorBase_as_string( + external void wire_bdk_descriptor_as_string( NativePortType port_, List that); - external void wire_DescriptorBase_as_string_private( + external void wire_bdk_descriptor_as_string_private( NativePortType port_, List that); - external void wire_DescriptorBase_max_satisfaction_weight( + external void wire_bdk_descriptor_max_satisfaction_weight( NativePortType port_, List that); - external void wire_DescriptorBase_new( + external void wire_bdk_descriptor_new( NativePortType port_, String descriptor, int network); - external void wire_DescriptorBase_new_bip44(NativePortType port_, + external void wire_bdk_descriptor_new_bip44(NativePortType port_, List secret_key, int keychain_kind, int network); - external void wire_DescriptorBase_new_bip44_public( + external void wire_bdk_descriptor_new_bip44_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network); - external void wire_DescriptorBase_new_bip49(NativePortType port_, + external void wire_bdk_descriptor_new_bip49(NativePortType port_, List secret_key, int keychain_kind, int network); - external void wire_DescriptorBase_new_bip49_public( + external void wire_bdk_descriptor_new_bip49_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network); - external void wire_DescriptorBase_new_bip84(NativePortType port_, + external void wire_bdk_descriptor_new_bip84(NativePortType port_, List secret_key, int keychain_kind, int network); - external void wire_DescriptorBase_new_bip84_public( + external void wire_bdk_descriptor_new_bip84_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network); - external void wire_DescriptorBase_new_bip86(NativePortType port_, + external void wire_bdk_descriptor_new_bip86(NativePortType port_, List secret_key, int keychain_kind, int network); - external void wire_DescriptorBase_new_bip86_public( + external void wire_bdk_descriptor_new_bip86_public( NativePortType port_, List public_key, String fingerprint, int keychain_kind, int network); - external void wire_DerivationPathBase_from_string( + external void wire_bdk_derivation_path_from_string( NativePortType port_, String path); - external void wire_DescriptorPublicKeyBase_as_string( + external void wire_bdk_descriptor_public_key_as_string( NativePortType port_, List that); - external void wire_DescriptorPublicKeyBase_derive( + external void wire_bdk_descriptor_public_key_derive( NativePortType port_, List ptr, List path); - external void wire_DescriptorPublicKeyBase_extend( + external void wire_bdk_descriptor_public_key_extend( NativePortType port_, List ptr, List path); - external void wire_DescriptorPublicKeyBase_from_string( + external void wire_bdk_descriptor_public_key_from_string( NativePortType port_, String public_key); - external void wire_DescriptorSecretKeyBase_as_public( + external void wire_bdk_descriptor_secret_key_as_public( NativePortType port_, List ptr); - external void wire_DescriptorSecretKeyBase_as_string( + external void wire_bdk_descriptor_secret_key_as_string( NativePortType port_, List that); - external void wire_DescriptorSecretKeyBase_create(NativePortType port_, + external void wire_bdk_descriptor_secret_key_create(NativePortType port_, int network, List mnemonic, String? password); - external void wire_DescriptorSecretKeyBase_derive( + external void wire_bdk_descriptor_secret_key_derive( NativePortType port_, List ptr, List path); - external void wire_DescriptorSecretKeyBase_extend( + external void wire_bdk_descriptor_secret_key_extend( NativePortType port_, List ptr, List path); - external void wire_DescriptorSecretKeyBase_from_string( + external void wire_bdk_descriptor_secret_key_from_string( NativePortType port_, String secret_key); - external void wire_DescriptorSecretKeyBase_secret_bytes( + external void wire_bdk_descriptor_secret_key_secret_bytes( NativePortType port_, List that); - external void wire_MnemonicBase_as_string( + external void wire_bdk_mnemonic_as_string( NativePortType port_, List that); - external void wire_MnemonicBase_from_entropy( + external void wire_bdk_mnemonic_from_entropy( NativePortType port_, List entropy); - external void wire_MnemonicBase_from_string( + external void wire_bdk_mnemonic_from_string( NativePortType port_, String mnemonic); - external void wire_MnemonicBase_new(NativePortType port_, int word_count); + external void wire_bdk_mnemonic_new(NativePortType port_, int word_count); - external void wire_PsbtBase_combine( + external void wire_bdk_psbt_combine( NativePortType port_, List ptr, List other); - external void wire_PsbtBase_extract_tx( + external void wire_bdk_psbt_extract_tx( NativePortType port_, List ptr); - external void wire_PsbtBase_fee_amount( + external void wire_bdk_psbt_fee_amount( NativePortType port_, List that); - external void wire_PsbtBase_fee_rate( + external void wire_bdk_psbt_fee_rate( NativePortType port_, List that); - external void wire_PsbtBase_from_str( + external void wire_bdk_psbt_from_str( NativePortType port_, String psbt_base64); - external void wire_PsbtBase_json_serialize( + external void wire_bdk_psbt_json_serialize( NativePortType port_, List that); - external void wire_PsbtBase_serialize( + external void wire_bdk_psbt_serialize( NativePortType port_, List that); - external void wire_PsbtBase_txid(NativePortType port_, List that); + external void wire_bdk_psbt_txid(NativePortType port_, List that); - external void wire_AddressBase_as_string( + external void wire_bdk_address_as_string( NativePortType port_, List that); - external void wire_AddressBase_from_script( + external void wire_bdk_address_from_script( NativePortType port_, List script, int network); - external void wire_AddressBase_from_string( + external void wire_bdk_address_from_string( NativePortType port_, String address, int network); - external void wire_AddressBase_is_valid_for_network( + external void wire_bdk_address_is_valid_for_network( NativePortType port_, List that, int network); - external void wire_AddressBase_network( + external void wire_bdk_address_network( NativePortType port_, List that); - external void wire_AddressBase_payload( + external void wire_bdk_address_payload( NativePortType port_, List that); - external void wire_AddressBase_script( + external void wire_bdk_address_script( NativePortType port_, List ptr); - external void wire_AddressBase_to_qr_uri( + external void wire_bdk_address_to_qr_uri( NativePortType port_, List that); - external void wire_ScriptBufBase_empty(NativePortType port_); + external void wire_bdk_script_buf_empty(NativePortType port_); - external void wire_ScriptBufBase_from_hex(NativePortType port_, String s); + external void wire_bdk_script_buf_from_hex(NativePortType port_, String s); - external void wire_ScriptBufBase_with_capacity( + external void wire_bdk_script_buf_with_capacity( NativePortType port_, int capacity); - external void wire_TransactionBase_input( + 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_TransactionBase_is_coin_base( + external void wire_bdk_transaction_is_coin_base( NativePortType port_, List that); - external void wire_TransactionBase_is_explicitly_rbf( + external void wire_bdk_transaction_is_explicitly_rbf( NativePortType port_, List that); - external void wire_TransactionBase_is_lock_time_enabled( + external void wire_bdk_transaction_is_lock_time_enabled( NativePortType port_, List that); - external void wire_TransactionBase_lock_time( + external void wire_bdk_transaction_lock_time( NativePortType port_, List that); - external void wire_TransactionBase_new( - NativePortType port_, List transaction_bytes); + external void wire_bdk_transaction_new(NativePortType port_, int version, + List lock_time, List input, List output); - external void wire_TransactionBase_output( + external void wire_bdk_transaction_output( NativePortType port_, List that); - external void wire_TransactionBase_serialize( + external void wire_bdk_transaction_serialize( NativePortType port_, List that); - external void wire_TransactionBase_size( + external void wire_bdk_transaction_size( NativePortType port_, List that); - external void wire_TransactionBase_txid( + external void wire_bdk_transaction_txid( NativePortType port_, List that); - external void wire_TransactionBase_version( + external void wire_bdk_transaction_version( NativePortType port_, List that); - external void wire_TransactionBase_vsize( + external void wire_bdk_transaction_vsize( NativePortType port_, List that); - external void wire_TransactionBase_weight( + external void wire_bdk_transaction_weight( NativePortType port_, List that); - external void wire_WalletBase_get_address( - NativePortType port_, List that, List address_index); + external void wire_bdk_wallet_get_address( + NativePortType port_, List ptr, List address_index); - external void wire_WalletBase_get_balance( + external void wire_bdk_wallet_get_balance( NativePortType port_, List that); - external void wire_WalletBase_get_descriptor_for_keychain( + external void wire_bdk_wallet_get_descriptor_for_keychain( NativePortType port_, List ptr, int keychain); - external void wire_WalletBase_get_internal_address( - NativePortType port_, List that, List address_index); + external void wire_bdk_wallet_get_internal_address( + NativePortType port_, List ptr, List address_index); - external void wire_WalletBase_get_psbt_input( + external void wire_bdk_wallet_get_psbt_input( NativePortType port_, List that, List utxo, bool only_witness_utxo, List? sighash_type); - external void wire_WalletBase_is_mine( + external void wire_bdk_wallet_is_mine( NativePortType port_, List that, List script); - external void wire_WalletBase_list_transactions( + external void wire_bdk_wallet_list_transactions( NativePortType port_, List that, bool include_raw); - external void wire_WalletBase_list_unspent( + external void wire_bdk_wallet_list_unspent( NativePortType port_, List that); - external void wire_WalletBase_network( + external void wire_bdk_wallet_network( NativePortType port_, List that); - external void wire_WalletBase_new( + external void wire_bdk_wallet_new( NativePortType port_, List descriptor, List? change_descriptor, int network, List database_config); - external void wire_WalletBase_sign(NativePortType port_, List ptr, + external void wire_bdk_wallet_sign(NativePortType port_, List ptr, List psbt, List? sign_options); - external void wire_WalletBase_sync( + external void wire_bdk_wallet_sync( NativePortType port_, List ptr, List blockchain); external void wire_finish_bump_fee_tx_builder( diff --git a/lib/src/root.dart b/lib/src/root.dart index 0aa46321..f835d94a 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -11,14 +11,13 @@ import 'generated/api/types.dart'; import 'generated/api/wallet.dart'; ///A Bitcoin address. -class Address extends AddressBase { +class Address extends BdkAddress { Address._({required super.ptr}); static Future
fromScript( {required ScriptBuf script, required Network network}) async { try { - await Frb.verifyInit(); - final res = - await AddressBase.fromScript(script: script, network: network); + await Api.initialize(); + final res = await BdkAddress.fromScript(script: script, network: network); return Address._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -28,8 +27,8 @@ class Address extends AddressBase { static Future
fromString( {required String s, required Network network}) async { try { - await Frb.verifyInit(); - final res = await AddressBase.fromString(address: s, network: network); + await Api.initialize(); + final res = await BdkAddress.fromString(address: s, network: network); return Address._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -39,7 +38,7 @@ class Address extends AddressBase { ///Generates a script pubkey spending to this address Future scriptPubkey() async { try { - final res = await AddressBase.script(ptr: this); + final res = await BdkAddress.script(ptr: this); return ScriptBuf(bytes: res.bytes); } on BdkError catch (e) { throw mapToException(e); @@ -48,14 +47,14 @@ class Address extends AddressBase { } /// Blockchain backends module provides the implementation of a few commonly-used backends like Electrum, and Esplora. -class Blockchain extends BlockchainBase { +class Blockchain extends BdkBlockchain { Blockchain._({required super.ptr}); /// [Blockchain] constructor static Future create({required BlockchainConfig config}) async { try { - await Frb.verifyInit(); - final res = await BlockchainBase.newInstance(blockchainConfig: config); + await Api.initialize(); + final res = await BdkBlockchain.newInstance(blockchainConfig: config); return Blockchain._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -74,7 +73,7 @@ class Blockchain extends BlockchainBase { ///The function for broadcasting a transaction @override - Future broadcast({required TransactionBase transaction, hint}) async { + Future broadcast({required BdkTransaction transaction, hint}) async { try { return super.broadcast(transaction: transaction); } on BdkError catch (e) { @@ -161,14 +160,14 @@ class BumpFeeTxBuilder { } ///A `BIP-32` derivation path -class DerivationPath extends DerivationPathBase { +class DerivationPath extends BdkDerivationPath { DerivationPath._({required super.ptr}); /// [DerivationPath] constructor static Future create({required String path}) async { try { - await Frb.verifyInit(); - final res = await DerivationPathBase.fromString(path: path); + await Api.initialize(); + final res = await BdkDerivationPath.fromString(path: path); return DerivationPath._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -177,15 +176,15 @@ class DerivationPath extends DerivationPathBase { } ///Script descriptor -class Descriptor extends DescriptorBase { +class Descriptor extends BdkDescriptor { Descriptor._({required super.extendedDescriptor, required super.keyMap}); /// [Descriptor] constructor static Future create( {required String descriptor, required Network network}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newInstance( + await Api.initialize(); + final res = await BdkDescriptor.newInstance( descriptor: descriptor, network: network); return Descriptor._( extendedDescriptor: res.extendedDescriptor, keyMap: res.keyMap); @@ -202,8 +201,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip44( + await Api.initialize(); + final res = await BdkDescriptor.newBip44( secretKey: secretKey, network: network, keychainKind: keychain); return Descriptor._( extendedDescriptor: res.extendedDescriptor, keyMap: res.keyMap); @@ -223,8 +222,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip44Public( + await Api.initialize(); + final res = await BdkDescriptor.newBip44Public( network: network, keychainKind: keychain, publicKey: publicKey, @@ -244,8 +243,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip49( + await Api.initialize(); + final res = await BdkDescriptor.newBip49( secretKey: secretKey, network: network, keychainKind: keychain); return Descriptor._( extendedDescriptor: res.extendedDescriptor, keyMap: res.keyMap); @@ -265,8 +264,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip44Public( + await Api.initialize(); + final res = await BdkDescriptor.newBip44Public( network: network, keychainKind: keychain, publicKey: publicKey, @@ -286,8 +285,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip84( + await Api.initialize(); + final res = await BdkDescriptor.newBip84( secretKey: secretKey, network: network, keychainKind: keychain); return Descriptor._( extendedDescriptor: res.extendedDescriptor, keyMap: res.keyMap); @@ -307,8 +306,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip44Public( + await Api.initialize(); + final res = await BdkDescriptor.newBip44Public( network: network, keychainKind: keychain, publicKey: publicKey, @@ -328,8 +327,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip86( + await Api.initialize(); + final res = await BdkDescriptor.newBip86( secretKey: secretKey, network: network, keychainKind: keychain); return Descriptor._( extendedDescriptor: res.extendedDescriptor, keyMap: res.keyMap); @@ -349,8 +348,8 @@ class Descriptor extends DescriptorBase { required Network network, required KeychainKind keychain}) async { try { - await Frb.verifyInit(); - final res = await DescriptorBase.newBip44Public( + await Api.initialize(); + final res = await BdkDescriptor.newBip44Public( network: network, keychainKind: keychain, publicKey: publicKey, @@ -394,15 +393,14 @@ class Descriptor extends DescriptorBase { } ///An extended public key. -class DescriptorPublicKey extends DescriptorPublicKeyBase { +class DescriptorPublicKey extends BdkDescriptorPublicKey { DescriptorPublicKey._({required super.ptr}); /// [DescriptorPublicKey] constructor static Future fromString(String publicKey) async { try { - await Frb.verifyInit(); - final res = - await DescriptorPublicKeyBase.fromString(publicKey: publicKey); + await Api.initialize(); + final res = await BdkDescriptorPublicKey.fromString(publicKey: publicKey); return DescriptorPublicKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -421,9 +419,9 @@ class DescriptorPublicKey extends DescriptorPublicKeyBase { ///Derive a public descriptor at a given path. Future derive( - {required DerivationPathBase path, hint}) async { + {required BdkDerivationPath path, hint}) async { try { - final res = await DescriptorPublicKeyBase.derive(ptr: this, path: path); + final res = await BdkDescriptorPublicKey.derive(ptr: this, path: path); return DescriptorPublicKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -432,9 +430,9 @@ class DescriptorPublicKey extends DescriptorPublicKeyBase { ///Extend the public descriptor with a custom path. Future extend( - {required DerivationPathBase path, hint}) async { + {required BdkDerivationPath path, hint}) async { try { - final res = await DescriptorPublicKeyBase.extend(ptr: this, path: path); + final res = await BdkDescriptorPublicKey.extend(ptr: this, path: path); return DescriptorPublicKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -443,15 +441,14 @@ class DescriptorPublicKey extends DescriptorPublicKeyBase { } ///Script descriptor -class DescriptorSecretKey extends DescriptorSecretKeyBase { +class DescriptorSecretKey extends BdkDescriptorSecretKey { DescriptorSecretKey._({required super.ptr}); /// [DescriptorSecretKey] constructor static Future fromString(String secretKey) async { try { - await Frb.verifyInit(); - final res = - await DescriptorSecretKeyBase.fromString(secretKey: secretKey); + await Api.initialize(); + final res = await BdkDescriptorSecretKey.fromString(secretKey: secretKey); return DescriptorSecretKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -464,8 +461,8 @@ class DescriptorSecretKey extends DescriptorSecretKeyBase { required Mnemonic mnemonic, String? password}) async { try { - await Frb.verifyInit(); - final res = await DescriptorSecretKeyBase.create( + await Api.initialize(); + final res = await BdkDescriptorSecretKey.create( network: network, mnemonic: mnemonic, password: password); return DescriptorSecretKey._(ptr: res.ptr); } on BdkError catch (e) { @@ -474,9 +471,9 @@ class DescriptorSecretKey extends DescriptorSecretKeyBase { } ///Derived the XPrv using the derivation path - Future derive(DerivationPathBase path) async { + Future derive(BdkDerivationPath path) async { try { - final res = await DescriptorSecretKeyBase.derive(ptr: this, path: path); + final res = await BdkDescriptorSecretKey.derive(ptr: this, path: path); return DescriptorSecretKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -484,9 +481,9 @@ class DescriptorSecretKey extends DescriptorSecretKeyBase { } ///Extends the XPrv using the derivation path - Future extend(DerivationPathBase path) async { + Future extend(BdkDerivationPath path) async { try { - final res = await DescriptorSecretKeyBase.extend(ptr: this, path: path); + final res = await BdkDescriptorSecretKey.extend(ptr: this, path: path); return DescriptorSecretKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -496,7 +493,7 @@ class DescriptorSecretKey extends DescriptorSecretKeyBase { ///Returns the public version of this key. Future asPublic() async { try { - final res = await DescriptorSecretKeyBase.asPublic(ptr: this); + final res = await BdkDescriptorSecretKey.asPublic(ptr: this); return DescriptorPublicKey._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -525,7 +522,7 @@ class DescriptorSecretKey extends DescriptorSecretKeyBase { } ///Mnemonic phrases are a human-readable version of the private keys. Supported number of words are 12, 18, and 24. -class Mnemonic extends MnemonicBase { +class Mnemonic extends BdkMnemonic { Mnemonic._({required super.ptr}); /// Generates [Mnemonic] with given [WordCount] @@ -533,8 +530,8 @@ class Mnemonic extends MnemonicBase { /// [Mnemonic] constructor static Future create(WordCount wordCount) async { try { - await Frb.verifyInit(); - final res = await MnemonicBase.newInstance(wordCount: wordCount); + await Api.initialize(); + final res = await BdkMnemonic.newInstance(wordCount: wordCount); return Mnemonic._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -547,8 +544,8 @@ class Mnemonic extends MnemonicBase { /// [Mnemonic] constructor static Future fromEntropy(List entropy) async { try { - await Frb.verifyInit(); - final res = await MnemonicBase.fromEntropy(entropy: entropy); + await Api.initialize(); + final res = await BdkMnemonic.fromEntropy(entropy: entropy); return Mnemonic._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -560,8 +557,8 @@ class Mnemonic extends MnemonicBase { /// [Mnemonic] constructor static Future fromString(String mnemonic) async { try { - await Frb.verifyInit(); - final res = await MnemonicBase.fromString(mnemonic: mnemonic); + await Api.initialize(); + final res = await BdkMnemonic.fromString(mnemonic: mnemonic); return Mnemonic._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -580,7 +577,7 @@ class Mnemonic extends MnemonicBase { } ///A Partially Signed Transaction -class PartiallySignedTransaction extends PsbtBase { +class PartiallySignedTransaction extends BdkPsbt { PartiallySignedTransaction._({required super.ptr}); /// Parse a [PartiallySignedTransaction] with given Base64 string @@ -589,8 +586,8 @@ class PartiallySignedTransaction extends PsbtBase { static Future fromString( String psbtBase64) async { try { - await Frb.verifyInit(); - final res = await PsbtBase.fromStr(psbtBase64: psbtBase64); + await Api.initialize(); + final res = await BdkPsbt.fromStr(psbtBase64: psbtBase64); return PartiallySignedTransaction._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -639,7 +636,7 @@ class PartiallySignedTransaction extends PsbtBase { ///Return the transaction as bytes. Future extractTx() async { try { - final res = await PsbtBase.extractTx(ptr: this); + final res = await BdkPsbt.extractTx(ptr: this); return Transaction._(inner: res.inner); } on BdkError catch (e) { throw mapToException(e); @@ -650,7 +647,7 @@ class PartiallySignedTransaction extends PsbtBase { Future combine( PartiallySignedTransaction other) async { try { - final res = await PsbtBase.combine(ptr: this, other: other); + final res = await BdkPsbt.combine(ptr: this, other: other); return PartiallySignedTransaction._(ptr: res.ptr); } on BdkError catch (e) { throw mapToException(e); @@ -669,15 +666,15 @@ class PartiallySignedTransaction extends PsbtBase { } ///Bitcoin script. -class ScriptBuf extends ScriptBufBase { +class ScriptBuf extends BdkScriptBuf { /// [ScriptBuf] constructor ScriptBuf({required super.bytes}); ///Creates a new empty script. static Future empty() async { try { - await Frb.verifyInit(); - final res = await ScriptBufBase.empty(); + await Api.initialize(); + final res = await BdkScriptBuf.empty(); return ScriptBuf(bytes: res.bytes); } on BdkError catch (e) { throw mapToException(e); @@ -687,8 +684,8 @@ class ScriptBuf extends ScriptBufBase { ///Creates a new empty script with pre-allocated capacity. static Future withCapacity(int capacity) async { try { - await Frb.verifyInit(); - final res = await ScriptBufBase.withCapacity(capacity: capacity); + await Api.initialize(); + final res = await BdkScriptBuf.withCapacity(capacity: capacity); return ScriptBuf(bytes: res.bytes); } on BdkError catch (e) { throw mapToException(e); @@ -698,8 +695,8 @@ class ScriptBuf extends ScriptBufBase { ///Creates a ScriptBuf from a hex string. static Future fromHex(String s) async { try { - await Frb.verifyInit(); - final res = await ScriptBufBase.fromHex(s: s); + await Api.initialize(); + final res = await BdkScriptBuf.fromHex(s: s); return ScriptBuf(bytes: res.bytes); } on BdkError catch (e) { throw mapToException(e); @@ -708,19 +705,19 @@ class ScriptBuf extends ScriptBufBase { } ///A bitcoin transaction. -class Transaction extends TransactionBase { +class Transaction extends BdkTransaction { Transaction._({required super.inner}); /// [Transaction] constructor /// Decode an object with a well-defined format. // This is the method that should be implemented for a typical, fixed sized type implementing this trait. - static Future create({ + static Future fromBytes({ required List transactionBytes, }) async { try { - await Frb.verifyInit(); + await Api.initialize(); final res = - await TransactionBase.newInstance(transactionBytes: transactionBytes); + await BdkTransaction.fromBytes(transactionBytes: transactionBytes); return Transaction._(inner: res.inner); } on BdkError catch (e) { throw mapToException(e); @@ -941,7 +938,7 @@ class TxBuilder { /// 1. Output descriptors from which it can derive addresses. /// 2. A Database where it tracks transactions and utxos related to the descriptors. /// 3. Signers that can contribute signatures to addresses instantiated from the descriptors. -class Wallet extends WalletBase { +class Wallet extends BdkWallet { Wallet._({required super.ptr}); /// [Wallet] constructor @@ -955,8 +952,8 @@ class Wallet extends WalletBase { required DatabaseConfig databaseConfig, }) async { try { - await Frb.verifyInit(); - final res = await WalletBase.newInstance( + await Api.initialize(); + final res = await BdkWallet.newInstance( descriptor: descriptor, changeDescriptor: changeDescriptor, network: network, @@ -971,11 +968,12 @@ class Wallet extends WalletBase { /// 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. - @override Future getAddress( {required AddressIndex addressIndex, hint}) async { try { - return super.getAddress(addressIndex: addressIndex); + final res = + await BdkWallet.getAddress(ptr: this, addressIndex: addressIndex); + return AddressInfo(res.$2, Address._(ptr: res.$1.ptr)); } on BdkError catch (e) { throw mapToException(e); } @@ -996,7 +994,7 @@ class Wallet extends WalletBase { Future getDescriptorForKeychain( {required KeychainKind keychain, hint}) async { try { - final res = await WalletBase.getDescriptorForKeychain( + final res = await BdkWallet.getDescriptorForKeychain( ptr: this, keychain: keychain); return Descriptor._( extendedDescriptor: res.extendedDescriptor, keyMap: res.keyMap); @@ -1012,11 +1010,13 @@ class Wallet extends WalletBase { /// 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]. - @override + Future getInternalAddress( {required AddressIndex addressIndex, hint}) async { try { - return super.getInternalAddress(addressIndex: addressIndex); + final res = await BdkWallet.getInternalAddress( + ptr: this, addressIndex: addressIndex); + return AddressInfo(res.$2, Address._(ptr: res.$1.ptr)); } on BdkError catch (e) { throw mapToException(e); } @@ -1041,7 +1041,7 @@ class Wallet extends WalletBase { /// Return whether or not a script is part of this wallet (either internal or external). @override - Future isMine({required ScriptBufBase script, hint}) async { + Future isMine({required BdkScriptBuf script, hint}) async { try { return super.isMine(script: script); } on BdkError catch (e) { @@ -1062,6 +1062,7 @@ class Wallet extends WalletBase { /// 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. + /// TODO; Update; create custom LocalUtxo @override Future> listUnspent({hint}) async { try { @@ -1089,9 +1090,11 @@ class Wallet extends WalletBase { /// signers will follow the options, but the "software signers" (WIF keys and `xprv`) defined /// in this library will. Future sign( - {required PsbtBase psbt, SignOptions? signOptions, hint}) async { + {required PartiallySignedTransaction psbt, + SignOptions? signOptions, + hint}) async { try { - final res = await WalletBase.sign(ptr: this, psbt: psbt); + final res = await BdkWallet.sign(ptr: this, psbt: psbt); return res; } on BdkError catch (e) { throw mapToException(e); @@ -1102,10 +1105,21 @@ class Wallet extends WalletBase { Future sync({required Blockchain blockchain, hint}) async { try { - final res = await WalletBase.sync(ptr: this, blockchain: blockchain); + final res = await BdkWallet.sync(ptr: this, blockchain: blockchain); return res; } on BdkError catch (e) { throw mapToException(e); } } } + +///A derived address and the index it was found at For convenience this automatically derefs to Address +class AddressInfo { + ///Child index of this address + final int index; + + /// Address + final Address address; + + AddressInfo(this.index, this.address); +} diff --git a/lib/src/utils/exceptions.dart b/lib/src/utils/exceptions.dart index 2dbb42d6..20ecbd44 100644 --- a/lib/src/utils/exceptions.dart +++ b/lib/src/utils/exceptions.dart @@ -271,6 +271,21 @@ class Bip39Exception extends BdkFfiException { Bip39Exception({super.message}); } +class InvalidTransactionException extends BdkFfiException { + /// Constructs the [InvalidTransactionException] + InvalidTransactionException({super.message}); +} + +class InvalidLockTimeException extends BdkFfiException { + /// Constructs the [InvalidLockTimeException] + InvalidLockTimeException({super.message}); +} + +class InvalidInputException extends BdkFfiException { + /// Constructs the [InvalidInputException] + InvalidInputException({super.message}); +} + Exception mapToException(BdkError error) { return error.when( noUtxosSelected: () => NoUtxosSelectedException( @@ -346,5 +361,8 @@ Exception mapToException(BdkError error) { consensus: (e) => ConsensusError(message: e.toString()), address: (e) => AddressException(message: e.toString()), bip39: (e) => Bip39Exception(message: e.toString()), + invalidInput: (e) => InvalidInputException(message: e), + invalidLockTime: (e) => InvalidLockTimeException(message: e), + invalidTransaction: (e) => InvalidTransactionException(message: e), ); } diff --git a/lib/src/utils/utils.dart b/lib/src/utils/utils.dart index ccfef76c..08e25d0e 100644 --- a/lib/src/utils/utils.dart +++ b/lib/src/utils/utils.dart @@ -2,11 +2,11 @@ import '../generated/frb_generated.dart'; export 'exceptions.dart'; -class Frb { - static Future verifyInit() async { +class Api { + static Future initialize() async { try { - if (!BdkCore.instance.initialized) { - await BdkCore.init(); + if (!CApi.instance.initialized) { + await CApi.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 f8bc1d42..c79716cb 100644 --- a/macos/Classes/frb_generated.h +++ b/macos/Classes/frb_generated.h @@ -14,18 +14,18 @@ void store_dart_post_cobject(DartPostCObjectFnType ptr); // EXTRA END typedef struct _Dart_Handle* Dart_Handle; -typedef struct wire_cst_blockchain_base { +typedef struct wire_cst_bdk_blockchain { uintptr_t ptr; -} wire_cst_blockchain_base; +} wire_cst_bdk_blockchain; typedef struct wire_cst_list_prim_u_8_strict { uint8_t *ptr; int32_t len; } wire_cst_list_prim_u_8_strict; -typedef struct wire_cst_transaction_base { +typedef struct wire_cst_bdk_transaction { struct wire_cst_list_prim_u_8_strict *inner; -} wire_cst_transaction_base; +} wire_cst_bdk_transaction; typedef struct wire_cst_electrum_config { struct wire_cst_list_prim_u_8_strict *url; @@ -101,47 +101,97 @@ typedef struct wire_cst_blockchain_config { union BlockchainConfigKind kind; } wire_cst_blockchain_config; -typedef struct wire_cst_descriptor_base { +typedef struct wire_cst_bdk_descriptor { uintptr_t extended_descriptor; uintptr_t key_map; -} wire_cst_descriptor_base; +} wire_cst_bdk_descriptor; -typedef struct wire_cst_descriptor_secret_key_base { +typedef struct wire_cst_bdk_descriptor_secret_key { uintptr_t ptr; -} wire_cst_descriptor_secret_key_base; +} wire_cst_bdk_descriptor_secret_key; -typedef struct wire_cst_descriptor_public_key_base { +typedef struct wire_cst_bdk_descriptor_public_key { uintptr_t ptr; -} wire_cst_descriptor_public_key_base; +} wire_cst_bdk_descriptor_public_key; -typedef struct wire_cst_derivation_path_base { +typedef struct wire_cst_bdk_derivation_path { uintptr_t ptr; -} wire_cst_derivation_path_base; +} wire_cst_bdk_derivation_path; -typedef struct wire_cst_mnemonic_base { +typedef struct wire_cst_bdk_mnemonic { uintptr_t ptr; -} wire_cst_mnemonic_base; +} wire_cst_bdk_mnemonic; typedef struct wire_cst_list_prim_u_8_loose { uint8_t *ptr; int32_t len; } wire_cst_list_prim_u_8_loose; -typedef struct wire_cst_psbt_base { +typedef struct wire_cst_bdk_psbt { uintptr_t ptr; -} wire_cst_psbt_base; +} wire_cst_bdk_psbt; -typedef struct wire_cst_address_base { +typedef struct wire_cst_bdk_address { uintptr_t ptr; -} wire_cst_address_base; +} wire_cst_bdk_address; -typedef struct wire_cst_script_buf_base { +typedef struct wire_cst_bdk_script_buf { struct wire_cst_list_prim_u_8_strict *bytes; -} wire_cst_script_buf_base; +} wire_cst_bdk_script_buf; -typedef struct wire_cst_wallet_base { +typedef struct wire_cst_LockTime_Blocks { + uint32_t field0; +} wire_cst_LockTime_Blocks; + +typedef struct wire_cst_LockTime_Seconds { + uint32_t field0; +} wire_cst_LockTime_Seconds; + +typedef union LockTimeKind { + struct wire_cst_LockTime_Blocks Blocks; + struct wire_cst_LockTime_Seconds Seconds; +} LockTimeKind; + +typedef struct wire_cst_lock_time { + int32_t tag; + union LockTimeKind kind; +} wire_cst_lock_time; + +typedef struct wire_cst_out_point { + struct wire_cst_list_prim_u_8_strict *txid; + uint32_t vout; +} wire_cst_out_point; + +typedef struct wire_cst_list_list_prim_u_8_strict { + struct wire_cst_list_prim_u_8_strict **ptr; + int32_t len; +} wire_cst_list_list_prim_u_8_strict; + +typedef struct wire_cst_tx_in { + struct wire_cst_out_point previous_output; + struct wire_cst_bdk_script_buf script_sig; + uint32_t sequence; + struct wire_cst_list_list_prim_u_8_strict *witness; +} wire_cst_tx_in; + +typedef struct wire_cst_list_tx_in { + struct wire_cst_tx_in *ptr; + int32_t len; +} wire_cst_list_tx_in; + +typedef struct wire_cst_tx_out { + uint64_t value; + struct wire_cst_bdk_script_buf script_pubkey; +} wire_cst_tx_out; + +typedef struct wire_cst_list_tx_out { + struct wire_cst_tx_out *ptr; + int32_t len; +} wire_cst_list_tx_out; + +typedef struct wire_cst_bdk_wallet { uintptr_t ptr; -} wire_cst_wallet_base; +} wire_cst_bdk_wallet; typedef struct wire_cst_AddressIndex_Peek { uint32_t index; @@ -161,16 +211,6 @@ typedef struct wire_cst_address_index { union AddressIndexKind kind; } wire_cst_address_index; -typedef struct wire_cst_out_point { - struct wire_cst_list_prim_u_8_strict *txid; - uint32_t vout; -} wire_cst_out_point; - -typedef struct wire_cst_tx_out { - uint64_t value; - struct wire_cst_script_buf_base script_pubkey; -} wire_cst_tx_out; - typedef struct wire_cst_local_utxo { struct wire_cst_out_point outpoint; struct wire_cst_tx_out txout; @@ -221,7 +261,7 @@ typedef struct wire_cst_sign_options { } wire_cst_sign_options; typedef struct wire_cst_script_amount { - struct wire_cst_script_buf_base script; + struct wire_cst_bdk_script_buf script; uint64_t amount; } wire_cst_script_amount; @@ -430,18 +470,13 @@ typedef struct wire_cst_hex_error { union HexErrorKind kind; } wire_cst_hex_error; -typedef struct wire_cst_list_list_prim_u_8_strict { - struct wire_cst_list_prim_u_8_strict **ptr; - int32_t len; -} wire_cst_list_list_prim_u_8_strict; - typedef struct wire_cst_list_local_utxo { struct wire_cst_local_utxo *ptr; int32_t len; } wire_cst_list_local_utxo; typedef struct wire_cst_transaction_details { - struct wire_cst_transaction_base *transaction; + struct wire_cst_bdk_transaction *transaction; struct wire_cst_list_prim_u_8_strict *txid; uint64_t received; uint64_t sent; @@ -454,28 +489,6 @@ typedef struct wire_cst_list_transaction_details { int32_t len; } wire_cst_list_transaction_details; -typedef struct wire_cst_tx_in { - struct wire_cst_out_point previous_output; - struct wire_cst_script_buf_base script_sig; - uint32_t sequence; - struct wire_cst_list_list_prim_u_8_strict *witness; -} wire_cst_tx_in; - -typedef struct wire_cst_list_tx_in { - struct wire_cst_tx_in *ptr; - int32_t len; -} wire_cst_list_tx_in; - -typedef struct wire_cst_list_tx_out { - struct wire_cst_tx_out *ptr; - int32_t len; -} wire_cst_list_tx_out; - -typedef struct wire_cst_address_info { - uint32_t index; - struct wire_cst_list_prim_u_8_strict *address; -} wire_cst_address_info; - typedef struct wire_cst_balance { uint64_t immature; uint64_t trusted_pending; @@ -616,6 +629,18 @@ typedef struct wire_cst_BdkError_Rusqlite { struct wire_cst_list_prim_u_8_strict *field0; } wire_cst_BdkError_Rusqlite; +typedef struct wire_cst_BdkError_InvalidInput { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_BdkError_InvalidInput; + +typedef struct wire_cst_BdkError_InvalidLockTime { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_BdkError_InvalidLockTime; + +typedef struct wire_cst_BdkError_InvalidTransaction { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_BdkError_InvalidTransaction; + typedef union BdkErrorKind { struct wire_cst_BdkError_Hex Hex; struct wire_cst_BdkError_Consensus Consensus; @@ -649,6 +674,9 @@ typedef union BdkErrorKind { struct wire_cst_BdkError_Sled Sled; struct wire_cst_BdkError_Rpc Rpc; struct wire_cst_BdkError_Rusqlite Rusqlite; + struct wire_cst_BdkError_InvalidInput InvalidInput; + struct wire_cst_BdkError_InvalidLockTime InvalidLockTime; + struct wire_cst_BdkError_InvalidTransaction InvalidTransaction; } BdkErrorKind; typedef struct wire_cst_bdk_error { @@ -680,288 +708,298 @@ typedef struct wire_cst_payload { union PayloadKind kind; } wire_cst_payload; -typedef struct wire_cst_record_psbt_base_transaction_details { - struct wire_cst_psbt_base field0; +typedef struct wire_cst_record_bdk_address_u_32 { + struct wire_cst_bdk_address field0; + uint32_t field1; +} wire_cst_record_bdk_address_u_32; + +typedef struct wire_cst_record_bdk_psbt_transaction_details { + struct wire_cst_bdk_psbt field0; struct wire_cst_transaction_details field1; -} wire_cst_record_psbt_base_transaction_details; +} wire_cst_record_bdk_psbt_transaction_details; -void frbgen_bdk_flutter_wire_BlockchainBase_broadcast(int64_t port_, - struct wire_cst_blockchain_base *that, - struct wire_cst_transaction_base *transaction); +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_BlockchainBase_estimate_fee(int64_t port_, - struct wire_cst_blockchain_base *that, +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_BlockchainBase_get_block_hash(int64_t port_, - struct wire_cst_blockchain_base *that, +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_BlockchainBase_get_height(int64_t port_, - struct wire_cst_blockchain_base *that); +void frbgen_bdk_flutter_wire_bdk_blockchain_get_height(int64_t port_, + struct wire_cst_bdk_blockchain *that); -void frbgen_bdk_flutter_wire_BlockchainBase_new(int64_t port_, +void frbgen_bdk_flutter_wire_bdk_blockchain_new(int64_t port_, struct wire_cst_blockchain_config *blockchain_config); -void frbgen_bdk_flutter_wire_DescriptorBase_as_string(int64_t port_, - struct wire_cst_descriptor_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_as_string(int64_t port_, + struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_DescriptorBase_as_string_private(int64_t port_, - struct wire_cst_descriptor_base *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_DescriptorBase_max_satisfaction_weight(int64_t port_, - struct wire_cst_descriptor_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight(int64_t port_, + struct wire_cst_bdk_descriptor *that); -void frbgen_bdk_flutter_wire_DescriptorBase_new(int64_t port_, +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_DescriptorBase_new_bip44(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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_DescriptorBase_new_bip44_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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_DescriptorBase_new_bip49(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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_DescriptorBase_new_bip49_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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_DescriptorBase_new_bip84(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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_DescriptorBase_new_bip84_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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_DescriptorBase_new_bip86(int64_t port_, - struct wire_cst_descriptor_secret_key_base *secret_key, +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); -void frbgen_bdk_flutter_wire_DescriptorBase_new_bip86_public(int64_t port_, - struct wire_cst_descriptor_public_key_base *public_key, +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); -void frbgen_bdk_flutter_wire_DerivationPathBase_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *path); +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_DescriptorPublicKeyBase_as_string(int64_t port_, - struct wire_cst_descriptor_public_key_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string(int64_t port_, + struct wire_cst_bdk_descriptor_public_key *that); -void frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_derive(int64_t port_, - struct wire_cst_descriptor_public_key_base *ptr, - struct wire_cst_derivation_path_base *path); +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_DescriptorPublicKeyBase_extend(int64_t port_, - struct wire_cst_descriptor_public_key_base *ptr, - struct wire_cst_derivation_path_base *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_DescriptorPublicKeyBase_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *public_key); +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_DescriptorSecretKeyBase_as_public(int64_t port_, - struct wire_cst_descriptor_secret_key_base *ptr); +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_DescriptorSecretKeyBase_as_string(int64_t port_, - struct wire_cst_descriptor_secret_key_base *that); +void frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string(int64_t port_, + struct wire_cst_bdk_descriptor_secret_key *that); -void frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_create(int64_t port_, - int32_t network, - struct wire_cst_mnemonic_base *mnemonic, - struct wire_cst_list_prim_u_8_strict *password); +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_DescriptorSecretKeyBase_derive(int64_t port_, - struct wire_cst_descriptor_secret_key_base *ptr, - struct wire_cst_derivation_path_base *path); +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_DescriptorSecretKeyBase_extend(int64_t port_, - struct wire_cst_descriptor_secret_key_base *ptr, - struct wire_cst_derivation_path_base *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_DescriptorSecretKeyBase_from_string(int64_t port_, - struct wire_cst_list_prim_u_8_strict *secret_key); +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_DescriptorSecretKeyBase_secret_bytes(int64_t port_, - struct wire_cst_descriptor_secret_key_base *that); +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_MnemonicBase_as_string(int64_t port_, - struct wire_cst_mnemonic_base *that); +void frbgen_bdk_flutter_wire_bdk_mnemonic_as_string(int64_t port_, + struct wire_cst_bdk_mnemonic *that); -void frbgen_bdk_flutter_wire_MnemonicBase_from_entropy(int64_t port_, +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_MnemonicBase_from_string(int64_t port_, +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_MnemonicBase_new(int64_t port_, int32_t word_count); +void frbgen_bdk_flutter_wire_bdk_mnemonic_new(int64_t port_, int32_t word_count); -void frbgen_bdk_flutter_wire_PsbtBase_combine(int64_t port_, - struct wire_cst_psbt_base *ptr, - struct wire_cst_psbt_base *other); +void frbgen_bdk_flutter_wire_bdk_psbt_combine(int64_t port_, + struct wire_cst_bdk_psbt *ptr, + struct wire_cst_bdk_psbt *other); -void frbgen_bdk_flutter_wire_PsbtBase_extract_tx(int64_t port_, struct wire_cst_psbt_base *ptr); +void frbgen_bdk_flutter_wire_bdk_psbt_extract_tx(int64_t port_, struct wire_cst_bdk_psbt *ptr); -void frbgen_bdk_flutter_wire_PsbtBase_fee_amount(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_fee_amount(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_fee_rate(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_fee_rate(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_from_str(int64_t port_, +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_PsbtBase_json_serialize(int64_t port_, - struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_json_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_serialize(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_serialize(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_PsbtBase_txid(int64_t port_, struct wire_cst_psbt_base *that); +void frbgen_bdk_flutter_wire_bdk_psbt_txid(int64_t port_, struct wire_cst_bdk_psbt *that); -void frbgen_bdk_flutter_wire_AddressBase_as_string(int64_t port_, - struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_address_as_string(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_AddressBase_from_script(int64_t port_, - struct wire_cst_script_buf_base *script, +void frbgen_bdk_flutter_wire_bdk_address_from_script(int64_t port_, + struct wire_cst_bdk_script_buf *script, int32_t network); -void frbgen_bdk_flutter_wire_AddressBase_from_string(int64_t port_, +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_AddressBase_is_valid_for_network(int64_t port_, - struct wire_cst_address_base *that, +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_AddressBase_network(int64_t port_, struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_address_network(int64_t port_, struct wire_cst_bdk_address *that); + +void frbgen_bdk_flutter_wire_bdk_address_payload(int64_t port_, struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_AddressBase_payload(int64_t port_, struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_address_script(int64_t port_, struct wire_cst_bdk_address *ptr); -void frbgen_bdk_flutter_wire_AddressBase_script(int64_t port_, struct wire_cst_address_base *ptr); +void frbgen_bdk_flutter_wire_bdk_address_to_qr_uri(int64_t port_, + struct wire_cst_bdk_address *that); -void frbgen_bdk_flutter_wire_AddressBase_to_qr_uri(int64_t port_, - struct wire_cst_address_base *that); +void frbgen_bdk_flutter_wire_bdk_script_buf_empty(int64_t port_); -void frbgen_bdk_flutter_wire_ScriptBufBase_empty(int64_t port_); +void frbgen_bdk_flutter_wire_bdk_script_buf_from_hex(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_bdk_flutter_wire_ScriptBufBase_from_hex(int64_t port_, - struct wire_cst_list_prim_u_8_strict *s); +void frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity(int64_t port_, uintptr_t capacity); -void frbgen_bdk_flutter_wire_ScriptBufBase_with_capacity(int64_t port_, uintptr_t capacity); +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_TransactionBase_input(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_input(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_is_coin_base(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_is_explicitly_rbf(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_is_lock_time_enabled(int64_t port_, - struct wire_cst_transaction_base *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_TransactionBase_lock_time(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_lock_time(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_new(int64_t port_, - struct wire_cst_list_prim_u_8_loose *transaction_bytes); +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_TransactionBase_output(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_output(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_serialize(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_serialize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_size(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_size(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_txid(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_txid(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_version(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_version(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_vsize(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_vsize(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_TransactionBase_weight(int64_t port_, - struct wire_cst_transaction_base *that); +void frbgen_bdk_flutter_wire_bdk_transaction_weight(int64_t port_, + struct wire_cst_bdk_transaction *that); -void frbgen_bdk_flutter_wire_WalletBase_get_address(int64_t port_, - struct wire_cst_wallet_base *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_WalletBase_get_balance(int64_t port_, - struct wire_cst_wallet_base *that); +void frbgen_bdk_flutter_wire_bdk_wallet_get_balance(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_WalletBase_get_descriptor_for_keychain(int64_t port_, - struct wire_cst_wallet_base *ptr, +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_WalletBase_get_internal_address(int64_t port_, - struct wire_cst_wallet_base *that, +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_WalletBase_get_psbt_input(int64_t port_, - struct wire_cst_wallet_base *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_WalletBase_is_mine(int64_t port_, - struct wire_cst_wallet_base *that, - struct wire_cst_script_buf_base *script); +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_WalletBase_list_transactions(int64_t port_, - struct wire_cst_wallet_base *that, +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_WalletBase_list_unspent(int64_t port_, - struct wire_cst_wallet_base *that); +void frbgen_bdk_flutter_wire_bdk_wallet_list_unspent(int64_t port_, + struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_WalletBase_network(int64_t port_, struct wire_cst_wallet_base *that); +void frbgen_bdk_flutter_wire_bdk_wallet_network(int64_t port_, struct wire_cst_bdk_wallet *that); -void frbgen_bdk_flutter_wire_WalletBase_new(int64_t port_, - struct wire_cst_descriptor_base *descriptor, - struct wire_cst_descriptor_base *change_descriptor, +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_WalletBase_sign(int64_t port_, - struct wire_cst_wallet_base *ptr, - struct wire_cst_psbt_base *psbt, +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_WalletBase_sync(int64_t port_, - struct wire_cst_wallet_base *ptr, - struct wire_cst_blockchain_base *blockchain); +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_finish_bump_fee_tx_builder(int64_t port_, struct wire_cst_list_prim_u_8_strict *txid, float fee_rate, - struct wire_cst_address_base *allow_shrinking, - struct wire_cst_wallet_base *wallet, + 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_tx_builder_finish(int64_t port_, - struct wire_cst_wallet_base *wallet, + 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, @@ -971,7 +1009,7 @@ void frbgen_bdk_flutter_wire_tx_builder_finish(int64_t port_, float *fee_rate, uint64_t *fee_absolute, bool drain_wallet, - struct wire_cst_script_buf_base *drain_to, + struct wire_cst_bdk_script_buf *drain_to, struct wire_cst_rbf_value *rbf, struct wire_cst_list_prim_u_8_loose *data); @@ -1015,31 +1053,41 @@ void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_keysbip39Mnem void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_keysbip39Mnemonic(const void *ptr); -struct wire_cst_address_base *frbgen_bdk_flutter_cst_new_box_autoadd_address_base(void); - struct wire_cst_address_error *frbgen_bdk_flutter_cst_new_box_autoadd_address_error(void); struct wire_cst_address_index *frbgen_bdk_flutter_cst_new_box_autoadd_address_index(void); -struct wire_cst_block_time *frbgen_bdk_flutter_cst_new_box_autoadd_block_time(void); +struct wire_cst_bdk_address *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_address(void); -struct wire_cst_blockchain_base *frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_base(void); +struct wire_cst_bdk_blockchain *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_blockchain(void); -struct wire_cst_blockchain_config *frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config(void); +struct wire_cst_bdk_derivation_path *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_derivation_path(void); -struct wire_cst_consensus_error *frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error(void); +struct wire_cst_bdk_descriptor *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor(void); -struct wire_cst_database_config *frbgen_bdk_flutter_cst_new_box_autoadd_database_config(void); +struct wire_cst_bdk_descriptor_public_key *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_public_key(void); -struct wire_cst_derivation_path_base *frbgen_bdk_flutter_cst_new_box_autoadd_derivation_path_base(void); +struct wire_cst_bdk_descriptor_secret_key *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_secret_key(void); -struct wire_cst_descriptor_base *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_base(void); +struct wire_cst_bdk_mnemonic *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_mnemonic(void); -struct wire_cst_descriptor_error *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error(void); +struct wire_cst_bdk_psbt *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_psbt(void); + +struct wire_cst_bdk_script_buf *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_script_buf(void); + +struct wire_cst_bdk_transaction *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_transaction(void); + +struct wire_cst_bdk_wallet *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_wallet(void); -struct wire_cst_descriptor_public_key_base *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_public_key_base(void); +struct wire_cst_block_time *frbgen_bdk_flutter_cst_new_box_autoadd_block_time(void); + +struct wire_cst_blockchain_config *frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config(void); + +struct wire_cst_consensus_error *frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error(void); + +struct wire_cst_database_config *frbgen_bdk_flutter_cst_new_box_autoadd_database_config(void); -struct wire_cst_descriptor_secret_key_base *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_secret_key_base(void); +struct wire_cst_descriptor_error *frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error(void); struct wire_cst_electrum_config *frbgen_bdk_flutter_cst_new_box_autoadd_electrum_config(void); @@ -1053,12 +1101,10 @@ struct wire_cst_hex_error *frbgen_bdk_flutter_cst_new_box_autoadd_hex_error(void struct wire_cst_local_utxo *frbgen_bdk_flutter_cst_new_box_autoadd_local_utxo(void); -struct wire_cst_mnemonic_base *frbgen_bdk_flutter_cst_new_box_autoadd_mnemonic_base(void); +struct wire_cst_lock_time *frbgen_bdk_flutter_cst_new_box_autoadd_lock_time(void); struct wire_cst_out_point *frbgen_bdk_flutter_cst_new_box_autoadd_out_point(void); -struct wire_cst_psbt_base *frbgen_bdk_flutter_cst_new_box_autoadd_psbt_base(void); - struct wire_cst_psbt_sig_hash_type *frbgen_bdk_flutter_cst_new_box_autoadd_psbt_sig_hash_type(void); struct wire_cst_rbf_value *frbgen_bdk_flutter_cst_new_box_autoadd_rbf_value(void); @@ -1069,24 +1115,18 @@ struct wire_cst_rpc_config *frbgen_bdk_flutter_cst_new_box_autoadd_rpc_config(vo struct wire_cst_rpc_sync_params *frbgen_bdk_flutter_cst_new_box_autoadd_rpc_sync_params(void); -struct wire_cst_script_buf_base *frbgen_bdk_flutter_cst_new_box_autoadd_script_buf_base(void); - struct wire_cst_sign_options *frbgen_bdk_flutter_cst_new_box_autoadd_sign_options(void); struct wire_cst_sled_db_configuration *frbgen_bdk_flutter_cst_new_box_autoadd_sled_db_configuration(void); struct wire_cst_sqlite_db_configuration *frbgen_bdk_flutter_cst_new_box_autoadd_sqlite_db_configuration(void); -struct wire_cst_transaction_base *frbgen_bdk_flutter_cst_new_box_autoadd_transaction_base(void); - uint32_t *frbgen_bdk_flutter_cst_new_box_autoadd_u_32(uint32_t value); uint64_t *frbgen_bdk_flutter_cst_new_box_autoadd_u_64(uint64_t value); uint8_t *frbgen_bdk_flutter_cst_new_box_autoadd_u_8(uint8_t value); -struct wire_cst_wallet_base *frbgen_bdk_flutter_cst_new_box_autoadd_wallet_base(void); - struct wire_cst_list_list_prim_u_8_strict *frbgen_bdk_flutter_cst_new_list_list_prim_u_8_strict(int32_t len); struct wire_cst_list_local_utxo *frbgen_bdk_flutter_cst_new_list_local_utxo(int32_t len); @@ -1106,42 +1146,43 @@ struct wire_cst_list_tx_in *frbgen_bdk_flutter_cst_new_list_tx_in(int32_t len); struct wire_cst_list_tx_out *frbgen_bdk_flutter_cst_new_list_tx_out(int32_t len); static int64_t dummy_method_to_enforce_bundling(void) { int64_t dummy_var = 0; - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_address_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_address_error); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_address_index); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_address); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_blockchain); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_derivation_path); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_public_key); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_secret_key); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_psbt); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_script_buf); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_transaction); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bdk_wallet); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_block_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_database_config); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_derivation_path_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_public_key_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_secret_key_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_electrum_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_esplora_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_f_32); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_fee_rate); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_hex_error); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_local_utxo); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_mnemonic_base); + dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_lock_time); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_out_point); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_psbt_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_psbt_sig_hash_type); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_rbf_value); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_record_out_point_input_usize); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_rpc_config); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_rpc_sync_params); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_script_buf_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_sign_options); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_sled_db_configuration); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_sqlite_db_configuration); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_transaction_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_u_32); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_u_64); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_u_8); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_wallet_base); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_list_prim_u_8_strict); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_local_utxo); dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_out_point); @@ -1171,83 +1212,84 @@ static int64_t dummy_method_to_enforce_bundling(void) { 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_AddressBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_from_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_is_valid_for_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_payload); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_script); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_AddressBase_to_qr_uri); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_broadcast); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_estimate_fee); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_get_block_hash); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_get_height); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_BlockchainBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DerivationPathBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_as_string_private); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_max_satisfaction_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip44); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip44_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip49); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip49_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip84); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip84_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip86); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorBase_new_bip86_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_public); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_create); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_derive); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_extend); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_secret_bytes); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_as_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_from_entropy); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_from_string); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_MnemonicBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_combine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_extract_tx); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_fee_amount); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_fee_rate); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_from_str); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_json_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_PsbtBase_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_ScriptBufBase_empty); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_ScriptBufBase_from_hex); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_ScriptBufBase_with_capacity); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_is_coin_base); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_is_explicitly_rbf); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_is_lock_time_enabled); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_lock_time); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_output); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_serialize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_size); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_txid); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_version); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_vsize); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_TransactionBase_weight); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_balance); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_descriptor_for_keychain); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_internal_address); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_get_psbt_input); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_is_mine); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_list_transactions); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_list_unspent); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_network); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_new); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_sign); - dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire_WalletBase_sync); + 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*) store_dart_post_cobject); diff --git a/macos/bdk_flutter.podspec b/macos/bdk_flutter.podspec index d7bf194d..1fecb16e 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.1-dev" + s.version = "0.31.2-dev" 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 ad60a8f7..60b7bfe4 100644 --- a/makefile +++ b/makefile @@ -11,7 +11,7 @@ help: makefile ## init: Install missing dependencies. init: - cargo install 'flutter_rust_bridge_codegen@^2.0.0-dev.28' + cargo install 'flutter_rust_bridge_codegen@2.0.0-dev.31' ## : all: init generate-bindings diff --git a/pubspec.lock b/pubspec.lock index 2b2b0459..1cb8d5c0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -234,10 +234,10 @@ packages: dependency: "direct main" description: name: flutter_rust_bridge - sha256: c51fa002e57e64d13030269ed9cd43752173ee4c6f60ec1e9c41450d63c75bae + sha256: e9a8716b1ad2fc81c434f3e4bf84b86c578578678c57e568b44aea7acf210102 url: "https://pub.dev" source: hosted - version: "2.0.0-dev.28" + version: "2.0.0-dev.31" flutter_test: dependency: "direct dev" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 6fce732f..0e4a22c0 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.1-dev +version: 0.31.2-dev homepage: https://github.com/LtbLightning/bdk-flutter environment: @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - flutter_rust_bridge: ">2.0.0-dev.25 <= 2.0.0-dev.28" + flutter_rust_bridge: ">2.0.0-dev.30 <= 2.0.0-dev.31" ffi: ^2.0.1 freezed_annotation: ^2.2.0 mockito: ^5.4.0 @@ -34,4 +34,4 @@ flutter: ios: ffiPlugin: true macos: - ffiPlugin: true + ffiPlugin: true \ No newline at end of file diff --git a/rust/Cargo.lock b/rust/Cargo.lock index d5977827..7a367368 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -62,9 +62,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.16" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" +checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "android-tzdata" @@ -149,9 +149,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.81" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" +checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" dependencies = [ "backtrace", ] @@ -164,13 +164,13 @@ checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" [[package]] name = "async-trait" -version = "0.1.79" +version = "0.1.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" +checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -262,7 +262,7 @@ dependencies = [ [[package]] name = "bdk_flutter" -version = "0.31.1-dev" +version = "0.31.2-dev" dependencies = [ "anyhow", "assert_matches", @@ -355,9 +355,9 @@ checksum = "832133bbabbbaa9fbdba793456a2827627a7d2b8fb96032fa1e7666d7895832b" [[package]] name = "bumpalo" -version = "3.15.4" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytemuck" @@ -432,9 +432,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.90" +version = "1.0.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5" +checksum = "17f6e324229dc011159fcc089755d1e2e216a90d43a7dea6853ca740b84f35e7" [[package]] name = "cfg-if" @@ -444,16 +444,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.37" +version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a0d04d43504c61aa6c7531f1871dd0d418d91130162063b789da00fd7057a5e" +checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", - "windows-targets 0.52.4", + "windows-targets 0.52.5", ] [[package]] @@ -487,7 +487,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -647,7 +647,7 @@ checksum = "51aac4c99b2e6775164b412ea33ae8441b2fde2dbf05a20bc0052a63d08c475b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -663,9 +663,9 @@ dependencies = [ [[package]] name = "either" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" +checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" [[package]] name = "electrum-client" @@ -709,19 +709,19 @@ checksum = "03cdc46ec28bd728e67540c528013c6a10eb69a02eb31078a1bda695438cbfb8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] name = "enum_dispatch" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f33313078bb8d4d05a2733a94ac4c2d8a0df9a2b84424ebf4f33bfc224a890e" +checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -816,9 +816,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.0.0-dev.28" +version = "2.0.0-dev.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce0ad7ece8037d2e85f53413c5cc1e6b33b56ff63fc0a530c08eec7c4b8b3f26" +checksum = "9d9ceb6f8db0bf711a55e20151c6699132bb5975f846ecac2c3bc7d23cc0845d" dependencies = [ "allo-isolate", "android_logger", @@ -843,9 +843,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_codegen" -version = "2.0.0-dev.28" +version = "2.0.0-dev.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e7121d658626cf3921aa75de2cae9f77814b4317a1353e7be7c6be8d656cf01" +checksum = "fb089f0e86a6873eb9538ee5dea459e9bb029feeb6777ecf1f996c805451a507" dependencies = [ "anyhow", "atty", @@ -860,6 +860,7 @@ dependencies = [ "enum_dispatch", "fern", "glob", + "hex", "include_dir", "indicatif", "indicatif-log-bridge", @@ -879,7 +880,7 @@ dependencies = [ "serial_test", "strum", "strum_macros", - "syn 2.0.55", + "syn 2.0.59", "tempfile", "toml 0.5.11", "topological-sort", @@ -887,9 +888,14 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.0.0-dev.28" +version = "2.0.0-dev.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5844c71d6ea7f6023838838e6d01aeeef41920abc8e628ca24bac19d09c8fea6" +checksum = "e02edfe56f04af804d3145b17dfe7820d46a6753b214160f227dbdfa1073f7cb" +dependencies = [ + "hex", + "quote", + "syn 2.0.59", +] [[package]] name = "form_urlencoded" @@ -975,7 +981,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -1019,9 +1025,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ "cfg-if", "libc", @@ -1092,6 +1098,12 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + [[package]] name = "hex_lit" version = "0.1.1" @@ -1526,9 +1538,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project-lite" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] name = "pin-utils" @@ -1556,18 +1568,18 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "proc-macro2" -version = "1.0.79" +version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +checksum = "a56dea16b0a29e94408b9aa5e2940a4eedbd128a1ba20e8f7ae60fd3d465af0e" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -1752,9 +1764,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" +checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" [[package]] name = "ryu" @@ -1834,7 +1846,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -1891,7 +1903,7 @@ checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -1944,9 +1956,9 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "strsim" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "strum" @@ -1986,9 +1998,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.55" +version = "2.0.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "002a1b3dbf967edfafc32655d0f377ab0bb7b994aa1d32c8cc7e9b8bf3ebb8f0" +checksum = "4a6531ffc7b071655e4ce2e04bd464c4830bb585a61cabb96cf808f05172615a" dependencies = [ "proc-macro2", "quote", @@ -2033,9 +2045,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.36.0" +version = "1.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" +checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" dependencies = [ "backtrace", "num_cpus", @@ -2051,7 +2063,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] @@ -2222,7 +2234,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", "wasm-bindgen-shared", ] @@ -2256,7 +2268,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -2342,7 +2354,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.4", + "windows-targets 0.52.5", ] [[package]] @@ -2360,7 +2372,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.4", + "windows-targets 0.52.5", ] [[package]] @@ -2380,17 +2392,18 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" +checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.4", - "windows_aarch64_msvc 0.52.4", - "windows_i686_gnu 0.52.4", - "windows_i686_msvc 0.52.4", - "windows_x86_64_gnu 0.52.4", - "windows_x86_64_gnullvm 0.52.4", - "windows_x86_64_msvc 0.52.4", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "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", ] [[package]] @@ -2401,9 +2414,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" @@ -2413,9 +2426,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" @@ -2425,9 +2438,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" +checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" [[package]] name = "windows_i686_msvc" @@ -2437,9 +2456,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" @@ -2449,9 +2468,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" @@ -2461,9 +2480,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" @@ -2473,15 +2492,15 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" -version = "0.52.4" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "winnow" -version = "0.6.5" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8" +checksum = "f0c976aaaa0e1f90dbb21e9587cdaf1d9679a1cde8875c0d6bd83ab96a208352" dependencies = [ "memchr", ] @@ -2512,7 +2531,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.55", + "syn 2.0.59", ] [[package]] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index b2348c0a..cb8f3928 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bdk_flutter" -version = "0.31.1-dev" +version = "0.31.2-dev" edition = "2021" [lib] @@ -9,10 +9,10 @@ crate-type = ["staticlib", "cdylib"] assert_matches = "1.5" [build-dependencies] -flutter_rust_bridge_codegen = { version = "= 2.0.0-dev.28" } +flutter_rust_bridge_codegen = { version = "= 2.0.0-dev.31" } anyhow = "1.0.68" [dependencies] -flutter_rust_bridge = "=2.0.0-dev.28" +flutter_rust_bridge = "=2.0.0-dev.31" rand = "0.8" bdk = { version = "0.29.0", features = ["all-keys", "use-esplora-ureq", "sqlite-bundled", "rpc"] } serde = "1.0.89" diff --git a/rust/cargokit.yaml b/rust/cargokit.yaml index a5b04a5a..4657395e 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 + public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b \ No newline at end of file diff --git a/rust/src/api/blockchain.rs b/rust/src/api/blockchain.rs index 509f617e..178c4d40 100644 --- a/rust/src/api/blockchain.rs +++ b/rust/src/api/blockchain.rs @@ -1,30 +1,30 @@ -use crate::api::types::{FeeRate, Network, TransactionBase}; +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; -use bdk::blockchain::Blockchain as BdkBlockchain; + pub use bdk::blockchain::{ AnyBlockchain, AnyBlockchainConfig, ConfigurableBlockchain, ElectrumBlockchainConfig, - GetBlockHash, GetHeight, + rpc, GetBlockHash, GetHeight,Blockchain }; use std::path::PathBuf; -pub struct BlockchainBase { +pub struct BdkBlockchain { pub ptr: RustOpaque, } -impl From for BlockchainBase { +impl From for BdkBlockchain { fn from(value: AnyBlockchain) -> Self { Self { ptr: RustOpaque::new(value), } } } -impl BlockchainBase { - pub fn new(blockchain_config: BlockchainConfig) -> Result { +impl BdkBlockchain { + pub fn new(blockchain_config: BlockchainConfig) -> Result { let any_blockchain_config = match blockchain_config { BlockchainConfig::Electrum { config } => { AnyBlockchainConfig::Electrum(ElectrumBlockchainConfig { @@ -62,9 +62,9 @@ impl BlockchainBase { self.ptr.clone() } - pub fn broadcast(&self, transaction: TransactionBase) -> Result { - let tx: &Transaction = &(&(transaction)).into(); - self.get_blockchain().broadcast(tx)?; + pub fn broadcast(&self, transaction: BdkTransaction) -> Result { + let tx: Transaction = (&transaction).try_into()?; + self.get_blockchain().broadcast(&tx)?; Ok(tx.txid().to_string()) } @@ -141,7 +141,7 @@ pub enum Auth { }, } -impl From for blockchain::rpc::Auth { +impl From for rpc::Auth { fn from(auth: Auth) -> Self { match auth { Auth::None => blockchain::rpc::Auth::None, @@ -204,4 +204,4 @@ pub enum BlockchainConfig { Esplora { config: EsploraConfig }, /// Bitcoin Core RPC client Rpc { config: RpcConfig }, -} +} \ No newline at end of file diff --git a/rust/src/api/descriptor.rs b/rust/src/api/descriptor.rs index 9d28951c..236f2803 100644 --- a/rust/src/api/descriptor.rs +++ b/rust/src/api/descriptor.rs @@ -1,6 +1,7 @@ use crate::api::error::BdkError; -use crate::api::key::{DescriptorPublicKeyBase, DescriptorSecretKeyBase}; +use crate::api::key::{BdkDescriptorPublicKey, BdkDescriptorSecretKey}; 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}; @@ -10,15 +11,14 @@ use bdk::template::{ DescriptorTemplate, }; use std::str::FromStr; -use crate::frb_generated::RustOpaque; #[derive(Debug)] -pub struct DescriptorBase { +pub struct BdkDescriptor { pub extended_descriptor: RustOpaque, pub key_map: RustOpaque, } -impl DescriptorBase { +impl BdkDescriptor { pub fn new(descriptor: String, network: Network) -> Result { let secp = Secp256k1::new(); let (extended_descriptor, key_map) = @@ -30,7 +30,7 @@ impl DescriptorBase { } pub fn new_bip44( - secret_key: DescriptorSecretKeyBase, + secret_key: BdkDescriptorSecretKey, keychain_kind: KeychainKind, network: Network, ) -> Result { @@ -55,7 +55,7 @@ impl DescriptorBase { } pub fn new_bip44_public( - public_key: DescriptorPublicKeyBase, + public_key: BdkDescriptorPublicKey, fingerprint: String, keychain_kind: KeychainKind, network: Network, @@ -84,7 +84,7 @@ impl DescriptorBase { } pub fn new_bip49( - secret_key: DescriptorSecretKeyBase, + secret_key: BdkDescriptorSecretKey, keychain_kind: KeychainKind, network: Network, ) -> Result { @@ -109,7 +109,7 @@ impl DescriptorBase { } pub fn new_bip49_public( - public_key: DescriptorPublicKeyBase, + public_key: BdkDescriptorPublicKey, fingerprint: String, keychain_kind: KeychainKind, network: Network, @@ -139,7 +139,7 @@ impl DescriptorBase { } pub fn new_bip84( - secret_key: DescriptorSecretKeyBase, + secret_key: BdkDescriptorSecretKey, keychain_kind: KeychainKind, network: Network, ) -> Result { @@ -164,7 +164,7 @@ impl DescriptorBase { } pub fn new_bip84_public( - public_key: DescriptorPublicKeyBase, + public_key: BdkDescriptorPublicKey, fingerprint: String, keychain_kind: KeychainKind, network: Network, @@ -195,7 +195,7 @@ impl DescriptorBase { } pub fn new_bip86( - secret_key: DescriptorSecretKeyBase, + secret_key: BdkDescriptorSecretKey, keychain_kind: KeychainKind, network: Network, ) -> Result { @@ -221,7 +221,7 @@ impl DescriptorBase { } pub fn new_bip86_public( - public_key: DescriptorPublicKeyBase, + public_key: BdkDescriptorPublicKey, fingerprint: String, keychain_kind: KeychainKind, network: Network, @@ -264,4 +264,4 @@ impl DescriptorBase { .max_weight_to_satisfy() .map_err(|e| e.into()) } -} +} \ No newline at end of file diff --git a/rust/src/api/error.rs b/rust/src/api/error.rs index ca2f940a..57021f14 100644 --- a/rust/src/api/error.rs +++ b/rust/src/api/error.rs @@ -106,6 +106,9 @@ pub enum BdkError { Rpc(String), /// Rusqlite client error Rusqlite(String), + InvalidInput(String), + InvalidLockTime(String), + InvalidTransaction(String), } impl From for BdkError { @@ -351,4 +354,4 @@ impl From for BdkError { fn from(value: bdk::bitcoin::psbt::PsbtParseError) -> Self { BdkError::PsbtParse(value.to_string()) } -} +} \ No newline at end of file diff --git a/rust/src/api/key.rs b/rust/src/api/key.rs index 84aabf88..3f9eaf8f 100644 --- a/rust/src/api/key.rs +++ b/rust/src/api/key.rs @@ -1,5 +1,6 @@ use crate::api::error::BdkError; use crate::api::types::{Network, WordCount}; +use crate::frb_generated::RustOpaque; pub use bdk::bitcoin; use bdk::bitcoin::secp256k1::Secp256k1; pub use bdk::keys; @@ -8,19 +9,18 @@ use bdk::keys::{DerivableKey, GeneratableKey}; use bdk::miniscript::descriptor::{DescriptorXKey, Wildcard}; use bdk::miniscript::BareCtx; use std::str::FromStr; -use crate::frb_generated::RustOpaque; -pub struct MnemonicBase { +pub struct BdkMnemonic { pub ptr: RustOpaque, } -impl From for MnemonicBase { +impl From for BdkMnemonic { fn from(value: keys::bip39::Mnemonic) -> Self { Self { ptr: RustOpaque::new(value), } } } -impl MnemonicBase { +impl BdkMnemonic { /// Generates Mnemonic with a random entropy pub fn new(word_count: WordCount) -> Result { let generated_key: keys::GeneratedKey<_, BareCtx> = @@ -50,18 +50,18 @@ impl MnemonicBase { self.ptr.to_string() } } -pub struct DerivationPathBase { +pub struct BdkDerivationPath { pub ptr: RustOpaque, } -impl From for DerivationPathBase { +impl From for BdkDerivationPath { fn from(value: bitcoin::bip32::DerivationPath) -> Self { - DerivationPathBase { + BdkDerivationPath { ptr: RustOpaque::new(value), } } } -impl DerivationPathBase { +impl BdkDerivationPath { pub fn from_string(path: String) -> Result { bitcoin::bip32::DerivationPath::from_str(&path) .map(|e| e.into()) @@ -70,20 +70,20 @@ impl DerivationPathBase { } #[derive(Debug)] -pub struct DescriptorSecretKeyBase { +pub struct BdkDescriptorSecretKey { pub ptr: RustOpaque, } -impl From for DescriptorSecretKeyBase { +impl From for BdkDescriptorSecretKey { fn from(value: keys::DescriptorSecretKey) -> Self { Self { ptr: RustOpaque::new(value), } } } -impl DescriptorSecretKeyBase { +impl BdkDescriptorSecretKey { pub fn create( network: Network, - mnemonic: MnemonicBase, + mnemonic: BdkMnemonic, password: Option, ) -> Result { let mnemonic = (*mnemonic.ptr).clone(); @@ -97,10 +97,7 @@ impl DescriptorSecretKeyBase { Ok(descriptor_secret_key.into()) } - pub fn derive( - ptr: DescriptorSecretKeyBase, - path: DerivationPathBase, - ) -> Result { + pub fn derive(ptr: BdkDescriptorSecretKey, path: BdkDerivationPath) -> Result { let secp = Secp256k1::new(); let descriptor_secret_key = (*ptr.ptr).clone(); match descriptor_secret_key { @@ -135,10 +132,7 @@ impl DescriptorSecretKeyBase { )), } } - pub fn extend( - ptr: DescriptorSecretKeyBase, - path: DerivationPathBase, - ) -> Result { + pub fn extend(ptr: BdkDescriptorSecretKey, path: BdkDerivationPath) -> Result { let descriptor_secret_key = (*ptr.ptr).clone(); match descriptor_secret_key { keys::DescriptorSecretKey::XPrv(descriptor_x_key) => { @@ -160,7 +154,7 @@ impl DescriptorSecretKeyBase { )), } } - pub fn as_public(ptr: DescriptorSecretKeyBase) -> Result { + 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()) @@ -190,10 +184,10 @@ impl DescriptorSecretKeyBase { } } #[derive(Debug)] -pub struct DescriptorPublicKeyBase { +pub struct BdkDescriptorPublicKey { pub ptr: RustOpaque, } -impl From for DescriptorPublicKeyBase { +impl From for BdkDescriptorPublicKey { fn from(value: keys::DescriptorPublicKey) -> Self { Self { ptr: RustOpaque::new(value), @@ -201,16 +195,13 @@ impl From for DescriptorPublicKeyBase { } } -impl DescriptorPublicKeyBase { +impl BdkDescriptorPublicKey { pub fn from_string(public_key: String) -> Result { keys::DescriptorPublicKey::from_str(public_key.as_str()) .map_err(|e| BdkError::Generic(e.to_string())) .map(|e| e.into()) } - pub fn derive( - ptr: DescriptorPublicKeyBase, - path: DerivationPathBase, - ) -> Result { + pub fn derive(ptr: BdkDescriptorPublicKey, path: BdkDerivationPath) -> Result { let secp = Secp256k1::new(); let descriptor_public_key = (*ptr.ptr).clone(); match descriptor_public_key { @@ -245,10 +236,7 @@ impl DescriptorPublicKeyBase { } } - pub fn extend( - ptr: DescriptorPublicKeyBase, - path: DerivationPathBase, - ) -> Result { + pub fn extend(ptr: BdkDescriptorPublicKey, path: BdkDerivationPath) -> Result { let descriptor_public_key = (*ptr.ptr).clone(); match descriptor_public_key { keys::DescriptorPublicKey::XPub(descriptor_x_key) => { @@ -278,4 +266,4 @@ impl DescriptorPublicKeyBase { pub fn as_string(&self) -> String { self.ptr.to_string() } -} +} \ No newline at end of file diff --git a/rust/src/api/psbt.rs b/rust/src/api/psbt.rs index b441d9a0..78fcf0f5 100644 --- a/rust/src/api/psbt.rs +++ b/rust/src/api/psbt.rs @@ -1,5 +1,5 @@ use crate::api::error::BdkError; -use crate::api::types::{FeeRate, TransactionBase}; +use crate::api::types::{BdkTransaction, FeeRate}; use crate::frb_generated::RustOpaque; pub use bdk::bitcoin::psbt::PartiallySignedTransaction; use bdk::psbt::PsbtUtils; @@ -8,23 +8,22 @@ use std::str::FromStr; use std::sync::Mutex; #[derive(Debug)] -pub struct PsbtBase { +pub struct BdkPsbt { pub ptr: RustOpaque>, } -impl From for PsbtBase { +impl From for BdkPsbt { fn from(value: PartiallySignedTransaction) -> Self { Self { ptr: RustOpaque::new(Mutex::new(value)), } } } -impl PsbtBase { - pub fn from_str(psbt_base64: String) -> Result { +impl BdkPsbt { + pub fn from_str(psbt_base64: String) -> Result { let psbt: PartiallySignedTransaction = PartiallySignedTransaction::from_str(&psbt_base64)?; Ok(psbt.into()) } - pub fn serialize(&self) -> String { let psbt = self.ptr.lock().unwrap().clone(); psbt.to_string() @@ -37,15 +36,15 @@ impl PsbtBase { } /// Return the transaction. - pub fn extract_tx(ptr: PsbtBase) -> TransactionBase { + pub fn extract_tx(ptr: BdkPsbt) -> Result { let tx = ptr.ptr.lock().unwrap().clone().extract_tx(); - tx.into() + tx.try_into() } /// 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)` - pub fn combine(ptr: PsbtBase, other: PsbtBase) -> Result { + pub fn combine(ptr: BdkPsbt, other: BdkPsbt) -> Result { let other_psbt = other.ptr.lock().unwrap().clone(); let mut original_psbt = ptr.ptr.lock().unwrap().clone(); original_psbt.combine(other_psbt)?; @@ -71,4 +70,4 @@ impl PsbtBase { let psbt = self.ptr.lock().unwrap(); serde_json::to_string(psbt.deref()).unwrap() } -} +} \ No newline at end of file diff --git a/rust/src/api/types.rs b/rust/src/api/types.rs index 34500d78..daecb73c 100644 --- a/rust/src/api/types.rs +++ b/rust/src/api/types.rs @@ -1,11 +1,11 @@ use crate::api::error::{BdkError, HexError}; +use crate::frb_generated::RustOpaque; use bdk::bitcoin::consensus::{serialize, Decodable}; use bdk::bitcoin::hashes::hex::Error; use bdk::database::AnyDatabaseConfig; use serde::{Deserialize, Serialize}; use std::io::Cursor; use std::str::FromStr; -use crate::frb_generated::RustOpaque; /// A reference to a transaction output. #[derive(Clone, Debug, PartialEq, Eq, Hash)] @@ -15,12 +15,18 @@ pub struct OutPoint { /// The index of the referenced output in its transaction's vout. pub(crate) vout: u32, } -impl From<&OutPoint> for bdk::bitcoin::OutPoint { - fn from(x: &OutPoint) -> bdk::bitcoin::OutPoint { - bdk::bitcoin::OutPoint { - txid: bdk::bitcoin::Txid::from_str(x.txid.as_str()).expect("invalid txid"), +impl TryFrom<&OutPoint> for bdk::bitcoin::OutPoint { + type Error = BdkError; + + fn try_from(x: &OutPoint) -> Result { + Ok(bdk::bitcoin::OutPoint { + txid: bdk::bitcoin::Txid::from_str(x.txid.as_str()).map_err(|e| match e { + Error::InvalidChar(e) => BdkError::Hex(HexError::InvalidChar(e)), + Error::OddLengthString(e) => BdkError::Hex(HexError::OddLengthString(e)), + Error::InvalidLength(e, f) => BdkError::Hex(HexError::InvalidLength(e, f)), + })?, vout: x.clone().vout, - } + }) } } impl From for OutPoint { @@ -34,11 +40,26 @@ impl From for OutPoint { #[derive(Debug, Clone)] pub struct TxIn { pub previous_output: OutPoint, - pub script_sig: ScriptBufBase, + pub script_sig: BdkScriptBuf, pub sequence: u32, pub witness: Vec>, } +impl TryFrom<&TxIn> for bdk::bitcoin::TxIn { + type Error = BdkError; + fn try_from(x: &TxIn) -> Result { + Ok(bdk::bitcoin::TxIn { + previous_output: (&x.previous_output).try_into()?, + script_sig: x.clone().script_sig.into(), + sequence: bdk::bitcoin::blockdata::transaction::Sequence::from_consensus( + x.sequence.clone(), + ), + witness: bdk::bitcoin::blockdata::witness::Witness::from_slice( + x.clone().witness.as_slice(), + ), + }) + } +} impl From<&bdk::bitcoin::TxIn> for TxIn { fn from(x: &bdk::bitcoin::TxIn) -> Self { TxIn { @@ -54,7 +75,7 @@ pub struct TxOut { /// The value of the output, in satoshis. pub value: u64, /// The address of the output. - pub script_pubkey: ScriptBufBase, + pub script_pubkey: BdkScriptBuf, } impl From for bdk::bitcoin::TxOut { fn from(value: TxOut) -> Self { @@ -72,33 +93,41 @@ impl From<&bdk::bitcoin::TxOut> for TxOut { } } } +impl From<&TxOut> for bdk::bitcoin::TxOut { + fn from(x: &TxOut) -> Self { + Self { + value: x.value, + script_pubkey: x.script_pubkey.clone().into(), + } + } +} #[derive(Clone, Debug)] -pub struct ScriptBufBase { +pub struct BdkScriptBuf { pub bytes: Vec, } -impl From for ScriptBufBase { +impl From for BdkScriptBuf { fn from(value: bdk::bitcoin::ScriptBuf) -> Self { Self { bytes: value.as_bytes().to_vec(), } } } -impl From for bdk::bitcoin::ScriptBuf { - fn from(value: ScriptBufBase) -> Self { +impl From for bdk::bitcoin::ScriptBuf { + fn from(value: BdkScriptBuf) -> Self { bdk::bitcoin::ScriptBuf::from_bytes(value.bytes) } } -impl ScriptBufBase { +impl BdkScriptBuf { ///Creates a new empty script. - pub fn empty() -> ScriptBufBase { + pub fn empty() -> BdkScriptBuf { bdk::bitcoin::ScriptBuf::new().into() } ///Creates a new empty script with pre-allocated capacity. - pub fn with_capacity(capacity: usize) -> ScriptBufBase { + pub fn with_capacity(capacity: usize) -> BdkScriptBuf { bdk::bitcoin::ScriptBuf::with_capacity(capacity).into() } - pub fn from_hex(s: String) -> Result { + pub fn from_hex(s: String) -> Result { bdk::bitcoin::ScriptBuf::from_hex(s.as_str()) .map(|e| e.into()) .map_err(|e| match e { @@ -176,25 +205,10 @@ impl From for bdk::wallet::AddressIndex { } } } -///A derived address and the index it was found at For convenience this automatically derefs to Address -pub struct AddressInfo { - ///Child index of this address - pub index: u32, - /// Address - pub address: String, -} -impl From for AddressInfo { - fn from(x: bdk::wallet::AddressInfo) -> AddressInfo { - AddressInfo { - index: x.index, - address: x.address.to_string(), - } - } -} #[derive(Debug, Clone, PartialEq, Eq)] ///A wallet transaction pub struct TransactionDetails { - pub transaction: Option, + pub transaction: Option, /// Transaction id. pub txid: String, /// Received value (sats) @@ -213,28 +227,42 @@ pub struct TransactionDetails { pub confirmation_time: Option, } /// A wallet transaction -impl From<&bdk::TransactionDetails> for TransactionDetails { - fn from(x: &bdk::TransactionDetails) -> TransactionDetails { - TransactionDetails { - transaction: x.clone().transaction.map(|e| e.into()), +impl TryFrom<&bdk::TransactionDetails> for TransactionDetails { + type Error = BdkError; + + fn try_from(x: &bdk::TransactionDetails) -> Result { + let transaction: Option = if let Some(tx) = x.transaction.clone() { + Some(tx.try_into()?) + } else { + None + }; + Ok(TransactionDetails { + transaction, fee: x.clone().fee, txid: x.clone().txid.to_string(), received: x.clone().received, sent: x.clone().sent, confirmation_time: x.confirmation_time.clone().map(|e| e.into()), - } + }) } } -impl From for TransactionDetails { - fn from(x: bdk::TransactionDetails) -> TransactionDetails { - TransactionDetails { - transaction: x.transaction.map(|e| e.into()), +impl TryFrom for TransactionDetails { + type Error = BdkError; + + fn try_from(x: bdk::TransactionDetails) -> Result { + let transaction: Option = if let Some(tx) = x.transaction { + Some(tx.try_into()?) + } else { + None + }; + Ok(TransactionDetails { + transaction, fee: x.fee, txid: x.txid.to_string(), received: x.received, sent: x.sent, confirmation_time: x.confirmation_time.map(|e| e.into()), - } + }) } } #[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)] @@ -255,7 +283,7 @@ impl From for BlockTime { } /// A output script and an amount of satoshis. pub struct ScriptAmount { - pub script: ScriptBufBase, + pub script: BdkScriptBuf, pub amount: u64, } #[allow(dead_code)] @@ -413,20 +441,22 @@ impl From for bdk::wallet::tx_builder::ChangeSpendPolicy { } } } -pub struct AddressBase { +pub struct BdkAddress { pub ptr: RustOpaque, } -impl From for AddressBase { +impl From for BdkAddress { fn from(value: bdk::bitcoin::Address) -> Self { - Self { ptr: RustOpaque::new(value) } + Self { + ptr: RustOpaque::new(value), + } } } -impl From<&AddressBase> for bdk::bitcoin::Address { - fn from(value: &AddressBase) -> Self { +impl From<&BdkAddress> for bdk::bitcoin::Address { + fn from(value: &BdkAddress) -> Self { (*value.ptr).clone() } } -impl AddressBase { +impl BdkAddress { pub fn from_string(address: String, network: Network) -> Result { match bdk::bitcoin::Address::from_str(address.as_str()) { Ok(e) => match e.require_network(network.into()) { @@ -437,16 +467,16 @@ impl AddressBase { } } - pub fn from_script(script: ScriptBufBase, network: Network) -> Result { + pub fn from_script(script: BdkScriptBuf, network: Network) -> Result { bdk::bitcoin::Address::from_script( - >::into(script).as_script(), + >::into(script).as_script(), network.into(), ) - .map(|a| a.into()) - .map_err(|e| e.into()) + .map(|a| a.into()) + .map_err(|e| e.into()) } pub fn payload(&self) -> Payload { - match <&AddressBase as Into>::into(self).payload { + match <&BdkAddress as Into>::into(self).payload { bdk::bitcoin::address::Payload::PubkeyHash(pubkey_hash) => Payload::PubkeyHash { pubkey_hash: pubkey_hash.to_string(), }, @@ -475,7 +505,7 @@ impl AddressBase { self.ptr.network.into() } - pub fn script(ptr: AddressBase) -> ScriptBufBase { + pub fn script(ptr: BdkAddress) -> BdkScriptBuf { ptr.ptr.script_pubkey().into() } @@ -506,97 +536,158 @@ impl From for Variant { } } } +pub enum LockTime { + Blocks(u32), + Seconds(u32), +} + +impl TryFrom for bdk::bitcoin::blockdata::locktime::absolute::LockTime { + type Error = BdkError; + + fn try_from(value: LockTime) -> Result { + match value { + LockTime::Blocks(e) => Ok( + bdk::bitcoin::blockdata::locktime::absolute::LockTime::Blocks( + bdk::bitcoin::blockdata::locktime::absolute::Height::from_consensus(e) + .map_err(|e| BdkError::InvalidLockTime(e.to_string()))?, + ), + ), + LockTime::Seconds(e) => Ok( + bdk::bitcoin::blockdata::locktime::absolute::LockTime::Seconds( + bdk::bitcoin::blockdata::locktime::absolute::Time::from_consensus(e) + .map_err(|e| BdkError::InvalidLockTime(e.to_string()))?, + ), + ), + } + } +} + +impl From for LockTime { + fn from(value: bdk::bitcoin::blockdata::locktime::absolute::LockTime) -> Self { + match value { + bdk::bitcoin::blockdata::locktime::absolute::LockTime::Blocks(e) => { + LockTime::Blocks(e.to_consensus_u32()) + } + bdk::bitcoin::blockdata::locktime::absolute::LockTime::Seconds(e) => { + LockTime::Seconds(e.to_consensus_u32()) + } + } + } +} #[derive(Debug, Clone, PartialEq, Eq)] -pub struct TransactionBase { +pub struct BdkTransaction { pub inner: String, } -impl TransactionBase { - pub fn new(transaction_bytes: Vec) -> Result { +impl BdkTransaction { + pub fn new( + version: i32, + lock_time: LockTime, + input: Vec, + output: Vec, + ) -> Result { + let mut inputs: Vec = vec![]; + for e in input.iter() { + inputs.push(e.try_into()?) + } + let output = output + .into_iter() + .map(|e| <&TxOut as Into>::into(&e)) + .collect(); + + bdk::bitcoin::Transaction { + version, + lock_time: lock_time.try_into()?, + input: inputs, + output, + } + .try_into() + } + pub fn from_bytes(transaction_bytes: Vec) -> Result { let mut decoder = Cursor::new(transaction_bytes); let tx: bdk::bitcoin::transaction::Transaction = bdk::bitcoin::transaction::Transaction::consensus_decode(&mut decoder)?; - Ok(tx.into()) + tx.try_into() } ///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. - pub fn txid(&self) -> String { - <&TransactionBase as Into>::into(self) - .txid() - .to_string() + pub fn txid(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.txid().to_string()) } ///Returns the regular byte-wise consensus-serialized size of this transaction. - pub fn weight(&self) -> u64 { - <&TransactionBase as Into>::into(self) - .weight() - .to_wu() + pub fn weight(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.weight().to_wu()) } ///Returns the regular byte-wise consensus-serialized size of this transaction. - pub fn size(&self) -> u64 { - <&TransactionBase as Into>::into(self).size() as u64 + pub fn size(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.size() as u64) } ///Returns the “virtual size” (vsize) of this transaction. /// // Will be ceil(weight / 4.0). Note this implements the virtual size as per BIP141, which is different to what is implemented in Bitcoin Core. // The computation should be the same for any remotely sane transaction, and a standardness-rule-correct version is available in the policy module. - pub fn vsize(&self) -> u64 { - <&TransactionBase as Into>::into(self).vsize() as u64 + pub fn vsize(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.vsize() as u64) } ///Encodes an object into a vector. - pub fn serialize(&self) -> Vec { - serialize(&<&TransactionBase as Into>::into(self)) + pub fn serialize(&self) -> Result, BdkError> { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| serialize(&e)) } ///Is this a coin base transaction? - pub fn is_coin_base(&self) -> bool { - <&TransactionBase as Into>::into(self).is_coin_base() + pub fn is_coin_base(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.is_coin_base()) } ///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. - pub fn is_explicitly_rbf(&self) -> bool { - <&TransactionBase as Into>::into(self).is_explicitly_rbf() + pub fn is_explicitly_rbf(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.is_explicitly_rbf()) } ///Returns true if this transactions nLockTime is enabled (BIP-65 ). - pub fn is_lock_time_enabled(&self) -> bool { - <&TransactionBase as Into>::into(self).is_lock_time_enabled() + pub fn is_lock_time_enabled(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.is_lock_time_enabled()) } ///The protocol version, is currently expected to be 1 or 2 (BIP 68). - pub fn version(&self) -> i32 { - <&TransactionBase as Into>::into(self).version + pub fn version(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.version) } ///Block height or timestamp. Transaction cannot be included in a block until this height/time. - pub fn lock_time(&self) -> u32 { - <&TransactionBase as Into>::into(self) - .lock_time - .to_consensus_u32() + pub fn lock_time(&self) -> Result { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.lock_time.into()) } ///List of transaction inputs. - pub fn input(&self) -> Vec { - <&TransactionBase as Into>::into(self) - .input - .iter() - .map(|x| x.into()) - .collect() + pub fn input(&self) -> Result, BdkError> { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.input.iter().map(|x| x.into()).collect()) } ///List of transaction outputs. - pub fn output(&self) -> Vec { - <&TransactionBase as Into>::into(self) - .output - .iter() - .map(|x| (&x.clone()).into()) - .collect() - } -} -impl From for TransactionBase { - fn from(tx: bdk::bitcoin::Transaction) -> Self { - TransactionBase { - inner: serde_json::to_string(&tx).expect("invalid tx"), - } + pub fn output(&self) -> Result, BdkError> { + self.try_into() + .map(|e: bdk::bitcoin::Transaction| e.output.iter().map(|x| x.into()).collect()) } } -impl From<&TransactionBase> for bdk::bitcoin::Transaction { - fn from(tx: &TransactionBase) -> Self { - let tx: bdk::bitcoin::Transaction = serde_json::from_str(&tx.inner).expect("invalid tx"); - tx +impl TryFrom for BdkTransaction { + type Error = BdkError; + fn try_from(tx: bdk::bitcoin::Transaction) -> Result { + Ok(BdkTransaction { + inner: serde_json::to_string(&tx) + .map_err(|e| BdkError::InvalidTransaction(e.to_string()))?, + }) + } +} +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())) } } ///Configuration type for a SqliteDatabase database @@ -684,7 +775,7 @@ impl From for LocalUtxo { }, txout: TxOut { value: local_utxo.txout.value, - script_pubkey: ScriptBufBase { + script_pubkey: BdkScriptBuf { bytes: local_utxo.txout.script_pubkey.into_bytes(), }, }, @@ -693,14 +784,16 @@ impl From for LocalUtxo { } } } -impl From for bdk::LocalUtxo { - fn from(value: LocalUtxo) -> Self { - Self { - outpoint: (&value.outpoint).into(), +impl TryFrom for bdk::LocalUtxo { + type Error = BdkError; + + fn try_from(value: LocalUtxo) -> Result { + Ok(Self { + outpoint: (&value.outpoint).try_into()?, txout: value.txout.into(), keychain: value.keychain.into(), is_spent: value.is_spent, - } + }) } } /// Options for a software signer @@ -793,32 +886,23 @@ impl From for FeeRate { } } } -// impl FeeRate { -// /// Constructs `FeeRate` from satoshis per 1000 weight units. -// pub fn from_sat_per_kwu(sat_per_kwu: f32) -> Self { -// bdk::FeeRate::from_sat_per_kwu(sat_per_kwu).into() -// } -// -// ///Create a new instance of FeeRate given a float fee rate in sats/kvb -// pub fn from_sat_per_vb(sat_per_kvb: f32) -> Self { -// bdk::FeeRate::from_sat_per_vb(sat_per_kvb).into() -// } -// -// } /// A key-value map for an input of the corresponding index in the unsigned pub struct Input { pub s: String, } -impl From for bdk::bitcoin::psbt::Input { - fn from(value: Input) -> Self { - serde_json::from_str(value.s.as_str()).expect("input cannot be de-serialized") +impl TryFrom for bdk::bitcoin::psbt::Input { + type Error = BdkError; + fn try_from(value: Input) -> Result { + serde_json::from_str(value.s.as_str()).map_err(|e| BdkError::InvalidInput(e.to_string())) } } -impl From for Input { - fn from(value: bdk::bitcoin::psbt::Input) -> Self { - Input { - s: serde_json::to_string(&value).expect("input cannot be serialized"), - } +impl TryFrom for Input { + type Error = BdkError; + + fn try_from(value: bdk::bitcoin::psbt::Input) -> Result { + Ok(Input { + s: serde_json::to_string(&value).map_err(|e| BdkError::InvalidInput(e.to_string()))?, + }) } } \ No newline at end of file diff --git a/rust/src/api/wallet.rs b/rust/src/api/wallet.rs index 0d16d7b0..022d9ca1 100644 --- a/rust/src/api/wallet.rs +++ b/rust/src/api/wallet.rs @@ -1,15 +1,15 @@ -use crate::api::descriptor::DescriptorBase; +use crate::api::descriptor::BdkDescriptor; use crate::api::types::{ - AddressBase, AddressIndex, AddressInfo, Balance, ChangeSpendPolicy, DatabaseConfig, Input, - KeychainKind, LocalUtxo, Network, OutPoint, PsbtSigHashType, RbfValue, ScriptAmount, - ScriptBufBase, SignOptions, TransactionDetails, + AddressIndex, Balance, BdkAddress, BdkScriptBuf, ChangeSpendPolicy, + DatabaseConfig, Input, KeychainKind, LocalUtxo, Network, OutPoint, PsbtSigHashType, RbfValue, + ScriptAmount, SignOptions, TransactionDetails, }; use std::ops::Deref; use std::str::FromStr; -use crate::api::blockchain::BlockchainBase; +use crate::api::blockchain::BdkBlockchain; use crate::api::error::BdkError; -use crate::api::psbt::PsbtBase; +use crate::api::psbt::BdkPsbt; use crate::frb_generated::RustOpaque; use bdk::bitcoin::script::PushBytesBuf; use bdk::bitcoin::{Sequence, Txid}; @@ -19,13 +19,13 @@ pub use std::sync::Mutex; use std::sync::MutexGuard; #[derive(Debug)] -pub struct WalletBase { +pub struct BdkWallet { pub ptr: RustOpaque>>, } -impl WalletBase { +impl BdkWallet { pub fn new( - descriptor: DescriptorBase, - change_descriptor: Option, + descriptor: BdkDescriptor, + change_descriptor: Option, network: Network, database_config: DatabaseConfig, ) -> Result { @@ -39,7 +39,7 @@ impl WalletBase { network.into(), database, )?; - Ok(WalletBase { + Ok(BdkWallet { ptr: RustOpaque::new(Mutex::new(wallet)), }) } @@ -52,18 +52,18 @@ impl WalletBase { self.get_wallet().network().into() } /// Return whether or not a script is part of this wallet (either internal or external). - pub fn is_mine(&self, script: ScriptBufBase) -> Result { + pub fn is_mine(&self, script: BdkScriptBuf) -> Result { self.get_wallet() - .is_mine(>::into(script).as_script()) + .is_mine(>::into(script).as_script()) .map_err(|e| e.into()) } /// 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. - pub fn get_address(&self, address_index: AddressIndex) -> Result { - self.get_wallet() + pub fn get_address( ptr: BdkWallet, address_index: AddressIndex) -> Result<(BdkAddress, u32), BdkError> { + ptr.get_wallet() .get_address(address_index.into()) - .map(AddressInfo::from) + .map(|e| (e.address.into(), e.index)) .map_err(|e| e.into()) } @@ -75,12 +75,12 @@ impl WalletBase { /// in the descriptor are derivable (i.e. does not end with /*) then the same address will always /// be returned for any [AddressIndex]. pub fn get_internal_address( - &self, + ptr: BdkWallet, address_index: AddressIndex, - ) -> Result { - self.get_wallet() + ) -> Result<(BdkAddress, u32), BdkError> { + ptr.get_wallet() .get_internal_address(address_index.into()) - .map(|e| e.into()) + .map(|e| (e.address.into(), e.index)) .map_err(|e| e.into()) } @@ -97,11 +97,15 @@ impl WalletBase { &self, include_raw: bool, ) -> Result, BdkError> { - let transaction_details = self.get_wallet().list_transactions(include_raw)?; - Ok(transaction_details + let mut transaction_details = vec![]; + for e in self + .get_wallet() + .list_transactions(include_raw)? .into_iter() - .map(TransactionDetails::from) - .collect()) + { + transaction_details.push(e.try_into()?) + } + Ok(transaction_details) } /// Return the list of unspent outputs of this wallet. Note that this method only operates on the internal database, @@ -119,8 +123,8 @@ impl WalletBase { /// signers will follow the options, but the "software signers" (WIF keys and `xprv`) defined /// in this library will. pub fn sign( - ptr: WalletBase, - psbt: PsbtBase, + ptr: BdkWallet, + psbt: BdkPsbt, sign_options: Option, ) -> Result { let mut psbt = psbt.ptr.lock().unwrap(); @@ -132,7 +136,7 @@ impl WalletBase { .map_err(|e| e.into()) } /// Sync the internal database with the blockchain. - pub fn sync(ptr: WalletBase, blockchain: BlockchainBase) -> 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()) @@ -146,31 +150,31 @@ impl WalletBase { sighash_type: Option, ) -> anyhow::Result { let input = self.get_wallet().get_psbt_input( - utxo.into(), + utxo.try_into()?, sighash_type.map(|e| e.into()), only_witness_utxo, )?; - Ok(input.into()) + input.try_into() } ///Returns the descriptor used to create addresses for a particular keychain. pub fn get_descriptor_for_keychain( - ptr: WalletBase, + ptr: BdkWallet, keychain: KeychainKind, - ) -> anyhow::Result { + ) -> anyhow::Result { let wallet = ptr.get_wallet(); let extended_descriptor = wallet.get_descriptor_for_keychain(keychain.into()); - DescriptorBase::new(extended_descriptor.to_string(), wallet.network().into()) + BdkDescriptor::new(extended_descriptor.to_string(), wallet.network().into()) } } pub fn finish_bump_fee_tx_builder( txid: String, fee_rate: f32, - allow_shrinking: Option, - wallet: WalletBase, + allow_shrinking: Option, + wallet: BdkWallet, enable_rbf: bool, n_sequence: Option, -) -> anyhow::Result<(PsbtBase, TransactionDetails), BdkError> { +) -> anyhow::Result<(BdkPsbt, TransactionDetails), BdkError> { let txid = Txid::from_str(txid.as_str()).unwrap(); let bdk_wallet = wallet.get_wallet(); @@ -188,13 +192,13 @@ pub fn finish_bump_fee_tx_builder( tx_builder.enable_rbf(); } return match tx_builder.finish() { - Ok(e) => Ok((e.0.into(), TransactionDetails::from(&e.1))), + Ok(e) => Ok((e.0.into(), TransactionDetails::try_from(e.1)?)), Err(e) => Err(e.into()), }; } pub fn tx_builder_finish( - wallet: WalletBase, + wallet: BdkWallet, recipients: Vec, utxos: Vec, foreign_utxo: Option<(OutPoint, Input, usize)>, @@ -204,10 +208,10 @@ pub fn tx_builder_finish( fee_rate: Option, fee_absolute: Option, drain_wallet: bool, - drain_to: Option, + drain_to: Option, rbf: Option, data: Vec, -) -> anyhow::Result<(PsbtBase, TransactionDetails), BdkError> { +) -> anyhow::Result<(BdkPsbt, TransactionDetails), BdkError> { let binding = wallet.get_wallet(); let mut tx_builder = binding.build_tx(); @@ -218,16 +222,19 @@ pub fn tx_builder_finish( tx_builder.change_policy(change_policy.into()); if !utxos.is_empty() { - let bdk_utxos: Vec = - utxos.iter().map(bdk::bitcoin::OutPoint::from).collect(); - let utxos: &[bdk::bitcoin::OutPoint] = &bdk_utxos; - tx_builder.add_utxos(utxos).map_err(|e| >::into(e))?; + let bdk_utxos = utxos + .iter() + .map(|e| bdk::bitcoin::OutPoint::try_from(e)) + .collect::, BdkError>>()?; + tx_builder + .add_utxos(bdk_utxos.as_slice()) + .map_err(|e| >::into(e))?; } if !un_spendable.is_empty() { - let bdk_unspendable: Vec = un_spendable + let bdk_unspendable = un_spendable .iter() - .map(bdk::bitcoin::OutPoint::from) - .collect(); + .map(|e| bdk::bitcoin::OutPoint::try_from(e)) + .collect::, BdkError>>()?; tx_builder.unspendable(bdk_unspendable); } if manually_selected_only { @@ -246,8 +253,8 @@ pub fn tx_builder_finish( tx_builder.drain_to(script_.into()); } if let Some(utxo) = foreign_utxo { - let foreign_utxo: bdk::bitcoin::psbt::Input = utxo.1.into(); - tx_builder.add_foreign_utxo((&utxo.0).into(), foreign_utxo, utxo.2)?; + let foreign_utxo: bdk::bitcoin::psbt::Input = utxo.1.try_into()?; + tx_builder.add_foreign_utxo((&utxo.0).try_into()?, foreign_utxo, utxo.2)?; } if let Some(rbf) = &rbf { match rbf { @@ -266,7 +273,7 @@ pub fn tx_builder_finish( } return match tx_builder.finish() { - Ok(e) => Ok((e.0.into(), TransactionDetails::from(&e.1))), + Ok(e) => Ok((e.0.into(), TransactionDetails::try_from(&e.1)?)), Err(e) => Err(e.into()), }; -} +} \ No newline at end of file diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index 1b794141..d634557a 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // Section: imports @@ -87,14 +87,6 @@ impl CstDecode for *mut wire_cst_list_prim_u_8_strict { String::from_utf8(vec).unwrap() } } -impl CstDecode for wire_cst_address_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::AddressBase { - crate::api::types::AddressBase { - ptr: self.ptr.cst_decode(), - } - } -} impl CstDecode for wire_cst_address_error { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::error::AddressError { @@ -177,15 +169,6 @@ impl CstDecode for wire_cst_address_index { } } } -impl CstDecode for wire_cst_address_info { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::AddressInfo { - crate::api::types::AddressInfo { - index: self.index.cst_decode(), - address: self.address.cst_decode(), - } - } -} impl CstDecode for wire_cst_auth { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::blockchain::Auth { @@ -221,6 +204,55 @@ impl CstDecode for wire_cst_balance { } } } +impl CstDecode for wire_cst_bdk_address { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BdkAddress { + crate::api::types::BdkAddress { + ptr: self.ptr.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_blockchain { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::blockchain::BdkBlockchain { + crate::api::blockchain::BdkBlockchain { + ptr: self.ptr.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_derivation_path { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::key::BdkDerivationPath { + crate::api::key::BdkDerivationPath { + ptr: self.ptr.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_descriptor { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::descriptor::BdkDescriptor { + crate::api::descriptor::BdkDescriptor { + extended_descriptor: self.extended_descriptor.cst_decode(), + key_map: self.key_map.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_descriptor_public_key { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::key::BdkDescriptorPublicKey { + crate::api::key::BdkDescriptorPublicKey { + ptr: self.ptr.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_descriptor_secret_key { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::key::BdkDescriptorSecretKey { + crate::api::key::BdkDescriptorSecretKey { + ptr: self.ptr.cst_decode(), + } + } +} impl CstDecode for wire_cst_bdk_error { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::error::BdkError { @@ -377,27 +409,71 @@ impl CstDecode for wire_cst_bdk_error { let ans = unsafe { self.kind.Rusqlite }; crate::api::error::BdkError::Rusqlite(ans.field0.cst_decode()) } + 43 => { + let ans = unsafe { self.kind.InvalidInput }; + crate::api::error::BdkError::InvalidInput(ans.field0.cst_decode()) + } + 44 => { + let ans = unsafe { self.kind.InvalidLockTime }; + crate::api::error::BdkError::InvalidLockTime(ans.field0.cst_decode()) + } + 45 => { + let ans = unsafe { self.kind.InvalidTransaction }; + crate::api::error::BdkError::InvalidTransaction(ans.field0.cst_decode()) + } _ => unreachable!(), } } } -impl CstDecode for wire_cst_block_time { +impl CstDecode for wire_cst_bdk_mnemonic { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BlockTime { - crate::api::types::BlockTime { - height: self.height.cst_decode(), - timestamp: self.timestamp.cst_decode(), + fn cst_decode(self) -> crate::api::key::BdkMnemonic { + crate::api::key::BdkMnemonic { + ptr: self.ptr.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_psbt { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::psbt::BdkPsbt { + crate::api::psbt::BdkPsbt { + ptr: self.ptr.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_script_buf { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BdkScriptBuf { + crate::api::types::BdkScriptBuf { + bytes: self.bytes.cst_decode(), } } } -impl CstDecode for wire_cst_blockchain_base { +impl CstDecode for wire_cst_bdk_transaction { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::BlockchainBase { - crate::api::blockchain::BlockchainBase { + fn cst_decode(self) -> crate::api::types::BdkTransaction { + crate::api::types::BdkTransaction { + inner: self.inner.cst_decode(), + } + } +} +impl CstDecode for wire_cst_bdk_wallet { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::wallet::BdkWallet { + crate::api::wallet::BdkWallet { ptr: self.ptr.cst_decode(), } } } +impl CstDecode for wire_cst_block_time { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BlockTime { + crate::api::types::BlockTime { + height: self.height.cst_decode(), + timestamp: self.timestamp.cst_decode(), + } + } +} impl CstDecode for wire_cst_blockchain_config { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::blockchain::BlockchainConfig { @@ -424,13 +500,6 @@ impl CstDecode for wire_cst_blockchain } } } -impl CstDecode for *mut wire_cst_address_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::AddressBase { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() - } -} impl CstDecode for *mut wire_cst_address_error { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::error::AddressError { @@ -445,78 +514,120 @@ impl CstDecode for *mut wire_cst_address_index CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_block_time { +impl CstDecode for *mut wire_cst_bdk_address { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BlockTime { + fn cst_decode(self) -> crate::api::types::BdkAddress { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_blockchain_base { +impl CstDecode for *mut wire_cst_bdk_blockchain { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::BlockchainBase { + fn cst_decode(self) -> crate::api::blockchain::BdkBlockchain { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_blockchain_config { +impl CstDecode for *mut wire_cst_bdk_derivation_path { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::blockchain::BlockchainConfig { + fn cst_decode(self) -> crate::api::key::BdkDerivationPath { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_consensus_error { +impl CstDecode for *mut wire_cst_bdk_descriptor { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::ConsensusError { + fn cst_decode(self) -> crate::api::descriptor::BdkDescriptor { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_database_config { +impl CstDecode + for *mut wire_cst_bdk_descriptor_public_key +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::DatabaseConfig { + fn cst_decode(self) -> crate::api::key::BdkDescriptorPublicKey { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_derivation_path_base { +impl CstDecode + for *mut wire_cst_bdk_descriptor_secret_key +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DerivationPathBase { + fn cst_decode(self) -> crate::api::key::BdkDescriptorSecretKey { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_descriptor_base { +impl CstDecode for *mut wire_cst_bdk_mnemonic { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::descriptor::DescriptorBase { + fn cst_decode(self) -> crate::api::key::BdkMnemonic { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_descriptor_error { +impl CstDecode for *mut wire_cst_bdk_psbt { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::error::DescriptorError { + fn cst_decode(self) -> crate::api::psbt::BdkPsbt { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode - for *mut wire_cst_descriptor_public_key_base -{ +impl CstDecode for *mut wire_cst_bdk_script_buf { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DescriptorPublicKeyBase { + fn cst_decode(self) -> crate::api::types::BdkScriptBuf { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode - for *mut wire_cst_descriptor_secret_key_base -{ +impl CstDecode for *mut wire_cst_bdk_transaction { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BdkTransaction { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_bdk_wallet { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DescriptorSecretKeyBase { + fn cst_decode(self) -> crate::api::wallet::BdkWallet { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_block_time { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BlockTime { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_blockchain_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::blockchain::BlockchainConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_consensus_error { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::error::ConsensusError { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_database_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::DatabaseConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_descriptor_error { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::error::DescriptorError { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() } } impl CstDecode for *mut wire_cst_electrum_config { @@ -560,11 +671,11 @@ impl CstDecode for *mut wire_cst_local_utxo { CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_mnemonic_base { +impl CstDecode for *mut wire_cst_lock_time { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::MnemonicBase { + fn cst_decode(self) -> crate::api::types::LockTime { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } impl CstDecode for *mut wire_cst_out_point { @@ -574,13 +685,6 @@ impl CstDecode for *mut wire_cst_out_point { CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_psbt_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::psbt::PsbtBase { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() - } -} impl CstDecode for *mut wire_cst_psbt_sig_hash_type { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::PsbtSigHashType { @@ -621,13 +725,6 @@ impl CstDecode for *mut wire_cst_rpc_sync CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_script_buf_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::ScriptBufBase { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() - } -} impl CstDecode for *mut wire_cst_sign_options { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::SignOptions { @@ -649,13 +746,6 @@ impl CstDecode for *mut wire_cst_sqlit CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_transaction_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TransactionBase { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() - } -} impl CstDecode for *mut u32 { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> u32 { @@ -674,13 +764,6 @@ impl CstDecode for *mut u8 { unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } } } -impl CstDecode for *mut wire_cst_wallet_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::wallet::WalletBase { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() - } -} impl CstDecode for wire_cst_consensus_error { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::error::ConsensusError { @@ -737,23 +820,6 @@ impl CstDecode for wire_cst_database_config { } } } -impl CstDecode for wire_cst_derivation_path_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DerivationPathBase { - crate::api::key::DerivationPathBase { - ptr: self.ptr.cst_decode(), - } - } -} -impl CstDecode for wire_cst_descriptor_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::descriptor::DescriptorBase { - crate::api::descriptor::DescriptorBase { - extended_descriptor: self.extended_descriptor.cst_decode(), - key_map: self.key_map.cst_decode(), - } - } -} impl CstDecode for wire_cst_descriptor_error { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::error::DescriptorError { @@ -800,22 +866,6 @@ impl CstDecode for wire_cst_descriptor_error } } } -impl CstDecode for wire_cst_descriptor_public_key_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DescriptorPublicKeyBase { - crate::api::key::DescriptorPublicKeyBase { - ptr: self.ptr.cst_decode(), - } - } -} -impl CstDecode for wire_cst_descriptor_secret_key_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DescriptorSecretKeyBase { - crate::api::key::DescriptorSecretKeyBase { - ptr: self.ptr.cst_decode(), - } - } -} impl CstDecode for wire_cst_electrum_config { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::blockchain::ElectrumConfig { @@ -981,11 +1031,19 @@ impl CstDecode for wire_cst_local_utxo { } } } -impl CstDecode for wire_cst_mnemonic_base { +impl CstDecode for wire_cst_lock_time { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::MnemonicBase { - crate::api::key::MnemonicBase { - ptr: self.ptr.cst_decode(), + fn cst_decode(self) -> crate::api::types::LockTime { + match self.tag { + 0 => { + let ans = unsafe { self.kind.Blocks }; + crate::api::types::LockTime::Blocks(ans.field0.cst_decode()) + } + 1 => { + let ans = unsafe { self.kind.Seconds }; + crate::api::types::LockTime::Seconds(ans.field0.cst_decode()) + } + _ => unreachable!(), } } } @@ -1025,14 +1083,6 @@ impl CstDecode for wire_cst_payload { } } } -impl CstDecode for wire_cst_psbt_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::psbt::PsbtBase { - crate::api::psbt::PsbtBase { - ptr: self.ptr.cst_decode(), - } - } -} impl CstDecode for wire_cst_psbt_sig_hash_type { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::PsbtSigHashType { @@ -1054,34 +1104,40 @@ impl CstDecode for wire_cst_rbf_value { } } } -impl CstDecode<(crate::api::types::OutPoint, crate::api::types::Input, usize)> - for wire_cst_record_out_point_input_usize -{ +impl CstDecode<(crate::api::types::BdkAddress, u32)> for wire_cst_record_bdk_address_u_32 { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> (crate::api::types::OutPoint, crate::api::types::Input, usize) { - ( - self.field0.cst_decode(), - self.field1.cst_decode(), - self.field2.cst_decode(), - ) + fn cst_decode(self) -> (crate::api::types::BdkAddress, u32) { + (self.field0.cst_decode(), self.field1.cst_decode()) } } impl CstDecode<( - crate::api::psbt::PsbtBase, + crate::api::psbt::BdkPsbt, crate::api::types::TransactionDetails, - )> for wire_cst_record_psbt_base_transaction_details + )> for wire_cst_record_bdk_psbt_transaction_details { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, ) -> ( - crate::api::psbt::PsbtBase, + crate::api::psbt::BdkPsbt, crate::api::types::TransactionDetails, ) { (self.field0.cst_decode(), self.field1.cst_decode()) } } +impl CstDecode<(crate::api::types::OutPoint, crate::api::types::Input, usize)> + for wire_cst_record_out_point_input_usize +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> (crate::api::types::OutPoint, crate::api::types::Input, usize) { + ( + self.field0.cst_decode(), + self.field1.cst_decode(), + self.field2.cst_decode(), + ) + } +} impl CstDecode for wire_cst_rpc_config { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::blockchain::RpcConfig { @@ -1114,14 +1170,6 @@ impl CstDecode for wire_cst_script_amount { } } } -impl CstDecode for wire_cst_script_buf_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::ScriptBufBase { - crate::api::types::ScriptBufBase { - bytes: self.bytes.cst_decode(), - } - } -} impl CstDecode for wire_cst_sign_options { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::SignOptions { @@ -1154,14 +1202,6 @@ impl CstDecode for wire_cst_sqlite_db_ } } } -impl CstDecode for wire_cst_transaction_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TransactionBase { - crate::api::types::TransactionBase { - inner: self.inner.cst_decode(), - } - } -} impl CstDecode for wire_cst_transaction_details { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::TransactionDetails { @@ -1202,91 +1242,131 @@ impl CstDecode<[u8; 4]> for *mut wire_cst_list_prim_u_8_strict { flutter_rust_bridge::for_generated::from_vec_to_array(vec) } } -impl CstDecode for wire_cst_wallet_base { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::wallet::WalletBase { - crate::api::wallet::WalletBase { - ptr: self.ptr.cst_decode(), +impl NewWithNullPtr for wire_cst_address_error { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: AddressErrorKind { nil__: () }, } } } -impl NewWithNullPtr for wire_cst_address_base { +impl Default for wire_cst_address_error { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_address_index { fn new_with_null_ptr() -> Self { Self { - ptr: Default::default(), + tag: -1, + kind: AddressIndexKind { nil__: () }, } } } -impl Default for wire_cst_address_base { +impl Default for wire_cst_address_index { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_address_error { +impl NewWithNullPtr for wire_cst_auth { fn new_with_null_ptr() -> Self { Self { tag: -1, - kind: AddressErrorKind { nil__: () }, + kind: AuthKind { nil__: () }, } } } -impl Default for wire_cst_address_error { +impl Default for wire_cst_auth { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_address_index { +impl NewWithNullPtr for wire_cst_balance { fn new_with_null_ptr() -> Self { Self { - tag: -1, - kind: AddressIndexKind { nil__: () }, + immature: Default::default(), + trusted_pending: Default::default(), + untrusted_pending: Default::default(), + confirmed: Default::default(), + spendable: Default::default(), + total: Default::default(), } } } -impl Default for wire_cst_address_index { +impl Default for wire_cst_balance { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_address_info { +impl NewWithNullPtr for wire_cst_bdk_address { fn new_with_null_ptr() -> Self { Self { - index: Default::default(), - address: core::ptr::null_mut(), + ptr: Default::default(), } } } -impl Default for wire_cst_address_info { +impl Default for wire_cst_bdk_address { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_auth { +impl NewWithNullPtr for wire_cst_bdk_blockchain { fn new_with_null_ptr() -> Self { Self { - tag: -1, - kind: AuthKind { nil__: () }, + ptr: Default::default(), } } } -impl Default for wire_cst_auth { +impl Default for wire_cst_bdk_blockchain { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_balance { +impl NewWithNullPtr for wire_cst_bdk_derivation_path { fn new_with_null_ptr() -> Self { Self { - immature: Default::default(), - trusted_pending: Default::default(), - untrusted_pending: Default::default(), - confirmed: Default::default(), - spendable: Default::default(), - total: Default::default(), + ptr: Default::default(), } } } -impl Default for wire_cst_balance { +impl Default for wire_cst_bdk_derivation_path { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_bdk_descriptor { + fn new_with_null_ptr() -> Self { + Self { + extended_descriptor: Default::default(), + key_map: Default::default(), + } + } +} +impl Default for wire_cst_bdk_descriptor { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_bdk_descriptor_public_key { + fn new_with_null_ptr() -> Self { + Self { + ptr: Default::default(), + } + } +} +impl Default for wire_cst_bdk_descriptor_public_key { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_bdk_descriptor_secret_key { + fn new_with_null_ptr() -> Self { + Self { + ptr: Default::default(), + } + } +} +impl Default for wire_cst_bdk_descriptor_secret_key { fn default() -> Self { Self::new_with_null_ptr() } @@ -1304,128 +1384,127 @@ impl Default for wire_cst_bdk_error { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_block_time { +impl NewWithNullPtr for wire_cst_bdk_mnemonic { fn new_with_null_ptr() -> Self { Self { - height: Default::default(), - timestamp: Default::default(), + ptr: Default::default(), } } } -impl Default for wire_cst_block_time { +impl Default for wire_cst_bdk_mnemonic { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_blockchain_base { +impl NewWithNullPtr for wire_cst_bdk_psbt { fn new_with_null_ptr() -> Self { Self { ptr: Default::default(), } } } -impl Default for wire_cst_blockchain_base { +impl Default for wire_cst_bdk_psbt { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_blockchain_config { +impl NewWithNullPtr for wire_cst_bdk_script_buf { fn new_with_null_ptr() -> Self { Self { - tag: -1, - kind: BlockchainConfigKind { nil__: () }, + bytes: core::ptr::null_mut(), } } } -impl Default for wire_cst_blockchain_config { +impl Default for wire_cst_bdk_script_buf { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_consensus_error { +impl NewWithNullPtr for wire_cst_bdk_transaction { fn new_with_null_ptr() -> Self { Self { - tag: -1, - kind: ConsensusErrorKind { nil__: () }, + inner: core::ptr::null_mut(), } } } -impl Default for wire_cst_consensus_error { +impl Default for wire_cst_bdk_transaction { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_database_config { +impl NewWithNullPtr for wire_cst_bdk_wallet { fn new_with_null_ptr() -> Self { Self { - tag: -1, - kind: DatabaseConfigKind { nil__: () }, + ptr: Default::default(), } } } -impl Default for wire_cst_database_config { +impl Default for wire_cst_bdk_wallet { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_derivation_path_base { +impl NewWithNullPtr for wire_cst_block_time { fn new_with_null_ptr() -> Self { Self { - ptr: Default::default(), + height: Default::default(), + timestamp: Default::default(), } } } -impl Default for wire_cst_derivation_path_base { +impl Default for wire_cst_block_time { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_descriptor_base { +impl NewWithNullPtr for wire_cst_blockchain_config { fn new_with_null_ptr() -> Self { Self { - extended_descriptor: Default::default(), - key_map: Default::default(), + tag: -1, + kind: BlockchainConfigKind { nil__: () }, } } } -impl Default for wire_cst_descriptor_base { +impl Default for wire_cst_blockchain_config { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_descriptor_error { +impl NewWithNullPtr for wire_cst_consensus_error { fn new_with_null_ptr() -> Self { Self { tag: -1, - kind: DescriptorErrorKind { nil__: () }, + kind: ConsensusErrorKind { nil__: () }, } } } -impl Default for wire_cst_descriptor_error { +impl Default for wire_cst_consensus_error { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_descriptor_public_key_base { +impl NewWithNullPtr for wire_cst_database_config { fn new_with_null_ptr() -> Self { Self { - ptr: Default::default(), + tag: -1, + kind: DatabaseConfigKind { nil__: () }, } } } -impl Default for wire_cst_descriptor_public_key_base { +impl Default for wire_cst_database_config { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_descriptor_secret_key_base { +impl NewWithNullPtr for wire_cst_descriptor_error { fn new_with_null_ptr() -> Self { Self { - ptr: Default::default(), + tag: -1, + kind: DescriptorErrorKind { nil__: () }, } } } -impl Default for wire_cst_descriptor_secret_key_base { +impl Default for wire_cst_descriptor_error { fn default() -> Self { Self::new_with_null_ptr() } @@ -1515,14 +1594,15 @@ impl Default for wire_cst_local_utxo { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_mnemonic_base { +impl NewWithNullPtr for wire_cst_lock_time { fn new_with_null_ptr() -> Self { Self { - ptr: Default::default(), + tag: -1, + kind: LockTimeKind { nil__: () }, } } } -impl Default for wire_cst_mnemonic_base { +impl Default for wire_cst_lock_time { fn default() -> Self { Self::new_with_null_ptr() } @@ -1553,18 +1633,6 @@ impl Default for wire_cst_payload { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_psbt_base { - fn new_with_null_ptr() -> Self { - Self { - ptr: Default::default(), - } - } -} -impl Default for wire_cst_psbt_base { - fn default() -> Self { - Self::new_with_null_ptr() - } -} impl NewWithNullPtr for wire_cst_psbt_sig_hash_type { fn new_with_null_ptr() -> Self { Self { @@ -1590,29 +1658,42 @@ impl Default for wire_cst_rbf_value { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_record_out_point_input_usize { +impl NewWithNullPtr for wire_cst_record_bdk_address_u_32 { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), field1: Default::default(), - field2: Default::default(), } } } -impl Default for wire_cst_record_out_point_input_usize { +impl Default for wire_cst_record_bdk_address_u_32 { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_record_bdk_psbt_transaction_details { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + field1: Default::default(), + } + } +} +impl Default for wire_cst_record_bdk_psbt_transaction_details { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_record_psbt_base_transaction_details { +impl NewWithNullPtr for wire_cst_record_out_point_input_usize { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), field1: Default::default(), + field2: Default::default(), } } } -impl Default for wire_cst_record_psbt_base_transaction_details { +impl Default for wire_cst_record_out_point_input_usize { fn default() -> Self { Self::new_with_null_ptr() } @@ -1661,18 +1742,6 @@ impl Default for wire_cst_script_amount { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_script_buf_base { - fn new_with_null_ptr() -> Self { - Self { - bytes: core::ptr::null_mut(), - } - } -} -impl Default for wire_cst_script_buf_base { - fn default() -> Self { - Self::new_with_null_ptr() - } -} impl NewWithNullPtr for wire_cst_sign_options { fn new_with_null_ptr() -> Self { Self { @@ -1717,18 +1786,6 @@ impl Default for wire_cst_sqlite_db_configuration { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_transaction_base { - fn new_with_null_ptr() -> Self { - Self { - inner: core::ptr::null_mut(), - } - } -} -impl Default for wire_cst_transaction_base { - fn default() -> Self { - Self::new_with_null_ptr() - } -} impl NewWithNullPtr for wire_cst_transaction_details { fn new_with_null_ptr() -> Self { Self { @@ -1774,114 +1831,102 @@ impl Default for wire_cst_tx_out { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_wallet_base { - fn new_with_null_ptr() -> Self { - Self { - ptr: Default::default(), - } - } -} -impl Default for wire_cst_wallet_base { - fn default() -> Self { - Self::new_with_null_ptr() - } -} #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_BlockchainBase_broadcast( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_broadcast( port_: i64, - that: *mut wire_cst_blockchain_base, - transaction: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_blockchain, + transaction: *mut wire_cst_bdk_transaction, ) { - wire_BlockchainBase_broadcast_impl(port_, that, transaction) + wire_bdk_blockchain_broadcast_impl(port_, that, transaction) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_BlockchainBase_estimate_fee( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_estimate_fee( port_: i64, - that: *mut wire_cst_blockchain_base, + that: *mut wire_cst_bdk_blockchain, target: u64, ) { - wire_BlockchainBase_estimate_fee_impl(port_, that, target) + wire_bdk_blockchain_estimate_fee_impl(port_, that, target) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_BlockchainBase_get_block_hash( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_get_block_hash( port_: i64, - that: *mut wire_cst_blockchain_base, + that: *mut wire_cst_bdk_blockchain, height: u32, ) { - wire_BlockchainBase_get_block_hash_impl(port_, that, height) + wire_bdk_blockchain_get_block_hash_impl(port_, that, height) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_BlockchainBase_get_height( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_get_height( port_: i64, - that: *mut wire_cst_blockchain_base, + that: *mut wire_cst_bdk_blockchain, ) { - wire_BlockchainBase_get_height_impl(port_, that) + wire_bdk_blockchain_get_height_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_BlockchainBase_new( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_blockchain_new( port_: i64, blockchain_config: *mut wire_cst_blockchain_config, ) { - wire_BlockchainBase_new_impl(port_, blockchain_config) + wire_bdk_blockchain_new_impl(port_, blockchain_config) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_as_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_as_string( port_: i64, - that: *mut wire_cst_descriptor_base, + that: *mut wire_cst_bdk_descriptor, ) { - wire_DescriptorBase_as_string_impl(port_, that) + wire_bdk_descriptor_as_string_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_as_string_private( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_as_string_private( port_: i64, - that: *mut wire_cst_descriptor_base, + that: *mut wire_cst_bdk_descriptor, ) { - wire_DescriptorBase_as_string_private_impl(port_, that) + wire_bdk_descriptor_as_string_private_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_max_satisfaction_weight( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_max_satisfaction_weight( port_: i64, - that: *mut wire_cst_descriptor_base, + that: *mut wire_cst_bdk_descriptor, ) { - wire_DescriptorBase_max_satisfaction_weight_impl(port_, that) + wire_bdk_descriptor_max_satisfaction_weight_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new( port_: i64, descriptor: *mut wire_cst_list_prim_u_8_strict, network: i32, ) { - wire_DescriptorBase_new_impl(port_, descriptor, network) + wire_bdk_descriptor_new_impl(port_, descriptor, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip44( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44( port_: i64, - secret_key: *mut wire_cst_descriptor_secret_key_base, + secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip44_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip44_impl(port_, secret_key, keychain_kind, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip44_public( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip44_public( port_: i64, - public_key: *mut wire_cst_descriptor_public_key_base, + public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip44_public_impl( + wire_bdk_descriptor_new_bip44_public_impl( port_, public_key, fingerprint, @@ -1891,24 +1936,24 @@ pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip44_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip49( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49( port_: i64, - secret_key: *mut wire_cst_descriptor_secret_key_base, + secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip49_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip49_impl(port_, secret_key, keychain_kind, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip49_public( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip49_public( port_: i64, - public_key: *mut wire_cst_descriptor_public_key_base, + public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip49_public_impl( + wire_bdk_descriptor_new_bip49_public_impl( port_, public_key, fingerprint, @@ -1918,24 +1963,24 @@ pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip49_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip84( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84( port_: i64, - secret_key: *mut wire_cst_descriptor_secret_key_base, + secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip84_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip84_impl(port_, secret_key, keychain_kind, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip84_public( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip84_public( port_: i64, - public_key: *mut wire_cst_descriptor_public_key_base, + public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip84_public_impl( + wire_bdk_descriptor_new_bip84_public_impl( port_, public_key, fingerprint, @@ -1945,24 +1990,24 @@ pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip84_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip86( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86( port_: i64, - secret_key: *mut wire_cst_descriptor_secret_key_base, + secret_key: *mut wire_cst_bdk_descriptor_secret_key, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip86_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip86_impl(port_, secret_key, keychain_kind, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip86_public( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_new_bip86_public( port_: i64, - public_key: *mut wire_cst_descriptor_public_key_base, + public_key: *mut wire_cst_bdk_descriptor_public_key, fingerprint: *mut wire_cst_list_prim_u_8_strict, keychain_kind: i32, network: i32, ) { - wire_DescriptorBase_new_bip86_public_impl( + wire_bdk_descriptor_new_bip86_public_impl( port_, public_key, fingerprint, @@ -1972,476 +2017,490 @@ pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorBase_new_bip86_public( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DerivationPathBase_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_derivation_path_from_string( port_: i64, path: *mut wire_cst_list_prim_u_8_strict, ) { - wire_DerivationPathBase_from_string_impl(port_, path) + wire_bdk_derivation_path_from_string_impl(port_, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_as_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_as_string( port_: i64, - that: *mut wire_cst_descriptor_public_key_base, + that: *mut wire_cst_bdk_descriptor_public_key, ) { - wire_DescriptorPublicKeyBase_as_string_impl(port_, that) + wire_bdk_descriptor_public_key_as_string_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_derive( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_derive( port_: i64, - ptr: *mut wire_cst_descriptor_public_key_base, - path: *mut wire_cst_derivation_path_base, + ptr: *mut wire_cst_bdk_descriptor_public_key, + path: *mut wire_cst_bdk_derivation_path, ) { - wire_DescriptorPublicKeyBase_derive_impl(port_, ptr, path) + wire_bdk_descriptor_public_key_derive_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_extend( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_extend( port_: i64, - ptr: *mut wire_cst_descriptor_public_key_base, - path: *mut wire_cst_derivation_path_base, + ptr: *mut wire_cst_bdk_descriptor_public_key, + path: *mut wire_cst_bdk_derivation_path, ) { - wire_DescriptorPublicKeyBase_extend_impl(port_, ptr, path) + wire_bdk_descriptor_public_key_extend_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorPublicKeyBase_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_public_key_from_string( port_: i64, public_key: *mut wire_cst_list_prim_u_8_strict, ) { - wire_DescriptorPublicKeyBase_from_string_impl(port_, public_key) + wire_bdk_descriptor_public_key_from_string_impl(port_, public_key) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_public( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_public( port_: i64, - ptr: *mut wire_cst_descriptor_secret_key_base, + ptr: *mut wire_cst_bdk_descriptor_secret_key, ) { - wire_DescriptorSecretKeyBase_as_public_impl(port_, ptr) + wire_bdk_descriptor_secret_key_as_public_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_as_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_as_string( port_: i64, - that: *mut wire_cst_descriptor_secret_key_base, + that: *mut wire_cst_bdk_descriptor_secret_key, ) { - wire_DescriptorSecretKeyBase_as_string_impl(port_, that) + wire_bdk_descriptor_secret_key_as_string_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_create( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_create( port_: i64, network: i32, - mnemonic: *mut wire_cst_mnemonic_base, + mnemonic: *mut wire_cst_bdk_mnemonic, password: *mut wire_cst_list_prim_u_8_strict, ) { - wire_DescriptorSecretKeyBase_create_impl(port_, network, mnemonic, password) + wire_bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_derive( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_derive( port_: i64, - ptr: *mut wire_cst_descriptor_secret_key_base, - path: *mut wire_cst_derivation_path_base, + ptr: *mut wire_cst_bdk_descriptor_secret_key, + path: *mut wire_cst_bdk_derivation_path, ) { - wire_DescriptorSecretKeyBase_derive_impl(port_, ptr, path) + wire_bdk_descriptor_secret_key_derive_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_extend( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_extend( port_: i64, - ptr: *mut wire_cst_descriptor_secret_key_base, - path: *mut wire_cst_derivation_path_base, + ptr: *mut wire_cst_bdk_descriptor_secret_key, + path: *mut wire_cst_bdk_derivation_path, ) { - wire_DescriptorSecretKeyBase_extend_impl(port_, ptr, path) + wire_bdk_descriptor_secret_key_extend_impl(port_, ptr, path) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_from_string( port_: i64, secret_key: *mut wire_cst_list_prim_u_8_strict, ) { - wire_DescriptorSecretKeyBase_from_string_impl(port_, secret_key) + wire_bdk_descriptor_secret_key_from_string_impl(port_, secret_key) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_DescriptorSecretKeyBase_secret_bytes( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_descriptor_secret_key_secret_bytes( port_: i64, - that: *mut wire_cst_descriptor_secret_key_base, + that: *mut wire_cst_bdk_descriptor_secret_key, ) { - wire_DescriptorSecretKeyBase_secret_bytes_impl(port_, that) + wire_bdk_descriptor_secret_key_secret_bytes_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_MnemonicBase_as_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_as_string( port_: i64, - that: *mut wire_cst_mnemonic_base, + that: *mut wire_cst_bdk_mnemonic, ) { - wire_MnemonicBase_as_string_impl(port_, that) + wire_bdk_mnemonic_as_string_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_MnemonicBase_from_entropy( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_from_entropy( port_: i64, entropy: *mut wire_cst_list_prim_u_8_loose, ) { - wire_MnemonicBase_from_entropy_impl(port_, entropy) + wire_bdk_mnemonic_from_entropy_impl(port_, entropy) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_MnemonicBase_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_from_string( port_: i64, mnemonic: *mut wire_cst_list_prim_u_8_strict, ) { - wire_MnemonicBase_from_string_impl(port_, mnemonic) + wire_bdk_mnemonic_from_string_impl(port_, mnemonic) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_MnemonicBase_new(port_: i64, word_count: i32) { - wire_MnemonicBase_new_impl(port_, word_count) +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_mnemonic_new(port_: i64, word_count: i32) { + wire_bdk_mnemonic_new_impl(port_, word_count) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_combine( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_combine( port_: i64, - ptr: *mut wire_cst_psbt_base, - other: *mut wire_cst_psbt_base, + ptr: *mut wire_cst_bdk_psbt, + other: *mut wire_cst_bdk_psbt, ) { - wire_PsbtBase_combine_impl(port_, ptr, other) + wire_bdk_psbt_combine_impl(port_, ptr, other) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_extract_tx( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_extract_tx( port_: i64, - ptr: *mut wire_cst_psbt_base, + ptr: *mut wire_cst_bdk_psbt, ) { - wire_PsbtBase_extract_tx_impl(port_, ptr) + wire_bdk_psbt_extract_tx_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_fee_amount( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_fee_amount( port_: i64, - that: *mut wire_cst_psbt_base, + that: *mut wire_cst_bdk_psbt, ) { - wire_PsbtBase_fee_amount_impl(port_, that) + wire_bdk_psbt_fee_amount_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_fee_rate( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_fee_rate( port_: i64, - that: *mut wire_cst_psbt_base, + that: *mut wire_cst_bdk_psbt, ) { - wire_PsbtBase_fee_rate_impl(port_, that) + wire_bdk_psbt_fee_rate_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_from_str( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_from_str( port_: i64, psbt_base64: *mut wire_cst_list_prim_u_8_strict, ) { - wire_PsbtBase_from_str_impl(port_, psbt_base64) + wire_bdk_psbt_from_str_impl(port_, psbt_base64) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_json_serialize( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_json_serialize( port_: i64, - that: *mut wire_cst_psbt_base, + that: *mut wire_cst_bdk_psbt, ) { - wire_PsbtBase_json_serialize_impl(port_, that) + wire_bdk_psbt_json_serialize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_serialize( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_psbt_serialize( port_: i64, - that: *mut wire_cst_psbt_base, + that: *mut wire_cst_bdk_psbt, ) { - wire_PsbtBase_serialize_impl(port_, that) + wire_bdk_psbt_serialize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_PsbtBase_txid(port_: i64, that: *mut wire_cst_psbt_base) { - wire_PsbtBase_txid_impl(port_, that) +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) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_as_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_as_string( port_: i64, - that: *mut wire_cst_address_base, + that: *mut wire_cst_bdk_address, ) { - wire_AddressBase_as_string_impl(port_, that) + wire_bdk_address_as_string_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_from_script( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_from_script( port_: i64, - script: *mut wire_cst_script_buf_base, + script: *mut wire_cst_bdk_script_buf, network: i32, ) { - wire_AddressBase_from_script_impl(port_, script, network) + wire_bdk_address_from_script_impl(port_, script, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_from_string( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_from_string( port_: i64, address: *mut wire_cst_list_prim_u_8_strict, network: i32, ) { - wire_AddressBase_from_string_impl(port_, address, network) + wire_bdk_address_from_string_impl(port_, address, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_is_valid_for_network( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_is_valid_for_network( port_: i64, - that: *mut wire_cst_address_base, + that: *mut wire_cst_bdk_address, network: i32, ) { - wire_AddressBase_is_valid_for_network_impl(port_, that, network) + wire_bdk_address_is_valid_for_network_impl(port_, that, network) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_network( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_network( port_: i64, - that: *mut wire_cst_address_base, + that: *mut wire_cst_bdk_address, ) { - wire_AddressBase_network_impl(port_, that) + wire_bdk_address_network_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_payload( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_payload( port_: i64, - that: *mut wire_cst_address_base, + that: *mut wire_cst_bdk_address, ) { - wire_AddressBase_payload_impl(port_, that) + wire_bdk_address_payload_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_script( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_script( port_: i64, - ptr: *mut wire_cst_address_base, + ptr: *mut wire_cst_bdk_address, ) { - wire_AddressBase_script_impl(port_, ptr) + wire_bdk_address_script_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_AddressBase_to_qr_uri( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_address_to_qr_uri( port_: i64, - that: *mut wire_cst_address_base, + that: *mut wire_cst_bdk_address, ) { - wire_AddressBase_to_qr_uri_impl(port_, that) + wire_bdk_address_to_qr_uri_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_ScriptBufBase_empty(port_: i64) { - wire_ScriptBufBase_empty_impl(port_) +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_empty(port_: i64) { + wire_bdk_script_buf_empty_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_ScriptBufBase_from_hex( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_from_hex( port_: i64, s: *mut wire_cst_list_prim_u_8_strict, ) { - wire_ScriptBufBase_from_hex_impl(port_, s) + wire_bdk_script_buf_from_hex_impl(port_, s) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_script_buf_with_capacity( + port_: i64, + capacity: usize, +) { + wire_bdk_script_buf_with_capacity_impl(port_, capacity) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_ScriptBufBase_with_capacity(port_: i64, capacity: usize) { - wire_ScriptBufBase_with_capacity_impl(port_, capacity) +pub extern "C" fn frbgen_bdk_flutter_wire_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) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_input( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_input( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_input_impl(port_, that) + wire_bdk_transaction_input_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_is_coin_base( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_coin_base( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_is_coin_base_impl(port_, that) + wire_bdk_transaction_is_coin_base_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_is_explicitly_rbf( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_explicitly_rbf( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_is_explicitly_rbf_impl(port_, that) + wire_bdk_transaction_is_explicitly_rbf_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_is_lock_time_enabled( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_is_lock_time_enabled( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_is_lock_time_enabled_impl(port_, that) + wire_bdk_transaction_is_lock_time_enabled_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_lock_time( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_lock_time( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_lock_time_impl(port_, that) + wire_bdk_transaction_lock_time_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_new( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_new( port_: i64, - transaction_bytes: *mut wire_cst_list_prim_u_8_loose, + version: i32, + lock_time: *mut wire_cst_lock_time, + input: *mut wire_cst_list_tx_in, + output: *mut wire_cst_list_tx_out, ) { - wire_TransactionBase_new_impl(port_, transaction_bytes) + wire_bdk_transaction_new_impl(port_, version, lock_time, input, output) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_output( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_output( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_output_impl(port_, that) + wire_bdk_transaction_output_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_serialize( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_serialize( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_serialize_impl(port_, that) + wire_bdk_transaction_serialize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_size( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_size( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_size_impl(port_, that) + wire_bdk_transaction_size_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_txid( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_txid( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_txid_impl(port_, that) + wire_bdk_transaction_txid_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_version( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_version( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_version_impl(port_, that) + wire_bdk_transaction_version_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_vsize( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_vsize( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_vsize_impl(port_, that) + wire_bdk_transaction_vsize_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_TransactionBase_weight( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_transaction_weight( port_: i64, - that: *mut wire_cst_transaction_base, + that: *mut wire_cst_bdk_transaction, ) { - wire_TransactionBase_weight_impl(port_, that) + wire_bdk_transaction_weight_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_get_address( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_address( port_: i64, - that: *mut wire_cst_wallet_base, + ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, ) { - wire_WalletBase_get_address_impl(port_, that, address_index) + wire_bdk_wallet_get_address_impl(port_, ptr, address_index) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_get_balance( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_balance( port_: i64, - that: *mut wire_cst_wallet_base, + that: *mut wire_cst_bdk_wallet, ) { - wire_WalletBase_get_balance_impl(port_, that) + wire_bdk_wallet_get_balance_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_get_descriptor_for_keychain( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_descriptor_for_keychain( port_: i64, - ptr: *mut wire_cst_wallet_base, + ptr: *mut wire_cst_bdk_wallet, keychain: i32, ) { - wire_WalletBase_get_descriptor_for_keychain_impl(port_, ptr, keychain) + wire_bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_get_internal_address( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_internal_address( port_: i64, - that: *mut wire_cst_wallet_base, + ptr: *mut wire_cst_bdk_wallet, address_index: *mut wire_cst_address_index, ) { - wire_WalletBase_get_internal_address_impl(port_, that, address_index) + wire_bdk_wallet_get_internal_address_impl(port_, ptr, address_index) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_get_psbt_input( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_get_psbt_input( port_: i64, - that: *mut wire_cst_wallet_base, + 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_WalletBase_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) + wire_bdk_wallet_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_is_mine( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_is_mine( port_: i64, - that: *mut wire_cst_wallet_base, - script: *mut wire_cst_script_buf_base, + that: *mut wire_cst_bdk_wallet, + script: *mut wire_cst_bdk_script_buf, ) { - wire_WalletBase_is_mine_impl(port_, that, script) + wire_bdk_wallet_is_mine_impl(port_, that, script) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_list_transactions( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_list_transactions( port_: i64, - that: *mut wire_cst_wallet_base, + that: *mut wire_cst_bdk_wallet, include_raw: bool, ) { - wire_WalletBase_list_transactions_impl(port_, that, include_raw) + wire_bdk_wallet_list_transactions_impl(port_, that, include_raw) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_list_unspent( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_list_unspent( port_: i64, - that: *mut wire_cst_wallet_base, + that: *mut wire_cst_bdk_wallet, ) { - wire_WalletBase_list_unspent_impl(port_, that) + wire_bdk_wallet_list_unspent_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_network( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_network( port_: i64, - that: *mut wire_cst_wallet_base, + that: *mut wire_cst_bdk_wallet, ) { - wire_WalletBase_network_impl(port_, that) + wire_bdk_wallet_network_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_new( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_new( port_: i64, - descriptor: *mut wire_cst_descriptor_base, - change_descriptor: *mut wire_cst_descriptor_base, + descriptor: *mut wire_cst_bdk_descriptor, + change_descriptor: *mut wire_cst_bdk_descriptor, network: i32, database_config: *mut wire_cst_database_config, ) { - wire_WalletBase_new_impl( + wire_bdk_wallet_new_impl( port_, descriptor, change_descriptor, @@ -2451,22 +2510,22 @@ pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_new( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_sign( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_sign( port_: i64, - ptr: *mut wire_cst_wallet_base, - psbt: *mut wire_cst_psbt_base, + ptr: *mut wire_cst_bdk_wallet, + psbt: *mut wire_cst_bdk_psbt, sign_options: *mut wire_cst_sign_options, ) { - wire_WalletBase_sign_impl(port_, ptr, psbt, sign_options) + wire_bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_wire_WalletBase_sync( +pub extern "C" fn frbgen_bdk_flutter_wire_bdk_wallet_sync( port_: i64, - ptr: *mut wire_cst_wallet_base, - blockchain: *mut wire_cst_blockchain_base, + ptr: *mut wire_cst_bdk_wallet, + blockchain: *mut wire_cst_bdk_blockchain, ) { - wire_WalletBase_sync_impl(port_, ptr, blockchain) + wire_bdk_wallet_sync_impl(port_, ptr, blockchain) } #[no_mangle] @@ -2474,8 +2533,8 @@ pub extern "C" fn frbgen_bdk_flutter_wire_finish_bump_fee_tx_builder( port_: i64, txid: *mut wire_cst_list_prim_u_8_strict, fee_rate: f32, - allow_shrinking: *mut wire_cst_address_base, - wallet: *mut wire_cst_wallet_base, + allow_shrinking: *mut wire_cst_bdk_address, + wallet: *mut wire_cst_bdk_wallet, enable_rbf: bool, n_sequence: *mut u32, ) { @@ -2493,7 +2552,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( port_: i64, - wallet: *mut wire_cst_wallet_base, + wallet: *mut wire_cst_bdk_wallet, recipients: *mut wire_cst_list_script_amount, utxos: *mut wire_cst_list_out_point, foreign_utxo: *mut wire_cst_record_out_point_input_usize, @@ -2503,7 +2562,7 @@ pub extern "C" fn frbgen_bdk_flutter_wire_tx_builder_finish( fee_rate: *mut f32, fee_absolute: *mut u64, drain_wallet: bool, - drain_to: *mut wire_cst_script_buf_base, + drain_to: *mut wire_cst_bdk_script_buf, rbf: *mut wire_cst_rbf_value, data: *mut wire_cst_list_prim_u_8_loose, ) { @@ -2705,12 +2764,6 @@ pub extern "C" fn frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_ } } -#[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_address_base() -> *mut wire_cst_address_base -{ - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_address_base::new_with_null_ptr()) -} - #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_address_error( ) -> *mut wire_cst_address_error { @@ -2724,79 +2777,117 @@ pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_address_index( } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_block_time() -> *mut wire_cst_block_time { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_block_time::new_with_null_ptr()) +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_address() -> *mut wire_cst_bdk_address +{ + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_bdk_address::new_with_null_ptr()) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_base( -) -> *mut wire_cst_blockchain_base { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_blockchain( +) -> *mut wire_cst_bdk_blockchain { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_blockchain_base::new_with_null_ptr(), + wire_cst_bdk_blockchain::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config( -) -> *mut wire_cst_blockchain_config { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_derivation_path( +) -> *mut wire_cst_bdk_derivation_path { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_blockchain_config::new_with_null_ptr(), + wire_cst_bdk_derivation_path::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error( -) -> *mut wire_cst_consensus_error { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor( +) -> *mut wire_cst_bdk_descriptor { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_consensus_error::new_with_null_ptr(), + wire_cst_bdk_descriptor::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_database_config( -) -> *mut wire_cst_database_config { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_public_key( +) -> *mut wire_cst_bdk_descriptor_public_key { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_database_config::new_with_null_ptr(), + wire_cst_bdk_descriptor_public_key::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_derivation_path_base( -) -> *mut wire_cst_derivation_path_base { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_descriptor_secret_key( +) -> *mut wire_cst_bdk_descriptor_secret_key { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_derivation_path_base::new_with_null_ptr(), + wire_cst_bdk_descriptor_secret_key::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_base( -) -> *mut wire_cst_descriptor_base { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_mnemonic() -> *mut wire_cst_bdk_mnemonic +{ + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_bdk_mnemonic::new_with_null_ptr()) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_psbt() -> *mut wire_cst_bdk_psbt { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_bdk_psbt::new_with_null_ptr()) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_script_buf( +) -> *mut wire_cst_bdk_script_buf { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_descriptor_base::new_with_null_ptr(), + wire_cst_bdk_script_buf::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error( -) -> *mut wire_cst_descriptor_error { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_transaction( +) -> *mut wire_cst_bdk_transaction { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_descriptor_error::new_with_null_ptr(), + wire_cst_bdk_transaction::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_bdk_wallet() -> *mut wire_cst_bdk_wallet { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_bdk_wallet::new_with_null_ptr()) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_block_time() -> *mut wire_cst_block_time { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_block_time::new_with_null_ptr()) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config( +) -> *mut wire_cst_blockchain_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_blockchain_config::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_consensus_error( +) -> *mut wire_cst_consensus_error { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_consensus_error::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_public_key_base( -) -> *mut wire_cst_descriptor_public_key_base { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_database_config( +) -> *mut wire_cst_database_config { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_descriptor_public_key_base::new_with_null_ptr(), + wire_cst_database_config::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_secret_key_base( -) -> *mut wire_cst_descriptor_secret_key_base { +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_descriptor_error( +) -> *mut wire_cst_descriptor_error { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_descriptor_secret_key_base::new_with_null_ptr(), + wire_cst_descriptor_error::new_with_null_ptr(), ) } @@ -2837,9 +2928,8 @@ pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_local_utxo() -> *mut wi } #[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_mnemonic_base( -) -> *mut wire_cst_mnemonic_base { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_mnemonic_base::new_with_null_ptr()) +pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_lock_time() -> *mut wire_cst_lock_time { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_lock_time::new_with_null_ptr()) } #[no_mangle] @@ -2847,11 +2937,6 @@ pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_out_point() -> *mut wir flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_out_point::new_with_null_ptr()) } -#[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_psbt_base() -> *mut wire_cst_psbt_base { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_psbt_base::new_with_null_ptr()) -} - #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_psbt_sig_hash_type( ) -> *mut wire_cst_psbt_sig_hash_type { @@ -2886,14 +2971,6 @@ pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_rpc_sync_params( ) } -#[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_script_buf_base( -) -> *mut wire_cst_script_buf_base { - flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_script_buf_base::new_with_null_ptr(), - ) -} - #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_sign_options() -> *mut wire_cst_sign_options { @@ -2916,14 +2993,6 @@ pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_sqlite_db_configuration ) } -#[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_transaction_base( -) -> *mut wire_cst_transaction_base { - flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_transaction_base::new_with_null_ptr(), - ) -} - #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_u_32(value: u32) -> *mut u32 { flutter_rust_bridge::for_generated::new_leak_box_ptr(value) @@ -2939,12 +3008,6 @@ pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_u_8(value: u8) -> *mut flutter_rust_bridge::for_generated::new_leak_box_ptr(value) } -#[no_mangle] -pub extern "C" fn frbgen_bdk_flutter_cst_new_box_autoadd_wallet_base() -> *mut wire_cst_wallet_base -{ - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_wallet_base::new_with_null_ptr()) -} - #[no_mangle] pub extern "C" fn frbgen_bdk_flutter_cst_new_list_list_prim_u_8_strict( len: i32, @@ -3061,11 +3124,6 @@ pub extern "C" fn frbgen_bdk_flutter_cst_new_list_tx_out(len: i32) -> *mut wire_ flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) } -#[repr(C)] -#[derive(Clone, Copy)] -pub struct wire_cst_address_base { - ptr: usize, -} #[repr(C)] #[derive(Clone, Copy)] pub struct wire_cst_address_error { @@ -3159,12 +3217,6 @@ pub struct wire_cst_AddressIndex_Reset { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_address_info { - index: u32, - address: *mut wire_cst_list_prim_u_8_strict, -} -#[repr(C)] -#[derive(Clone, Copy)] pub struct wire_cst_auth { tag: i32, kind: AuthKind, @@ -3199,6 +3251,37 @@ pub struct wire_cst_balance { } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_bdk_address { + ptr: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_blockchain { + ptr: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_derivation_path { + ptr: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_descriptor { + extended_descriptor: usize, + key_map: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_descriptor_public_key { + ptr: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_descriptor_secret_key { + ptr: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_bdk_error { tag: i32, kind: BdkErrorKind, @@ -3238,6 +3321,9 @@ pub union BdkErrorKind { Sled: wire_cst_BdkError_Sled, Rpc: wire_cst_BdkError_Rpc, Rusqlite: wire_cst_BdkError_Rusqlite, + InvalidInput: wire_cst_BdkError_InvalidInput, + InvalidLockTime: wire_cst_BdkError_InvalidLockTime, + InvalidTransaction: wire_cst_BdkError_InvalidTransaction, nil__: (), } #[repr(C)] @@ -3405,17 +3491,52 @@ pub struct wire_cst_BdkError_Rusqlite { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_block_time { - height: u32, - timestamp: u64, +pub struct wire_cst_BdkError_InvalidInput { + field0: *mut wire_cst_list_prim_u_8_strict, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_BdkError_InvalidLockTime { + field0: *mut wire_cst_list_prim_u_8_strict, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_BdkError_InvalidTransaction { + field0: *mut wire_cst_list_prim_u_8_strict, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_mnemonic { + ptr: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_psbt { + ptr: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_script_buf { + bytes: *mut wire_cst_list_prim_u_8_strict, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_bdk_transaction { + inner: *mut wire_cst_list_prim_u_8_strict, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_blockchain_base { +pub struct wire_cst_bdk_wallet { ptr: usize, } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_block_time { + height: u32, + timestamp: u64, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_blockchain_config { tag: i32, kind: BlockchainConfigKind, @@ -3511,17 +3632,6 @@ pub struct wire_cst_DatabaseConfig_Sled { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_derivation_path_base { - ptr: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] -pub struct wire_cst_descriptor_base { - extended_descriptor: usize, - key_map: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] pub struct wire_cst_descriptor_error { tag: i32, kind: DescriptorErrorKind, @@ -3581,16 +3691,6 @@ pub struct wire_cst_DescriptorError_Hex { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_descriptor_public_key_base { - ptr: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] -pub struct wire_cst_descriptor_secret_key_base { - ptr: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] pub struct wire_cst_electrum_config { url: *mut wire_cst_list_prim_u_8_strict, socks5: *mut wire_cst_list_prim_u_8_strict, @@ -3712,8 +3812,26 @@ pub struct wire_cst_local_utxo { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_mnemonic_base { - ptr: usize, +pub struct wire_cst_lock_time { + tag: i32, + kind: LockTimeKind, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub union LockTimeKind { + Blocks: wire_cst_LockTime_Blocks, + Seconds: wire_cst_LockTime_Seconds, + nil__: (), +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_LockTime_Blocks { + field0: u32, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_LockTime_Seconds { + field0: u32, } #[repr(C)] #[derive(Clone, Copy)] @@ -3753,11 +3871,6 @@ pub struct wire_cst_Payload_WitnessProgram { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_psbt_base { - ptr: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] pub struct wire_cst_psbt_sig_hash_type { inner: u32, } @@ -3780,19 +3893,25 @@ pub struct wire_cst_RbfValue_Value { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_record_out_point_input_usize { - field0: wire_cst_out_point, - field1: wire_cst_input, - field2: usize, +pub struct wire_cst_record_bdk_address_u_32 { + field0: wire_cst_bdk_address, + field1: u32, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_record_psbt_base_transaction_details { - field0: wire_cst_psbt_base, +pub struct wire_cst_record_bdk_psbt_transaction_details { + field0: wire_cst_bdk_psbt, field1: wire_cst_transaction_details, } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_record_out_point_input_usize { + field0: wire_cst_out_point, + field1: wire_cst_input, + field2: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_rpc_config { url: *mut wire_cst_list_prim_u_8_strict, auth: wire_cst_auth, @@ -3811,16 +3930,11 @@ pub struct wire_cst_rpc_sync_params { #[repr(C)] #[derive(Clone, Copy)] pub struct wire_cst_script_amount { - script: wire_cst_script_buf_base, + script: wire_cst_bdk_script_buf, amount: u64, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_script_buf_base { - bytes: *mut wire_cst_list_prim_u_8_strict, -} -#[repr(C)] -#[derive(Clone, Copy)] pub struct wire_cst_sign_options { multi_sig: bool, trust_witness_utxo: bool, @@ -3844,13 +3958,8 @@ pub struct wire_cst_sqlite_db_configuration { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_transaction_base { - inner: *mut wire_cst_list_prim_u_8_strict, -} -#[repr(C)] -#[derive(Clone, Copy)] pub struct wire_cst_transaction_details { - transaction: *mut wire_cst_transaction_base, + transaction: *mut wire_cst_bdk_transaction, txid: *mut wire_cst_list_prim_u_8_strict, received: u64, sent: u64, @@ -3861,7 +3970,7 @@ pub struct wire_cst_transaction_details { #[derive(Clone, Copy)] pub struct wire_cst_tx_in { previous_output: wire_cst_out_point, - script_sig: wire_cst_script_buf_base, + script_sig: wire_cst_bdk_script_buf, sequence: u32, witness: *mut wire_cst_list_list_prim_u_8_strict, } @@ -3869,10 +3978,5 @@ pub struct wire_cst_tx_in { #[derive(Clone, Copy)] pub struct wire_cst_tx_out { value: u64, - script_pubkey: wire_cst_script_buf_base, -} -#[repr(C)] -#[derive(Clone, Copy)] -pub struct wire_cst_wallet_base { - ptr: usize, + script_pubkey: wire_cst_bdk_script_buf, } diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index 0cfe48f7..e351e8d3 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.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. #![allow( non_camel_case_types, @@ -36,7 +36,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_opaque = RustOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom, ); -const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.28"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.31"; // Section: executor @@ -44,14 +44,14 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire_BlockchainBase_broadcast_impl( +fn wire_bdk_blockchain_broadcast_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - transaction: impl CstDecode, + that: impl CstDecode, + transaction: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "BlockchainBase_broadcast", + debug_name: "bdk_blockchain_broadcast", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -60,20 +60,20 @@ fn wire_BlockchainBase_broadcast_impl( let api_transaction = transaction.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::blockchain::BlockchainBase::broadcast(&api_that, api_transaction) + crate::api::blockchain::BdkBlockchain::broadcast(&api_that, api_transaction) })()) } }, ) } -fn wire_BlockchainBase_estimate_fee_impl( +fn wire_bdk_blockchain_estimate_fee_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, target: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "BlockchainBase_estimate_fee", + debug_name: "bdk_blockchain_estimate_fee", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -82,20 +82,20 @@ fn wire_BlockchainBase_estimate_fee_impl( let api_target = target.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::blockchain::BlockchainBase::estimate_fee(&api_that, api_target) + crate::api::blockchain::BdkBlockchain::estimate_fee(&api_that, api_target) })()) } }, ) } -fn wire_BlockchainBase_get_block_hash_impl( +fn wire_bdk_blockchain_get_block_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, height: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "BlockchainBase_get_block_hash", + debug_name: "bdk_blockchain_get_block_hash", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -104,19 +104,19 @@ fn wire_BlockchainBase_get_block_hash_impl( let api_height = height.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::blockchain::BlockchainBase::get_block_hash(&api_that, api_height) + crate::api::blockchain::BdkBlockchain::get_block_hash(&api_that, api_height) })()) } }, ) } -fn wire_BlockchainBase_get_height_impl( +fn wire_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: "BlockchainBase_get_height", + debug_name: "bdk_blockchain_get_height", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -124,19 +124,19 @@ fn wire_BlockchainBase_get_height_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::blockchain::BlockchainBase::get_height(&api_that) + crate::api::blockchain::BdkBlockchain::get_height(&api_that) })()) } }, ) } -fn wire_BlockchainBase_new_impl( +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: "BlockchainBase_new", + debug_name: "bdk_blockchain_new", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -144,19 +144,19 @@ fn wire_BlockchainBase_new_impl( let api_blockchain_config = blockchain_config.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::blockchain::BlockchainBase::new(api_blockchain_config) + crate::api::blockchain::BdkBlockchain::new(api_blockchain_config) })()) } }, ) } -fn wire_DescriptorBase_as_string_impl( +fn wire_bdk_descriptor_as_string_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: "DescriptorBase_as_string", + debug_name: "bdk_descriptor_as_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -164,21 +164,19 @@ fn wire_DescriptorBase_as_string_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::descriptor::DescriptorBase::as_string( - &api_that, - )) + Result::<_, ()>::Ok(crate::api::descriptor::BdkDescriptor::as_string(&api_that)) })()) } }, ) } -fn wire_DescriptorBase_as_string_private_impl( +fn wire_bdk_descriptor_as_string_private_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: "DescriptorBase_as_string_private", + debug_name: "bdk_descriptor_as_string_private", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -186,7 +184,7 @@ fn wire_DescriptorBase_as_string_private_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::descriptor::DescriptorBase::as_string_private( + Result::<_, ()>::Ok(crate::api::descriptor::BdkDescriptor::as_string_private( &api_that, )) })()) @@ -194,13 +192,13 @@ fn wire_DescriptorBase_as_string_private_impl( }, ) } -fn wire_DescriptorBase_max_satisfaction_weight_impl( +fn wire_bdk_descriptor_max_satisfaction_weight_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: "DescriptorBase_max_satisfaction_weight", + debug_name: "bdk_descriptor_max_satisfaction_weight", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -208,20 +206,20 @@ fn wire_DescriptorBase_max_satisfaction_weight_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::max_satisfaction_weight(&api_that) + crate::api::descriptor::BdkDescriptor::max_satisfaction_weight(&api_that) })()) } }, ) } -fn wire_DescriptorBase_new_impl( +fn wire_bdk_descriptor_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, descriptor: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new", + debug_name: "bdk_descriptor_new", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -230,21 +228,21 @@ fn wire_DescriptorBase_new_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new(api_descriptor, api_network) + crate::api::descriptor::BdkDescriptor::new(api_descriptor, api_network) })()) } }, ) } -fn wire_DescriptorBase_new_bip44_impl( +fn wire_bdk_descriptor_new_bip44_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: impl CstDecode, + secret_key: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip44", + debug_name: "bdk_descriptor_new_bip44", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -254,7 +252,7 @@ fn wire_DescriptorBase_new_bip44_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip44( + crate::api::descriptor::BdkDescriptor::new_bip44( api_secret_key, api_keychain_kind, api_network, @@ -264,16 +262,16 @@ fn wire_DescriptorBase_new_bip44_impl( }, ) } -fn wire_DescriptorBase_new_bip44_public_impl( +fn wire_bdk_descriptor_new_bip44_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: impl CstDecode, + public_key: impl CstDecode, fingerprint: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip44_public", + debug_name: "bdk_descriptor_new_bip44_public", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -284,7 +282,7 @@ fn wire_DescriptorBase_new_bip44_public_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip44_public( + crate::api::descriptor::BdkDescriptor::new_bip44_public( api_public_key, api_fingerprint, api_keychain_kind, @@ -295,15 +293,15 @@ fn wire_DescriptorBase_new_bip44_public_impl( }, ) } -fn wire_DescriptorBase_new_bip49_impl( +fn wire_bdk_descriptor_new_bip49_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: impl CstDecode, + secret_key: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip49", + debug_name: "bdk_descriptor_new_bip49", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -313,7 +311,7 @@ fn wire_DescriptorBase_new_bip49_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip49( + crate::api::descriptor::BdkDescriptor::new_bip49( api_secret_key, api_keychain_kind, api_network, @@ -323,16 +321,16 @@ fn wire_DescriptorBase_new_bip49_impl( }, ) } -fn wire_DescriptorBase_new_bip49_public_impl( +fn wire_bdk_descriptor_new_bip49_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: impl CstDecode, + public_key: impl CstDecode, fingerprint: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip49_public", + debug_name: "bdk_descriptor_new_bip49_public", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -343,7 +341,7 @@ fn wire_DescriptorBase_new_bip49_public_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip49_public( + crate::api::descriptor::BdkDescriptor::new_bip49_public( api_public_key, api_fingerprint, api_keychain_kind, @@ -354,15 +352,15 @@ fn wire_DescriptorBase_new_bip49_public_impl( }, ) } -fn wire_DescriptorBase_new_bip84_impl( +fn wire_bdk_descriptor_new_bip84_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: impl CstDecode, + secret_key: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip84", + debug_name: "bdk_descriptor_new_bip84", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -372,7 +370,7 @@ fn wire_DescriptorBase_new_bip84_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip84( + crate::api::descriptor::BdkDescriptor::new_bip84( api_secret_key, api_keychain_kind, api_network, @@ -382,16 +380,16 @@ fn wire_DescriptorBase_new_bip84_impl( }, ) } -fn wire_DescriptorBase_new_bip84_public_impl( +fn wire_bdk_descriptor_new_bip84_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: impl CstDecode, + public_key: impl CstDecode, fingerprint: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip84_public", + debug_name: "bdk_descriptor_new_bip84_public", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -402,7 +400,7 @@ fn wire_DescriptorBase_new_bip84_public_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip84_public( + crate::api::descriptor::BdkDescriptor::new_bip84_public( api_public_key, api_fingerprint, api_keychain_kind, @@ -413,15 +411,15 @@ fn wire_DescriptorBase_new_bip84_public_impl( }, ) } -fn wire_DescriptorBase_new_bip86_impl( +fn wire_bdk_descriptor_new_bip86_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - secret_key: impl CstDecode, + secret_key: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip86", + debug_name: "bdk_descriptor_new_bip86", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -431,7 +429,7 @@ fn wire_DescriptorBase_new_bip86_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip86( + crate::api::descriptor::BdkDescriptor::new_bip86( api_secret_key, api_keychain_kind, api_network, @@ -441,16 +439,16 @@ fn wire_DescriptorBase_new_bip86_impl( }, ) } -fn wire_DescriptorBase_new_bip86_public_impl( +fn wire_bdk_descriptor_new_bip86_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - public_key: impl CstDecode, + public_key: impl CstDecode, fingerprint: impl CstDecode, keychain_kind: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorBase_new_bip86_public", + debug_name: "bdk_descriptor_new_bip86_public", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -461,7 +459,7 @@ fn wire_DescriptorBase_new_bip86_public_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::descriptor::DescriptorBase::new_bip86_public( + crate::api::descriptor::BdkDescriptor::new_bip86_public( api_public_key, api_fingerprint, api_keychain_kind, @@ -472,13 +470,13 @@ fn wire_DescriptorBase_new_bip86_public_impl( }, ) } -fn wire_DerivationPathBase_from_string_impl( +fn wire_bdk_derivation_path_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, path: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DerivationPathBase_from_string", + debug_name: "bdk_derivation_path_from_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -486,19 +484,19 @@ fn wire_DerivationPathBase_from_string_impl( let api_path = path.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DerivationPathBase::from_string(api_path) + crate::api::key::BdkDerivationPath::from_string(api_path) })()) } }, ) } -fn wire_DescriptorPublicKeyBase_as_string_impl( +fn wire_bdk_descriptor_public_key_as_string_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: "DescriptorPublicKeyBase_as_string", + debug_name: "bdk_descriptor_public_key_as_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -506,7 +504,7 @@ fn wire_DescriptorPublicKeyBase_as_string_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::key::DescriptorPublicKeyBase::as_string( + Result::<_, ()>::Ok(crate::api::key::BdkDescriptorPublicKey::as_string( &api_that, )) })()) @@ -514,14 +512,14 @@ fn wire_DescriptorPublicKeyBase_as_string_impl( }, ) } -fn wire_DescriptorPublicKeyBase_derive_impl( +fn wire_bdk_descriptor_public_key_derive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - path: impl CstDecode, + ptr: impl CstDecode, + path: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorPublicKeyBase_derive", + debug_name: "bdk_descriptor_public_key_derive", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -530,20 +528,20 @@ fn wire_DescriptorPublicKeyBase_derive_impl( let api_path = path.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorPublicKeyBase::derive(api_ptr, api_path) + crate::api::key::BdkDescriptorPublicKey::derive(api_ptr, api_path) })()) } }, ) } -fn wire_DescriptorPublicKeyBase_extend_impl( +fn wire_bdk_descriptor_public_key_extend_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - path: impl CstDecode, + ptr: impl CstDecode, + path: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorPublicKeyBase_extend", + debug_name: "bdk_descriptor_public_key_extend", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -552,19 +550,19 @@ fn wire_DescriptorPublicKeyBase_extend_impl( let api_path = path.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorPublicKeyBase::extend(api_ptr, api_path) + crate::api::key::BdkDescriptorPublicKey::extend(api_ptr, api_path) })()) } }, ) } -fn wire_DescriptorPublicKeyBase_from_string_impl( +fn wire_bdk_descriptor_public_key_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorPublicKeyBase_from_string", + debug_name: "bdk_descriptor_public_key_from_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -572,19 +570,19 @@ fn wire_DescriptorPublicKeyBase_from_string_impl( let api_public_key = public_key.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorPublicKeyBase::from_string(api_public_key) + crate::api::key::BdkDescriptorPublicKey::from_string(api_public_key) })()) } }, ) } -fn wire_DescriptorSecretKeyBase_as_public_impl( +fn wire_bdk_descriptor_secret_key_as_public_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorSecretKeyBase_as_public", + debug_name: "bdk_descriptor_secret_key_as_public", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -592,19 +590,19 @@ fn wire_DescriptorSecretKeyBase_as_public_impl( let api_ptr = ptr.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorSecretKeyBase::as_public(api_ptr) + crate::api::key::BdkDescriptorSecretKey::as_public(api_ptr) })()) } }, ) } -fn wire_DescriptorSecretKeyBase_as_string_impl( +fn wire_bdk_descriptor_secret_key_as_string_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: "DescriptorSecretKeyBase_as_string", + debug_name: "bdk_descriptor_secret_key_as_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -612,7 +610,7 @@ fn wire_DescriptorSecretKeyBase_as_string_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::key::DescriptorSecretKeyBase::as_string( + Result::<_, ()>::Ok(crate::api::key::BdkDescriptorSecretKey::as_string( &api_that, )) })()) @@ -620,15 +618,15 @@ fn wire_DescriptorSecretKeyBase_as_string_impl( }, ) } -fn wire_DescriptorSecretKeyBase_create_impl( +fn wire_bdk_descriptor_secret_key_create_impl( port_: flutter_rust_bridge::for_generated::MessagePort, network: impl CstDecode, - mnemonic: impl CstDecode, + mnemonic: impl CstDecode, password: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorSecretKeyBase_create", + debug_name: "bdk_descriptor_secret_key_create", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -638,7 +636,7 @@ fn wire_DescriptorSecretKeyBase_create_impl( let api_password = password.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorSecretKeyBase::create( + crate::api::key::BdkDescriptorSecretKey::create( api_network, api_mnemonic, api_password, @@ -648,14 +646,14 @@ fn wire_DescriptorSecretKeyBase_create_impl( }, ) } -fn wire_DescriptorSecretKeyBase_derive_impl( +fn wire_bdk_descriptor_secret_key_derive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - path: impl CstDecode, + ptr: impl CstDecode, + path: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorSecretKeyBase_derive", + debug_name: "bdk_descriptor_secret_key_derive", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -664,20 +662,20 @@ fn wire_DescriptorSecretKeyBase_derive_impl( let api_path = path.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorSecretKeyBase::derive(api_ptr, api_path) + crate::api::key::BdkDescriptorSecretKey::derive(api_ptr, api_path) })()) } }, ) } -fn wire_DescriptorSecretKeyBase_extend_impl( +fn wire_bdk_descriptor_secret_key_extend_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - path: impl CstDecode, + ptr: impl CstDecode, + path: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorSecretKeyBase_extend", + debug_name: "bdk_descriptor_secret_key_extend", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -686,19 +684,19 @@ fn wire_DescriptorSecretKeyBase_extend_impl( let api_path = path.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorSecretKeyBase::extend(api_ptr, api_path) + crate::api::key::BdkDescriptorSecretKey::extend(api_ptr, api_path) })()) } }, ) } -fn wire_DescriptorSecretKeyBase_from_string_impl( +fn wire_bdk_descriptor_secret_key_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "DescriptorSecretKeyBase_from_string", + debug_name: "bdk_descriptor_secret_key_from_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -706,19 +704,19 @@ fn wire_DescriptorSecretKeyBase_from_string_impl( let api_secret_key = secret_key.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorSecretKeyBase::from_string(api_secret_key) + crate::api::key::BdkDescriptorSecretKey::from_string(api_secret_key) })()) } }, ) } -fn wire_DescriptorSecretKeyBase_secret_bytes_impl( +fn wire_bdk_descriptor_secret_key_secret_bytes_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: "DescriptorSecretKeyBase_secret_bytes", + debug_name: "bdk_descriptor_secret_key_secret_bytes", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -726,19 +724,19 @@ fn wire_DescriptorSecretKeyBase_secret_bytes_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::DescriptorSecretKeyBase::secret_bytes(&api_that) + crate::api::key::BdkDescriptorSecretKey::secret_bytes(&api_that) })()) } }, ) } -fn wire_MnemonicBase_as_string_impl( +fn wire_bdk_mnemonic_as_string_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: "MnemonicBase_as_string", + debug_name: "bdk_mnemonic_as_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -746,19 +744,19 @@ fn wire_MnemonicBase_as_string_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::key::MnemonicBase::as_string(&api_that)) + Result::<_, ()>::Ok(crate::api::key::BdkMnemonic::as_string(&api_that)) })()) } }, ) } -fn wire_MnemonicBase_from_entropy_impl( +fn wire_bdk_mnemonic_from_entropy_impl( port_: flutter_rust_bridge::for_generated::MessagePort, entropy: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "MnemonicBase_from_entropy", + debug_name: "bdk_mnemonic_from_entropy", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -766,19 +764,19 @@ fn wire_MnemonicBase_from_entropy_impl( let api_entropy = entropy.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::MnemonicBase::from_entropy(api_entropy) + crate::api::key::BdkMnemonic::from_entropy(api_entropy) })()) } }, ) } -fn wire_MnemonicBase_from_string_impl( +fn wire_bdk_mnemonic_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, mnemonic: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "MnemonicBase_from_string", + debug_name: "bdk_mnemonic_from_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -786,38 +784,38 @@ fn wire_MnemonicBase_from_string_impl( let api_mnemonic = mnemonic.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::key::MnemonicBase::from_string(api_mnemonic) + crate::api::key::BdkMnemonic::from_string(api_mnemonic) })()) } }, ) } -fn wire_MnemonicBase_new_impl( +fn wire_bdk_mnemonic_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, word_count: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "MnemonicBase_new", + debug_name: "bdk_mnemonic_new", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_word_count = word_count.cst_decode(); move |context| { - transform_result_dco((move || crate::api::key::MnemonicBase::new(api_word_count))()) + transform_result_dco((move || crate::api::key::BdkMnemonic::new(api_word_count))()) } }, ) } -fn wire_PsbtBase_combine_impl( +fn wire_bdk_psbt_combine_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - other: impl CstDecode, + ptr: impl CstDecode, + other: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "PsbtBase_combine", + debug_name: "bdk_psbt_combine", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -826,39 +824,37 @@ fn wire_PsbtBase_combine_impl( let api_other = other.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::psbt::PsbtBase::combine(api_ptr, api_other) + crate::api::psbt::BdkPsbt::combine(api_ptr, api_other) })()) } }, ) } -fn wire_PsbtBase_extract_tx_impl( +fn wire_bdk_psbt_extract_tx_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "PsbtBase_extract_tx", + debug_name: "bdk_psbt_extract_tx", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::PsbtBase::extract_tx(api_ptr)) - })()) + transform_result_dco((move || crate::api::psbt::BdkPsbt::extract_tx(api_ptr))()) } }, ) } -fn wire_PsbtBase_fee_amount_impl( +fn wire_bdk_psbt_fee_amount_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: "PsbtBase_fee_amount", + debug_name: "bdk_psbt_fee_amount", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -866,19 +862,19 @@ fn wire_PsbtBase_fee_amount_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::PsbtBase::fee_amount(&api_that)) + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_amount(&api_that)) })()) } }, ) } -fn wire_PsbtBase_fee_rate_impl( +fn wire_bdk_psbt_fee_rate_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: "PsbtBase_fee_rate", + debug_name: "bdk_psbt_fee_rate", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -886,19 +882,19 @@ fn wire_PsbtBase_fee_rate_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::PsbtBase::fee_rate(&api_that)) + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::fee_rate(&api_that)) })()) } }, ) } -fn wire_PsbtBase_from_str_impl( +fn wire_bdk_psbt_from_str_impl( port_: flutter_rust_bridge::for_generated::MessagePort, psbt_base64: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "PsbtBase_from_str", + debug_name: "bdk_psbt_from_str", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -906,19 +902,19 @@ fn wire_PsbtBase_from_str_impl( let api_psbt_base64 = psbt_base64.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::psbt::PsbtBase::from_str(api_psbt_base64) + crate::api::psbt::BdkPsbt::from_str(api_psbt_base64) })()) } }, ) } -fn wire_PsbtBase_json_serialize_impl( +fn wire_bdk_psbt_json_serialize_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: "PsbtBase_json_serialize", + debug_name: "bdk_psbt_json_serialize", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -926,19 +922,19 @@ fn wire_PsbtBase_json_serialize_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::PsbtBase::json_serialize(&api_that)) + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::json_serialize(&api_that)) })()) } }, ) } -fn wire_PsbtBase_serialize_impl( +fn wire_bdk_psbt_serialize_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: "PsbtBase_serialize", + debug_name: "bdk_psbt_serialize", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -946,19 +942,19 @@ fn wire_PsbtBase_serialize_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::PsbtBase::serialize(&api_that)) + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::serialize(&api_that)) })()) } }, ) } -fn wire_PsbtBase_txid_impl( +fn wire_bdk_psbt_txid_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: "PsbtBase_txid", + debug_name: "bdk_psbt_txid", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -966,19 +962,19 @@ fn wire_PsbtBase_txid_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::psbt::PsbtBase::txid(&api_that)) + Result::<_, ()>::Ok(crate::api::psbt::BdkPsbt::txid(&api_that)) })()) } }, ) } -fn wire_AddressBase_as_string_impl( +fn wire_bdk_address_as_string_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: "AddressBase_as_string", + debug_name: "bdk_address_as_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -986,20 +982,20 @@ fn wire_AddressBase_as_string_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::AddressBase::as_string(&api_that)) + Result::<_, ()>::Ok(crate::api::types::BdkAddress::as_string(&api_that)) })()) } }, ) } -fn wire_AddressBase_from_script_impl( +fn wire_bdk_address_from_script_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - script: impl CstDecode, + script: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "AddressBase_from_script", + debug_name: "bdk_address_from_script", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1008,20 +1004,20 @@ fn wire_AddressBase_from_script_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::types::AddressBase::from_script(api_script, api_network) + crate::api::types::BdkAddress::from_script(api_script, api_network) })()) } }, ) } -fn wire_AddressBase_from_string_impl( +fn wire_bdk_address_from_string_impl( port_: flutter_rust_bridge::for_generated::MessagePort, address: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "AddressBase_from_string", + debug_name: "bdk_address_from_string", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1030,20 +1026,20 @@ fn wire_AddressBase_from_string_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::types::AddressBase::from_string(api_address, api_network) + crate::api::types::BdkAddress::from_string(api_address, api_network) })()) } }, ) } -fn wire_AddressBase_is_valid_for_network_impl( +fn wire_bdk_address_is_valid_for_network_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, network: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "AddressBase_is_valid_for_network", + debug_name: "bdk_address_is_valid_for_network", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1052,7 +1048,7 @@ fn wire_AddressBase_is_valid_for_network_impl( let api_network = network.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::AddressBase::is_valid_for_network( + Result::<_, ()>::Ok(crate::api::types::BdkAddress::is_valid_for_network( &api_that, api_network, )) @@ -1061,13 +1057,13 @@ fn wire_AddressBase_is_valid_for_network_impl( }, ) } -fn wire_AddressBase_network_impl( +fn wire_bdk_address_network_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: "AddressBase_network", + debug_name: "bdk_address_network", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1075,19 +1071,19 @@ fn wire_AddressBase_network_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::AddressBase::network(&api_that)) + Result::<_, ()>::Ok(crate::api::types::BdkAddress::network(&api_that)) })()) } }, ) } -fn wire_AddressBase_payload_impl( +fn wire_bdk_address_payload_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: "AddressBase_payload", + debug_name: "bdk_address_payload", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1095,19 +1091,19 @@ fn wire_AddressBase_payload_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::AddressBase::payload(&api_that)) + Result::<_, ()>::Ok(crate::api::types::BdkAddress::payload(&api_that)) })()) } }, ) } -fn wire_AddressBase_script_impl( +fn wire_bdk_address_script_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "AddressBase_script", + debug_name: "bdk_address_script", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1115,19 +1111,19 @@ fn wire_AddressBase_script_impl( let api_ptr = ptr.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::AddressBase::script(api_ptr)) + Result::<_, ()>::Ok(crate::api::types::BdkAddress::script(api_ptr)) })()) } }, ) } -fn wire_AddressBase_to_qr_uri_impl( +fn wire_bdk_address_to_qr_uri_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: "AddressBase_to_qr_uri", + debug_name: "bdk_address_to_qr_uri", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1135,53 +1131,53 @@ fn wire_AddressBase_to_qr_uri_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::AddressBase::to_qr_uri(&api_that)) + Result::<_, ()>::Ok(crate::api::types::BdkAddress::to_qr_uri(&api_that)) })()) } }, ) } -fn wire_ScriptBufBase_empty_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire_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: "ScriptBufBase_empty", + debug_name: "bdk_script_buf_empty", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::ScriptBufBase::empty()) + Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::empty()) })()) } }, ) } -fn wire_ScriptBufBase_from_hex_impl( +fn wire_bdk_script_buf_from_hex_impl( port_: flutter_rust_bridge::for_generated::MessagePort, s: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ScriptBufBase_from_hex", + debug_name: "bdk_script_buf_from_hex", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_s = s.cst_decode(); move |context| { - transform_result_dco((move || crate::api::types::ScriptBufBase::from_hex(api_s))()) + transform_result_dco((move || crate::api::types::BdkScriptBuf::from_hex(api_s))()) } }, ) } -fn wire_ScriptBufBase_with_capacity_impl( +fn wire_bdk_script_buf_with_capacity_impl( port_: flutter_rust_bridge::for_generated::MessagePort, capacity: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ScriptBufBase_with_capacity", + debug_name: "bdk_script_buf_with_capacity", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1189,7 +1185,7 @@ fn wire_ScriptBufBase_with_capacity_impl( let api_capacity = capacity.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::ScriptBufBase::with_capacity( + Result::<_, ()>::Ok(crate::api::types::BdkScriptBuf::with_capacity( api_capacity, )) })()) @@ -1197,33 +1193,33 @@ fn wire_ScriptBufBase_with_capacity_impl( }, ) } -fn wire_TransactionBase_input_impl( +fn wire_bdk_transaction_from_bytes_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + transaction_bytes: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "TransactionBase_input", + debug_name: "bdk_transaction_from_bytes", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); + let api_transaction_bytes = transaction_bytes.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::input(&api_that)) + crate::api::types::BdkTransaction::from_bytes(api_transaction_bytes) })()) } }, ) } -fn wire_TransactionBase_is_coin_base_impl( +fn wire_bdk_transaction_input_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: "TransactionBase_is_coin_base", + debug_name: "bdk_transaction_input", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1231,19 +1227,19 @@ fn wire_TransactionBase_is_coin_base_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::is_coin_base(&api_that)) + crate::api::types::BdkTransaction::input(&api_that) })()) } }, ) } -fn wire_TransactionBase_is_explicitly_rbf_impl( +fn wire_bdk_transaction_is_coin_base_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: "TransactionBase_is_explicitly_rbf", + debug_name: "bdk_transaction_is_coin_base", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1251,21 +1247,19 @@ fn wire_TransactionBase_is_explicitly_rbf_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::is_explicitly_rbf( - &api_that, - )) + crate::api::types::BdkTransaction::is_coin_base(&api_that) })()) } }, ) } -fn wire_TransactionBase_is_lock_time_enabled_impl( +fn wire_bdk_transaction_is_explicitly_rbf_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: "TransactionBase_is_lock_time_enabled", + debug_name: "bdk_transaction_is_explicitly_rbf", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1273,21 +1267,19 @@ fn wire_TransactionBase_is_lock_time_enabled_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::is_lock_time_enabled( - &api_that, - )) + crate::api::types::BdkTransaction::is_explicitly_rbf(&api_that) })()) } }, ) } -fn wire_TransactionBase_lock_time_impl( +fn wire_bdk_transaction_is_lock_time_enabled_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: "TransactionBase_lock_time", + debug_name: "bdk_transaction_is_lock_time_enabled", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1295,59 +1287,70 @@ fn wire_TransactionBase_lock_time_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::lock_time(&api_that)) + crate::api::types::BdkTransaction::is_lock_time_enabled(&api_that) })()) } }, ) } -fn wire_TransactionBase_new_impl( +fn wire_bdk_transaction_lock_time_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - transaction_bytes: impl CstDecode>, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "TransactionBase_new", + debug_name: "bdk_transaction_lock_time", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_transaction_bytes = transaction_bytes.cst_decode(); + let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::types::TransactionBase::new(api_transaction_bytes) + crate::api::types::BdkTransaction::lock_time(&api_that) })()) } }, ) } -fn wire_TransactionBase_output_impl( +fn wire_bdk_transaction_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + version: impl CstDecode, + lock_time: impl CstDecode, + input: impl CstDecode>, + output: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "TransactionBase_output", + debug_name: "bdk_transaction_new", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); + let api_version = version.cst_decode(); + let api_lock_time = lock_time.cst_decode(); + let api_input = input.cst_decode(); + let api_output = output.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::output(&api_that)) + crate::api::types::BdkTransaction::new( + api_version, + api_lock_time, + api_input, + api_output, + ) })()) } }, ) } -fn wire_TransactionBase_serialize_impl( +fn wire_bdk_transaction_output_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: "TransactionBase_serialize", + debug_name: "bdk_transaction_output", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1355,19 +1358,19 @@ fn wire_TransactionBase_serialize_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::serialize(&api_that)) + crate::api::types::BdkTransaction::output(&api_that) })()) } }, ) } -fn wire_TransactionBase_size_impl( +fn wire_bdk_transaction_serialize_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: "TransactionBase_size", + debug_name: "bdk_transaction_serialize", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1375,39 +1378,55 @@ fn wire_TransactionBase_size_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::size(&api_that)) + crate::api::types::BdkTransaction::serialize(&api_that) })()) } }, ) } -fn wire_TransactionBase_txid_impl( +fn wire_bdk_transaction_size_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: "TransactionBase_txid", + debug_name: "bdk_transaction_size", 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::types::TransactionBase::txid(&api_that)) - })()) + transform_result_dco((move || crate::api::types::BdkTransaction::size(&api_that))()) + } + }, + ) +} +fn wire_bdk_transaction_txid_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "bdk_transaction_txid", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || crate::api::types::BdkTransaction::txid(&api_that))()) } }, ) } -fn wire_TransactionBase_version_impl( +fn wire_bdk_transaction_version_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: "TransactionBase_version", + debug_name: "bdk_transaction_version", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1415,19 +1434,19 @@ fn wire_TransactionBase_version_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::version(&api_that)) + crate::api::types::BdkTransaction::version(&api_that) })()) } }, ) } -fn wire_TransactionBase_vsize_impl( +fn wire_bdk_transaction_vsize_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: "TransactionBase_vsize", + debug_name: "bdk_transaction_vsize", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1435,19 +1454,19 @@ fn wire_TransactionBase_vsize_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::vsize(&api_that)) + crate::api::types::BdkTransaction::vsize(&api_that) })()) } }, ) } -fn wire_TransactionBase_weight_impl( +fn wire_bdk_transaction_weight_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: "TransactionBase_weight", + debug_name: "bdk_transaction_weight", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1455,41 +1474,41 @@ fn wire_TransactionBase_weight_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::types::TransactionBase::weight(&api_that)) + crate::api::types::BdkTransaction::weight(&api_that) })()) } }, ) } -fn wire_WalletBase_get_address_impl( +fn wire_bdk_wallet_get_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + ptr: impl CstDecode, address_index: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_get_address", + debug_name: "bdk_wallet_get_address", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); + let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::get_address(&api_that, api_address_index) + crate::api::wallet::BdkWallet::get_address(api_ptr, api_address_index) })()) } }, ) } -fn wire_WalletBase_get_balance_impl( +fn wire_bdk_wallet_get_balance_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: "WalletBase_get_balance", + debug_name: "bdk_wallet_get_balance", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1497,20 +1516,20 @@ fn wire_WalletBase_get_balance_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::get_balance(&api_that) + crate::api::wallet::BdkWallet::get_balance(&api_that) })()) } }, ) } -fn wire_WalletBase_get_descriptor_for_keychain_impl( +fn wire_bdk_wallet_get_descriptor_for_keychain_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, keychain: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_get_descriptor_for_keychain", + debug_name: "bdk_wallet_get_descriptor_for_keychain", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1519,7 +1538,7 @@ fn wire_WalletBase_get_descriptor_for_keychain_impl( let api_keychain = keychain.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::get_descriptor_for_keychain( + crate::api::wallet::BdkWallet::get_descriptor_for_keychain( api_ptr, api_keychain, ) @@ -1528,41 +1547,38 @@ fn wire_WalletBase_get_descriptor_for_keychain_impl( }, ) } -fn wire_WalletBase_get_internal_address_impl( +fn wire_bdk_wallet_get_internal_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + ptr: impl CstDecode, address_index: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_get_internal_address", + debug_name: "bdk_wallet_get_internal_address", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); + let api_ptr = ptr.cst_decode(); let api_address_index = address_index.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::get_internal_address( - &api_that, - api_address_index, - ) + crate::api::wallet::BdkWallet::get_internal_address(api_ptr, api_address_index) })()) } }, ) } -fn wire_WalletBase_get_psbt_input_impl( +fn wire_bdk_wallet_get_psbt_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, utxo: impl CstDecode, only_witness_utxo: impl CstDecode, sighash_type: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_get_psbt_input", + debug_name: "bdk_wallet_get_psbt_input", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1573,7 +1589,7 @@ fn wire_WalletBase_get_psbt_input_impl( let api_sighash_type = sighash_type.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::get_psbt_input( + crate::api::wallet::BdkWallet::get_psbt_input( &api_that, api_utxo, api_only_witness_utxo, @@ -1584,14 +1600,14 @@ fn wire_WalletBase_get_psbt_input_impl( }, ) } -fn wire_WalletBase_is_mine_impl( +fn wire_bdk_wallet_is_mine_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - script: impl CstDecode, + that: impl CstDecode, + script: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_is_mine", + debug_name: "bdk_wallet_is_mine", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1600,20 +1616,20 @@ fn wire_WalletBase_is_mine_impl( let api_script = script.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::is_mine(&api_that, api_script) + crate::api::wallet::BdkWallet::is_mine(&api_that, api_script) })()) } }, ) } -fn wire_WalletBase_list_transactions_impl( +fn wire_bdk_wallet_list_transactions_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, include_raw: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_list_transactions", + debug_name: "bdk_wallet_list_transactions", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1622,19 +1638,19 @@ fn wire_WalletBase_list_transactions_impl( let api_include_raw = include_raw.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::list_transactions(&api_that, api_include_raw) + crate::api::wallet::BdkWallet::list_transactions(&api_that, api_include_raw) })()) } }, ) } -fn wire_WalletBase_list_unspent_impl( +fn wire_bdk_wallet_list_unspent_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: "WalletBase_list_unspent", + debug_name: "bdk_wallet_list_unspent", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1642,19 +1658,19 @@ fn wire_WalletBase_list_unspent_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::list_unspent(&api_that) + crate::api::wallet::BdkWallet::list_unspent(&api_that) })()) } }, ) } -fn wire_WalletBase_network_impl( +fn wire_bdk_wallet_network_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: "WalletBase_network", + debug_name: "bdk_wallet_network", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1662,22 +1678,22 @@ fn wire_WalletBase_network_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::wallet::WalletBase::network(&api_that)) + Result::<_, ()>::Ok(crate::api::wallet::BdkWallet::network(&api_that)) })()) } }, ) } -fn wire_WalletBase_new_impl( +fn wire_bdk_wallet_new_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - descriptor: impl CstDecode, - change_descriptor: impl CstDecode>, + descriptor: impl CstDecode, + change_descriptor: impl CstDecode>, network: impl CstDecode, database_config: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_new", + debug_name: "bdk_wallet_new", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1688,7 +1704,7 @@ fn wire_WalletBase_new_impl( let api_database_config = database_config.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::new( + crate::api::wallet::BdkWallet::new( api_descriptor, api_change_descriptor, api_network, @@ -1699,15 +1715,15 @@ fn wire_WalletBase_new_impl( }, ) } -fn wire_WalletBase_sign_impl( +fn wire_bdk_wallet_sign_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - psbt: impl CstDecode, + ptr: impl CstDecode, + psbt: impl CstDecode, sign_options: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_sign", + debug_name: "bdk_wallet_sign", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1717,20 +1733,20 @@ fn wire_WalletBase_sign_impl( let api_sign_options = sign_options.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::sign(api_ptr, api_psbt, api_sign_options) + crate::api::wallet::BdkWallet::sign(api_ptr, api_psbt, api_sign_options) })()) } }, ) } -fn wire_WalletBase_sync_impl( +fn wire_bdk_wallet_sync_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - blockchain: impl CstDecode, + ptr: impl CstDecode, + blockchain: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "WalletBase_sync", + debug_name: "bdk_wallet_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1739,7 +1755,7 @@ fn wire_WalletBase_sync_impl( let api_blockchain = blockchain.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::wallet::WalletBase::sync(api_ptr, api_blockchain) + crate::api::wallet::BdkWallet::sync(api_ptr, api_blockchain) })()) } }, @@ -1749,8 +1765,8 @@ fn wire_finish_bump_fee_tx_builder_impl( port_: flutter_rust_bridge::for_generated::MessagePort, txid: impl CstDecode, fee_rate: impl CstDecode, - allow_shrinking: impl CstDecode>, - wallet: impl CstDecode, + allow_shrinking: impl CstDecode>, + wallet: impl CstDecode, enable_rbf: impl CstDecode, n_sequence: impl CstDecode>, ) { @@ -1784,7 +1800,7 @@ fn wire_finish_bump_fee_tx_builder_impl( } fn wire_tx_builder_finish_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - wallet: impl CstDecode, + wallet: impl CstDecode, recipients: impl CstDecode>, utxos: impl CstDecode>, foreign_utxo: impl CstDecode>, @@ -1794,7 +1810,7 @@ fn wire_tx_builder_finish_impl( fee_rate: impl CstDecode>, fee_absolute: impl CstDecode>, drain_wallet: impl CstDecode, - drain_to: impl CstDecode>, + drain_to: impl CstDecode>, rbf: impl CstDecode>, data: impl CstDecode>, ) { @@ -2052,14 +2068,6 @@ impl SseDecode for String { } } -impl SseDecode for crate::api::types::AddressBase { - // 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); - return crate::api::types::AddressBase { ptr: var_ptr }; - } -} - impl SseDecode for crate::api::error::AddressError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2160,18 +2168,6 @@ impl SseDecode for crate::api::types::AddressIndex { } } -impl SseDecode for crate::api::types::AddressInfo { - // 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_index = ::sse_decode(deserializer); - let mut var_address = ::sse_decode(deserializer); - return crate::api::types::AddressInfo { - index: var_index, - address: var_address, - }; - } -} - impl SseDecode for crate::api::blockchain::Auth { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2219,6 +2215,59 @@ impl SseDecode for crate::api::types::Balance { } } +impl SseDecode for crate::api::types::BdkAddress { + // 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); + return crate::api::types::BdkAddress { ptr: var_ptr }; + } +} + +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); + return crate::api::blockchain::BdkBlockchain { ptr: var_ptr }; + } +} + +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); + return crate::api::key::BdkDerivationPath { ptr: var_ptr }; + } +} + +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); + return crate::api::descriptor::BdkDescriptor { + extended_descriptor: var_extendedDescriptor, + key_map: var_keyMap, + }; + } +} + +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); + return crate::api::key::BdkDescriptorPublicKey { ptr: var_ptr }; + } +} + +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); + return crate::api::key::BdkDescriptorSecretKey { ptr: var_ptr }; + } +} + impl SseDecode for crate::api::error::BdkError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2394,6 +2443,18 @@ impl SseDecode for crate::api::error::BdkError { let mut var_field0 = ::sse_decode(deserializer); return crate::api::error::BdkError::Rusqlite(var_field0); } + 43 => { + let mut var_field0 = ::sse_decode(deserializer); + return crate::api::error::BdkError::InvalidInput(var_field0); + } + 44 => { + let mut var_field0 = ::sse_decode(deserializer); + return crate::api::error::BdkError::InvalidLockTime(var_field0); + } + 45 => { + let mut var_field0 = ::sse_decode(deserializer); + return crate::api::error::BdkError::InvalidTransaction(var_field0); + } _ => { unimplemented!(""); } @@ -2401,6 +2462,48 @@ 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); + return crate::api::key::BdkMnemonic { ptr: var_ptr }; + } +} + +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); + return crate::api::psbt::BdkPsbt { ptr: var_ptr }; + } +} + +impl SseDecode for crate::api::types::BdkScriptBuf { + // 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_bytes = >::sse_decode(deserializer); + return crate::api::types::BdkScriptBuf { bytes: var_bytes }; + } +} + +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 }; + } +} + +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); + return crate::api::wallet::BdkWallet { ptr: var_ptr }; + } +} + impl SseDecode for crate::api::types::BlockTime { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2413,14 +2516,6 @@ impl SseDecode for crate::api::types::BlockTime { } } -impl SseDecode for crate::api::blockchain::BlockchainBase { - // 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); - return crate::api::blockchain::BlockchainBase { ptr: var_ptr }; - } -} - impl SseDecode for crate::api::blockchain::BlockchainConfig { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2535,27 +2630,6 @@ impl SseDecode for crate::api::types::DatabaseConfig { } } -impl SseDecode for crate::api::key::DerivationPathBase { - // 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); - return crate::api::key::DerivationPathBase { ptr: var_ptr }; - } -} - -impl SseDecode for crate::api::descriptor::DescriptorBase { - // 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); - return crate::api::descriptor::DescriptorBase { - extended_descriptor: var_extendedDescriptor, - key_map: var_keyMap, - }; - } -} - impl SseDecode for crate::api::error::DescriptorError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2612,22 +2686,6 @@ impl SseDecode for crate::api::error::DescriptorError { } } -impl SseDecode for crate::api::key::DescriptorPublicKeyBase { - // 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); - return crate::api::key::DescriptorPublicKeyBase { ptr: var_ptr }; - } -} - -impl SseDecode for crate::api::key::DescriptorSecretKeyBase { - // 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); - return crate::api::key::DescriptorSecretKeyBase { ptr: var_ptr }; - } -} - impl SseDecode for crate::api::blockchain::ElectrumConfig { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2849,11 +2907,23 @@ impl SseDecode for crate::api::types::LocalUtxo { } } -impl SseDecode for crate::api::key::MnemonicBase { +impl SseDecode for crate::api::types::LockTime { // 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); - return crate::api::key::MnemonicBase { ptr: var_ptr }; + let mut tag_ = ::sse_decode(deserializer); + match tag_ { + 0 => { + let mut var_field0 = ::sse_decode(deserializer); + return crate::api::types::LockTime::Blocks(var_field0); + } + 1 => { + let mut var_field0 = ::sse_decode(deserializer); + return crate::api::types::LockTime::Seconds(var_field0); + } + _ => { + unimplemented!(""); + } + } } } @@ -2882,33 +2952,46 @@ impl SseDecode for Option { } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode(deserializer)); + return Some(::sse_decode(deserializer)); } else { return None; } } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode(deserializer)); + return Some(::sse_decode( + deserializer, + )); + } else { + return None; + } + } +} + +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); } else { return None; } } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode( + return Some(::sse_decode( deserializer, )); } else { @@ -2917,6 +3000,17 @@ impl SseDecode for Option { } } +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2991,17 +3085,6 @@ impl SseDecode for Option { } } -impl SseDecode for Option { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - if (::sse_decode(deserializer)) { - return Some(::sse_decode(deserializer)); - } else { - return None; - } - } -} - impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3013,19 +3096,6 @@ impl SseDecode for Option { } } -impl SseDecode for Option { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - if (::sse_decode(deserializer)) { - return Some(::sse_decode( - deserializer, - )); - } else { - return None; - } - } -} - impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3103,15 +3173,6 @@ impl SseDecode for crate::api::types::Payload { } } -impl SseDecode for crate::api::psbt::PsbtBase { - // 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); - return crate::api::psbt::PsbtBase { ptr: var_ptr }; - } -} - impl SseDecode for crate::api::types::PsbtSigHashType { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3139,30 +3200,39 @@ impl SseDecode for crate::api::types::RbfValue { } } -impl SseDecode for (crate::api::types::OutPoint, crate::api::types::Input, usize) { +impl SseDecode for (crate::api::types::BdkAddress, u32) { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_field0 = ::sse_decode(deserializer); - let mut var_field1 = ::sse_decode(deserializer); - let mut var_field2 = ::sse_decode(deserializer); - return (var_field0, var_field1, var_field2); + let mut var_field0 = ::sse_decode(deserializer); + let mut var_field1 = ::sse_decode(deserializer); + return (var_field0, var_field1); } } impl SseDecode for ( - crate::api::psbt::PsbtBase, + crate::api::psbt::BdkPsbt, crate::api::types::TransactionDetails, ) { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_field0 = ::sse_decode(deserializer); + let mut var_field0 = ::sse_decode(deserializer); let mut var_field1 = ::sse_decode(deserializer); return (var_field0, var_field1); } } +impl SseDecode for (crate::api::types::OutPoint, crate::api::types::Input, usize) { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = ::sse_decode(deserializer); + let mut var_field1 = ::sse_decode(deserializer); + let mut var_field2 = ::sse_decode(deserializer); + return (var_field0, var_field1, var_field2); + } +} + impl SseDecode for crate::api::blockchain::RpcConfig { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3201,7 +3271,7 @@ impl SseDecode for crate::api::blockchain::RpcSyncParams { impl SseDecode for crate::api::types::ScriptAmount { // 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_script = ::sse_decode(deserializer); + let mut var_script = ::sse_decode(deserializer); let mut var_amount = ::sse_decode(deserializer); return crate::api::types::ScriptAmount { script: var_script, @@ -3210,14 +3280,6 @@ impl SseDecode for crate::api::types::ScriptAmount { } } -impl SseDecode for crate::api::types::ScriptBufBase { - // 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_bytes = >::sse_decode(deserializer); - return crate::api::types::ScriptBufBase { bytes: var_bytes }; - } -} - impl SseDecode for crate::api::types::SignOptions { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3262,19 +3324,11 @@ impl SseDecode for crate::api::types::SqliteDbConfiguration { } } -impl SseDecode for crate::api::types::TransactionBase { - // 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::TransactionBase { inner: var_inner }; - } -} - impl SseDecode for crate::api::types::TransactionDetails { // 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_transaction = - >::sse_decode(deserializer); + >::sse_decode(deserializer); let mut var_txid = ::sse_decode(deserializer); let mut var_received = ::sse_decode(deserializer); let mut var_sent = ::sse_decode(deserializer); @@ -3296,7 +3350,7 @@ impl SseDecode for crate::api::types::TxIn { // 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_previousOutput = ::sse_decode(deserializer); - let mut var_scriptSig = ::sse_decode(deserializer); + let mut var_scriptSig = ::sse_decode(deserializer); let mut var_sequence = ::sse_decode(deserializer); let mut var_witness = >>::sse_decode(deserializer); return crate::api::types::TxIn { @@ -3312,7 +3366,7 @@ impl SseDecode for crate::api::types::TxOut { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut var_value = ::sse_decode(deserializer); - let mut var_scriptPubkey = ::sse_decode(deserializer); + let mut var_scriptPubkey = ::sse_decode(deserializer); return crate::api::types::TxOut { value: var_value, script_pubkey: var_scriptPubkey, @@ -3373,15 +3427,6 @@ impl SseDecode for crate::api::types::Variant { } } -impl SseDecode for crate::api::wallet::WalletBase { - // 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); - return crate::api::wallet::WalletBase { ptr: var_ptr }; - } -} - impl SseDecode for crate::api::types::WitnessVersion { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3449,23 +3494,6 @@ fn pde_ffi_dispatcher_sync_impl( // Section: rust2dart -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::types::AddressBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::types::AddressBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::types::AddressBase -{ - fn into_into_dart(self) -> crate::api::types::AddressBase { - self - } -} // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::error::AddressError { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -3554,27 +3582,6 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::types::AddressInfo { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [ - self.index.into_into_dart().into_dart(), - self.address.into_into_dart().into_dart(), - ] - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::types::AddressInfo -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::types::AddressInfo -{ - fn into_into_dart(self) -> crate::api::types::AddressInfo { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::blockchain::Auth { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { @@ -3620,6 +3627,109 @@ impl flutter_rust_bridge::IntoIntoDart for crate::ap } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::BdkAddress { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.ptr.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::types::BdkAddress {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::BdkAddress +{ + fn into_into_dart(self) -> crate::api::types::BdkAddress { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::blockchain::BdkBlockchain { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.ptr.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::blockchain::BdkBlockchain +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::blockchain::BdkBlockchain +{ + fn into_into_dart(self) -> crate::api::blockchain::BdkBlockchain { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::key::BdkDerivationPath { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.ptr.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::key::BdkDerivationPath +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::key::BdkDerivationPath +{ + fn into_into_dart(self) -> crate::api::key::BdkDerivationPath { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::descriptor::BdkDescriptor { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.extended_descriptor.into_into_dart().into_dart(), + self.key_map.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::descriptor::BdkDescriptor +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::descriptor::BdkDescriptor +{ + fn into_into_dart(self) -> crate::api::descriptor::BdkDescriptor { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::key::BdkDescriptorPublicKey { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.ptr.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::key::BdkDescriptorPublicKey +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::key::BdkDescriptorPublicKey +{ + fn into_into_dart(self) -> crate::api::key::BdkDescriptorPublicKey { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::key::BdkDescriptorSecretKey { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.ptr.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::key::BdkDescriptorSecretKey +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::key::BdkDescriptorSecretKey +{ + fn into_into_dart(self) -> crate::api::key::BdkDescriptorSecretKey { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::error::BdkError { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { @@ -3739,6 +3849,15 @@ impl flutter_rust_bridge::IntoDart for crate::api::error::BdkError { crate::api::error::BdkError::Rusqlite(field0) => { [42.into_dart(), field0.into_into_dart().into_dart()].into_dart() } + crate::api::error::BdkError::InvalidInput(field0) => { + [43.into_dart(), field0.into_into_dart().into_dart()].into_dart() + } + crate::api::error::BdkError::InvalidLockTime(field0) => { + [44.into_dart(), field0.into_into_dart().into_dart()].into_dart() + } + crate::api::error::BdkError::InvalidTransaction(field0) => { + [45.into_dart(), field0.into_into_dart().into_dart()].into_dart() + } } } } @@ -3751,37 +3870,94 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::types::BlockTime { +impl flutter_rust_bridge::IntoDart for crate::api::key::BdkMnemonic { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [ - self.height.into_into_dart().into_dart(), - self.timestamp.into_into_dart().into_dart(), - ] - .into_dart() + [self.ptr.into_into_dart().into_dart()].into_dart() } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::types::BlockTime {} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::types::BlockTime +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::key::BdkMnemonic {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::key::BdkMnemonic { - fn into_into_dart(self) -> crate::api::types::BlockTime { + fn into_into_dart(self) -> crate::api::key::BdkMnemonic { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::blockchain::BlockchainBase { +impl flutter_rust_bridge::IntoDart for crate::api::psbt::BdkPsbt { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [self.ptr.into_into_dart().into_dart()].into_dart() } } +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::psbt::BdkPsbt {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::psbt::BdkPsbt { + fn into_into_dart(self) -> crate::api::psbt::BdkPsbt { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::BdkScriptBuf { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.bytes.into_into_dart().into_dart()].into_dart() + } +} impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::blockchain::BlockchainBase + for crate::api::types::BdkScriptBuf +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::BdkScriptBuf +{ + fn into_into_dart(self) -> crate::api::types::BdkScriptBuf { + self + } +} +// 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() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::types::BdkTransaction +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::BdkTransaction +{ + fn into_into_dart(self) -> crate::api::types::BdkTransaction { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::wallet::BdkWallet { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.ptr.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::wallet::BdkWallet {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::wallet::BdkWallet { + fn into_into_dart(self) -> crate::api::wallet::BdkWallet { + self + } } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::blockchain::BlockchainBase +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::BlockTime { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.height.into_into_dart().into_dart(), + self.timestamp.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::types::BlockTime {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::BlockTime { - fn into_into_dart(self) -> crate::api::blockchain::BlockchainBase { + fn into_into_dart(self) -> crate::api::types::BlockTime { self } } @@ -3899,44 +4075,6 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::key::DerivationPathBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::key::DerivationPathBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::key::DerivationPathBase -{ - fn into_into_dart(self) -> crate::api::key::DerivationPathBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::descriptor::DescriptorBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [ - self.extended_descriptor.into_into_dart().into_dart(), - self.key_map.into_into_dart().into_dart(), - ] - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::descriptor::DescriptorBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::descriptor::DescriptorBase -{ - fn into_into_dart(self) -> crate::api::descriptor::DescriptorBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::error::DescriptorError { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { @@ -3987,40 +4125,6 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::key::DescriptorPublicKeyBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::key::DescriptorPublicKeyBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::key::DescriptorPublicKeyBase -{ - fn into_into_dart(self) -> crate::api::key::DescriptorPublicKeyBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::key::DescriptorSecretKeyBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::key::DescriptorSecretKeyBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::key::DescriptorSecretKeyBase -{ - fn into_into_dart(self) -> crate::api::key::DescriptorSecretKeyBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::blockchain::ElectrumConfig { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -4161,16 +4265,23 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::key::MnemonicBase { +impl flutter_rust_bridge::IntoDart for crate::api::types::LockTime { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() + match self { + crate::api::types::LockTime::Blocks(field0) => { + [0.into_dart(), field0.into_into_dart().into_dart()].into_dart() + } + crate::api::types::LockTime::Seconds(field0) => { + [1.into_dart(), field0.into_into_dart().into_dart()].into_dart() + } + } } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::key::MnemonicBase {} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::key::MnemonicBase +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::types::LockTime {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::LockTime { - fn into_into_dart(self) -> crate::api::key::MnemonicBase { + fn into_into_dart(self) -> crate::api::types::LockTime { self } } @@ -4235,18 +4346,6 @@ impl flutter_rust_bridge::IntoIntoDart for crate::ap } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::psbt::PsbtBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::psbt::PsbtBase {} -impl flutter_rust_bridge::IntoIntoDart for crate::api::psbt::PsbtBase { - fn into_into_dart(self) -> crate::api::psbt::PsbtBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::PsbtSigHashType { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [self.inner.into_into_dart().into_dart()].into_dart() @@ -4351,23 +4450,6 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::types::ScriptBufBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.bytes.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::types::ScriptBufBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::types::ScriptBufBase -{ - fn into_into_dart(self) -> crate::api::types::ScriptBufBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::SignOptions { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -4433,23 +4515,6 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::types::TransactionBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.inner.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::types::TransactionBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::types::TransactionBase -{ - fn into_into_dart(self) -> crate::api::types::TransactionBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::TransactionDetails { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -4524,23 +4589,6 @@ impl flutter_rust_bridge::IntoIntoDart for crate::ap } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::wallet::WalletBase { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::wallet::WalletBase -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::wallet::WalletBase -{ - fn into_into_dart(self) -> crate::api::wallet::WalletBase { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::WitnessVersion { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { @@ -4691,13 +4739,6 @@ impl SseEncode for String { } } -impl SseEncode for crate::api::types::AddressBase { - // 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); - } -} - impl SseEncode for crate::api::error::AddressError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -4786,14 +4827,6 @@ impl SseEncode for crate::api::types::AddressIndex { } } -impl SseEncode for crate::api::types::AddressInfo { - // 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.index, serializer); - ::sse_encode(self.address, serializer); - } -} - impl SseEncode for crate::api::blockchain::Auth { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -4826,6 +4859,49 @@ impl SseEncode for crate::api::types::Balance { } } +impl SseEncode for crate::api::types::BdkAddress { + // 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); + } +} + +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); + } +} + +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); + } +} + +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); + } +} + +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); + } +} + +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); + } +} + impl SseEncode for crate::api::error::BdkError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -4994,22 +5070,62 @@ impl SseEncode for crate::api::error::BdkError { ::sse_encode(42, serializer); ::sse_encode(field0, serializer); } + crate::api::error::BdkError::InvalidInput(field0) => { + ::sse_encode(43, serializer); + ::sse_encode(field0, serializer); + } + crate::api::error::BdkError::InvalidLockTime(field0) => { + ::sse_encode(44, serializer); + ::sse_encode(field0, serializer); + } + crate::api::error::BdkError::InvalidTransaction(field0) => { + ::sse_encode(45, serializer); + ::sse_encode(field0, serializer); + } } } } -impl SseEncode for crate::api::types::BlockTime { +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.height, serializer); - ::sse_encode(self.timestamp, serializer); + >::sse_encode(self.ptr, serializer); } } -impl SseEncode for crate::api::blockchain::BlockchainBase { +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); + } +} + +impl SseEncode for crate::api::types::BdkScriptBuf { + // 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.bytes, serializer); + } +} + +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); + } +} + +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); + } +} + +impl SseEncode for crate::api::types::BlockTime { + // 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.height, serializer); + ::sse_encode(self.timestamp, serializer); } } @@ -5109,21 +5225,6 @@ impl SseEncode for crate::api::types::DatabaseConfig { } } -impl SseEncode for crate::api::key::DerivationPathBase { - // 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); - } -} - -impl SseEncode for crate::api::descriptor::DescriptorBase { - // 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); - } -} - impl SseEncode for crate::api::error::DescriptorError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5176,20 +5277,6 @@ impl SseEncode for crate::api::error::DescriptorError { } } -impl SseEncode for crate::api::key::DescriptorPublicKeyBase { - // 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); - } -} - -impl SseEncode for crate::api::key::DescriptorSecretKeyBase { - // 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); - } -} - impl SseEncode for crate::api::blockchain::ElectrumConfig { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5368,10 +5455,19 @@ impl SseEncode for crate::api::types::LocalUtxo { } } -impl SseEncode for crate::api::key::MnemonicBase { +impl SseEncode for crate::api::types::LockTime { // 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); + match self { + crate::api::types::LockTime::Blocks(field0) => { + ::sse_encode(0, serializer); + ::sse_encode(field0, serializer); + } + crate::api::types::LockTime::Seconds(field0) => { + ::sse_encode(1, serializer); + ::sse_encode(field0, serializer); + } + } } } @@ -5403,124 +5499,124 @@ impl SseEncode for Option { } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option<(crate::api::types::OutPoint, crate::api::types::Input, usize)> { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - <(crate::api::types::OutPoint, crate::api::types::Input, usize)>::sse_encode( - value, serializer, - ); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option<(crate::api::types::OutPoint, crate::api::types::Input, usize)> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + <(crate::api::types::OutPoint, crate::api::types::Input, usize)>::sse_encode( + value, serializer, + ); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } @@ -5584,13 +5680,6 @@ impl SseEncode for crate::api::types::Payload { } } -impl SseEncode for crate::api::psbt::PsbtBase { - // 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); - } -} - impl SseEncode for crate::api::types::PsbtSigHashType { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5613,28 +5702,36 @@ impl SseEncode for crate::api::types::RbfValue { } } -impl SseEncode for (crate::api::types::OutPoint, crate::api::types::Input, usize) { +impl SseEncode for (crate::api::types::BdkAddress, u32) { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - ::sse_encode(self.0, serializer); - ::sse_encode(self.1, serializer); - ::sse_encode(self.2, serializer); + ::sse_encode(self.0, serializer); + ::sse_encode(self.1, serializer); } } impl SseEncode for ( - crate::api::psbt::PsbtBase, + crate::api::psbt::BdkPsbt, crate::api::types::TransactionDetails, ) { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - ::sse_encode(self.0, serializer); + ::sse_encode(self.0, serializer); ::sse_encode(self.1, serializer); } } +impl SseEncode for (crate::api::types::OutPoint, crate::api::types::Input, usize) { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.0, serializer); + ::sse_encode(self.1, serializer); + ::sse_encode(self.2, serializer); + } +} + impl SseEncode for crate::api::blockchain::RpcConfig { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5659,18 +5756,11 @@ impl SseEncode for crate::api::blockchain::RpcSyncParams { impl SseEncode for crate::api::types::ScriptAmount { // 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.script, serializer); + ::sse_encode(self.script, serializer); ::sse_encode(self.amount, serializer); } } -impl SseEncode for crate::api::types::ScriptBufBase { - // 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.bytes, serializer); - } -} - impl SseEncode for crate::api::types::SignOptions { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5700,17 +5790,10 @@ impl SseEncode for crate::api::types::SqliteDbConfiguration { } } -impl SseEncode for crate::api::types::TransactionBase { - // 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); - } -} - impl SseEncode for crate::api::types::TransactionDetails { // 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.transaction, serializer); + >::sse_encode(self.transaction, serializer); ::sse_encode(self.txid, serializer); ::sse_encode(self.received, serializer); ::sse_encode(self.sent, serializer); @@ -5723,7 +5806,7 @@ impl SseEncode for crate::api::types::TxIn { // 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.previous_output, serializer); - ::sse_encode(self.script_sig, serializer); + ::sse_encode(self.script_sig, serializer); ::sse_encode(self.sequence, serializer); >>::sse_encode(self.witness, serializer); } @@ -5733,7 +5816,7 @@ impl SseEncode for crate::api::types::TxOut { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.value, serializer); - ::sse_encode(self.script_pubkey, serializer); + ::sse_encode(self.script_pubkey, serializer); } } @@ -5802,13 +5885,6 @@ impl SseEncode for crate::api::types::Variant { } } -impl SseEncode for crate::api::wallet::WalletBase { - // 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); - } -} - impl SseEncode for crate::api::types::WitnessVersion { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { diff --git a/rust/src/frb_generated.web.rs b/rust/src/frb_generated.web.rs index d266db82..464492b5 100644 --- a/rust/src/frb_generated.web.rs +++ b/rust/src/frb_generated.web.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. // Section: imports @@ -28,25 +28,6 @@ impl CstDecode for String { self } } -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::AddressBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::AddressBase { - ptr: self_.get(0).cst_decode(), - } - } -} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -104,26 +85,6 @@ impl CstDecode } } } -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::AddressInfo { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::types::AddressInfo { - index: self_.get(0).cst_decode(), - address: self_.get(1).cst_decode(), - } - } -} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -167,6 +128,121 @@ impl CstDecode } } } +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::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 { @@ -230,35 +306,56 @@ impl CstDecode 40 => crate::api::error::BdkError::Sled(self_.get(1).cst_decode()), 41 => crate::api::error::BdkError::Rpc(self_.get(1).cst_decode()), 42 => crate::api::error::BdkError::Rusqlite(self_.get(1).cst_decode()), + 43 => crate::api::error::BdkError::InvalidInput(self_.get(1).cst_decode()), + 44 => crate::api::error::BdkError::InvalidLockTime(self_.get(1).cst_decode()), + 45 => crate::api::error::BdkError::InvalidTransaction(self_.get(1).cst_decode()), _ => unreachable!(), } } } -impl CstDecode +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::BlockTime { + fn cst_decode(self) -> crate::api::key::BdkMnemonic { let self_ = self .dyn_into::() .unwrap(); assert_eq!( self_.length(), - 2, - "Expected 2 elements, got {}", + 1, + "Expected 1 elements, got {}", self_.length() ); - crate::api::types::BlockTime { - height: self_.get(0).cst_decode(), - timestamp: self_.get(1).cst_decode(), + 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 +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::BlockchainBase { + fn cst_decode(self) -> crate::api::types::BdkScriptBuf { let self_ = self .dyn_into::() .unwrap(); @@ -268,11 +365,69 @@ impl CstDecode "Expected 1 elements, got {}", self_.length() ); - crate::api::blockchain::BlockchainBase { + 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 { @@ -336,45 +491,6 @@ impl CstDecode } } } -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DerivationPathBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::DerivationPathBase { - 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::DescriptorBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 2, - "Expected 2 elements, got {}", - self_.length() - ); - crate::api::descriptor::DescriptorBase { - 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 { @@ -400,44 +516,6 @@ impl CstDecode } } } -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::DescriptorPublicKeyBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::DescriptorPublicKeyBase { - 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::DescriptorSecretKeyBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::DescriptorSecretKeyBase { - ptr: self_.get(0).cst_decode(), - } - } -} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -650,22 +728,16 @@ impl CstDecode } } } -impl CstDecode +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::key::MnemonicBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::key::MnemonicBase { - ptr: self_.get(0).cst_decode(), + 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!(), } } } @@ -716,25 +788,6 @@ impl CstDecode } } } -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::psbt::PsbtBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::psbt::PsbtBase { - ptr: self_.get(0).cst_decode(), - } - } -} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -767,30 +820,26 @@ impl CstDecode } } } -impl CstDecode<(crate::api::types::OutPoint, crate::api::types::Input, usize)> +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::OutPoint, crate::api::types::Input, usize) { + fn cst_decode(self) -> (crate::api::types::BdkAddress, u32) { let self_ = self .dyn_into::() .unwrap(); assert_eq!( self_.length(), - 3, - "Expected 3 elements, got {}", + 2, + "Expected 2 elements, got {}", self_.length() ); - ( - self_.get(0).cst_decode(), - self_.get(1).cst_decode(), - self_.get(2).cst_decode(), - ) + (self_.get(0).cst_decode(), self_.get(1).cst_decode()) } } impl CstDecode<( - crate::api::psbt::PsbtBase, + crate::api::psbt::BdkPsbt, crate::api::types::TransactionDetails, )> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -798,7 +847,7 @@ impl fn cst_decode( self, ) -> ( - crate::api::psbt::PsbtBase, + crate::api::psbt::BdkPsbt, crate::api::types::TransactionDetails, ) { let self_ = self @@ -813,6 +862,27 @@ impl (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 { @@ -878,25 +948,6 @@ impl CstDecode } } } -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::ScriptBufBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::ScriptBufBase { - bytes: self_.get(0).cst_decode(), - } - } -} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -962,25 +1013,6 @@ impl CstDecode } } } -impl CstDecode - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::types::TransactionBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::types::TransactionBase { - inner: self_.get(0).cst_decode(), - } - } -} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -1054,25 +1086,6 @@ impl CstDecode<[u8; 4]> for Box<[u8]> { 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) -> crate::api::wallet::WalletBase { - let self_ = self - .dyn_into::() - .unwrap(); - assert_eq!( - self_.length(), - 1, - "Expected 1 elements, got {}", - self_.length() - ); - crate::api::wallet::WalletBase { - ptr: self_.get(0).cst_decode(), - } - } -} impl CstDecode> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -1310,100 +1323,100 @@ impl CstDecode } #[wasm_bindgen] -pub fn wire_BlockchainBase_broadcast( +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_BlockchainBase_broadcast_impl(port_, that, transaction) + wire_bdk_blockchain_broadcast_impl(port_, that, transaction) } #[wasm_bindgen] -pub fn wire_BlockchainBase_estimate_fee( +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_BlockchainBase_estimate_fee_impl(port_, that, target) + wire_bdk_blockchain_estimate_fee_impl(port_, that, target) } #[wasm_bindgen] -pub fn wire_BlockchainBase_get_block_hash( +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_BlockchainBase_get_block_hash_impl(port_, that, height) + wire_bdk_blockchain_get_block_hash_impl(port_, that, height) } #[wasm_bindgen] -pub fn wire_BlockchainBase_get_height( +pub fn wire_bdk_blockchain_get_height( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_BlockchainBase_get_height_impl(port_, that) + wire_bdk_blockchain_get_height_impl(port_, that) } #[wasm_bindgen] -pub fn wire_BlockchainBase_new( +pub fn wire_bdk_blockchain_new( port_: flutter_rust_bridge::for_generated::MessagePort, blockchain_config: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_BlockchainBase_new_impl(port_, blockchain_config) + wire_bdk_blockchain_new_impl(port_, blockchain_config) } #[wasm_bindgen] -pub fn wire_DescriptorBase_as_string( +pub fn wire_bdk_descriptor_as_string( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_DescriptorBase_as_string_impl(port_, that) + wire_bdk_descriptor_as_string_impl(port_, that) } #[wasm_bindgen] -pub fn wire_DescriptorBase_as_string_private( +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_DescriptorBase_as_string_private_impl(port_, that) + wire_bdk_descriptor_as_string_private_impl(port_, that) } #[wasm_bindgen] -pub fn wire_DescriptorBase_max_satisfaction_weight( +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_DescriptorBase_max_satisfaction_weight_impl(port_, that) + wire_bdk_descriptor_max_satisfaction_weight_impl(port_, that) } #[wasm_bindgen] -pub fn wire_DescriptorBase_new( +pub fn wire_bdk_descriptor_new( port_: flutter_rust_bridge::for_generated::MessagePort, descriptor: String, network: i32, ) { - wire_DescriptorBase_new_impl(port_, descriptor, network) + wire_bdk_descriptor_new_impl(port_, descriptor, network) } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip44( +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_DescriptorBase_new_bip44_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip44_impl(port_, secret_key, keychain_kind, network) } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip44_public( +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_DescriptorBase_new_bip44_public_impl( + wire_bdk_descriptor_new_bip44_public_impl( port_, public_key, fingerprint, @@ -1413,24 +1426,24 @@ pub fn wire_DescriptorBase_new_bip44_public( } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip49( +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_DescriptorBase_new_bip49_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip49_impl(port_, secret_key, keychain_kind, network) } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip49_public( +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_DescriptorBase_new_bip49_public_impl( + wire_bdk_descriptor_new_bip49_public_impl( port_, public_key, fingerprint, @@ -1440,24 +1453,24 @@ pub fn wire_DescriptorBase_new_bip49_public( } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip84( +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_DescriptorBase_new_bip84_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip84_impl(port_, secret_key, keychain_kind, network) } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip84_public( +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_DescriptorBase_new_bip84_public_impl( + wire_bdk_descriptor_new_bip84_public_impl( port_, public_key, fingerprint, @@ -1467,24 +1480,24 @@ pub fn wire_DescriptorBase_new_bip84_public( } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip86( +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_DescriptorBase_new_bip86_impl(port_, secret_key, keychain_kind, network) + wire_bdk_descriptor_new_bip86_impl(port_, secret_key, keychain_kind, network) } #[wasm_bindgen] -pub fn wire_DescriptorBase_new_bip86_public( +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_DescriptorBase_new_bip86_public_impl( + wire_bdk_descriptor_new_bip86_public_impl( port_, public_key, fingerprint, @@ -1494,485 +1507,496 @@ pub fn wire_DescriptorBase_new_bip86_public( } #[wasm_bindgen] -pub fn wire_DerivationPathBase_from_string( +pub fn wire_bdk_derivation_path_from_string( port_: flutter_rust_bridge::for_generated::MessagePort, path: String, ) { - wire_DerivationPathBase_from_string_impl(port_, path) + wire_bdk_derivation_path_from_string_impl(port_, path) } #[wasm_bindgen] -pub fn wire_DescriptorPublicKeyBase_as_string( +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_DescriptorPublicKeyBase_as_string_impl(port_, that) + wire_bdk_descriptor_public_key_as_string_impl(port_, that) } #[wasm_bindgen] -pub fn wire_DescriptorPublicKeyBase_derive( +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_DescriptorPublicKeyBase_derive_impl(port_, ptr, path) + wire_bdk_descriptor_public_key_derive_impl(port_, ptr, path) } #[wasm_bindgen] -pub fn wire_DescriptorPublicKeyBase_extend( +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_DescriptorPublicKeyBase_extend_impl(port_, ptr, path) + wire_bdk_descriptor_public_key_extend_impl(port_, ptr, path) } #[wasm_bindgen] -pub fn wire_DescriptorPublicKeyBase_from_string( +pub fn wire_bdk_descriptor_public_key_from_string( port_: flutter_rust_bridge::for_generated::MessagePort, public_key: String, ) { - wire_DescriptorPublicKeyBase_from_string_impl(port_, public_key) + wire_bdk_descriptor_public_key_from_string_impl(port_, public_key) } #[wasm_bindgen] -pub fn wire_DescriptorSecretKeyBase_as_public( +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_DescriptorSecretKeyBase_as_public_impl(port_, ptr) + wire_bdk_descriptor_secret_key_as_public_impl(port_, ptr) } #[wasm_bindgen] -pub fn wire_DescriptorSecretKeyBase_as_string( +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_DescriptorSecretKeyBase_as_string_impl(port_, that) + wire_bdk_descriptor_secret_key_as_string_impl(port_, that) } #[wasm_bindgen] -pub fn wire_DescriptorSecretKeyBase_create( +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_DescriptorSecretKeyBase_create_impl(port_, network, mnemonic, password) + wire_bdk_descriptor_secret_key_create_impl(port_, network, mnemonic, password) } #[wasm_bindgen] -pub fn wire_DescriptorSecretKeyBase_derive( +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_DescriptorSecretKeyBase_derive_impl(port_, ptr, path) + wire_bdk_descriptor_secret_key_derive_impl(port_, ptr, path) } #[wasm_bindgen] -pub fn wire_DescriptorSecretKeyBase_extend( +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_DescriptorSecretKeyBase_extend_impl(port_, ptr, path) + wire_bdk_descriptor_secret_key_extend_impl(port_, ptr, path) } #[wasm_bindgen] -pub fn wire_DescriptorSecretKeyBase_from_string( +pub fn wire_bdk_descriptor_secret_key_from_string( port_: flutter_rust_bridge::for_generated::MessagePort, secret_key: String, ) { - wire_DescriptorSecretKeyBase_from_string_impl(port_, secret_key) + wire_bdk_descriptor_secret_key_from_string_impl(port_, secret_key) } #[wasm_bindgen] -pub fn wire_DescriptorSecretKeyBase_secret_bytes( +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_DescriptorSecretKeyBase_secret_bytes_impl(port_, that) + wire_bdk_descriptor_secret_key_secret_bytes_impl(port_, that) } #[wasm_bindgen] -pub fn wire_MnemonicBase_as_string( +pub fn wire_bdk_mnemonic_as_string( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_MnemonicBase_as_string_impl(port_, that) + wire_bdk_mnemonic_as_string_impl(port_, that) } #[wasm_bindgen] -pub fn wire_MnemonicBase_from_entropy( +pub fn wire_bdk_mnemonic_from_entropy( port_: flutter_rust_bridge::for_generated::MessagePort, entropy: Box<[u8]>, ) { - wire_MnemonicBase_from_entropy_impl(port_, entropy) + wire_bdk_mnemonic_from_entropy_impl(port_, entropy) } #[wasm_bindgen] -pub fn wire_MnemonicBase_from_string( +pub fn wire_bdk_mnemonic_from_string( port_: flutter_rust_bridge::for_generated::MessagePort, mnemonic: String, ) { - wire_MnemonicBase_from_string_impl(port_, mnemonic) + wire_bdk_mnemonic_from_string_impl(port_, mnemonic) } #[wasm_bindgen] -pub fn wire_MnemonicBase_new( +pub fn wire_bdk_mnemonic_new( port_: flutter_rust_bridge::for_generated::MessagePort, word_count: i32, ) { - wire_MnemonicBase_new_impl(port_, word_count) + wire_bdk_mnemonic_new_impl(port_, word_count) } #[wasm_bindgen] -pub fn wire_PsbtBase_combine( +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_PsbtBase_combine_impl(port_, ptr, other) + wire_bdk_psbt_combine_impl(port_, ptr, other) } #[wasm_bindgen] -pub fn wire_PsbtBase_extract_tx( +pub fn wire_bdk_psbt_extract_tx( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_PsbtBase_extract_tx_impl(port_, ptr) + wire_bdk_psbt_extract_tx_impl(port_, ptr) } #[wasm_bindgen] -pub fn wire_PsbtBase_fee_amount( +pub fn wire_bdk_psbt_fee_amount( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_PsbtBase_fee_amount_impl(port_, that) + wire_bdk_psbt_fee_amount_impl(port_, that) } #[wasm_bindgen] -pub fn wire_PsbtBase_fee_rate( +pub fn wire_bdk_psbt_fee_rate( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_PsbtBase_fee_rate_impl(port_, that) + wire_bdk_psbt_fee_rate_impl(port_, that) } #[wasm_bindgen] -pub fn wire_PsbtBase_from_str( +pub fn wire_bdk_psbt_from_str( port_: flutter_rust_bridge::for_generated::MessagePort, psbt_base64: String, ) { - wire_PsbtBase_from_str_impl(port_, psbt_base64) + wire_bdk_psbt_from_str_impl(port_, psbt_base64) } #[wasm_bindgen] -pub fn wire_PsbtBase_json_serialize( +pub fn wire_bdk_psbt_json_serialize( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_PsbtBase_json_serialize_impl(port_, that) + wire_bdk_psbt_json_serialize_impl(port_, that) } #[wasm_bindgen] -pub fn wire_PsbtBase_serialize( +pub fn wire_bdk_psbt_serialize( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_PsbtBase_serialize_impl(port_, that) + wire_bdk_psbt_serialize_impl(port_, that) } #[wasm_bindgen] -pub fn wire_PsbtBase_txid( +pub fn wire_bdk_psbt_txid( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_PsbtBase_txid_impl(port_, that) + wire_bdk_psbt_txid_impl(port_, that) } #[wasm_bindgen] -pub fn wire_AddressBase_as_string( +pub fn wire_bdk_address_as_string( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_AddressBase_as_string_impl(port_, that) + wire_bdk_address_as_string_impl(port_, that) } #[wasm_bindgen] -pub fn wire_AddressBase_from_script( +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_AddressBase_from_script_impl(port_, script, network) + wire_bdk_address_from_script_impl(port_, script, network) } #[wasm_bindgen] -pub fn wire_AddressBase_from_string( +pub fn wire_bdk_address_from_string( port_: flutter_rust_bridge::for_generated::MessagePort, address: String, network: i32, ) { - wire_AddressBase_from_string_impl(port_, address, network) + wire_bdk_address_from_string_impl(port_, address, network) } #[wasm_bindgen] -pub fn wire_AddressBase_is_valid_for_network( +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_AddressBase_is_valid_for_network_impl(port_, that, network) + wire_bdk_address_is_valid_for_network_impl(port_, that, network) } #[wasm_bindgen] -pub fn wire_AddressBase_network( +pub fn wire_bdk_address_network( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_AddressBase_network_impl(port_, that) + wire_bdk_address_network_impl(port_, that) } #[wasm_bindgen] -pub fn wire_AddressBase_payload( +pub fn wire_bdk_address_payload( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_AddressBase_payload_impl(port_, that) + wire_bdk_address_payload_impl(port_, that) } #[wasm_bindgen] -pub fn wire_AddressBase_script( +pub fn wire_bdk_address_script( port_: flutter_rust_bridge::for_generated::MessagePort, ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_AddressBase_script_impl(port_, ptr) + wire_bdk_address_script_impl(port_, ptr) } #[wasm_bindgen] -pub fn wire_AddressBase_to_qr_uri( +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_AddressBase_to_qr_uri_impl(port_, that) + wire_bdk_address_to_qr_uri_impl(port_, that) } #[wasm_bindgen] -pub fn wire_ScriptBufBase_empty(port_: flutter_rust_bridge::for_generated::MessagePort) { - wire_ScriptBufBase_empty_impl(port_) +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_ScriptBufBase_from_hex( +pub fn wire_bdk_script_buf_from_hex( port_: flutter_rust_bridge::for_generated::MessagePort, s: String, ) { - wire_ScriptBufBase_from_hex_impl(port_, s) + wire_bdk_script_buf_from_hex_impl(port_, s) } #[wasm_bindgen] -pub fn wire_ScriptBufBase_with_capacity( +pub fn wire_bdk_script_buf_with_capacity( port_: flutter_rust_bridge::for_generated::MessagePort, capacity: usize, ) { - wire_ScriptBufBase_with_capacity_impl(port_, capacity) + 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_TransactionBase_input( +pub fn wire_bdk_transaction_input( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_input_impl(port_, that) + wire_bdk_transaction_input_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_is_coin_base( +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_TransactionBase_is_coin_base_impl(port_, that) + wire_bdk_transaction_is_coin_base_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_is_explicitly_rbf( +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_TransactionBase_is_explicitly_rbf_impl(port_, that) + wire_bdk_transaction_is_explicitly_rbf_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_is_lock_time_enabled( +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_TransactionBase_is_lock_time_enabled_impl(port_, that) + wire_bdk_transaction_is_lock_time_enabled_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_lock_time( +pub fn wire_bdk_transaction_lock_time( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_lock_time_impl(port_, that) + wire_bdk_transaction_lock_time_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_new( +pub fn wire_bdk_transaction_new( port_: flutter_rust_bridge::for_generated::MessagePort, - transaction_bytes: Box<[u8]>, + 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_TransactionBase_new_impl(port_, transaction_bytes) + wire_bdk_transaction_new_impl(port_, version, lock_time, input, output) } #[wasm_bindgen] -pub fn wire_TransactionBase_output( +pub fn wire_bdk_transaction_output( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_output_impl(port_, that) + wire_bdk_transaction_output_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_serialize( +pub fn wire_bdk_transaction_serialize( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_serialize_impl(port_, that) + wire_bdk_transaction_serialize_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_size( +pub fn wire_bdk_transaction_size( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_size_impl(port_, that) + wire_bdk_transaction_size_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_txid( +pub fn wire_bdk_transaction_txid( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_txid_impl(port_, that) + wire_bdk_transaction_txid_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_version( +pub fn wire_bdk_transaction_version( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_version_impl(port_, that) + wire_bdk_transaction_version_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_vsize( +pub fn wire_bdk_transaction_vsize( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_vsize_impl(port_, that) + wire_bdk_transaction_vsize_impl(port_, that) } #[wasm_bindgen] -pub fn wire_TransactionBase_weight( +pub fn wire_bdk_transaction_weight( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_TransactionBase_weight_impl(port_, that) + wire_bdk_transaction_weight_impl(port_, that) } #[wasm_bindgen] -pub fn wire_WalletBase_get_address( +pub fn wire_bdk_wallet_get_address( port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, address_index: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_WalletBase_get_address_impl(port_, that, address_index) + wire_bdk_wallet_get_address_impl(port_, ptr, address_index) } #[wasm_bindgen] -pub fn wire_WalletBase_get_balance( +pub fn wire_bdk_wallet_get_balance( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_WalletBase_get_balance_impl(port_, that) + wire_bdk_wallet_get_balance_impl(port_, that) } #[wasm_bindgen] -pub fn wire_WalletBase_get_descriptor_for_keychain( +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_WalletBase_get_descriptor_for_keychain_impl(port_, ptr, keychain) + wire_bdk_wallet_get_descriptor_for_keychain_impl(port_, ptr, keychain) } #[wasm_bindgen] -pub fn wire_WalletBase_get_internal_address( +pub fn wire_bdk_wallet_get_internal_address( port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + ptr: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, address_index: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_WalletBase_get_internal_address_impl(port_, that, address_index) + wire_bdk_wallet_get_internal_address_impl(port_, ptr, address_index) } #[wasm_bindgen] -pub fn wire_WalletBase_get_psbt_input( +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_WalletBase_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) + wire_bdk_wallet_get_psbt_input_impl(port_, that, utxo, only_witness_utxo, sighash_type) } #[wasm_bindgen] -pub fn wire_WalletBase_is_mine( +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_WalletBase_is_mine_impl(port_, that, script) + wire_bdk_wallet_is_mine_impl(port_, that, script) } #[wasm_bindgen] -pub fn wire_WalletBase_list_transactions( +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_WalletBase_list_transactions_impl(port_, that, include_raw) + wire_bdk_wallet_list_transactions_impl(port_, that, include_raw) } #[wasm_bindgen] -pub fn wire_WalletBase_list_unspent( +pub fn wire_bdk_wallet_list_unspent( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_WalletBase_list_unspent_impl(port_, that) + wire_bdk_wallet_list_unspent_impl(port_, that) } #[wasm_bindgen] -pub fn wire_WalletBase_network( +pub fn wire_bdk_wallet_network( port_: flutter_rust_bridge::for_generated::MessagePort, that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_WalletBase_network_impl(port_, that) + wire_bdk_wallet_network_impl(port_, that) } #[wasm_bindgen] -pub fn wire_WalletBase_new( +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_WalletBase_new_impl( + wire_bdk_wallet_new_impl( port_, descriptor, change_descriptor, @@ -1982,22 +2006,22 @@ pub fn wire_WalletBase_new( } #[wasm_bindgen] -pub fn wire_WalletBase_sign( +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_WalletBase_sign_impl(port_, ptr, psbt, sign_options) + wire_bdk_wallet_sign_impl(port_, ptr, psbt, sign_options) } #[wasm_bindgen] -pub fn wire_WalletBase_sync( +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_WalletBase_sync_impl(port_, ptr, blockchain) + wire_bdk_wallet_sync_impl(port_, ptr, blockchain) } #[wasm_bindgen] diff --git a/test/bdk_flutter_test.dart b/test/bdk_flutter_test.dart index a88de95c..82fe0832 100644 --- a/test/bdk_flutter_test.dart +++ b/test/bdk_flutter_test.dart @@ -61,26 +61,7 @@ void main() { await mockWallet.getAddress(addressIndex: AddressIndex.increase()); expect(res, isA()); }); - test('Should return a new AddressInfo', () async { - when(mockWallet.getAddress(addressIndex: AddressIndex.increase())) - .thenAnswer((e) async => AddressInfo( - index: 82, - address: "tb1qzn0qsh9wdp0m7sx877p9u8kptnvmykm9ld5lyd")); - final res = - await mockWallet.getAddress(addressIndex: AddressIndex.increase()); - expect(res.index, 82); - expect(res.address, "tb1qzn0qsh9wdp0m7sx877p9u8kptnvmykm9ld5lyd"); - }); - test('Should return a last unused AddressInfo', () async { - when(mockWallet.getAddress(addressIndex: AddressIndex.lastUnused())) - .thenAnswer((e) async => AddressInfo( - index: 82, - address: "tb1qzn0qsh9wdp0m7sx877p9u8kptnvmykm9ld5lyd")); - final res = - await mockWallet.getAddress(addressIndex: AddressIndex.lastUnused()); - expect(res.index, 82); - expect(res.address, "tb1qzn0qsh9wdp0m7sx877p9u8kptnvmykm9ld5lyd"); - }); + test('Should return valid Balance object', () async { final res = await mockWallet.getBalance(); expect(res, isA()); diff --git a/test/bdk_flutter_test.mocks.dart b/test/bdk_flutter_test.mocks.dart index f012f2ce..c7704028 100644 --- a/test/bdk_flutter_test.mocks.dart +++ b/test/bdk_flutter_test.mocks.dart @@ -10,9 +10,9 @@ 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 _i3; +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 _i4; +import 'package:bdk_flutter/src/root.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i10; @@ -50,7 +50,7 @@ class _FakeAddressInfo_1 extends _i1.SmartFake implements _i3.AddressInfo { ); } -class _FakeBalance_2 extends _i1.SmartFake implements _i3.Balance { +class _FakeBalance_2 extends _i1.SmartFake implements _i4.Balance { _FakeBalance_2( Object parent, Invocation parentInvocation, @@ -60,7 +60,7 @@ class _FakeBalance_2 extends _i1.SmartFake implements _i3.Balance { ); } -class _FakeDescriptor_3 extends _i1.SmartFake implements _i4.Descriptor { +class _FakeDescriptor_3 extends _i1.SmartFake implements _i3.Descriptor { _FakeDescriptor_3( Object parent, Invocation parentInvocation, @@ -70,7 +70,7 @@ class _FakeDescriptor_3 extends _i1.SmartFake implements _i4.Descriptor { ); } -class _FakeInput_4 extends _i1.SmartFake implements _i3.Input { +class _FakeInput_4 extends _i1.SmartFake implements _i4.Input { _FakeInput_4( Object parent, Invocation parentInvocation, @@ -90,7 +90,7 @@ class _FakeAnyBlockchain_5 extends _i1.SmartFake implements _i5.AnyBlockchain { ); } -class _FakeFeeRate_6 extends _i1.SmartFake implements _i3.FeeRate { +class _FakeFeeRate_6 extends _i1.SmartFake implements _i4.FeeRate { _FakeFeeRate_6( Object parent, Invocation parentInvocation, @@ -112,7 +112,7 @@ class _FakeKeysDescriptorSecretKey_7 extends _i1.SmartFake } class _FakeDescriptorSecretKey_8 extends _i1.SmartFake - implements _i4.DescriptorSecretKey { + implements _i3.DescriptorSecretKey { _FakeDescriptorSecretKey_8( Object parent, Invocation parentInvocation, @@ -123,7 +123,7 @@ class _FakeDescriptorSecretKey_8 extends _i1.SmartFake } class _FakeDescriptorPublicKey_9 extends _i1.SmartFake - implements _i4.DescriptorPublicKey { + implements _i3.DescriptorPublicKey { _FakeDescriptorPublicKey_9( Object parent, Invocation parentInvocation, @@ -155,7 +155,7 @@ class _FakeMutexPartiallySignedTransaction_11 extends _i1.SmartFake ); } -class _FakeTransaction_12 extends _i1.SmartFake implements _i4.Transaction { +class _FakeTransaction_12 extends _i1.SmartFake implements _i3.Transaction { _FakeTransaction_12( Object parent, Invocation parentInvocation, @@ -166,7 +166,7 @@ class _FakeTransaction_12 extends _i1.SmartFake implements _i4.Transaction { } class _FakePartiallySignedTransaction_13 extends _i1.SmartFake - implements _i4.PartiallySignedTransaction { + implements _i3.PartiallySignedTransaction { _FakePartiallySignedTransaction_13( Object parent, Invocation parentInvocation, @@ -176,7 +176,7 @@ class _FakePartiallySignedTransaction_13 extends _i1.SmartFake ); } -class _FakeTxBuilder_14 extends _i1.SmartFake implements _i4.TxBuilder { +class _FakeTxBuilder_14 extends _i1.SmartFake implements _i3.TxBuilder { _FakeTxBuilder_14( Object parent, Invocation parentInvocation, @@ -187,7 +187,7 @@ class _FakeTxBuilder_14 extends _i1.SmartFake implements _i4.TxBuilder { } class _FakeTransactionDetails_15 extends _i1.SmartFake - implements _i3.TransactionDetails { + implements _i4.TransactionDetails { _FakeTransactionDetails_15( Object parent, Invocation parentInvocation, @@ -198,7 +198,7 @@ class _FakeTransactionDetails_15 extends _i1.SmartFake } class _FakeBumpFeeTxBuilder_16 extends _i1.SmartFake - implements _i4.BumpFeeTxBuilder { + implements _i3.BumpFeeTxBuilder { _FakeBumpFeeTxBuilder_16( Object parent, Invocation parentInvocation, @@ -209,7 +209,7 @@ class _FakeBumpFeeTxBuilder_16 extends _i1.SmartFake } class _FakeBdkBitcoinAddress_17 extends _i1.SmartFake - implements _i3.BdkBitcoinAddress { + implements _i4.BdkBitcoinAddress { _FakeBdkBitcoinAddress_17( Object parent, Invocation parentInvocation, @@ -219,7 +219,7 @@ class _FakeBdkBitcoinAddress_17 extends _i1.SmartFake ); } -class _FakeScriptBuf_18 extends _i1.SmartFake implements _i4.ScriptBuf { +class _FakeScriptBuf_18 extends _i1.SmartFake implements _i3.ScriptBuf { _FakeScriptBuf_18( Object parent, Invocation parentInvocation, @@ -240,7 +240,7 @@ class _FakeBitcoinBip32DerivationPath_19 extends _i1.SmartFake ); } -class _FakeOutPoint_20 extends _i1.SmartFake implements _i3.OutPoint { +class _FakeOutPoint_20 extends _i1.SmartFake implements _i4.OutPoint { _FakeOutPoint_20( Object parent, Invocation parentInvocation, @@ -250,7 +250,7 @@ class _FakeOutPoint_20 extends _i1.SmartFake implements _i3.OutPoint { ); } -class _FakeTxOut_21 extends _i1.SmartFake implements _i3.TxOut { +class _FakeTxOut_21 extends _i1.SmartFake implements _i4.TxOut { _FakeTxOut_21( Object parent, Invocation parentInvocation, @@ -263,7 +263,7 @@ class _FakeTxOut_21 extends _i1.SmartFake implements _i3.TxOut { /// A class which mocks [Wallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallet extends _i1.Mock implements _i4.Wallet { +class MockWallet extends _i1.Mock implements _i3.Wallet { @override _i2.MutexBdkWalletAnyDatabase get ptr => (super.noSuchMethod( Invocation.getter(#ptr), @@ -279,7 +279,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { @override _i9.Future<_i3.AddressInfo> getAddress({ - required _i3.AddressIndex? addressIndex, + required _i4.AddressIndex? addressIndex, dynamic hint, }) => (super.noSuchMethod( @@ -317,13 +317,13 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { ) as _i9.Future<_i3.AddressInfo>); @override - _i9.Future<_i3.Balance> getBalance({dynamic hint}) => (super.noSuchMethod( + _i9.Future<_i4.Balance> getBalance({dynamic hint}) => (super.noSuchMethod( Invocation.method( #getBalance, [], {#hint: hint}, ), - returnValue: _i9.Future<_i3.Balance>.value(_FakeBalance_2( + returnValue: _i9.Future<_i4.Balance>.value(_FakeBalance_2( this, Invocation.method( #getBalance, @@ -331,7 +331,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { {#hint: hint}, ), )), - returnValueForMissingStub: _i9.Future<_i3.Balance>.value(_FakeBalance_2( + returnValueForMissingStub: _i9.Future<_i4.Balance>.value(_FakeBalance_2( this, Invocation.method( #getBalance, @@ -339,11 +339,11 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { {#hint: hint}, ), )), - ) as _i9.Future<_i3.Balance>); + ) as _i9.Future<_i4.Balance>); @override - _i9.Future<_i4.Descriptor> getDescriptorForKeychain({ - required _i3.KeychainKind? keychain, + _i9.Future<_i3.Descriptor> getDescriptorForKeychain({ + required _i4.KeychainKind? keychain, dynamic hint, }) => (super.noSuchMethod( @@ -355,7 +355,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i4.Descriptor>.value(_FakeDescriptor_3( + returnValue: _i9.Future<_i3.Descriptor>.value(_FakeDescriptor_3( this, Invocation.method( #getDescriptorForKeychain, @@ -367,7 +367,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { ), )), returnValueForMissingStub: - _i9.Future<_i4.Descriptor>.value(_FakeDescriptor_3( + _i9.Future<_i3.Descriptor>.value(_FakeDescriptor_3( this, Invocation.method( #getDescriptorForKeychain, @@ -378,11 +378,11 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { }, ), )), - ) as _i9.Future<_i4.Descriptor>); + ) as _i9.Future<_i3.Descriptor>); @override _i9.Future<_i3.AddressInfo> getInternalAddress({ - required _i3.AddressIndex? addressIndex, + required _i4.AddressIndex? addressIndex, dynamic hint, }) => (super.noSuchMethod( @@ -420,10 +420,10 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { ) as _i9.Future<_i3.AddressInfo>); @override - _i9.Future<_i3.Input> getPsbtInput({ - required _i3.LocalUtxo? utxo, + _i9.Future<_i4.Input> getPsbtInput({ + required _i4.LocalUtxo? utxo, required bool? onlyWitnessUtxo, - _i3.PsbtSigHashType? sighashType, + _i4.PsbtSigHashType? sighashType, dynamic hint, }) => (super.noSuchMethod( @@ -437,7 +437,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { #hint: hint, }, ), - returnValue: _i9.Future<_i3.Input>.value(_FakeInput_4( + returnValue: _i9.Future<_i4.Input>.value(_FakeInput_4( this, Invocation.method( #getPsbtInput, @@ -450,7 +450,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { }, ), )), - returnValueForMissingStub: _i9.Future<_i3.Input>.value(_FakeInput_4( + returnValueForMissingStub: _i9.Future<_i4.Input>.value(_FakeInput_4( this, Invocation.method( #getPsbtInput, @@ -463,11 +463,11 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { }, ), )), - ) as _i9.Future<_i3.Input>); + ) as _i9.Future<_i4.Input>); @override _i9.Future isMine({ - required _i3.ScriptBufBase? script, + required _i4.BdkScriptBuf? script, dynamic hint, }) => (super.noSuchMethod( @@ -484,7 +484,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { ) as _i9.Future); @override - _i9.Future> listTransactions({ + _i9.Future> listTransactions({ required bool? includeRaw, dynamic hint, }) => @@ -497,42 +497,42 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { #hint: hint, }, ), - returnValue: _i9.Future>.value( - <_i3.TransactionDetails>[]), + returnValue: _i9.Future>.value( + <_i4.TransactionDetails>[]), returnValueForMissingStub: - _i9.Future>.value( - <_i3.TransactionDetails>[]), - ) as _i9.Future>); + _i9.Future>.value( + <_i4.TransactionDetails>[]), + ) as _i9.Future>); @override - _i9.Future> listUnspent({dynamic hint}) => + _i9.Future> listUnspent({dynamic hint}) => (super.noSuchMethod( Invocation.method( #listUnspent, [], {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i3.LocalUtxo>[]), + returnValue: _i9.Future>.value(<_i4.LocalUtxo>[]), returnValueForMissingStub: - _i9.Future>.value(<_i3.LocalUtxo>[]), - ) as _i9.Future>); + _i9.Future>.value(<_i4.LocalUtxo>[]), + ) as _i9.Future>); @override - _i9.Future<_i3.Network> network({dynamic hint}) => (super.noSuchMethod( + _i9.Future<_i4.Network> network({dynamic hint}) => (super.noSuchMethod( Invocation.method( #network, [], {#hint: hint}, ), - returnValue: _i9.Future<_i3.Network>.value(_i3.Network.testnet), + returnValue: _i9.Future<_i4.Network>.value(_i4.Network.testnet), returnValueForMissingStub: - _i9.Future<_i3.Network>.value(_i3.Network.testnet), - ) as _i9.Future<_i3.Network>); + _i9.Future<_i4.Network>.value(_i4.Network.testnet), + ) as _i9.Future<_i4.Network>); @override _i9.Future sign({ - required _i7.PsbtBase? psbt, - _i3.SignOptions? signOptions, + required _i3.PartiallySignedTransaction? psbt, + _i4.SignOptions? signOptions, dynamic hint, }) => (super.noSuchMethod( @@ -551,7 +551,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { @override _i9.Future sync({ - required _i4.Blockchain? blockchain, + required _i3.Blockchain? blockchain, dynamic hint, }) => (super.noSuchMethod( @@ -571,7 +571,7 @@ class MockWallet extends _i1.Mock implements _i4.Wallet { /// A class which mocks [Transaction]. /// /// See the documentation for Mockito's code generation for more information. -class MockTransaction extends _i1.Mock implements _i4.Transaction { +class MockTransaction extends _i1.Mock implements _i3.Transaction { @override String get inner => (super.noSuchMethod( Invocation.getter(#inner), @@ -586,16 +586,16 @@ class MockTransaction extends _i1.Mock implements _i4.Transaction { ) as String); @override - _i9.Future> input({dynamic hint}) => (super.noSuchMethod( + _i9.Future> input({dynamic hint}) => (super.noSuchMethod( Invocation.method( #input, [], {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i3.TxIn>[]), + returnValue: _i9.Future>.value(<_i4.TxIn>[]), returnValueForMissingStub: - _i9.Future>.value(<_i3.TxIn>[]), - ) as _i9.Future>); + _i9.Future>.value(<_i4.TxIn>[]), + ) as _i9.Future>); @override _i9.Future isCoinBase({dynamic hint}) => (super.noSuchMethod( @@ -631,27 +631,43 @@ class MockTransaction extends _i1.Mock implements _i4.Transaction { ) as _i9.Future); @override - _i9.Future lockTime({dynamic hint}) => (super.noSuchMethod( + _i9.Future<_i4.LockTime> lockTime({dynamic hint}) => (super.noSuchMethod( Invocation.method( #lockTime, [], {#hint: hint}, ), - returnValue: _i9.Future.value(0), - returnValueForMissingStub: _i9.Future.value(0), - ) as _i9.Future); + returnValue: + _i9.Future<_i4.LockTime>.value(_i10.dummyValue<_i4.LockTime>( + this, + Invocation.method( + #lockTime, + [], + {#hint: hint}, + ), + )), + returnValueForMissingStub: + _i9.Future<_i4.LockTime>.value(_i10.dummyValue<_i4.LockTime>( + this, + Invocation.method( + #lockTime, + [], + {#hint: hint}, + ), + )), + ) as _i9.Future<_i4.LockTime>); @override - _i9.Future> output({dynamic hint}) => (super.noSuchMethod( + _i9.Future> output({dynamic hint}) => (super.noSuchMethod( Invocation.method( #output, [], {#hint: hint}, ), - returnValue: _i9.Future>.value(<_i3.TxOut>[]), + returnValue: _i9.Future>.value(<_i4.TxOut>[]), returnValueForMissingStub: - _i9.Future>.value(<_i3.TxOut>[]), - ) as _i9.Future>); + _i9.Future>.value(<_i4.TxOut>[]), + ) as _i9.Future>); @override _i9.Future<_i11.Uint8List> serialize({dynamic hint}) => (super.noSuchMethod( @@ -739,7 +755,7 @@ class MockTransaction extends _i1.Mock implements _i4.Transaction { /// A class which mocks [Blockchain]. /// /// See the documentation for Mockito's code generation for more information. -class MockBlockchain extends _i1.Mock implements _i4.Blockchain { +class MockBlockchain extends _i1.Mock implements _i3.Blockchain { @override _i5.AnyBlockchain get ptr => (super.noSuchMethod( Invocation.getter(#ptr), @@ -754,7 +770,7 @@ class MockBlockchain extends _i1.Mock implements _i4.Blockchain { ) as _i5.AnyBlockchain); @override - _i9.Future<_i3.FeeRate> estimateFee({ + _i9.Future<_i4.FeeRate> estimateFee({ required int? target, dynamic hint, }) => @@ -767,7 +783,7 @@ class MockBlockchain extends _i1.Mock implements _i4.Blockchain { #hint: hint, }, ), - returnValue: _i9.Future<_i3.FeeRate>.value(_FakeFeeRate_6( + returnValue: _i9.Future<_i4.FeeRate>.value(_FakeFeeRate_6( this, Invocation.method( #estimateFee, @@ -778,7 +794,7 @@ class MockBlockchain extends _i1.Mock implements _i4.Blockchain { }, ), )), - returnValueForMissingStub: _i9.Future<_i3.FeeRate>.value(_FakeFeeRate_6( + returnValueForMissingStub: _i9.Future<_i4.FeeRate>.value(_FakeFeeRate_6( this, Invocation.method( #estimateFee, @@ -789,11 +805,11 @@ class MockBlockchain extends _i1.Mock implements _i4.Blockchain { }, ), )), - ) as _i9.Future<_i3.FeeRate>); + ) as _i9.Future<_i4.FeeRate>); @override _i9.Future broadcast({ - required _i3.TransactionBase? transaction, + required _i4.BdkTransaction? transaction, dynamic hint, }) => (super.noSuchMethod( @@ -885,7 +901,7 @@ class MockBlockchain extends _i1.Mock implements _i4.Blockchain { /// /// See the documentation for Mockito's code generation for more information. class MockDescriptorSecretKey extends _i1.Mock - implements _i4.DescriptorSecretKey { + implements _i3.DescriptorSecretKey { @override _i6.KeysDescriptorSecretKey get ptr => (super.noSuchMethod( Invocation.getter(#ptr), @@ -900,13 +916,13 @@ class MockDescriptorSecretKey extends _i1.Mock ) as _i6.KeysDescriptorSecretKey); @override - _i9.Future<_i4.DescriptorSecretKey> derive(_i8.DerivationPathBase? path) => + _i9.Future<_i3.DescriptorSecretKey> derive(_i8.BdkDerivationPath? path) => (super.noSuchMethod( Invocation.method( #derive, [path], ), - returnValue: _i9.Future<_i4.DescriptorSecretKey>.value( + returnValue: _i9.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -914,7 +930,7 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - returnValueForMissingStub: _i9.Future<_i4.DescriptorSecretKey>.value( + returnValueForMissingStub: _i9.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -922,16 +938,16 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - ) as _i9.Future<_i4.DescriptorSecretKey>); + ) as _i9.Future<_i3.DescriptorSecretKey>); @override - _i9.Future<_i4.DescriptorSecretKey> extend(_i8.DerivationPathBase? path) => + _i9.Future<_i3.DescriptorSecretKey> extend(_i8.BdkDerivationPath? path) => (super.noSuchMethod( Invocation.method( #extend, [path], ), - returnValue: _i9.Future<_i4.DescriptorSecretKey>.value( + returnValue: _i9.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -939,7 +955,7 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - returnValueForMissingStub: _i9.Future<_i4.DescriptorSecretKey>.value( + returnValueForMissingStub: _i9.Future<_i3.DescriptorSecretKey>.value( _FakeDescriptorSecretKey_8( this, Invocation.method( @@ -947,15 +963,15 @@ class MockDescriptorSecretKey extends _i1.Mock [path], ), )), - ) as _i9.Future<_i4.DescriptorSecretKey>); + ) as _i9.Future<_i3.DescriptorSecretKey>); @override - _i9.Future<_i4.DescriptorPublicKey> asPublic() => (super.noSuchMethod( + _i9.Future<_i3.DescriptorPublicKey> asPublic() => (super.noSuchMethod( Invocation.method( #asPublic, [], ), - returnValue: _i9.Future<_i4.DescriptorPublicKey>.value( + returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -963,7 +979,7 @@ class MockDescriptorSecretKey extends _i1.Mock [], ), )), - returnValueForMissingStub: _i9.Future<_i4.DescriptorPublicKey>.value( + returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -971,7 +987,7 @@ class MockDescriptorSecretKey extends _i1.Mock [], ), )), - ) as _i9.Future<_i4.DescriptorPublicKey>); + ) as _i9.Future<_i3.DescriptorPublicKey>); @override _i9.Future asString({dynamic hint}) => (super.noSuchMethod( @@ -1016,7 +1032,7 @@ class MockDescriptorSecretKey extends _i1.Mock /// /// See the documentation for Mockito's code generation for more information. class MockDescriptorPublicKey extends _i1.Mock - implements _i4.DescriptorPublicKey { + implements _i3.DescriptorPublicKey { @override _i6.KeysDescriptorPublicKey get ptr => (super.noSuchMethod( Invocation.getter(#ptr), @@ -1057,8 +1073,8 @@ class MockDescriptorPublicKey extends _i1.Mock ) as _i9.Future); @override - _i9.Future<_i4.DescriptorPublicKey> derive({ - required _i8.DerivationPathBase? path, + _i9.Future<_i3.DescriptorPublicKey> derive({ + required _i8.BdkDerivationPath? path, dynamic hint, }) => (super.noSuchMethod( @@ -1070,7 +1086,7 @@ class MockDescriptorPublicKey extends _i1.Mock #hint: hint, }, ), - returnValue: _i9.Future<_i4.DescriptorPublicKey>.value( + returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1082,7 +1098,7 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - returnValueForMissingStub: _i9.Future<_i4.DescriptorPublicKey>.value( + returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1094,11 +1110,11 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - ) as _i9.Future<_i4.DescriptorPublicKey>); + ) as _i9.Future<_i3.DescriptorPublicKey>); @override - _i9.Future<_i4.DescriptorPublicKey> extend({ - required _i8.DerivationPathBase? path, + _i9.Future<_i3.DescriptorPublicKey> extend({ + required _i8.BdkDerivationPath? path, dynamic hint, }) => (super.noSuchMethod( @@ -1110,7 +1126,7 @@ class MockDescriptorPublicKey extends _i1.Mock #hint: hint, }, ), - returnValue: _i9.Future<_i4.DescriptorPublicKey>.value( + returnValue: _i9.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1122,7 +1138,7 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - returnValueForMissingStub: _i9.Future<_i4.DescriptorPublicKey>.value( + returnValueForMissingStub: _i9.Future<_i3.DescriptorPublicKey>.value( _FakeDescriptorPublicKey_9( this, Invocation.method( @@ -1134,14 +1150,14 @@ class MockDescriptorPublicKey extends _i1.Mock }, ), )), - ) as _i9.Future<_i4.DescriptorPublicKey>); + ) as _i9.Future<_i3.DescriptorPublicKey>); } /// A class which mocks [PartiallySignedTransaction]. /// /// See the documentation for Mockito's code generation for more information. class MockPartiallySignedTransaction extends _i1.Mock - implements _i4.PartiallySignedTransaction { + implements _i3.PartiallySignedTransaction { @override _i7.MutexPartiallySignedTransaction get ptr => (super.noSuchMethod( Invocation.getter(#ptr), @@ -1167,15 +1183,15 @@ class MockPartiallySignedTransaction extends _i1.Mock ) as _i9.Future); @override - _i9.Future<_i3.FeeRate?> feeRate({dynamic hint}) => (super.noSuchMethod( + _i9.Future<_i4.FeeRate?> feeRate({dynamic hint}) => (super.noSuchMethod( Invocation.method( #feeRate, [], {#hint: hint}, ), - returnValue: _i9.Future<_i3.FeeRate?>.value(), - returnValueForMissingStub: _i9.Future<_i3.FeeRate?>.value(), - ) as _i9.Future<_i3.FeeRate?>); + 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( @@ -1230,12 +1246,12 @@ class MockPartiallySignedTransaction extends _i1.Mock ) as _i9.Future); @override - _i9.Future<_i4.Transaction> extractTx() => (super.noSuchMethod( + _i9.Future<_i3.Transaction> extractTx() => (super.noSuchMethod( Invocation.method( #extractTx, [], ), - returnValue: _i9.Future<_i4.Transaction>.value(_FakeTransaction_12( + returnValue: _i9.Future<_i3.Transaction>.value(_FakeTransaction_12( this, Invocation.method( #extractTx, @@ -1243,24 +1259,24 @@ class MockPartiallySignedTransaction extends _i1.Mock ), )), returnValueForMissingStub: - _i9.Future<_i4.Transaction>.value(_FakeTransaction_12( + _i9.Future<_i3.Transaction>.value(_FakeTransaction_12( this, Invocation.method( #extractTx, [], ), )), - ) as _i9.Future<_i4.Transaction>); + ) as _i9.Future<_i3.Transaction>); @override - _i9.Future<_i4.PartiallySignedTransaction> combine( - _i4.PartiallySignedTransaction? other) => + _i9.Future<_i3.PartiallySignedTransaction> combine( + _i3.PartiallySignedTransaction? other) => (super.noSuchMethod( Invocation.method( #combine, [other], ), - returnValue: _i9.Future<_i4.PartiallySignedTransaction>.value( + returnValue: _i9.Future<_i3.PartiallySignedTransaction>.value( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1269,7 +1285,7 @@ class MockPartiallySignedTransaction extends _i1.Mock ), )), returnValueForMissingStub: - _i9.Future<_i4.PartiallySignedTransaction>.value( + _i9.Future<_i3.PartiallySignedTransaction>.value( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1277,7 +1293,7 @@ class MockPartiallySignedTransaction extends _i1.Mock [other], ), )), - ) as _i9.Future<_i4.PartiallySignedTransaction>); + ) as _i9.Future<_i3.PartiallySignedTransaction>); @override _i9.Future txid({dynamic hint}) => (super.noSuchMethod( @@ -1309,9 +1325,9 @@ class MockPartiallySignedTransaction extends _i1.Mock /// A class which mocks [TxBuilder]. /// /// See the documentation for Mockito's code generation for more information. -class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { +class MockTxBuilder extends _i1.Mock implements _i3.TxBuilder { @override - _i4.TxBuilder addData({required List? data}) => (super.noSuchMethod( + _i3.TxBuilder addData({required List? data}) => (super.noSuchMethod( Invocation.method( #addData, [], @@ -1333,11 +1349,11 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { {#data: data}, ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder addRecipient( - _i4.ScriptBuf? script, + _i3.TxBuilder addRecipient( + _i3.ScriptBuf? script, int? amount, ) => (super.noSuchMethod( @@ -1368,10 +1384,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { ], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder unSpendable(List<_i3.OutPoint>? outpoints) => + _i3.TxBuilder unSpendable(List<_i4.OutPoint>? outpoints) => (super.noSuchMethod( Invocation.method( #unSpendable, @@ -1391,10 +1407,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [outpoints], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder addUtxo(_i3.OutPoint? outpoint) => (super.noSuchMethod( + _i3.TxBuilder addUtxo(_i4.OutPoint? outpoint) => (super.noSuchMethod( Invocation.method( #addUtxo, [outpoint], @@ -1413,10 +1429,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [outpoint], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder addUtxos(List<_i3.OutPoint>? outpoints) => (super.noSuchMethod( + _i3.TxBuilder addUtxos(List<_i4.OutPoint>? outpoints) => (super.noSuchMethod( Invocation.method( #addUtxos, [outpoints], @@ -1435,12 +1451,12 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [outpoints], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder addForeignUtxo( - _i3.Input? psbtInput, - _i3.OutPoint? outPoint, + _i3.TxBuilder addForeignUtxo( + _i4.Input? psbtInput, + _i4.OutPoint? outPoint, int? satisfactionWeight, ) => (super.noSuchMethod( @@ -1474,10 +1490,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { ], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder doNotSpendChange() => (super.noSuchMethod( + _i3.TxBuilder doNotSpendChange() => (super.noSuchMethod( Invocation.method( #doNotSpendChange, [], @@ -1496,10 +1512,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder drainWallet() => (super.noSuchMethod( + _i3.TxBuilder drainWallet() => (super.noSuchMethod( Invocation.method( #drainWallet, [], @@ -1518,10 +1534,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder drainTo(_i4.ScriptBuf? script) => (super.noSuchMethod( + _i3.TxBuilder drainTo(_i3.ScriptBuf? script) => (super.noSuchMethod( Invocation.method( #drainTo, [script], @@ -1540,10 +1556,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [script], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder enableRbfWithSequence(int? nSequence) => (super.noSuchMethod( + _i3.TxBuilder enableRbfWithSequence(int? nSequence) => (super.noSuchMethod( Invocation.method( #enableRbfWithSequence, [nSequence], @@ -1562,10 +1578,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [nSequence], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder enableRbf() => (super.noSuchMethod( + _i3.TxBuilder enableRbf() => (super.noSuchMethod( Invocation.method( #enableRbf, [], @@ -1584,10 +1600,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder feeAbsolute(int? feeAmount) => (super.noSuchMethod( + _i3.TxBuilder feeAbsolute(int? feeAmount) => (super.noSuchMethod( Invocation.method( #feeAbsolute, [feeAmount], @@ -1606,10 +1622,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [feeAmount], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder feeRate(double? satPerVbyte) => (super.noSuchMethod( + _i3.TxBuilder feeRate(double? satPerVbyte) => (super.noSuchMethod( Invocation.method( #feeRate, [satPerVbyte], @@ -1628,10 +1644,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [satPerVbyte], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder setRecipients(List<_i3.ScriptAmount>? recipients) => + _i3.TxBuilder setRecipients(List<_i4.ScriptAmount>? recipients) => (super.noSuchMethod( Invocation.method( #setRecipients, @@ -1651,10 +1667,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [recipients], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder manuallySelectedOnly() => (super.noSuchMethod( + _i3.TxBuilder manuallySelectedOnly() => (super.noSuchMethod( Invocation.method( #manuallySelectedOnly, [], @@ -1673,10 +1689,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder addUnSpendable(_i3.OutPoint? unSpendable) => + _i3.TxBuilder addUnSpendable(_i4.OutPoint? unSpendable) => (super.noSuchMethod( Invocation.method( #addUnSpendable, @@ -1696,10 +1712,10 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [unSpendable], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i4.TxBuilder onlySpendChange() => (super.noSuchMethod( + _i3.TxBuilder onlySpendChange() => (super.noSuchMethod( Invocation.method( #onlySpendChange, [], @@ -1718,18 +1734,18 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { [], ), ), - ) as _i4.TxBuilder); + ) as _i3.TxBuilder); @override - _i9.Future<(_i4.PartiallySignedTransaction, _i3.TransactionDetails)> finish( - _i4.Wallet? wallet) => + _i9.Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)> finish( + _i3.Wallet? wallet) => (super.noSuchMethod( Invocation.method( #finish, [wallet], ), returnValue: _i9.Future< - (_i4.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( + (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1746,7 +1762,7 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { ) )), returnValueForMissingStub: _i9.Future< - (_i4.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( + (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1763,13 +1779,13 @@ class MockTxBuilder extends _i1.Mock implements _i4.TxBuilder { ) )), ) as _i9 - .Future<(_i4.PartiallySignedTransaction, _i3.TransactionDetails)>); + .Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)>); } /// A class which mocks [BumpFeeTxBuilder]. /// /// See the documentation for Mockito's code generation for more information. -class MockBumpFeeTxBuilder extends _i1.Mock implements _i4.BumpFeeTxBuilder { +class MockBumpFeeTxBuilder extends _i1.Mock implements _i3.BumpFeeTxBuilder { @override String get txid => (super.noSuchMethod( Invocation.getter(#txid), @@ -1791,7 +1807,7 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i4.BumpFeeTxBuilder { ) as double); @override - _i4.BumpFeeTxBuilder allowShrinking(_i4.Address? address) => + _i3.BumpFeeTxBuilder allowShrinking(_i3.Address? address) => (super.noSuchMethod( Invocation.method( #allowShrinking, @@ -1811,10 +1827,10 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i4.BumpFeeTxBuilder { [address], ), ), - ) as _i4.BumpFeeTxBuilder); + ) as _i3.BumpFeeTxBuilder); @override - _i4.BumpFeeTxBuilder enableRbf() => (super.noSuchMethod( + _i3.BumpFeeTxBuilder enableRbf() => (super.noSuchMethod( Invocation.method( #enableRbf, [], @@ -1833,10 +1849,10 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i4.BumpFeeTxBuilder { [], ), ), - ) as _i4.BumpFeeTxBuilder); + ) as _i3.BumpFeeTxBuilder); @override - _i4.BumpFeeTxBuilder enableRbfWithSequence(int? nSequence) => + _i3.BumpFeeTxBuilder enableRbfWithSequence(int? nSequence) => (super.noSuchMethod( Invocation.method( #enableRbfWithSequence, @@ -1856,18 +1872,18 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i4.BumpFeeTxBuilder { [nSequence], ), ), - ) as _i4.BumpFeeTxBuilder); + ) as _i3.BumpFeeTxBuilder); @override - _i9.Future<(_i4.PartiallySignedTransaction, _i3.TransactionDetails)> finish( - _i4.Wallet? wallet) => + _i9.Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)> finish( + _i3.Wallet? wallet) => (super.noSuchMethod( Invocation.method( #finish, [wallet], ), returnValue: _i9.Future< - (_i4.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( + (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1884,7 +1900,7 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i4.BumpFeeTxBuilder { ) )), returnValueForMissingStub: _i9.Future< - (_i4.PartiallySignedTransaction, _i3.TransactionDetails)>.value(( + (_i3.PartiallySignedTransaction, _i4.TransactionDetails)>.value(( _FakePartiallySignedTransaction_13( this, Invocation.method( @@ -1901,13 +1917,13 @@ class MockBumpFeeTxBuilder extends _i1.Mock implements _i4.BumpFeeTxBuilder { ) )), ) as _i9 - .Future<(_i4.PartiallySignedTransaction, _i3.TransactionDetails)>); + .Future<(_i3.PartiallySignedTransaction, _i4.TransactionDetails)>); } /// A class which mocks [ScriptBuf]. /// /// See the documentation for Mockito's code generation for more information. -class MockScriptBuf extends _i1.Mock implements _i4.ScriptBuf { +class MockScriptBuf extends _i1.Mock implements _i3.ScriptBuf { @override _i11.Uint8List get bytes => (super.noSuchMethod( Invocation.getter(#bytes), @@ -1919,9 +1935,9 @@ class MockScriptBuf extends _i1.Mock implements _i4.ScriptBuf { /// A class which mocks [Address]. /// /// See the documentation for Mockito's code generation for more information. -class MockAddress extends _i1.Mock implements _i4.Address { +class MockAddress extends _i1.Mock implements _i3.Address { @override - _i3.BdkBitcoinAddress get ptr => (super.noSuchMethod( + _i4.BdkBitcoinAddress get ptr => (super.noSuchMethod( Invocation.getter(#ptr), returnValue: _FakeBdkBitcoinAddress_17( this, @@ -1931,15 +1947,15 @@ class MockAddress extends _i1.Mock implements _i4.Address { this, Invocation.getter(#ptr), ), - ) as _i3.BdkBitcoinAddress); + ) as _i4.BdkBitcoinAddress); @override - _i9.Future<_i4.ScriptBuf> scriptPubkey() => (super.noSuchMethod( + _i9.Future<_i3.ScriptBuf> scriptPubkey() => (super.noSuchMethod( Invocation.method( #scriptPubkey, [], ), - returnValue: _i9.Future<_i4.ScriptBuf>.value(_FakeScriptBuf_18( + returnValue: _i9.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( this, Invocation.method( #scriptPubkey, @@ -1947,14 +1963,14 @@ class MockAddress extends _i1.Mock implements _i4.Address { ), )), returnValueForMissingStub: - _i9.Future<_i4.ScriptBuf>.value(_FakeScriptBuf_18( + _i9.Future<_i3.ScriptBuf>.value(_FakeScriptBuf_18( this, Invocation.method( #scriptPubkey, [], ), )), - ) as _i9.Future<_i4.ScriptBuf>); + ) as _i9.Future<_i3.ScriptBuf>); @override _i9.Future asString({dynamic hint}) => (super.noSuchMethod( @@ -1984,7 +2000,7 @@ class MockAddress extends _i1.Mock implements _i4.Address { @override _i9.Future isValidForNetwork({ - required _i3.Network? network, + required _i4.Network? network, dynamic hint, }) => (super.noSuchMethod( @@ -2001,25 +2017,25 @@ class MockAddress extends _i1.Mock implements _i4.Address { ) as _i9.Future); @override - _i9.Future<_i3.Network> network({dynamic hint}) => (super.noSuchMethod( + _i9.Future<_i4.Network> network({dynamic hint}) => (super.noSuchMethod( Invocation.method( #network, [], {#hint: hint}, ), - returnValue: _i9.Future<_i3.Network>.value(_i3.Network.testnet), + returnValue: _i9.Future<_i4.Network>.value(_i4.Network.testnet), returnValueForMissingStub: - _i9.Future<_i3.Network>.value(_i3.Network.testnet), - ) as _i9.Future<_i3.Network>); + _i9.Future<_i4.Network>.value(_i4.Network.testnet), + ) as _i9.Future<_i4.Network>); @override - _i9.Future<_i3.Payload> payload({dynamic hint}) => (super.noSuchMethod( + _i9.Future<_i4.Payload> payload({dynamic hint}) => (super.noSuchMethod( Invocation.method( #payload, [], {#hint: hint}, ), - returnValue: _i9.Future<_i3.Payload>.value(_i10.dummyValue<_i3.Payload>( + returnValue: _i9.Future<_i4.Payload>.value(_i10.dummyValue<_i4.Payload>( this, Invocation.method( #payload, @@ -2028,7 +2044,7 @@ class MockAddress extends _i1.Mock implements _i4.Address { ), )), returnValueForMissingStub: - _i9.Future<_i3.Payload>.value(_i10.dummyValue<_i3.Payload>( + _i9.Future<_i4.Payload>.value(_i10.dummyValue<_i4.Payload>( this, Invocation.method( #payload, @@ -2036,7 +2052,7 @@ class MockAddress extends _i1.Mock implements _i4.Address { {#hint: hint}, ), )), - ) as _i9.Future<_i3.Payload>); + ) as _i9.Future<_i4.Payload>); @override _i9.Future toQrUri({dynamic hint}) => (super.noSuchMethod( @@ -2068,7 +2084,7 @@ class MockAddress extends _i1.Mock implements _i4.Address { /// A class which mocks [DerivationPath]. /// /// See the documentation for Mockito's code generation for more information. -class MockDerivationPath extends _i1.Mock implements _i4.DerivationPath { +class MockDerivationPath extends _i1.Mock implements _i3.DerivationPath { @override _i8.BitcoinBip32DerivationPath get ptr => (super.noSuchMethod( Invocation.getter(#ptr), @@ -2086,7 +2102,7 @@ class MockDerivationPath extends _i1.Mock implements _i4.DerivationPath { /// A class which mocks [FeeRate]. /// /// See the documentation for Mockito's code generation for more information. -class MockFeeRate extends _i1.Mock implements _i3.FeeRate { +class MockFeeRate extends _i1.Mock implements _i4.FeeRate { @override double get satPerVb => (super.noSuchMethod( Invocation.getter(#satPerVb), @@ -2098,9 +2114,9 @@ class MockFeeRate extends _i1.Mock implements _i3.FeeRate { /// A class which mocks [LocalUtxo]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocalUtxo extends _i1.Mock implements _i3.LocalUtxo { +class MockLocalUtxo extends _i1.Mock implements _i4.LocalUtxo { @override - _i3.OutPoint get outpoint => (super.noSuchMethod( + _i4.OutPoint get outpoint => (super.noSuchMethod( Invocation.getter(#outpoint), returnValue: _FakeOutPoint_20( this, @@ -2110,10 +2126,10 @@ class MockLocalUtxo extends _i1.Mock implements _i3.LocalUtxo { this, Invocation.getter(#outpoint), ), - ) as _i3.OutPoint); + ) as _i4.OutPoint); @override - _i3.TxOut get txout => (super.noSuchMethod( + _i4.TxOut get txout => (super.noSuchMethod( Invocation.getter(#txout), returnValue: _FakeTxOut_21( this, @@ -2123,14 +2139,14 @@ class MockLocalUtxo extends _i1.Mock implements _i3.LocalUtxo { this, Invocation.getter(#txout), ), - ) as _i3.TxOut); + ) as _i4.TxOut); @override - _i3.KeychainKind get keychain => (super.noSuchMethod( + _i4.KeychainKind get keychain => (super.noSuchMethod( Invocation.getter(#keychain), - returnValue: _i3.KeychainKind.externalChain, - returnValueForMissingStub: _i3.KeychainKind.externalChain, - ) as _i3.KeychainKind); + returnValue: _i4.KeychainKind.externalChain, + returnValueForMissingStub: _i4.KeychainKind.externalChain, + ) as _i4.KeychainKind); @override bool get isSpent => (super.noSuchMethod( @@ -2144,7 +2160,7 @@ class MockLocalUtxo extends _i1.Mock implements _i3.LocalUtxo { /// /// See the documentation for Mockito's code generation for more information. class MockTransactionDetails extends _i1.Mock - implements _i3.TransactionDetails { + implements _i4.TransactionDetails { @override String get txid => (super.noSuchMethod( Invocation.getter(#txid),