From eda8bfde89b9d2702e2c8066b01b26c50ad44a00 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 8 Sep 2023 14:23:45 -0400 Subject: [PATCH 1/3] Exception types for bdk exception --- ios/bdk_flutter.podspec | 14 +- lib/bdk_flutter.dart | 1 + lib/src/generated/bindings.dart | 2137 ++---- lib/src/generated/bridge_definitions.dart | 214 +- .../generated/bridge_definitions.freezed.dart | 318 +- lib/src/root.dart | 142 +- lib/src/utils/exceptions.dart | 247 + lib/src/utils/exceptions/bdk_exception.dart | 81 - .../exceptions/bdk_exception.freezed.dart | 6707 ----------------- lib/src/utils/exceptions/config.dart | 69 - lib/src/utils/utils.dart | 3 +- test/bdk_flutter_test.dart | 27 +- test/bdk_flutter_test.mocks.dart | 2 +- 13 files changed, 1291 insertions(+), 8671 deletions(-) create mode 100644 lib/src/utils/exceptions.dart delete mode 100644 lib/src/utils/exceptions/bdk_exception.dart delete mode 100644 lib/src/utils/exceptions/bdk_exception.freezed.dart delete mode 100644 lib/src/utils/exceptions/config.dart diff --git a/ios/bdk_flutter.podspec b/ios/bdk_flutter.podspec index 4dbcdea8..1b8d2537 100644 --- a/ios/bdk_flutter.podspec +++ b/ios/bdk_flutter.podspec @@ -8,13 +8,13 @@ Pod::Spec.new do |s| s.summary = 'A Flutter library for the Bitcoin Development Kit (https://bitcoindevkit.org/)' s.description = <<-DESC A new Flutter project. - DESC - s.homepage = 'https://github.com/LtbLightning/bdk-flutter' - s.license = { :file => '../LICENSE' } - s.author = { 'Bitcoin Zavior' => 'BitcoinZavior@GMail.Com' } - s.source = { :path => '.' } - s.source_files = 'Classes/**/*' - s.dependency 'Flutter' +DESC +s.homepage = 'https://github.com/LtbLightning/bdk-flutter' +s.license = { :file => '../LICENSE' } +s.author = { 'Bitcoin Zavior' => 'BitcoinZavior@GMail.Com' } +s.source = { :path => '.' } +s.source_files = 'Classes/**/*' +s.dependency 'Flutter' s.platform = :ios, '12.0' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } diff --git a/lib/bdk_flutter.dart b/lib/bdk_flutter.dart index 0b1f1361..8c49303e 100644 --- a/lib/bdk_flutter.dart +++ b/lib/bdk_flutter.dart @@ -24,3 +24,4 @@ export './src/generated/bridge_definitions.dart' RbfValue_Value, DatabaseConfig_Sled; export './src/root.dart'; +export 'src/utils/exceptions.dart'; diff --git a/lib/src/generated/bindings.dart b/lib/src/generated/bindings.dart index e40c13a7..802f9586 100644 --- a/lib/src/generated/bindings.dart +++ b/lib/src/generated/bindings.dart @@ -19,19 +19,15 @@ import 'dart:ffi' as ffi; class RustBdkFfiImpl implements RustBdkFfi { final RustBdkFfiPlatform _platform; - factory RustBdkFfiImpl(ExternalLibrary dylib) => - RustBdkFfiImpl.raw(RustBdkFfiPlatform(dylib)); + factory RustBdkFfiImpl(ExternalLibrary dylib) => RustBdkFfiImpl.raw(RustBdkFfiPlatform(dylib)); /// Only valid on web/WASM platforms. - factory RustBdkFfiImpl.wasm(FutureOr module) => - RustBdkFfiImpl(module as ExternalLibrary); + factory RustBdkFfiImpl.wasm(FutureOr module) => RustBdkFfiImpl(module as ExternalLibrary); RustBdkFfiImpl.raw(this._platform); - Future createBlockchainStaticMethodApi( - {required BlockchainConfig config, dynamic hint}) { + Future createBlockchainStaticMethodApi({required BlockchainConfig config, dynamic hint}) { var arg0 = _platform.api2wire_box_autoadd_blockchain_config(config); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_create_blockchain__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_create_blockchain__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kCreateBlockchainStaticMethodApiConstMeta, argValues: [config], @@ -39,19 +35,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kCreateBlockchainStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "create_blockchain__static_method__Api", - argNames: ["config"], - ); + FlutterRustBridgeTaskConstMeta get kCreateBlockchainStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( + debugName: "create_blockchain__static_method__Api", + argNames: ["config"], + ); - Future getHeightStaticMethodApi( - {required String blockchainId, dynamic hint}) { + Future getHeightStaticMethodApi({required String blockchainId, dynamic hint}) { var arg0 = _platform.api2wire_String(blockchainId); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_get_height__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_get_height__static_method__Api(port_, arg0), parseSuccessData: _wire2api_u32, constMeta: kGetHeightStaticMethodApiConstMeta, argValues: [blockchainId], @@ -59,21 +51,17 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kGetHeightStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kGetHeightStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "get_height__static_method__Api", argNames: ["blockchainId"], ); Future getBlockchainHashStaticMethodApi( - {required int blockchainHeight, - required String blockchainId, - dynamic hint}) { + {required int blockchainHeight, required String blockchainId, dynamic hint}) { var arg0 = api2wire_u32(blockchainHeight); var arg1 = _platform.api2wire_String(blockchainId); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_get_blockchain_hash__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_get_blockchain_hash__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kGetBlockchainHashStaticMethodApiConstMeta, argValues: [blockchainHeight, blockchainId], @@ -81,20 +69,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kGetBlockchainHashStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "get_blockchain_hash__static_method__Api", - argNames: ["blockchainHeight", "blockchainId"], - ); + FlutterRustBridgeTaskConstMeta get kGetBlockchainHashStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( + debugName: "get_blockchain_hash__static_method__Api", + argNames: ["blockchainHeight", "blockchainId"], + ); - Future estimateFeeStaticMethodApi( - {required int target, required String blockchainId, dynamic hint}) { + Future estimateFeeStaticMethodApi({required int target, required String blockchainId, dynamic hint}) { var arg0 = _platform.api2wire_u64(target); var arg1 = _platform.api2wire_String(blockchainId); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_estimate_fee__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_estimate_fee__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_f32, constMeta: kEstimateFeeStaticMethodApiConstMeta, argValues: [target, blockchainId], @@ -102,19 +86,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kEstimateFeeStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kEstimateFeeStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "estimate_fee__static_method__Api", argNames: ["target", "blockchainId"], ); - Future broadcastStaticMethodApi( - {required String tx, required String blockchainId, dynamic hint}) { + Future broadcastStaticMethodApi({required String tx, required String blockchainId, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); var arg1 = _platform.api2wire_String(blockchainId); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_broadcast__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_broadcast__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kBroadcastStaticMethodApiConstMeta, argValues: [tx, blockchainId], @@ -122,18 +103,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kBroadcastStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kBroadcastStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "broadcast__static_method__Api", argNames: ["tx", "blockchainId"], ); - Future createTransactionStaticMethodApi( - {required Uint8List tx, dynamic hint}) { + Future createTransactionStaticMethodApi({required Uint8List tx, dynamic hint}) { var arg0 = _platform.api2wire_uint_8_list(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_create_transaction__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_create_transaction__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kCreateTransactionStaticMethodApiConstMeta, argValues: [tx], @@ -141,18 +119,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kCreateTransactionStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "create_transaction__static_method__Api", - argNames: ["tx"], - ); + FlutterRustBridgeTaskConstMeta get kCreateTransactionStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( + debugName: "create_transaction__static_method__Api", + argNames: ["tx"], + ); Future txTxidStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_tx_txid__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_tx_txid__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kTxTxidStaticMethodApiConstMeta, argValues: [tx], @@ -160,8 +135,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kTxTxidStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kTxTxidStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "tx_txid__static_method__Api", argNames: ["tx"], ); @@ -169,8 +143,7 @@ class RustBdkFfiImpl implements RustBdkFfi { Future weightStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_weight__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_weight__static_method__Api(port_, arg0), parseSuccessData: _wire2api_u64, constMeta: kWeightStaticMethodApiConstMeta, argValues: [tx], @@ -178,8 +151,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kWeightStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kWeightStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "weight__static_method__Api", argNames: ["tx"], ); @@ -187,8 +159,7 @@ class RustBdkFfiImpl implements RustBdkFfi { Future sizeStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_size__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_size__static_method__Api(port_, arg0), parseSuccessData: _wire2api_u64, constMeta: kSizeStaticMethodApiConstMeta, argValues: [tx], @@ -196,8 +167,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kSizeStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kSizeStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "size__static_method__Api", argNames: ["tx"], ); @@ -205,8 +175,7 @@ class RustBdkFfiImpl implements RustBdkFfi { Future vsizeStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_vsize__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_vsize__static_method__Api(port_, arg0), parseSuccessData: _wire2api_u64, constMeta: kVsizeStaticMethodApiConstMeta, argValues: [tx], @@ -214,18 +183,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kVsizeStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kVsizeStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "vsize__static_method__Api", argNames: ["tx"], ); - Future serializeTxStaticMethodApi( - {required String tx, dynamic hint}) { + Future serializeTxStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_serialize_tx__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_serialize_tx__static_method__Api(port_, arg0), parseSuccessData: _wire2api_uint_8_list, constMeta: kSerializeTxStaticMethodApiConstMeta, argValues: [tx], @@ -233,8 +199,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kSerializeTxStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kSerializeTxStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "serialize_tx__static_method__Api", argNames: ["tx"], ); @@ -242,8 +207,7 @@ class RustBdkFfiImpl implements RustBdkFfi { Future isCoinBaseStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_is_coin_base__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_is_coin_base__static_method__Api(port_, arg0), parseSuccessData: _wire2api_bool, constMeta: kIsCoinBaseStaticMethodApiConstMeta, argValues: [tx], @@ -251,18 +215,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kIsCoinBaseStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kIsCoinBaseStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "is_coin_base__static_method__Api", argNames: ["tx"], ); - Future isExplicitlyRbfStaticMethodApi( - {required String tx, dynamic hint}) { + Future isExplicitlyRbfStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_is_explicitly_rbf__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_is_explicitly_rbf__static_method__Api(port_, arg0), parseSuccessData: _wire2api_bool, constMeta: kIsExplicitlyRbfStaticMethodApiConstMeta, argValues: [tx], @@ -270,18 +231,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kIsExplicitlyRbfStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kIsExplicitlyRbfStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "is_explicitly_rbf__static_method__Api", argNames: ["tx"], ); - Future isLockTimeEnabledStaticMethodApi( - {required String tx, dynamic hint}) { + Future isLockTimeEnabledStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_is_lock_time_enabled__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_is_lock_time_enabled__static_method__Api(port_, arg0), parseSuccessData: _wire2api_bool, constMeta: kIsLockTimeEnabledStaticMethodApiConstMeta, argValues: [tx], @@ -289,18 +247,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kIsLockTimeEnabledStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "is_lock_time_enabled__static_method__Api", - argNames: ["tx"], - ); + FlutterRustBridgeTaskConstMeta get kIsLockTimeEnabledStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( + debugName: "is_lock_time_enabled__static_method__Api", + argNames: ["tx"], + ); Future versionStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_version__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_version__static_method__Api(port_, arg0), parseSuccessData: _wire2api_i32, constMeta: kVersionStaticMethodApiConstMeta, argValues: [tx], @@ -308,8 +263,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kVersionStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kVersionStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "version__static_method__Api", argNames: ["tx"], ); @@ -317,8 +271,7 @@ class RustBdkFfiImpl implements RustBdkFfi { Future lockTimeStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_lock_time__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_lock_time__static_method__Api(port_, arg0), parseSuccessData: _wire2api_u32, constMeta: kLockTimeStaticMethodApiConstMeta, argValues: [tx], @@ -326,8 +279,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kLockTimeStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kLockTimeStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "lock_time__static_method__Api", argNames: ["tx"], ); @@ -335,8 +287,7 @@ class RustBdkFfiImpl implements RustBdkFfi { Future> inputStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_input__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_input__static_method__Api(port_, arg0), parseSuccessData: _wire2api_list_tx_in, constMeta: kInputStaticMethodApiConstMeta, argValues: [tx], @@ -344,18 +295,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kInputStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kInputStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "input__static_method__Api", argNames: ["tx"], ); - Future> outputStaticMethodApi( - {required String tx, dynamic hint}) { + Future> outputStaticMethodApi({required String tx, dynamic hint}) { var arg0 = _platform.api2wire_String(tx); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_output__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_output__static_method__Api(port_, arg0), parseSuccessData: _wire2api_list_tx_out, constMeta: kOutputStaticMethodApiConstMeta, argValues: [tx], @@ -363,18 +311,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kOutputStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kOutputStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "output__static_method__Api", argNames: ["tx"], ); - Future serializePsbtStaticMethodApi( - {required String psbtStr, dynamic hint}) { + Future serializePsbtStaticMethodApi({required String psbtStr, dynamic hint}) { var arg0 = _platform.api2wire_String(psbtStr); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_serialize_psbt__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_serialize_psbt__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kSerializePsbtStaticMethodApiConstMeta, argValues: [psbtStr], @@ -382,18 +327,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kSerializePsbtStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kSerializePsbtStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "serialize_psbt__static_method__Api", argNames: ["psbtStr"], ); - Future psbtTxidStaticMethodApi( - {required String psbtStr, dynamic hint}) { + Future psbtTxidStaticMethodApi({required String psbtStr, dynamic hint}) { var arg0 = _platform.api2wire_String(psbtStr); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_psbt_txid__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_psbt_txid__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kPsbtTxidStaticMethodApiConstMeta, argValues: [psbtStr], @@ -401,18 +343,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kPsbtTxidStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kPsbtTxidStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "psbt_txid__static_method__Api", argNames: ["psbtStr"], ); - Future extractTxStaticMethodApi( - {required String psbtStr, dynamic hint}) { + Future extractTxStaticMethodApi({required String psbtStr, dynamic hint}) { var arg0 = _platform.api2wire_String(psbtStr); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_extract_tx__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_extract_tx__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kExtractTxStaticMethodApiConstMeta, argValues: [psbtStr], @@ -420,18 +359,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kExtractTxStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kExtractTxStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "extract_tx__static_method__Api", argNames: ["psbtStr"], ); - Future psbtFeeRateStaticMethodApi( - {required String psbtStr, dynamic hint}) { + Future psbtFeeRateStaticMethodApi({required String psbtStr, dynamic hint}) { var arg0 = _platform.api2wire_String(psbtStr); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_psbt_fee_rate__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_psbt_fee_rate__static_method__Api(port_, arg0), parseSuccessData: _wire2api_opt_box_autoadd_f32, constMeta: kPsbtFeeRateStaticMethodApiConstMeta, argValues: [psbtStr], @@ -439,18 +375,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kPsbtFeeRateStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kPsbtFeeRateStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "psbt_fee_rate__static_method__Api", argNames: ["psbtStr"], ); - Future psbtFeeAmountStaticMethodApi( - {required String psbtStr, dynamic hint}) { + Future psbtFeeAmountStaticMethodApi({required String psbtStr, dynamic hint}) { var arg0 = _platform.api2wire_String(psbtStr); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_psbt_fee_amount__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_psbt_fee_amount__static_method__Api(port_, arg0), parseSuccessData: _wire2api_opt_box_autoadd_u64, constMeta: kPsbtFeeAmountStaticMethodApiConstMeta, argValues: [psbtStr], @@ -458,19 +391,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kPsbtFeeAmountStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kPsbtFeeAmountStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "psbt_fee_amount__static_method__Api", argNames: ["psbtStr"], ); - Future combinePsbtStaticMethodApi( - {required String psbtStr, required String other, dynamic hint}) { + Future combinePsbtStaticMethodApi({required String psbtStr, required String other, dynamic hint}) { var arg0 = _platform.api2wire_String(psbtStr); var arg1 = _platform.api2wire_String(other); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_combine_psbt__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_combine_psbt__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kCombinePsbtStaticMethodApiConstMeta, argValues: [psbtStr, other], @@ -478,18 +408,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kCombinePsbtStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kCombinePsbtStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "combine_psbt__static_method__Api", argNames: ["psbtStr", "other"], ); - Future jsonSerializeStaticMethodApi( - {required String psbtStr, dynamic hint}) { + Future jsonSerializeStaticMethodApi({required String psbtStr, dynamic hint}) { var arg0 = _platform.api2wire_String(psbtStr); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_json_serialize__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_json_serialize__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kJsonSerializeStaticMethodApiConstMeta, argValues: [psbtStr], @@ -497,8 +424,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kJsonSerializeStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kJsonSerializeStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "json_serialize__static_method__Api", argNames: ["psbtStr"], ); @@ -521,8 +447,7 @@ class RustBdkFfiImpl implements RustBdkFfi { var arg0 = _platform.api2wire_String(walletId); var arg1 = _platform.api2wire_list_script_amount(recipients); var arg2 = _platform.api2wire_list_out_point(utxos); - var arg3 = _platform - .api2wire_opt_box_autoadd___record__out_point_String_usize(foreignUtxo); + var arg3 = _platform.api2wire_opt_box_autoadd___record__out_point_String_usize(foreignUtxo); var arg4 = _platform.api2wire_list_out_point(unspendable); var arg5 = api2wire_change_spend_policy(changePolicy); var arg6 = manuallySelectedOnly; @@ -533,9 +458,8 @@ class RustBdkFfiImpl implements RustBdkFfi { var arg11 = _platform.api2wire_opt_box_autoadd_rbf_value(rbf); var arg12 = _platform.api2wire_uint_8_list(data); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_tx_builder_finish__static_method__Api(port_, arg0, arg1, arg2, - arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12), + callFfi: (port_) => _platform.inner.wire_tx_builder_finish__static_method__Api( + port_, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12), parseSuccessData: _wire2api_bdk_tx_builder_result, constMeta: kTxBuilderFinishStaticMethodApiConstMeta, argValues: [ @@ -557,8 +481,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kTxBuilderFinishStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kTxBuilderFinishStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "tx_builder_finish__static_method__Api", argNames: [ "walletId", @@ -593,43 +516,25 @@ class RustBdkFfiImpl implements RustBdkFfi { var arg5 = _platform.api2wire_opt_box_autoadd_u32(nSequence); return _platform.executeNormal(FlutterRustBridgeTask( callFfi: (port_) => _platform.inner - .wire_bump_fee_tx_builder_finish__static_method__Api( - port_, arg0, arg1, arg2, arg3, arg4, arg5), + .wire_bump_fee_tx_builder_finish__static_method__Api(port_, arg0, arg1, arg2, arg3, arg4, arg5), parseSuccessData: _wire2api_bdk_tx_builder_result, constMeta: kBumpFeeTxBuilderFinishStaticMethodApiConstMeta, - argValues: [ - txid, - feeRate, - allowShrinking, - walletId, - enableRbf, - nSequence - ], + argValues: [txid, feeRate, allowShrinking, walletId, enableRbf, nSequence], hint: hint, )); } - FlutterRustBridgeTaskConstMeta - get kBumpFeeTxBuilderFinishStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "bump_fee_tx_builder_finish__static_method__Api", - argNames: [ - "txid", - "feeRate", - "allowShrinking", - "walletId", - "enableRbf", - "nSequence" - ], - ); - - Future createDescriptorStaticMethodApi( - {required String descriptor, required Network network, dynamic hint}) { + FlutterRustBridgeTaskConstMeta get kBumpFeeTxBuilderFinishStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "bump_fee_tx_builder_finish__static_method__Api", + argNames: ["txid", "feeRate", "allowShrinking", "walletId", "enableRbf", "nSequence"], + ); + + Future createDescriptorStaticMethodApi({required String descriptor, required Network network, dynamic hint}) { var arg0 = _platform.api2wire_String(descriptor); var arg1 = api2wire_network(network); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_create_descriptor__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_create_descriptor__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kCreateDescriptorStaticMethodApiConstMeta, argValues: [descriptor, network], @@ -637,25 +542,18 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kCreateDescriptorStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "create_descriptor__static_method__Api", - argNames: ["descriptor", "network"], - ); + FlutterRustBridgeTaskConstMeta get kCreateDescriptorStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( + debugName: "create_descriptor__static_method__Api", + argNames: ["descriptor", "network"], + ); Future newBip44DescriptorStaticMethodApi( - {required KeychainKind keyChainKind, - required String secretKey, - required Network network, - dynamic hint}) { + {required KeychainKind keyChainKind, required String secretKey, required Network network, dynamic hint}) { var arg0 = api2wire_keychain_kind(keyChainKind); var arg1 = _platform.api2wire_String(secretKey); var arg2 = api2wire_network(network); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_new_bip44_descriptor__static_method__Api( - port_, arg0, arg1, arg2), + callFfi: (port_) => _platform.inner.wire_new_bip44_descriptor__static_method__Api(port_, arg0, arg1, arg2), parseSuccessData: _wire2api_String, constMeta: kNewBip44DescriptorStaticMethodApiConstMeta, argValues: [keyChainKind, secretKey, network], @@ -663,12 +561,11 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kNewBip44DescriptorStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "new_bip44_descriptor__static_method__Api", - argNames: ["keyChainKind", "secretKey", "network"], - ); + FlutterRustBridgeTaskConstMeta get kNewBip44DescriptorStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "new_bip44_descriptor__static_method__Api", + argNames: ["keyChainKind", "secretKey", "network"], + ); Future newBip44PublicStaticMethodApi( {required KeychainKind keyChainKind, @@ -681,9 +578,7 @@ class RustBdkFfiImpl implements RustBdkFfi { var arg2 = api2wire_network(network); var arg3 = _platform.api2wire_String(fingerprint); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_new_bip44_public__static_method__Api( - port_, arg0, arg1, arg2, arg3), + callFfi: (port_) => _platform.inner.wire_new_bip44_public__static_method__Api(port_, arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_String, constMeta: kNewBip44PublicStaticMethodApiConstMeta, argValues: [keyChainKind, publicKey, network, fingerprint], @@ -691,24 +586,18 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kNewBip44PublicStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kNewBip44PublicStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "new_bip44_public__static_method__Api", argNames: ["keyChainKind", "publicKey", "network", "fingerprint"], ); Future newBip49DescriptorStaticMethodApi( - {required KeychainKind keyChainKind, - required String secretKey, - required Network network, - dynamic hint}) { + {required KeychainKind keyChainKind, required String secretKey, required Network network, dynamic hint}) { var arg0 = api2wire_keychain_kind(keyChainKind); var arg1 = _platform.api2wire_String(secretKey); var arg2 = api2wire_network(network); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_new_bip49_descriptor__static_method__Api( - port_, arg0, arg1, arg2), + callFfi: (port_) => _platform.inner.wire_new_bip49_descriptor__static_method__Api(port_, arg0, arg1, arg2), parseSuccessData: _wire2api_String, constMeta: kNewBip49DescriptorStaticMethodApiConstMeta, argValues: [keyChainKind, secretKey, network], @@ -716,12 +605,11 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kNewBip49DescriptorStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "new_bip49_descriptor__static_method__Api", - argNames: ["keyChainKind", "secretKey", "network"], - ); + FlutterRustBridgeTaskConstMeta get kNewBip49DescriptorStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "new_bip49_descriptor__static_method__Api", + argNames: ["keyChainKind", "secretKey", "network"], + ); Future newBip49PublicStaticMethodApi( {required KeychainKind keyChainKind, @@ -734,9 +622,7 @@ class RustBdkFfiImpl implements RustBdkFfi { var arg2 = api2wire_network(network); var arg3 = _platform.api2wire_String(fingerprint); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_new_bip49_public__static_method__Api( - port_, arg0, arg1, arg2, arg3), + callFfi: (port_) => _platform.inner.wire_new_bip49_public__static_method__Api(port_, arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_String, constMeta: kNewBip49PublicStaticMethodApiConstMeta, argValues: [keyChainKind, publicKey, network, fingerprint], @@ -744,24 +630,18 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kNewBip49PublicStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kNewBip49PublicStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "new_bip49_public__static_method__Api", argNames: ["keyChainKind", "publicKey", "network", "fingerprint"], ); Future newBip84DescriptorStaticMethodApi( - {required KeychainKind keyChainKind, - required String secretKey, - required Network network, - dynamic hint}) { + {required KeychainKind keyChainKind, required String secretKey, required Network network, dynamic hint}) { var arg0 = api2wire_keychain_kind(keyChainKind); var arg1 = _platform.api2wire_String(secretKey); var arg2 = api2wire_network(network); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_new_bip84_descriptor__static_method__Api( - port_, arg0, arg1, arg2), + callFfi: (port_) => _platform.inner.wire_new_bip84_descriptor__static_method__Api(port_, arg0, arg1, arg2), parseSuccessData: _wire2api_String, constMeta: kNewBip84DescriptorStaticMethodApiConstMeta, argValues: [keyChainKind, secretKey, network], @@ -769,12 +649,11 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kNewBip84DescriptorStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "new_bip84_descriptor__static_method__Api", - argNames: ["keyChainKind", "secretKey", "network"], - ); + FlutterRustBridgeTaskConstMeta get kNewBip84DescriptorStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "new_bip84_descriptor__static_method__Api", + argNames: ["keyChainKind", "secretKey", "network"], + ); Future newBip84PublicStaticMethodApi( {required KeychainKind keyChainKind, @@ -787,9 +666,7 @@ class RustBdkFfiImpl implements RustBdkFfi { var arg2 = api2wire_network(network); var arg3 = _platform.api2wire_String(fingerprint); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_new_bip84_public__static_method__Api( - port_, arg0, arg1, arg2, arg3), + callFfi: (port_) => _platform.inner.wire_new_bip84_public__static_method__Api(port_, arg0, arg1, arg2, arg3), parseSuccessData: _wire2api_String, constMeta: kNewBip84PublicStaticMethodApiConstMeta, argValues: [keyChainKind, publicKey, network, fingerprint], @@ -797,19 +674,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kNewBip84PublicStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kNewBip84PublicStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "new_bip84_public__static_method__Api", argNames: ["keyChainKind", "publicKey", "network", "fingerprint"], ); - Future asStringPrivateStaticMethodApi( - {required String descriptor, required Network network, dynamic hint}) { + Future asStringPrivateStaticMethodApi({required String descriptor, required Network network, dynamic hint}) { var arg0 = _platform.api2wire_String(descriptor); var arg1 = api2wire_network(network); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_as_string_private__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_as_string_private__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kAsStringPrivateStaticMethodApiConstMeta, argValues: [descriptor, network], @@ -817,19 +691,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kAsStringPrivateStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kAsStringPrivateStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "as_string_private__static_method__Api", argNames: ["descriptor", "network"], ); - Future asStringStaticMethodApi( - {required String descriptor, required Network network, dynamic hint}) { + Future asStringStaticMethodApi({required String descriptor, required Network network, dynamic hint}) { var arg0 = _platform.api2wire_String(descriptor); var arg1 = api2wire_network(network); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_as_string__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_as_string__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kAsStringStaticMethodApiConstMeta, argValues: [descriptor, network], @@ -837,8 +708,7 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kAsStringStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kAsStringStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "as_string__static_method__Api", argNames: ["descriptor", "network"], ); @@ -848,8 +718,7 @@ class RustBdkFfiImpl implements RustBdkFfi { var arg0 = _platform.api2wire_String(descriptor); var arg1 = api2wire_network(network); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_max_satisfaction_weight__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_max_satisfaction_weight__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_usize, constMeta: kMaxSatisfactionWeightStaticMethodApiConstMeta, argValues: [descriptor, network], @@ -857,25 +726,19 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kMaxSatisfactionWeightStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "max_satisfaction_weight__static_method__Api", - argNames: ["descriptor", "network"], - ); + FlutterRustBridgeTaskConstMeta get kMaxSatisfactionWeightStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "max_satisfaction_weight__static_method__Api", + argNames: ["descriptor", "network"], + ); Future createDescriptorSecretStaticMethodApi( - {required Network network, - required String mnemonic, - String? password, - dynamic hint}) { + {required Network network, required String mnemonic, String? password, dynamic hint}) { var arg0 = api2wire_network(network); var arg1 = _platform.api2wire_String(mnemonic); var arg2 = _platform.api2wire_opt_String(password); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_create_descriptor_secret__static_method__Api( - port_, arg0, arg1, arg2), + callFfi: (port_) => _platform.inner.wire_create_descriptor_secret__static_method__Api(port_, arg0, arg1, arg2), parseSuccessData: _wire2api_String, constMeta: kCreateDescriptorSecretStaticMethodApiConstMeta, argValues: [network, mnemonic, password], @@ -883,19 +746,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kCreateDescriptorSecretStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "create_descriptor_secret__static_method__Api", - argNames: ["network", "mnemonic", "password"], - ); + FlutterRustBridgeTaskConstMeta get kCreateDescriptorSecretStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "create_descriptor_secret__static_method__Api", + argNames: ["network", "mnemonic", "password"], + ); - Future descriptorSecretFromStringStaticMethodApi( - {required String secret, dynamic hint}) { + Future descriptorSecretFromStringStaticMethodApi({required String secret, dynamic hint}) { var arg0 = _platform.api2wire_String(secret); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_descriptor_secret_from_string__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_descriptor_secret_from_string__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kDescriptorSecretFromStringStaticMethodApiConstMeta, argValues: [secret], @@ -903,20 +763,17 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kDescriptorSecretFromStringStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "descriptor_secret_from_string__static_method__Api", - argNames: ["secret"], - ); + FlutterRustBridgeTaskConstMeta get kDescriptorSecretFromStringStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "descriptor_secret_from_string__static_method__Api", + argNames: ["secret"], + ); - Future extendDescriptorSecretStaticMethodApi( - {required String secret, required String path, dynamic hint}) { + Future extendDescriptorSecretStaticMethodApi({required String secret, required String path, dynamic hint}) { var arg0 = _platform.api2wire_String(secret); var arg1 = _platform.api2wire_String(path); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_extend_descriptor_secret__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_extend_descriptor_secret__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kExtendDescriptorSecretStaticMethodApiConstMeta, argValues: [secret, path], @@ -924,20 +781,17 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kExtendDescriptorSecretStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "extend_descriptor_secret__static_method__Api", - argNames: ["secret", "path"], - ); + FlutterRustBridgeTaskConstMeta get kExtendDescriptorSecretStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "extend_descriptor_secret__static_method__Api", + argNames: ["secret", "path"], + ); - Future deriveDescriptorSecretStaticMethodApi( - {required String secret, required String path, dynamic hint}) { + Future deriveDescriptorSecretStaticMethodApi({required String secret, required String path, dynamic hint}) { var arg0 = _platform.api2wire_String(secret); var arg1 = _platform.api2wire_String(path); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_derive_descriptor_secret__static_method__Api(port_, arg0, arg1), + callFfi: (port_) => _platform.inner.wire_derive_descriptor_secret__static_method__Api(port_, arg0, arg1), parseSuccessData: _wire2api_String, constMeta: kDeriveDescriptorSecretStaticMethodApiConstMeta, argValues: [secret, path], @@ -945,19 +799,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kDeriveDescriptorSecretStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "derive_descriptor_secret__static_method__Api", - argNames: ["secret", "path"], - ); + FlutterRustBridgeTaskConstMeta get kDeriveDescriptorSecretStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "derive_descriptor_secret__static_method__Api", + argNames: ["secret", "path"], + ); - Future asSecretBytesStaticMethodApi( - {required String secret, dynamic hint}) { + Future asSecretBytesStaticMethodApi({required String secret, dynamic hint}) { var arg0 = _platform.api2wire_String(secret); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_as_secret_bytes__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_as_secret_bytes__static_method__Api(port_, arg0), parseSuccessData: _wire2api_uint_8_list, constMeta: kAsSecretBytesStaticMethodApiConstMeta, argValues: [secret], @@ -965,18 +816,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kAsSecretBytesStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kAsSecretBytesStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "as_secret_bytes__static_method__Api", argNames: ["secret"], ); - Future asPublicStaticMethodApi( - {required String secret, dynamic hint}) { + Future asPublicStaticMethodApi({required String secret, dynamic hint}) { var arg0 = _platform.api2wire_String(secret); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => - _platform.inner.wire_as_public__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_as_public__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kAsPublicStaticMethodApiConstMeta, argValues: [secret], @@ -984,18 +832,15 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta get kAsPublicStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( + FlutterRustBridgeTaskConstMeta get kAsPublicStaticMethodApiConstMeta => const FlutterRustBridgeTaskConstMeta( debugName: "as_public__static_method__Api", argNames: ["secret"], ); - Future createDerivationPathStaticMethodApi( - {required String path, dynamic hint}) { + Future createDerivationPathStaticMethodApi({required String path, dynamic hint}) { var arg0 = _platform.api2wire_String(path); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_create_derivation_path__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_create_derivation_path__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kCreateDerivationPathStaticMethodApiConstMeta, argValues: [path], @@ -1003,19 +848,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kCreateDerivationPathStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "create_derivation_path__static_method__Api", - argNames: ["path"], - ); + FlutterRustBridgeTaskConstMeta get kCreateDerivationPathStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "create_derivation_path__static_method__Api", + argNames: ["path"], + ); - Future descriptorPublicFromStringStaticMethodApi( - {required String publicKey, dynamic hint}) { + Future descriptorPublicFromStringStaticMethodApi({required String publicKey, dynamic hint}) { var arg0 = _platform.api2wire_String(publicKey); return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_descriptor_public_from_string__static_method__Api(port_, arg0), + callFfi: (port_) => _platform.inner.wire_descriptor_public_from_string__static_method__Api(port_, arg0), parseSuccessData: _wire2api_String, constMeta: kDescriptorPublicFromStringStaticMethodApiConstMeta, argValues: [publicKey], @@ -1023,25 +865,19 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kDescriptorPublicFromStringStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "descriptor_public_from_string__static_method__Api", - argNames: ["publicKey"], - ); + FlutterRustBridgeTaskConstMeta get kDescriptorPublicFromStringStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "descriptor_public_from_string__static_method__Api", + argNames: ["publicKey"], + ); Future createDescriptorPublicStaticMethodApi( - {String? xpub, - required String path, - required bool derive, - dynamic hint}) { + {String? xpub, required String path, required bool derive, dynamic hint}) { var arg0 = _platform.api2wire_opt_String(xpub); var arg1 = _platform.api2wire_String(path); var arg2 = derive; return _platform.executeNormal(FlutterRustBridgeTask( - callFfi: (port_) => _platform.inner - .wire_create_descriptor_public__static_method__Api( - port_, arg0, arg1, arg2), + callFfi: (port_) => _platform.inner.wire_create_descriptor_public__static_method__Api(port_, arg0, arg1, arg2), parseSuccessData: _wire2api_String, constMeta: kCreateDescriptorPublicStaticMethodApiConstMeta, argValues: [xpub, path, derive], @@ -1049,19 +885,16 @@ class RustBdkFfiImpl implements RustBdkFfi { )); } - FlutterRustBridgeTaskConstMeta - get kCreateDescriptorPublicStaticMethodApiConstMeta => - const FlutterRustBridgeTaskConstMeta( - debugName: "create_descriptor_public__static_method__Api", - argNames: ["xpub", "path", "derive"], - ); + FlutterRustBridgeTaskConstMeta get kCreateDescriptorPublicStaticMethodApiConstMeta => + const FlutterRustBridgeTaskConstMeta( + debugName: "create_descriptor_public__static_method__Api", + argNames: ["xpub", "path", "derive"], + ); - Future