diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1c19c3e1..54038dc6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,14 +2,16 @@
Updated `flutter_rust_bridge` to `2.0.0`.
#### APIs added
- Exposed `createTestnet` & `createMutinynet` to `Blockchain`.
+- Exposed `policies` in `Wallet`.
+- Exposed `policyPath` in `TxBuilder`.
+- Exposed `id`, `requiresPath`, `item`, `satisfaction`, `contribution` in `Policy` class.
- Overrode `toString()` for `Address`, `DerivationPath`, `Descriptor`, `DescriptorPublicKey` , `DescriptorSecretKey`, `Mnemonic`,
-- `PartiallySignedTransaction`, `ScriptBuf` & `Transaction`.
+- `PartiallySignedTransaction`, `ScriptBuf` & `Transaction`.
#### Changed
- `partiallySignedTransaction.serialize()` serialize the data as raw binary.
#### Fixed
- Thread `frb_workerpool` panicked on Sql database access.
-
## [0.31.2-dev.2]
#### Fixed
- Thread `frb_workerpool` panicked on invalid `Fingerprint`.
diff --git a/android/build.gradle b/android/build.gradle
index af4681e5..6cc0c534 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -27,7 +27,6 @@ apply plugin: 'kotlin-android'
android {
compileSdkVersion 31
namespace "io.bdk.f.bdk_flutter"
-
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
index e59e280d..0bfa73ba 100644
--- a/android/src/main/AndroidManifest.xml
+++ b/android/src/main/AndroidManifest.xml
@@ -1 +1 @@
-
+
diff --git a/example/integration_test /full_cycle_test.dart b/example/integration_test /full_cycle_test.dart
new file mode 100644
index 00000000..867af912
--- /dev/null
+++ b/example/integration_test /full_cycle_test.dart
@@ -0,0 +1,63 @@
+import 'dart:typed_data';
+
+import 'package:bdk_flutter/bdk_flutter.dart';
+import 'package:flutter/foundation.dart';
+import 'package:flutter_test/flutter_test.dart';
+import 'package:integration_test/integration_test.dart';
+
+void main() {
+ IntegrationTestWidgetsFlutterBinding.ensureInitialized();
+ group('Descriptor & Wallet', () {
+ setUp(() async {});
+ testWidgets('generating psbt using a muti-sig wallet', (_) async {
+ final externalDescriptor = await Descriptor.create(
+ descriptor:
+ "wsh(thresh(2,pk(tpubD6NzVbkrYhZ4XJBfEJ6gt9DiVdfWJijsQTCE3jtXByW3Tk6AVGQ3vL1NNxg3SjB7QkJAuutACCQjrXD8zdZSM1ZmBENszCqy49ECEHmD6rf/0/*),sj:and_v(v:pk(tpubD6NzVbkrYhZ4YfAr3jCBRk4SpqB9L1Hh442y83njwfMaker7EqZd7fHMqyTWrfRYJ1e5t2ue6BYjW5i5yQnmwqbzY1a3kfqNxog1AFcD1aE/0/*),n:older(6)),snj:and_v(v:pk(tprv8ZgxMBicQKsPeitVUz3s6cfyCECovNP7t82FaKPa4UKqV1kssWcXgLkMDjzDbgG9GWoza4pL7z727QitfzkiwX99E1Has3T3a1MKHvYWmQZ/0/*),after(630000))))",
+ network: Network.signet);
+ final internalDescriptor = await Descriptor.create(
+ descriptor:
+ "wsh(thresh(2,pk(tpubD6NzVbkrYhZ4XJBfEJ6gt9DiVdfWJijsQTCE3jtXByW3Tk6AVGQ3vL1NNxg3SjB7QkJAuutACCQjrXD8zdZSM1ZmBENszCqy49ECEHmD6rf/1/*),sj:and_v(v:pk(tpubD6NzVbkrYhZ4YfAr3jCBRk4SpqB9L1Hh442y83njwfMaker7EqZd7fHMqyTWrfRYJ1e5t2ue6BYjW5i5yQnmwqbzY1a3kfqNxog1AFcD1aE/1/*),n:older(6)),snj:and_v(v:pk(tprv8ZgxMBicQKsPeitVUz3s6cfyCECovNP7t82FaKPa4UKqV1kssWcXgLkMDjzDbgG9GWoza4pL7z727QitfzkiwX99E1Has3T3a1MKHvYWmQZ/1/*),after(630000))))",
+ network: Network.signet);
+
+ final wallet = await Wallet.create(
+ descriptor: externalDescriptor,
+ changeDescriptor: internalDescriptor,
+ network: Network.signet,
+ databaseConfig: const DatabaseConfig.memory());
+ final blockchain = await Blockchain.createMutinynet();
+ wallet.sync(blockchain: blockchain);
+ debugPrint("Wallet balance: ${wallet.getBalance().total}");
+ final toAddress = wallet
+ .getAddress(addressIndex: const AddressIndex.increase())
+ .address;
+ debugPrint("Wallet address: ${toAddress.toString()}");
+ final externalWalletPolicy = wallet.policies(KeychainKind.externalChain);
+ final ineternalWalletPolicy = wallet.policies(KeychainKind.internalChain);
+ if (externalWalletPolicy != null && ineternalWalletPolicy != null) {
+ // Construct external and internal policy paths
+ final extPath = {
+ ineternalWalletPolicy.id(): Uint32List.fromList([0, 1])
+ };
+ debugPrint("External Policy path: $extPath\n");
+
+ final intPath = {
+ ineternalWalletPolicy.id(): Uint32List.fromList([0, 1])
+ };
+ debugPrint("Internal Policy Path: $intPath\n");
+
+ // Build the transaction
+ final txBuilder = TxBuilder()
+ .addRecipient(
+ toAddress.scriptPubkey(),
+ BigInt.from(1000),
+ )
+ .doNotSpendChange()
+ .policyPath(KeychainKind.internalChain, intPath)
+ .policyPath(KeychainKind.externalChain, extPath);
+
+ final (psbt, _) = await txBuilder.finish(wallet);
+ debugPrint("Transaction serialized: ${psbt.toString()}\n");
+ }
+ });
+ });
+}
diff --git a/example/pubspec.lock b/example/pubspec.lock
index 64ae97c4..2735c848 100644
--- a/example/pubspec.lock
+++ b/example/pubspec.lock
@@ -181,6 +181,11 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
+ flutter_driver:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
flutter_lints:
dependency: "direct dev"
description:
@@ -210,6 +215,11 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.4.2"
+ fuchsia_remote_debug_protocol:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.0"
glob:
dependency: transitive
description:
@@ -218,6 +228,11 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.2"
+ integration_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
json_annotation:
dependency: transitive
description:
@@ -314,6 +329,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.9.0"
+ platform:
+ dependency: transitive
+ description:
+ name: platform
+ sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.1.5"
+ process:
+ dependency: transitive
+ description:
+ name: process
+ sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32"
+ url: "https://pub.dev"
+ source: hosted
+ version: "5.0.2"
pub_semver:
dependency: transitive
description:
@@ -375,6 +406,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.0"
+ sync_http:
+ dependency: transitive
+ description:
+ name: sync_http
+ sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.3.1"
term_glyph:
dependency: transitive
description:
@@ -439,6 +478,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.5.1"
+ webdriver:
+ dependency: transitive
+ description:
+ name: webdriver
+ sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.0.3"
yaml:
dependency: transitive
description:
diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index 06bbff6a..549e6f2f 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -32,7 +32,10 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
-
+ integration_test:
+ sdk: flutter
+ flutter_driver:
+ sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h
index 45bed664..5c3e0c91 100644
--- a/ios/Classes/frb_generated.h
+++ b/ios/Classes/frb_generated.h
@@ -139,6 +139,10 @@ typedef struct wire_cst_bdk_script_buf {
struct wire_cst_list_prim_u_8_strict *bytes;
} wire_cst_bdk_script_buf;
+typedef struct wire_cst_bdk_policy {
+ uintptr_t ptr;
+} wire_cst_bdk_policy;
+
typedef struct wire_cst_LockTime_Blocks {
uint32_t field0;
} wire_cst_LockTime_Blocks;
@@ -297,6 +301,21 @@ typedef struct wire_cst_rbf_value {
union RbfValueKind kind;
} wire_cst_rbf_value;
+typedef struct wire_cst_list_prim_u_32_strict {
+ uint32_t *ptr;
+ int32_t len;
+} wire_cst_list_prim_u_32_strict;
+
+typedef struct wire_cst_record_string_list_prim_u_32_strict {
+ struct wire_cst_list_prim_u_8_strict *field0;
+ struct wire_cst_list_prim_u_32_strict *field1;
+} wire_cst_record_string_list_prim_u_32_strict;
+
+typedef struct wire_cst_list_record_string_list_prim_u_32_strict {
+ struct wire_cst_record_string_list_prim_u_32_strict *ptr;
+ int32_t len;
+} wire_cst_list_record_string_list_prim_u_32_strict;
+
typedef struct wire_cst_AddressError_Base58 {
struct wire_cst_list_prim_u_8_strict *field0;
} wire_cst_AddressError_Base58;
@@ -358,6 +377,11 @@ typedef struct wire_cst_block_time {
uint64_t timestamp;
} wire_cst_block_time;
+typedef struct wire_cst_condition {
+ uint32_t *csv;
+ struct wire_cst_lock_time *timelock;
+} wire_cst_condition;
+
typedef struct wire_cst_ConsensusError_Io {
struct wire_cst_list_prim_u_8_strict *field0;
} wire_cst_ConsensusError_Io;
@@ -469,11 +493,74 @@ typedef struct wire_cst_hex_error {
union HexErrorKind kind;
} wire_cst_hex_error;
+typedef struct wire_cst_PkOrF_Pubkey {
+ struct wire_cst_list_prim_u_8_strict *value;
+} wire_cst_PkOrF_Pubkey;
+
+typedef struct wire_cst_PkOrF_XOnlyPubkey {
+ struct wire_cst_list_prim_u_8_strict *value;
+} wire_cst_PkOrF_XOnlyPubkey;
+
+typedef struct wire_cst_PkOrF_Fingerprint {
+ struct wire_cst_list_prim_u_8_strict *value;
+} wire_cst_PkOrF_Fingerprint;
+
+typedef union PkOrFKind {
+ struct wire_cst_PkOrF_Pubkey Pubkey;
+ struct wire_cst_PkOrF_XOnlyPubkey XOnlyPubkey;
+ struct wire_cst_PkOrF_Fingerprint Fingerprint;
+} PkOrFKind;
+
+typedef struct wire_cst_pk_or_f {
+ int32_t tag;
+ union PkOrFKind kind;
+} wire_cst_pk_or_f;
+
+typedef struct wire_cst_list_bdk_policy {
+ struct wire_cst_bdk_policy *ptr;
+ int32_t len;
+} wire_cst_list_bdk_policy;
+
+typedef struct wire_cst_list_condition {
+ struct wire_cst_condition *ptr;
+ int32_t len;
+} wire_cst_list_condition;
+
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_list_pk_or_f {
+ struct wire_cst_pk_or_f *ptr;
+ int32_t len;
+} wire_cst_list_pk_or_f;
+
+typedef struct wire_cst_list_prim_u_64_strict {
+ uint64_t *ptr;
+ int32_t len;
+} wire_cst_list_prim_u_64_strict;
+
+typedef struct wire_cst_record_list_prim_u_32_strict_list_condition {
+ struct wire_cst_list_prim_u_32_strict *field0;
+ struct wire_cst_list_condition *field1;
+} wire_cst_record_list_prim_u_32_strict_list_condition;
+
+typedef struct wire_cst_list_record_list_prim_u_32_strict_list_condition {
+ struct wire_cst_record_list_prim_u_32_strict_list_condition *ptr;
+ int32_t len;
+} wire_cst_list_record_list_prim_u_32_strict_list_condition;
+
+typedef struct wire_cst_record_u_32_list_condition {
+ uint32_t field0;
+ struct wire_cst_list_condition *field1;
+} wire_cst_record_u_32_list_condition;
+
+typedef struct wire_cst_list_record_u_32_list_condition {
+ struct wire_cst_record_u_32_list_condition *ptr;
+ int32_t len;
+} wire_cst_list_record_u_32_list_condition;
+
typedef struct wire_cst_transaction_details {
struct wire_cst_bdk_transaction *transaction;
struct wire_cst_list_prim_u_8_strict *txid;
@@ -722,6 +809,102 @@ typedef struct wire_cst_record_bdk_psbt_transaction_details {
struct wire_cst_transaction_details field1;
} wire_cst_record_bdk_psbt_transaction_details;
+typedef struct wire_cst_Satisfaction_Partial {
+ uint64_t n;
+ uint64_t m;
+ struct wire_cst_list_prim_u_64_strict *items;
+ bool *sorted;
+ struct wire_cst_list_record_u_32_list_condition *conditions;
+} wire_cst_Satisfaction_Partial;
+
+typedef struct wire_cst_Satisfaction_PartialComplete {
+ uint64_t n;
+ uint64_t m;
+ struct wire_cst_list_prim_u_64_strict *items;
+ bool *sorted;
+ struct wire_cst_list_record_list_prim_u_32_strict_list_condition *conditions;
+} wire_cst_Satisfaction_PartialComplete;
+
+typedef struct wire_cst_Satisfaction_Complete {
+ struct wire_cst_condition *condition;
+} wire_cst_Satisfaction_Complete;
+
+typedef struct wire_cst_Satisfaction_None {
+ struct wire_cst_list_prim_u_8_strict *msg;
+} wire_cst_Satisfaction_None;
+
+typedef union SatisfactionKind {
+ struct wire_cst_Satisfaction_Partial Partial;
+ struct wire_cst_Satisfaction_PartialComplete PartialComplete;
+ struct wire_cst_Satisfaction_Complete Complete;
+ struct wire_cst_Satisfaction_None None;
+} SatisfactionKind;
+
+typedef struct wire_cst_satisfaction {
+ int32_t tag;
+ union SatisfactionKind kind;
+} wire_cst_satisfaction;
+
+typedef struct wire_cst_SatisfiableItem_EcdsaSignature {
+ struct wire_cst_pk_or_f *key;
+} wire_cst_SatisfiableItem_EcdsaSignature;
+
+typedef struct wire_cst_SatisfiableItem_SchnorrSignature {
+ struct wire_cst_pk_or_f *key;
+} wire_cst_SatisfiableItem_SchnorrSignature;
+
+typedef struct wire_cst_SatisfiableItem_Sha256Preimage {
+ struct wire_cst_list_prim_u_8_strict *hash;
+} wire_cst_SatisfiableItem_Sha256Preimage;
+
+typedef struct wire_cst_SatisfiableItem_Hash256Preimage {
+ struct wire_cst_list_prim_u_8_strict *hash;
+} wire_cst_SatisfiableItem_Hash256Preimage;
+
+typedef struct wire_cst_SatisfiableItem_Ripemd160Preimage {
+ struct wire_cst_list_prim_u_8_strict *hash;
+} wire_cst_SatisfiableItem_Ripemd160Preimage;
+
+typedef struct wire_cst_SatisfiableItem_Hash160Preimage {
+ struct wire_cst_list_prim_u_8_strict *hash;
+} wire_cst_SatisfiableItem_Hash160Preimage;
+
+typedef struct wire_cst_SatisfiableItem_AbsoluteTimelock {
+ struct wire_cst_lock_time *value;
+} wire_cst_SatisfiableItem_AbsoluteTimelock;
+
+typedef struct wire_cst_SatisfiableItem_RelativeTimelock {
+ uint32_t value;
+} wire_cst_SatisfiableItem_RelativeTimelock;
+
+typedef struct wire_cst_SatisfiableItem_Multisig {
+ struct wire_cst_list_pk_or_f *keys;
+ uint64_t threshold;
+} wire_cst_SatisfiableItem_Multisig;
+
+typedef struct wire_cst_SatisfiableItem_Thresh {
+ struct wire_cst_list_bdk_policy *items;
+ uint64_t threshold;
+} wire_cst_SatisfiableItem_Thresh;
+
+typedef union SatisfiableItemKind {
+ struct wire_cst_SatisfiableItem_EcdsaSignature EcdsaSignature;
+ struct wire_cst_SatisfiableItem_SchnorrSignature SchnorrSignature;
+ struct wire_cst_SatisfiableItem_Sha256Preimage Sha256Preimage;
+ struct wire_cst_SatisfiableItem_Hash256Preimage Hash256Preimage;
+ struct wire_cst_SatisfiableItem_Ripemd160Preimage Ripemd160Preimage;
+ struct wire_cst_SatisfiableItem_Hash160Preimage Hash160Preimage;
+ struct wire_cst_SatisfiableItem_AbsoluteTimelock AbsoluteTimelock;
+ struct wire_cst_SatisfiableItem_RelativeTimelock RelativeTimelock;
+ struct wire_cst_SatisfiableItem_Multisig Multisig;
+ struct wire_cst_SatisfiableItem_Thresh Thresh;
+} SatisfiableItemKind;
+
+typedef struct wire_cst_satisfiable_item {
+ int32_t tag;
+ union SatisfiableItemKind kind;
+} wire_cst_satisfiable_item;
+
void frbgen_bdk_flutter_wire__crate__api__blockchain__bdk_blockchain_broadcast(int64_t port_,
struct wire_cst_bdk_blockchain *that,
struct wire_cst_bdk_transaction *transaction);
@@ -886,6 +1069,18 @@ WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_scr
WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri(struct wire_cst_bdk_address *that);
+WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_as_string(struct wire_cst_bdk_policy *that);
+
+WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_contribution(struct wire_cst_bdk_policy *that);
+
+WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_id(struct wire_cst_bdk_policy *that);
+
+WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_item(struct wire_cst_bdk_policy *that);
+
+WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_requires_path(struct wire_cst_bdk_policy *that);
+
+WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_satisfaction(struct wire_cst_bdk_policy *that);
+
WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string(struct wire_cst_bdk_script_buf *that);
WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty(void);
@@ -974,6 +1169,9 @@ void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new(int64_t port_,
int32_t network,
struct wire_cst_database_config *database_config);
+WireSyncRust2DartDco frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_policies(struct wire_cst_bdk_wallet *ptr,
+ int32_t keychain);
+
void frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign(int64_t port_,
struct wire_cst_bdk_wallet *ptr,
struct wire_cst_bdk_psbt *psbt,
@@ -1004,6 +1202,8 @@ void frbgen_bdk_flutter_wire__crate__api__wallet__tx_builder_finish(int64_t port
bool drain_wallet,
struct wire_cst_bdk_script_buf *drain_to,
struct wire_cst_rbf_value *rbf,
+ struct wire_cst_list_record_string_list_prim_u_32_strict *internal_policy_path,
+ struct wire_cst_list_record_string_list_prim_u_32_strict *external_policy_path,
struct wire_cst_list_prim_u_8_loose *data);
void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinAddress(const void *ptr);
@@ -1022,6 +1222,10 @@ void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptor
void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor(const void *ptr);
+void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorPolicy(const void *ptr);
+
+void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorPolicy(const void *ptr);
+
void frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr);
void frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey(const void *ptr);
@@ -1064,6 +1268,8 @@ struct wire_cst_bdk_descriptor_secret_key *frbgen_bdk_flutter_cst_new_box_autoad
struct wire_cst_bdk_mnemonic *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_mnemonic(void);
+struct wire_cst_bdk_policy *frbgen_bdk_flutter_cst_new_box_autoadd_bdk_policy(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);
@@ -1076,6 +1282,10 @@ struct wire_cst_block_time *frbgen_bdk_flutter_cst_new_box_autoadd_block_time(vo
struct wire_cst_blockchain_config *frbgen_bdk_flutter_cst_new_box_autoadd_blockchain_config(void);
+bool *frbgen_bdk_flutter_cst_new_box_autoadd_bool(bool value);
+
+struct wire_cst_condition *frbgen_bdk_flutter_cst_new_box_autoadd_condition(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);
@@ -1098,6 +1308,8 @@ 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_pk_or_f *frbgen_bdk_flutter_cst_new_box_autoadd_pk_or_f(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);
@@ -1120,16 +1332,32 @@ 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_list_bdk_policy *frbgen_bdk_flutter_cst_new_list_bdk_policy(int32_t len);
+
+struct wire_cst_list_condition *frbgen_bdk_flutter_cst_new_list_condition(int32_t len);
+
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);
struct wire_cst_list_out_point *frbgen_bdk_flutter_cst_new_list_out_point(int32_t len);
+struct wire_cst_list_pk_or_f *frbgen_bdk_flutter_cst_new_list_pk_or_f(int32_t len);
+
+struct wire_cst_list_prim_u_32_strict *frbgen_bdk_flutter_cst_new_list_prim_u_32_strict(int32_t len);
+
+struct wire_cst_list_prim_u_64_strict *frbgen_bdk_flutter_cst_new_list_prim_u_64_strict(int32_t len);
+
struct wire_cst_list_prim_u_8_loose *frbgen_bdk_flutter_cst_new_list_prim_u_8_loose(int32_t len);
struct wire_cst_list_prim_u_8_strict *frbgen_bdk_flutter_cst_new_list_prim_u_8_strict(int32_t len);
+struct wire_cst_list_record_list_prim_u_32_strict_list_condition *frbgen_bdk_flutter_cst_new_list_record_list_prim_u_32_strict_list_condition(int32_t len);
+
+struct wire_cst_list_record_string_list_prim_u_32_strict *frbgen_bdk_flutter_cst_new_list_record_string_list_prim_u_32_strict(int32_t len);
+
+struct wire_cst_list_record_u_32_list_condition *frbgen_bdk_flutter_cst_new_list_record_u_32_list_condition(int32_t len);
+
struct wire_cst_list_script_amount *frbgen_bdk_flutter_cst_new_list_script_amount(int32_t len);
struct wire_cst_list_transaction_details *frbgen_bdk_flutter_cst_new_list_transaction_details(int32_t len);
@@ -1148,12 +1376,15 @@ static int64_t dummy_method_to_enforce_bundling(void) {
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_policy);
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_config);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_bool);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_box_autoadd_condition);
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_descriptor_error);
@@ -1165,6 +1396,7 @@ static int64_t dummy_method_to_enforce_bundling(void) {
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_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_pk_or_f);
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);
@@ -1176,11 +1408,19 @@ static int64_t dummy_method_to_enforce_bundling(void) {
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_list_bdk_policy);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_condition);
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);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_pk_or_f);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_prim_u_32_strict);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_prim_u_64_strict);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_prim_u_8_loose);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_prim_u_8_strict);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_record_list_prim_u_32_strict_list_condition);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_record_string_list_prim_u_32_strict);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_record_u_32_list_condition);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_script_amount);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_transaction_details);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_cst_new_list_tx_in);
@@ -1189,6 +1429,7 @@ static int64_t dummy_method_to_enforce_bundling(void) {
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkblockchainAnyBlockchain);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkdescriptorPolicy);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorPublicKey);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysDescriptorSecretKey);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_decrement_strong_count_RustOpaque_bdkkeysKeyMap);
@@ -1199,6 +1440,7 @@ static int64_t dummy_method_to_enforce_bundling(void) {
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkbitcoinbip32DerivationPath);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkblockchainAnyBlockchain);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorExtendedDescriptor);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkdescriptorPolicy);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorPublicKey);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysDescriptorSecretKey);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_rust_arc_increment_strong_count_RustOpaque_bdkkeysKeyMap);
@@ -1256,6 +1498,12 @@ static int64_t dummy_method_to_enforce_bundling(void) {
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_payload);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_script);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_address_to_qr_uri);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_as_string);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_contribution);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_id);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_item);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_requires_path);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_policy_satisfaction);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_as_string);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_empty);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__types__bdk_script_buf_from_hex);
@@ -1284,6 +1532,7 @@ static int64_t dummy_method_to_enforce_bundling(void) {
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_list_unspent);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_network);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_new);
+ dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_policies);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sign);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__bdk_wallet_sync);
dummy_var ^= ((int64_t) (void*) frbgen_bdk_flutter_wire__crate__api__wallet__finish_bump_fee_tx_builder);
diff --git a/lib/bdk_flutter.dart b/lib/bdk_flutter.dart
index 04948352..48f3898f 100644
--- a/lib/bdk_flutter.dart
+++ b/lib/bdk_flutter.dart
@@ -40,11 +40,4 @@ export './src/generated/api/types.dart'
export './src/generated/api/wallet.dart'
hide BdkWallet, finishBumpFeeTxBuilder, txBuilderFinish;
export './src/root.dart';
-export 'src/utils/exceptions.dart'
- hide
- mapBdkError,
- mapAddressError,
- mapConsensusError,
- mapDescriptorError,
- mapHexError,
- BdkFfiException;
+export 'src/utils/exceptions.dart' hide mapBdkError, BdkFfiException;
diff --git a/lib/src/generated/api/types.dart b/lib/src/generated/api/types.dart
index bbeb65ad..1b642cb0 100644
--- a/lib/src/generated/api/types.dart
+++ b/lib/src/generated/api/types.dart
@@ -10,7 +10,7 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
import 'package:freezed_annotation/freezed_annotation.dart' hide protected;
part 'types.freezed.dart';
-// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `default`, `default`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `hash`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`
+// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `default`, `default`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `hash`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`
@freezed
sealed class AddressIndex with _$AddressIndex {
@@ -143,6 +143,50 @@ class BdkAddress {
ptr == other.ptr;
}
+class BdkPolicy {
+ final Policy ptr;
+
+ const BdkPolicy({
+ required this.ptr,
+ });
+
+ String asString() => core.instance.api.crateApiTypesBdkPolicyAsString(
+ that: this,
+ );
+
+ Satisfaction contribution() =>
+ core.instance.api.crateApiTypesBdkPolicyContribution(
+ that: this,
+ );
+
+ String id() => core.instance.api.crateApiTypesBdkPolicyId(
+ that: this,
+ );
+
+ SatisfiableItem item() => core.instance.api.crateApiTypesBdkPolicyItem(
+ that: this,
+ );
+
+ bool requiresPath() => core.instance.api.crateApiTypesBdkPolicyRequiresPath(
+ that: this,
+ );
+
+ Satisfaction satisfaction() =>
+ core.instance.api.crateApiTypesBdkPolicySatisfaction(
+ that: this,
+ );
+
+ @override
+ int get hashCode => ptr.hashCode;
+
+ @override
+ bool operator ==(Object other) =>
+ identical(this, other) ||
+ other is BdkPolicy &&
+ runtimeType == other.runtimeType &&
+ ptr == other.ptr;
+}
+
class BdkScriptBuf {
final Uint8List bytes;
@@ -312,6 +356,27 @@ enum ChangeSpendPolicy {
;
}
+class Condition {
+ final int? csv;
+ final LockTime? timelock;
+
+ const Condition({
+ this.csv,
+ this.timelock,
+ });
+
+ @override
+ int get hashCode => csv.hashCode ^ timelock.hashCode;
+
+ @override
+ bool operator ==(Object other) =>
+ identical(this, other) ||
+ other is Condition &&
+ runtimeType == other.runtimeType &&
+ csv == other.csv &&
+ timelock == other.timelock;
+}
+
@freezed
sealed class DatabaseConfig with _$DatabaseConfig {
const DatabaseConfig._();
@@ -479,6 +544,21 @@ sealed class Payload with _$Payload {
}) = Payload_WitnessProgram;
}
+@freezed
+sealed class PkOrF with _$PkOrF {
+ const PkOrF._();
+
+ const factory PkOrF.pubkey({
+ required String value,
+ }) = PkOrF_Pubkey;
+ const factory PkOrF.xOnlyPubkey({
+ required String value,
+ }) = PkOrF_XOnlyPubkey;
+ const factory PkOrF.fingerprint({
+ required String value,
+ }) = PkOrF_Fingerprint;
+}
+
class PsbtSigHashType {
final int inner;
@@ -507,6 +587,70 @@ sealed class RbfValue with _$RbfValue {
) = RbfValue_Value;
}
+@freezed
+sealed class Satisfaction with _$Satisfaction {
+ const Satisfaction._();
+
+ const factory Satisfaction.partial({
+ required BigInt n,
+ required BigInt m,
+ required Uint64List items,
+ bool? sorted,
+ required Map> conditions,
+ }) = Satisfaction_Partial;
+ const factory Satisfaction.partialComplete({
+ required BigInt n,
+ required BigInt m,
+ required Uint64List items,
+ bool? sorted,
+ required Map> conditions,
+ }) = Satisfaction_PartialComplete;
+ const factory Satisfaction.complete({
+ required Condition condition,
+ }) = Satisfaction_Complete;
+ const factory Satisfaction.none({
+ required String msg,
+ }) = Satisfaction_None;
+}
+
+@freezed
+sealed class SatisfiableItem with _$SatisfiableItem {
+ const SatisfiableItem._();
+
+ const factory SatisfiableItem.ecdsaSignature({
+ required PkOrF key,
+ }) = SatisfiableItem_EcdsaSignature;
+ const factory SatisfiableItem.schnorrSignature({
+ required PkOrF key,
+ }) = SatisfiableItem_SchnorrSignature;
+ const factory SatisfiableItem.sha256Preimage({
+ required String hash,
+ }) = SatisfiableItem_Sha256Preimage;
+ const factory SatisfiableItem.hash256Preimage({
+ required String hash,
+ }) = SatisfiableItem_Hash256Preimage;
+ const factory SatisfiableItem.ripemd160Preimage({
+ required String hash,
+ }) = SatisfiableItem_Ripemd160Preimage;
+ const factory SatisfiableItem.hash160Preimage({
+ required String hash,
+ }) = SatisfiableItem_Hash160Preimage;
+ const factory SatisfiableItem.absoluteTimelock({
+ required LockTime value,
+ }) = SatisfiableItem_AbsoluteTimelock;
+ const factory SatisfiableItem.relativeTimelock({
+ required int value,
+ }) = SatisfiableItem_RelativeTimelock;
+ const factory SatisfiableItem.multisig({
+ required List keys,
+ required BigInt threshold,
+ }) = SatisfiableItem_Multisig;
+ const factory SatisfiableItem.thresh({
+ required List items,
+ required BigInt threshold,
+ }) = SatisfiableItem_Thresh;
+}
+
/// A output script and an amount of satoshis.
class ScriptAmount {
final BdkScriptBuf script;
diff --git a/lib/src/generated/api/types.freezed.dart b/lib/src/generated/api/types.freezed.dart
index dc17fb9f..fee5cdaf 100644
--- a/lib/src/generated/api/types.freezed.dart
+++ b/lib/src/generated/api/types.freezed.dart
@@ -1960,127 +1960,182 @@ abstract class Payload_WitnessProgram extends Payload {
}
/// @nodoc
-mixin _$RbfValue {
+mixin _$PkOrF {
+ String get value => throw _privateConstructorUsedError;
@optionalTypeArgs
TResult when({
- required TResult Function() rbfDefault,
- required TResult Function(int field0) value,
+ required TResult Function(String value) pubkey,
+ required TResult Function(String value) xOnlyPubkey,
+ required TResult Function(String value) fingerprint,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? whenOrNull({
- TResult? Function()? rbfDefault,
- TResult? Function(int field0)? value,
+ TResult? Function(String value)? pubkey,
+ TResult? Function(String value)? xOnlyPubkey,
+ TResult? Function(String value)? fingerprint,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeWhen({
- TResult Function()? rbfDefault,
- TResult Function(int field0)? value,
+ TResult Function(String value)? pubkey,
+ TResult Function(String value)? xOnlyPubkey,
+ TResult Function(String value)? fingerprint,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult map({
- required TResult Function(RbfValue_RbfDefault value) rbfDefault,
- required TResult Function(RbfValue_Value value) value,
+ required TResult Function(PkOrF_Pubkey value) pubkey,
+ required TResult Function(PkOrF_XOnlyPubkey value) xOnlyPubkey,
+ required TResult Function(PkOrF_Fingerprint value) fingerprint,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult? mapOrNull({
- TResult? Function(RbfValue_RbfDefault value)? rbfDefault,
- TResult? Function(RbfValue_Value value)? value,
+ TResult? Function(PkOrF_Pubkey value)? pubkey,
+ TResult? Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult? Function(PkOrF_Fingerprint value)? fingerprint,
}) =>
throw _privateConstructorUsedError;
@optionalTypeArgs
TResult maybeMap({
- TResult Function(RbfValue_RbfDefault value)? rbfDefault,
- TResult Function(RbfValue_Value value)? value,
+ TResult Function(PkOrF_Pubkey value)? pubkey,
+ TResult Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult Function(PkOrF_Fingerprint value)? fingerprint,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;
+
+ @JsonKey(ignore: true)
+ $PkOrFCopyWith get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
-abstract class $RbfValueCopyWith<$Res> {
- factory $RbfValueCopyWith(RbfValue value, $Res Function(RbfValue) then) =
- _$RbfValueCopyWithImpl<$Res, RbfValue>;
+abstract class $PkOrFCopyWith<$Res> {
+ factory $PkOrFCopyWith(PkOrF value, $Res Function(PkOrF) then) =
+ _$PkOrFCopyWithImpl<$Res, PkOrF>;
+ @useResult
+ $Res call({String value});
}
/// @nodoc
-class _$RbfValueCopyWithImpl<$Res, $Val extends RbfValue>
- implements $RbfValueCopyWith<$Res> {
- _$RbfValueCopyWithImpl(this._value, this._then);
+class _$PkOrFCopyWithImpl<$Res, $Val extends PkOrF>
+ implements $PkOrFCopyWith<$Res> {
+ _$PkOrFCopyWithImpl(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? value = null,
+ }) {
+ return _then(_value.copyWith(
+ value: null == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as String,
+ ) as $Val);
+ }
}
/// @nodoc
-abstract class _$$RbfValue_RbfDefaultImplCopyWith<$Res> {
- factory _$$RbfValue_RbfDefaultImplCopyWith(_$RbfValue_RbfDefaultImpl value,
- $Res Function(_$RbfValue_RbfDefaultImpl) then) =
- __$$RbfValue_RbfDefaultImplCopyWithImpl<$Res>;
+abstract class _$$PkOrF_PubkeyImplCopyWith<$Res>
+ implements $PkOrFCopyWith<$Res> {
+ factory _$$PkOrF_PubkeyImplCopyWith(
+ _$PkOrF_PubkeyImpl value, $Res Function(_$PkOrF_PubkeyImpl) then) =
+ __$$PkOrF_PubkeyImplCopyWithImpl<$Res>;
+ @override
+ @useResult
+ $Res call({String value});
}
/// @nodoc
-class __$$RbfValue_RbfDefaultImplCopyWithImpl<$Res>
- extends _$RbfValueCopyWithImpl<$Res, _$RbfValue_RbfDefaultImpl>
- implements _$$RbfValue_RbfDefaultImplCopyWith<$Res> {
- __$$RbfValue_RbfDefaultImplCopyWithImpl(_$RbfValue_RbfDefaultImpl _value,
- $Res Function(_$RbfValue_RbfDefaultImpl) _then)
+class __$$PkOrF_PubkeyImplCopyWithImpl<$Res>
+ extends _$PkOrFCopyWithImpl<$Res, _$PkOrF_PubkeyImpl>
+ implements _$$PkOrF_PubkeyImplCopyWith<$Res> {
+ __$$PkOrF_PubkeyImplCopyWithImpl(
+ _$PkOrF_PubkeyImpl _value, $Res Function(_$PkOrF_PubkeyImpl) _then)
: super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? value = null,
+ }) {
+ return _then(_$PkOrF_PubkeyImpl(
+ value: null == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as String,
+ ));
+ }
}
/// @nodoc
-class _$RbfValue_RbfDefaultImpl extends RbfValue_RbfDefault {
- const _$RbfValue_RbfDefaultImpl() : super._();
+class _$PkOrF_PubkeyImpl extends PkOrF_Pubkey {
+ const _$PkOrF_PubkeyImpl({required this.value}) : super._();
+
+ @override
+ final String value;
@override
String toString() {
- return 'RbfValue.rbfDefault()';
+ return 'PkOrF.pubkey(value: $value)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$RbfValue_RbfDefaultImpl);
+ other is _$PkOrF_PubkeyImpl &&
+ (identical(other.value, value) || other.value == value));
}
@override
- int get hashCode => runtimeType.hashCode;
+ int get hashCode => Object.hash(runtimeType, value);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$PkOrF_PubkeyImplCopyWith<_$PkOrF_PubkeyImpl> get copyWith =>
+ __$$PkOrF_PubkeyImplCopyWithImpl<_$PkOrF_PubkeyImpl>(this, _$identity);
@override
@optionalTypeArgs
TResult when({
- required TResult Function() rbfDefault,
- required TResult Function(int field0) value,
+ required TResult Function(String value) pubkey,
+ required TResult Function(String value) xOnlyPubkey,
+ required TResult Function(String value) fingerprint,
}) {
- return rbfDefault();
+ return pubkey(value);
}
@override
@optionalTypeArgs
TResult? whenOrNull({
- TResult? Function()? rbfDefault,
- TResult? Function(int field0)? value,
+ TResult? Function(String value)? pubkey,
+ TResult? Function(String value)? xOnlyPubkey,
+ TResult? Function(String value)? fingerprint,
}) {
- return rbfDefault?.call();
+ return pubkey?.call(value);
}
@override
@optionalTypeArgs
TResult maybeWhen({
- TResult Function()? rbfDefault,
- TResult Function(int field0)? value,
+ TResult Function(String value)? pubkey,
+ TResult Function(String value)? xOnlyPubkey,
+ TResult Function(String value)? fingerprint,
required TResult orElse(),
}) {
- if (rbfDefault != null) {
- return rbfDefault();
+ if (pubkey != null) {
+ return pubkey(value);
}
return orElse();
}
@@ -2088,129 +2143,145 @@ class _$RbfValue_RbfDefaultImpl extends RbfValue_RbfDefault {
@override
@optionalTypeArgs
TResult map({
- required TResult Function(RbfValue_RbfDefault value) rbfDefault,
- required TResult Function(RbfValue_Value value) value,
+ required TResult Function(PkOrF_Pubkey value) pubkey,
+ required TResult Function(PkOrF_XOnlyPubkey value) xOnlyPubkey,
+ required TResult Function(PkOrF_Fingerprint value) fingerprint,
}) {
- return rbfDefault(this);
+ return pubkey(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull({
- TResult? Function(RbfValue_RbfDefault value)? rbfDefault,
- TResult? Function(RbfValue_Value value)? value,
+ TResult? Function(PkOrF_Pubkey value)? pubkey,
+ TResult? Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult? Function(PkOrF_Fingerprint value)? fingerprint,
}) {
- return rbfDefault?.call(this);
+ return pubkey?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap({
- TResult Function(RbfValue_RbfDefault value)? rbfDefault,
- TResult Function(RbfValue_Value value)? value,
+ TResult Function(PkOrF_Pubkey value)? pubkey,
+ TResult Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult Function(PkOrF_Fingerprint value)? fingerprint,
required TResult orElse(),
}) {
- if (rbfDefault != null) {
- return rbfDefault(this);
+ if (pubkey != null) {
+ return pubkey(this);
}
return orElse();
}
}
-abstract class RbfValue_RbfDefault extends RbfValue {
- const factory RbfValue_RbfDefault() = _$RbfValue_RbfDefaultImpl;
- const RbfValue_RbfDefault._() : super._();
+abstract class PkOrF_Pubkey extends PkOrF {
+ const factory PkOrF_Pubkey({required final String value}) =
+ _$PkOrF_PubkeyImpl;
+ const PkOrF_Pubkey._() : super._();
+
+ @override
+ String get value;
+ @override
+ @JsonKey(ignore: true)
+ _$$PkOrF_PubkeyImplCopyWith<_$PkOrF_PubkeyImpl> get copyWith =>
+ throw _privateConstructorUsedError;
}
/// @nodoc
-abstract class _$$RbfValue_ValueImplCopyWith<$Res> {
- factory _$$RbfValue_ValueImplCopyWith(_$RbfValue_ValueImpl value,
- $Res Function(_$RbfValue_ValueImpl) then) =
- __$$RbfValue_ValueImplCopyWithImpl<$Res>;
+abstract class _$$PkOrF_XOnlyPubkeyImplCopyWith<$Res>
+ implements $PkOrFCopyWith<$Res> {
+ factory _$$PkOrF_XOnlyPubkeyImplCopyWith(_$PkOrF_XOnlyPubkeyImpl value,
+ $Res Function(_$PkOrF_XOnlyPubkeyImpl) then) =
+ __$$PkOrF_XOnlyPubkeyImplCopyWithImpl<$Res>;
+ @override
@useResult
- $Res call({int field0});
+ $Res call({String value});
}
/// @nodoc
-class __$$RbfValue_ValueImplCopyWithImpl<$Res>
- extends _$RbfValueCopyWithImpl<$Res, _$RbfValue_ValueImpl>
- implements _$$RbfValue_ValueImplCopyWith<$Res> {
- __$$RbfValue_ValueImplCopyWithImpl(
- _$RbfValue_ValueImpl _value, $Res Function(_$RbfValue_ValueImpl) _then)
+class __$$PkOrF_XOnlyPubkeyImplCopyWithImpl<$Res>
+ extends _$PkOrFCopyWithImpl<$Res, _$PkOrF_XOnlyPubkeyImpl>
+ implements _$$PkOrF_XOnlyPubkeyImplCopyWith<$Res> {
+ __$$PkOrF_XOnlyPubkeyImplCopyWithImpl(_$PkOrF_XOnlyPubkeyImpl _value,
+ $Res Function(_$PkOrF_XOnlyPubkeyImpl) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
- Object? field0 = null,
+ Object? value = null,
}) {
- return _then(_$RbfValue_ValueImpl(
- null == field0
- ? _value.field0
- : field0 // ignore: cast_nullable_to_non_nullable
- as int,
+ return _then(_$PkOrF_XOnlyPubkeyImpl(
+ value: null == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as String,
));
}
}
/// @nodoc
-class _$RbfValue_ValueImpl extends RbfValue_Value {
- const _$RbfValue_ValueImpl(this.field0) : super._();
+class _$PkOrF_XOnlyPubkeyImpl extends PkOrF_XOnlyPubkey {
+ const _$PkOrF_XOnlyPubkeyImpl({required this.value}) : super._();
@override
- final int field0;
+ final String value;
@override
String toString() {
- return 'RbfValue.value(field0: $field0)';
+ return 'PkOrF.xOnlyPubkey(value: $value)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
- other is _$RbfValue_ValueImpl &&
- (identical(other.field0, field0) || other.field0 == field0));
+ other is _$PkOrF_XOnlyPubkeyImpl &&
+ (identical(other.value, value) || other.value == value));
}
@override
- int get hashCode => Object.hash(runtimeType, field0);
+ int get hashCode => Object.hash(runtimeType, value);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
- _$$RbfValue_ValueImplCopyWith<_$RbfValue_ValueImpl> get copyWith =>
- __$$RbfValue_ValueImplCopyWithImpl<_$RbfValue_ValueImpl>(
+ _$$PkOrF_XOnlyPubkeyImplCopyWith<_$PkOrF_XOnlyPubkeyImpl> get copyWith =>
+ __$$PkOrF_XOnlyPubkeyImplCopyWithImpl<_$PkOrF_XOnlyPubkeyImpl>(
this, _$identity);
@override
@optionalTypeArgs
TResult when({
- required TResult Function() rbfDefault,
- required TResult Function(int field0) value,
+ required TResult Function(String value) pubkey,
+ required TResult Function(String value) xOnlyPubkey,
+ required TResult Function(String value) fingerprint,
}) {
- return value(field0);
+ return xOnlyPubkey(value);
}
@override
@optionalTypeArgs
TResult? whenOrNull({
- TResult? Function()? rbfDefault,
- TResult? Function(int field0)? value,
+ TResult? Function(String value)? pubkey,
+ TResult? Function(String value)? xOnlyPubkey,
+ TResult? Function(String value)? fingerprint,
}) {
- return value?.call(field0);
+ return xOnlyPubkey?.call(value);
}
@override
@optionalTypeArgs
TResult maybeWhen({
- TResult Function()? rbfDefault,
- TResult Function(int field0)? value,
+ TResult Function(String value)? pubkey,
+ TResult Function(String value)? xOnlyPubkey,
+ TResult Function(String value)? fingerprint,
required TResult orElse(),
}) {
- if (value != null) {
- return value(field0);
+ if (xOnlyPubkey != null) {
+ return xOnlyPubkey(value);
}
return orElse();
}
@@ -2218,41 +2289,3542 @@ class _$RbfValue_ValueImpl extends RbfValue_Value {
@override
@optionalTypeArgs
TResult map({
- required TResult Function(RbfValue_RbfDefault value) rbfDefault,
- required TResult Function(RbfValue_Value value) value,
+ required TResult Function(PkOrF_Pubkey value) pubkey,
+ required TResult Function(PkOrF_XOnlyPubkey value) xOnlyPubkey,
+ required TResult Function(PkOrF_Fingerprint value) fingerprint,
}) {
- return value(this);
+ return xOnlyPubkey(this);
}
@override
@optionalTypeArgs
TResult? mapOrNull({
- TResult? Function(RbfValue_RbfDefault value)? rbfDefault,
- TResult? Function(RbfValue_Value value)? value,
+ TResult? Function(PkOrF_Pubkey value)? pubkey,
+ TResult? Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult? Function(PkOrF_Fingerprint value)? fingerprint,
}) {
- return value?.call(this);
+ return xOnlyPubkey?.call(this);
}
@override
@optionalTypeArgs
TResult maybeMap({
- TResult Function(RbfValue_RbfDefault value)? rbfDefault,
- TResult Function(RbfValue_Value value)? value,
+ TResult Function(PkOrF_Pubkey value)? pubkey,
+ TResult Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult Function(PkOrF_Fingerprint value)? fingerprint,
required TResult orElse(),
}) {
- if (value != null) {
- return value(this);
+ if (xOnlyPubkey != null) {
+ return xOnlyPubkey(this);
}
return orElse();
}
}
-abstract class RbfValue_Value extends RbfValue {
- const factory RbfValue_Value(final int field0) = _$RbfValue_ValueImpl;
- const RbfValue_Value._() : super._();
+abstract class PkOrF_XOnlyPubkey extends PkOrF {
+ const factory PkOrF_XOnlyPubkey({required final String value}) =
+ _$PkOrF_XOnlyPubkeyImpl;
+ const PkOrF_XOnlyPubkey._() : super._();
- int get field0;
+ @override
+ String get value;
+ @override
@JsonKey(ignore: true)
- _$$RbfValue_ValueImplCopyWith<_$RbfValue_ValueImpl> get copyWith =>
+ _$$PkOrF_XOnlyPubkeyImplCopyWith<_$PkOrF_XOnlyPubkeyImpl> get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$PkOrF_FingerprintImplCopyWith<$Res>
+ implements $PkOrFCopyWith<$Res> {
+ factory _$$PkOrF_FingerprintImplCopyWith(_$PkOrF_FingerprintImpl value,
+ $Res Function(_$PkOrF_FingerprintImpl) then) =
+ __$$PkOrF_FingerprintImplCopyWithImpl<$Res>;
+ @override
+ @useResult
+ $Res call({String value});
+}
+
+/// @nodoc
+class __$$PkOrF_FingerprintImplCopyWithImpl<$Res>
+ extends _$PkOrFCopyWithImpl<$Res, _$PkOrF_FingerprintImpl>
+ implements _$$PkOrF_FingerprintImplCopyWith<$Res> {
+ __$$PkOrF_FingerprintImplCopyWithImpl(_$PkOrF_FingerprintImpl _value,
+ $Res Function(_$PkOrF_FingerprintImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? value = null,
+ }) {
+ return _then(_$PkOrF_FingerprintImpl(
+ value: null == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as String,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$PkOrF_FingerprintImpl extends PkOrF_Fingerprint {
+ const _$PkOrF_FingerprintImpl({required this.value}) : super._();
+
+ @override
+ final String value;
+
+ @override
+ String toString() {
+ return 'PkOrF.fingerprint(value: $value)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$PkOrF_FingerprintImpl &&
+ (identical(other.value, value) || other.value == value));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, value);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$PkOrF_FingerprintImplCopyWith<_$PkOrF_FingerprintImpl> get copyWith =>
+ __$$PkOrF_FingerprintImplCopyWithImpl<_$PkOrF_FingerprintImpl>(
+ this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(String value) pubkey,
+ required TResult Function(String value) xOnlyPubkey,
+ required TResult Function(String value) fingerprint,
+ }) {
+ return fingerprint(value);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(String value)? pubkey,
+ TResult? Function(String value)? xOnlyPubkey,
+ TResult? Function(String value)? fingerprint,
+ }) {
+ return fingerprint?.call(value);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(String value)? pubkey,
+ TResult Function(String value)? xOnlyPubkey,
+ TResult Function(String value)? fingerprint,
+ required TResult orElse(),
+ }) {
+ if (fingerprint != null) {
+ return fingerprint(value);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(PkOrF_Pubkey value) pubkey,
+ required TResult Function(PkOrF_XOnlyPubkey value) xOnlyPubkey,
+ required TResult Function(PkOrF_Fingerprint value) fingerprint,
+ }) {
+ return fingerprint(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(PkOrF_Pubkey value)? pubkey,
+ TResult? Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult? Function(PkOrF_Fingerprint value)? fingerprint,
+ }) {
+ return fingerprint?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(PkOrF_Pubkey value)? pubkey,
+ TResult Function(PkOrF_XOnlyPubkey value)? xOnlyPubkey,
+ TResult Function(PkOrF_Fingerprint value)? fingerprint,
+ required TResult orElse(),
+ }) {
+ if (fingerprint != null) {
+ return fingerprint(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class PkOrF_Fingerprint extends PkOrF {
+ const factory PkOrF_Fingerprint({required final String value}) =
+ _$PkOrF_FingerprintImpl;
+ const PkOrF_Fingerprint._() : super._();
+
+ @override
+ String get value;
+ @override
+ @JsonKey(ignore: true)
+ _$$PkOrF_FingerprintImplCopyWith<_$PkOrF_FingerprintImpl> get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+mixin _$RbfValue {
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function() rbfDefault,
+ required TResult Function(int field0) value,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function()? rbfDefault,
+ TResult? Function(int field0)? value,
+ }) =>
throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function()? rbfDefault,
+ TResult Function(int field0)? value,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(RbfValue_RbfDefault value) rbfDefault,
+ required TResult Function(RbfValue_Value value) value,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(RbfValue_RbfDefault value)? rbfDefault,
+ TResult? Function(RbfValue_Value value)? value,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(RbfValue_RbfDefault value)? rbfDefault,
+ TResult Function(RbfValue_Value value)? value,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class $RbfValueCopyWith<$Res> {
+ factory $RbfValueCopyWith(RbfValue value, $Res Function(RbfValue) then) =
+ _$RbfValueCopyWithImpl<$Res, RbfValue>;
+}
+
+/// @nodoc
+class _$RbfValueCopyWithImpl<$Res, $Val extends RbfValue>
+ implements $RbfValueCopyWith<$Res> {
+ _$RbfValueCopyWithImpl(this._value, this._then);
+
+ // ignore: unused_field
+ final $Val _value;
+ // ignore: unused_field
+ final $Res Function($Val) _then;
+}
+
+/// @nodoc
+abstract class _$$RbfValue_RbfDefaultImplCopyWith<$Res> {
+ factory _$$RbfValue_RbfDefaultImplCopyWith(_$RbfValue_RbfDefaultImpl value,
+ $Res Function(_$RbfValue_RbfDefaultImpl) then) =
+ __$$RbfValue_RbfDefaultImplCopyWithImpl<$Res>;
+}
+
+/// @nodoc
+class __$$RbfValue_RbfDefaultImplCopyWithImpl<$Res>
+ extends _$RbfValueCopyWithImpl<$Res, _$RbfValue_RbfDefaultImpl>
+ implements _$$RbfValue_RbfDefaultImplCopyWith<$Res> {
+ __$$RbfValue_RbfDefaultImplCopyWithImpl(_$RbfValue_RbfDefaultImpl _value,
+ $Res Function(_$RbfValue_RbfDefaultImpl) _then)
+ : super(_value, _then);
+}
+
+/// @nodoc
+
+class _$RbfValue_RbfDefaultImpl extends RbfValue_RbfDefault {
+ const _$RbfValue_RbfDefaultImpl() : super._();
+
+ @override
+ String toString() {
+ return 'RbfValue.rbfDefault()';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$RbfValue_RbfDefaultImpl);
+ }
+
+ @override
+ int get hashCode => runtimeType.hashCode;
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function() rbfDefault,
+ required TResult Function(int field0) value,
+ }) {
+ return rbfDefault();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function()? rbfDefault,
+ TResult? Function(int field0)? value,
+ }) {
+ return rbfDefault?.call();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function()? rbfDefault,
+ TResult Function(int field0)? value,
+ required TResult orElse(),
+ }) {
+ if (rbfDefault != null) {
+ return rbfDefault();
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(RbfValue_RbfDefault value) rbfDefault,
+ required TResult Function(RbfValue_Value value) value,
+ }) {
+ return rbfDefault(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(RbfValue_RbfDefault value)? rbfDefault,
+ TResult? Function(RbfValue_Value value)? value,
+ }) {
+ return rbfDefault?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(RbfValue_RbfDefault value)? rbfDefault,
+ TResult Function(RbfValue_Value value)? value,
+ required TResult orElse(),
+ }) {
+ if (rbfDefault != null) {
+ return rbfDefault(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class RbfValue_RbfDefault extends RbfValue {
+ const factory RbfValue_RbfDefault() = _$RbfValue_RbfDefaultImpl;
+ const RbfValue_RbfDefault._() : super._();
+}
+
+/// @nodoc
+abstract class _$$RbfValue_ValueImplCopyWith<$Res> {
+ factory _$$RbfValue_ValueImplCopyWith(_$RbfValue_ValueImpl value,
+ $Res Function(_$RbfValue_ValueImpl) then) =
+ __$$RbfValue_ValueImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({int field0});
+}
+
+/// @nodoc
+class __$$RbfValue_ValueImplCopyWithImpl<$Res>
+ extends _$RbfValueCopyWithImpl<$Res, _$RbfValue_ValueImpl>
+ implements _$$RbfValue_ValueImplCopyWith<$Res> {
+ __$$RbfValue_ValueImplCopyWithImpl(
+ _$RbfValue_ValueImpl _value, $Res Function(_$RbfValue_ValueImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? field0 = null,
+ }) {
+ return _then(_$RbfValue_ValueImpl(
+ null == field0
+ ? _value.field0
+ : field0 // ignore: cast_nullable_to_non_nullable
+ as int,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$RbfValue_ValueImpl extends RbfValue_Value {
+ const _$RbfValue_ValueImpl(this.field0) : super._();
+
+ @override
+ final int field0;
+
+ @override
+ String toString() {
+ return 'RbfValue.value(field0: $field0)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$RbfValue_ValueImpl &&
+ (identical(other.field0, field0) || other.field0 == field0));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, field0);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$RbfValue_ValueImplCopyWith<_$RbfValue_ValueImpl> get copyWith =>
+ __$$RbfValue_ValueImplCopyWithImpl<_$RbfValue_ValueImpl>(
+ this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function() rbfDefault,
+ required TResult Function(int field0) value,
+ }) {
+ return value(field0);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function()? rbfDefault,
+ TResult? Function(int field0)? value,
+ }) {
+ return value?.call(field0);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function()? rbfDefault,
+ TResult Function(int field0)? value,
+ required TResult orElse(),
+ }) {
+ if (value != null) {
+ return value(field0);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(RbfValue_RbfDefault value) rbfDefault,
+ required TResult Function(RbfValue_Value value) value,
+ }) {
+ return value(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(RbfValue_RbfDefault value)? rbfDefault,
+ TResult? Function(RbfValue_Value value)? value,
+ }) {
+ return value?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(RbfValue_RbfDefault value)? rbfDefault,
+ TResult Function(RbfValue_Value value)? value,
+ required TResult orElse(),
+ }) {
+ if (value != null) {
+ return value(this);
+ }
+ return orElse();
+ }
+}
+
+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)
+ _$$RbfValue_ValueImplCopyWith<_$RbfValue_ValueImpl> get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+mixin _$Satisfaction {
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partial,
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partialComplete,
+ required TResult Function(Condition condition) complete,
+ required TResult Function(String msg) none,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult? Function(Condition condition)? complete,
+ TResult? Function(String msg)? none,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult Function(Condition condition)? complete,
+ TResult Function(String msg)? none,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(Satisfaction_Partial value) partial,
+ required TResult Function(Satisfaction_PartialComplete value)
+ partialComplete,
+ required TResult Function(Satisfaction_Complete value) complete,
+ required TResult Function(Satisfaction_None value) none,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(Satisfaction_Partial value)? partial,
+ TResult? Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult? Function(Satisfaction_Complete value)? complete,
+ TResult? Function(Satisfaction_None value)? none,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(Satisfaction_Partial value)? partial,
+ TResult Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult Function(Satisfaction_Complete value)? complete,
+ TResult Function(Satisfaction_None value)? none,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class $SatisfactionCopyWith<$Res> {
+ factory $SatisfactionCopyWith(
+ Satisfaction value, $Res Function(Satisfaction) then) =
+ _$SatisfactionCopyWithImpl<$Res, Satisfaction>;
+}
+
+/// @nodoc
+class _$SatisfactionCopyWithImpl<$Res, $Val extends Satisfaction>
+ implements $SatisfactionCopyWith<$Res> {
+ _$SatisfactionCopyWithImpl(this._value, this._then);
+
+ // ignore: unused_field
+ final $Val _value;
+ // ignore: unused_field
+ final $Res Function($Val) _then;
+}
+
+/// @nodoc
+abstract class _$$Satisfaction_PartialImplCopyWith<$Res> {
+ factory _$$Satisfaction_PartialImplCopyWith(_$Satisfaction_PartialImpl value,
+ $Res Function(_$Satisfaction_PartialImpl) then) =
+ __$$Satisfaction_PartialImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call(
+ {BigInt n,
+ BigInt m,
+ Uint64List items,
+ bool? sorted,
+ Map> conditions});
+}
+
+/// @nodoc
+class __$$Satisfaction_PartialImplCopyWithImpl<$Res>
+ extends _$SatisfactionCopyWithImpl<$Res, _$Satisfaction_PartialImpl>
+ implements _$$Satisfaction_PartialImplCopyWith<$Res> {
+ __$$Satisfaction_PartialImplCopyWithImpl(_$Satisfaction_PartialImpl _value,
+ $Res Function(_$Satisfaction_PartialImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? n = null,
+ Object? m = null,
+ Object? items = null,
+ Object? sorted = freezed,
+ Object? conditions = null,
+ }) {
+ return _then(_$Satisfaction_PartialImpl(
+ n: null == n
+ ? _value.n
+ : n // ignore: cast_nullable_to_non_nullable
+ as BigInt,
+ m: null == m
+ ? _value.m
+ : m // ignore: cast_nullable_to_non_nullable
+ as BigInt,
+ items: null == items
+ ? _value.items
+ : items // ignore: cast_nullable_to_non_nullable
+ as Uint64List,
+ sorted: freezed == sorted
+ ? _value.sorted
+ : sorted // ignore: cast_nullable_to_non_nullable
+ as bool?,
+ conditions: null == conditions
+ ? _value._conditions
+ : conditions // ignore: cast_nullable_to_non_nullable
+ as Map>,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$Satisfaction_PartialImpl extends Satisfaction_Partial {
+ const _$Satisfaction_PartialImpl(
+ {required this.n,
+ required this.m,
+ required this.items,
+ this.sorted,
+ required final Map> conditions})
+ : _conditions = conditions,
+ super._();
+
+ @override
+ final BigInt n;
+ @override
+ final BigInt m;
+ @override
+ final Uint64List items;
+ @override
+ final bool? sorted;
+ final Map> _conditions;
+ @override
+ Map> get conditions {
+ if (_conditions is EqualUnmodifiableMapView) return _conditions;
+ // ignore: implicit_dynamic_type
+ return EqualUnmodifiableMapView(_conditions);
+ }
+
+ @override
+ String toString() {
+ return 'Satisfaction.partial(n: $n, m: $m, items: $items, sorted: $sorted, conditions: $conditions)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$Satisfaction_PartialImpl &&
+ (identical(other.n, n) || other.n == n) &&
+ (identical(other.m, m) || other.m == m) &&
+ const DeepCollectionEquality().equals(other.items, items) &&
+ (identical(other.sorted, sorted) || other.sorted == sorted) &&
+ const DeepCollectionEquality()
+ .equals(other._conditions, _conditions));
+ }
+
+ @override
+ int get hashCode => Object.hash(
+ runtimeType,
+ n,
+ m,
+ const DeepCollectionEquality().hash(items),
+ sorted,
+ const DeepCollectionEquality().hash(_conditions));
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$Satisfaction_PartialImplCopyWith<_$Satisfaction_PartialImpl>
+ get copyWith =>
+ __$$Satisfaction_PartialImplCopyWithImpl<_$Satisfaction_PartialImpl>(
+ this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partial,
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partialComplete,
+ required TResult Function(Condition condition) complete,
+ required TResult Function(String msg) none,
+ }) {
+ return partial(n, m, items, sorted, conditions);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult? Function(Condition condition)? complete,
+ TResult? Function(String msg)? none,
+ }) {
+ return partial?.call(n, m, items, sorted, conditions);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult Function(Condition condition)? complete,
+ TResult Function(String msg)? none,
+ required TResult orElse(),
+ }) {
+ if (partial != null) {
+ return partial(n, m, items, sorted, conditions);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(Satisfaction_Partial value) partial,
+ required TResult Function(Satisfaction_PartialComplete value)
+ partialComplete,
+ required TResult Function(Satisfaction_Complete value) complete,
+ required TResult Function(Satisfaction_None value) none,
+ }) {
+ return partial(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(Satisfaction_Partial value)? partial,
+ TResult? Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult? Function(Satisfaction_Complete value)? complete,
+ TResult? Function(Satisfaction_None value)? none,
+ }) {
+ return partial?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(Satisfaction_Partial value)? partial,
+ TResult Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult Function(Satisfaction_Complete value)? complete,
+ TResult Function(Satisfaction_None value)? none,
+ required TResult orElse(),
+ }) {
+ if (partial != null) {
+ return partial(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class Satisfaction_Partial extends Satisfaction {
+ const factory Satisfaction_Partial(
+ {required final BigInt n,
+ required final BigInt m,
+ required final Uint64List items,
+ final bool? sorted,
+ required final Map> conditions}) =
+ _$Satisfaction_PartialImpl;
+ const Satisfaction_Partial._() : super._();
+
+ BigInt get n;
+ BigInt get m;
+ Uint64List get items;
+ bool? get sorted;
+ Map> get conditions;
+ @JsonKey(ignore: true)
+ _$$Satisfaction_PartialImplCopyWith<_$Satisfaction_PartialImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$Satisfaction_PartialCompleteImplCopyWith<$Res> {
+ factory _$$Satisfaction_PartialCompleteImplCopyWith(
+ _$Satisfaction_PartialCompleteImpl value,
+ $Res Function(_$Satisfaction_PartialCompleteImpl) then) =
+ __$$Satisfaction_PartialCompleteImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call(
+ {BigInt n,
+ BigInt m,
+ Uint64List items,
+ bool? sorted,
+ Map> conditions});
+}
+
+/// @nodoc
+class __$$Satisfaction_PartialCompleteImplCopyWithImpl<$Res>
+ extends _$SatisfactionCopyWithImpl<$Res, _$Satisfaction_PartialCompleteImpl>
+ implements _$$Satisfaction_PartialCompleteImplCopyWith<$Res> {
+ __$$Satisfaction_PartialCompleteImplCopyWithImpl(
+ _$Satisfaction_PartialCompleteImpl _value,
+ $Res Function(_$Satisfaction_PartialCompleteImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? n = null,
+ Object? m = null,
+ Object? items = null,
+ Object? sorted = freezed,
+ Object? conditions = null,
+ }) {
+ return _then(_$Satisfaction_PartialCompleteImpl(
+ n: null == n
+ ? _value.n
+ : n // ignore: cast_nullable_to_non_nullable
+ as BigInt,
+ m: null == m
+ ? _value.m
+ : m // ignore: cast_nullable_to_non_nullable
+ as BigInt,
+ items: null == items
+ ? _value.items
+ : items // ignore: cast_nullable_to_non_nullable
+ as Uint64List,
+ sorted: freezed == sorted
+ ? _value.sorted
+ : sorted // ignore: cast_nullable_to_non_nullable
+ as bool?,
+ conditions: null == conditions
+ ? _value._conditions
+ : conditions // ignore: cast_nullable_to_non_nullable
+ as Map>,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$Satisfaction_PartialCompleteImpl extends Satisfaction_PartialComplete {
+ const _$Satisfaction_PartialCompleteImpl(
+ {required this.n,
+ required this.m,
+ required this.items,
+ this.sorted,
+ required final Map> conditions})
+ : _conditions = conditions,
+ super._();
+
+ @override
+ final BigInt n;
+ @override
+ final BigInt m;
+ @override
+ final Uint64List items;
+ @override
+ final bool? sorted;
+ final Map> _conditions;
+ @override
+ Map> get conditions {
+ if (_conditions is EqualUnmodifiableMapView) return _conditions;
+ // ignore: implicit_dynamic_type
+ return EqualUnmodifiableMapView(_conditions);
+ }
+
+ @override
+ String toString() {
+ return 'Satisfaction.partialComplete(n: $n, m: $m, items: $items, sorted: $sorted, conditions: $conditions)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$Satisfaction_PartialCompleteImpl &&
+ (identical(other.n, n) || other.n == n) &&
+ (identical(other.m, m) || other.m == m) &&
+ const DeepCollectionEquality().equals(other.items, items) &&
+ (identical(other.sorted, sorted) || other.sorted == sorted) &&
+ const DeepCollectionEquality()
+ .equals(other._conditions, _conditions));
+ }
+
+ @override
+ int get hashCode => Object.hash(
+ runtimeType,
+ n,
+ m,
+ const DeepCollectionEquality().hash(items),
+ sorted,
+ const DeepCollectionEquality().hash(_conditions));
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$Satisfaction_PartialCompleteImplCopyWith<
+ _$Satisfaction_PartialCompleteImpl>
+ get copyWith => __$$Satisfaction_PartialCompleteImplCopyWithImpl<
+ _$Satisfaction_PartialCompleteImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partial,
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partialComplete,
+ required TResult Function(Condition condition) complete,
+ required TResult Function(String msg) none,
+ }) {
+ return partialComplete(n, m, items, sorted, conditions);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult? Function(Condition condition)? complete,
+ TResult? Function(String msg)? none,
+ }) {
+ return partialComplete?.call(n, m, items, sorted, conditions);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult Function(Condition condition)? complete,
+ TResult Function(String msg)? none,
+ required TResult orElse(),
+ }) {
+ if (partialComplete != null) {
+ return partialComplete(n, m, items, sorted, conditions);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(Satisfaction_Partial value) partial,
+ required TResult Function(Satisfaction_PartialComplete value)
+ partialComplete,
+ required TResult Function(Satisfaction_Complete value) complete,
+ required TResult Function(Satisfaction_None value) none,
+ }) {
+ return partialComplete(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(Satisfaction_Partial value)? partial,
+ TResult? Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult? Function(Satisfaction_Complete value)? complete,
+ TResult? Function(Satisfaction_None value)? none,
+ }) {
+ return partialComplete?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(Satisfaction_Partial value)? partial,
+ TResult Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult Function(Satisfaction_Complete value)? complete,
+ TResult Function(Satisfaction_None value)? none,
+ required TResult orElse(),
+ }) {
+ if (partialComplete != null) {
+ return partialComplete(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class Satisfaction_PartialComplete extends Satisfaction {
+ const factory Satisfaction_PartialComplete(
+ {required final BigInt n,
+ required final BigInt m,
+ required final Uint64List items,
+ final bool? sorted,
+ required final Map> conditions}) =
+ _$Satisfaction_PartialCompleteImpl;
+ const Satisfaction_PartialComplete._() : super._();
+
+ BigInt get n;
+ BigInt get m;
+ Uint64List get items;
+ bool? get sorted;
+ Map> get conditions;
+ @JsonKey(ignore: true)
+ _$$Satisfaction_PartialCompleteImplCopyWith<
+ _$Satisfaction_PartialCompleteImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$Satisfaction_CompleteImplCopyWith<$Res> {
+ factory _$$Satisfaction_CompleteImplCopyWith(
+ _$Satisfaction_CompleteImpl value,
+ $Res Function(_$Satisfaction_CompleteImpl) then) =
+ __$$Satisfaction_CompleteImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({Condition condition});
+}
+
+/// @nodoc
+class __$$Satisfaction_CompleteImplCopyWithImpl<$Res>
+ extends _$SatisfactionCopyWithImpl<$Res, _$Satisfaction_CompleteImpl>
+ implements _$$Satisfaction_CompleteImplCopyWith<$Res> {
+ __$$Satisfaction_CompleteImplCopyWithImpl(_$Satisfaction_CompleteImpl _value,
+ $Res Function(_$Satisfaction_CompleteImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? condition = null,
+ }) {
+ return _then(_$Satisfaction_CompleteImpl(
+ condition: null == condition
+ ? _value.condition
+ : condition // ignore: cast_nullable_to_non_nullable
+ as Condition,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$Satisfaction_CompleteImpl extends Satisfaction_Complete {
+ const _$Satisfaction_CompleteImpl({required this.condition}) : super._();
+
+ @override
+ final Condition condition;
+
+ @override
+ String toString() {
+ return 'Satisfaction.complete(condition: $condition)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$Satisfaction_CompleteImpl &&
+ (identical(other.condition, condition) ||
+ other.condition == condition));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, condition);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$Satisfaction_CompleteImplCopyWith<_$Satisfaction_CompleteImpl>
+ get copyWith => __$$Satisfaction_CompleteImplCopyWithImpl<
+ _$Satisfaction_CompleteImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partial,
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partialComplete,
+ required TResult Function(Condition condition) complete,
+ required TResult Function(String msg) none,
+ }) {
+ return complete(condition);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult? Function(Condition condition)? complete,
+ TResult? Function(String msg)? none,
+ }) {
+ return complete?.call(condition);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult Function(Condition condition)? complete,
+ TResult Function(String msg)? none,
+ required TResult orElse(),
+ }) {
+ if (complete != null) {
+ return complete(condition);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(Satisfaction_Partial value) partial,
+ required TResult Function(Satisfaction_PartialComplete value)
+ partialComplete,
+ required TResult Function(Satisfaction_Complete value) complete,
+ required TResult Function(Satisfaction_None value) none,
+ }) {
+ return complete(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(Satisfaction_Partial value)? partial,
+ TResult? Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult? Function(Satisfaction_Complete value)? complete,
+ TResult? Function(Satisfaction_None value)? none,
+ }) {
+ return complete?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(Satisfaction_Partial value)? partial,
+ TResult Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult Function(Satisfaction_Complete value)? complete,
+ TResult Function(Satisfaction_None value)? none,
+ required TResult orElse(),
+ }) {
+ if (complete != null) {
+ return complete(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class Satisfaction_Complete extends Satisfaction {
+ const factory Satisfaction_Complete({required final Condition condition}) =
+ _$Satisfaction_CompleteImpl;
+ const Satisfaction_Complete._() : super._();
+
+ Condition get condition;
+ @JsonKey(ignore: true)
+ _$$Satisfaction_CompleteImplCopyWith<_$Satisfaction_CompleteImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$Satisfaction_NoneImplCopyWith<$Res> {
+ factory _$$Satisfaction_NoneImplCopyWith(_$Satisfaction_NoneImpl value,
+ $Res Function(_$Satisfaction_NoneImpl) then) =
+ __$$Satisfaction_NoneImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({String msg});
+}
+
+/// @nodoc
+class __$$Satisfaction_NoneImplCopyWithImpl<$Res>
+ extends _$SatisfactionCopyWithImpl<$Res, _$Satisfaction_NoneImpl>
+ implements _$$Satisfaction_NoneImplCopyWith<$Res> {
+ __$$Satisfaction_NoneImplCopyWithImpl(_$Satisfaction_NoneImpl _value,
+ $Res Function(_$Satisfaction_NoneImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? msg = null,
+ }) {
+ return _then(_$Satisfaction_NoneImpl(
+ msg: null == msg
+ ? _value.msg
+ : msg // ignore: cast_nullable_to_non_nullable
+ as String,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$Satisfaction_NoneImpl extends Satisfaction_None {
+ const _$Satisfaction_NoneImpl({required this.msg}) : super._();
+
+ @override
+ final String msg;
+
+ @override
+ String toString() {
+ return 'Satisfaction.none(msg: $msg)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$Satisfaction_NoneImpl &&
+ (identical(other.msg, msg) || other.msg == msg));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, msg);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$Satisfaction_NoneImplCopyWith<_$Satisfaction_NoneImpl> get copyWith =>
+ __$$Satisfaction_NoneImplCopyWithImpl<_$Satisfaction_NoneImpl>(
+ this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partial,
+ required TResult Function(BigInt n, BigInt m, Uint64List items,
+ bool? sorted, Map> conditions)
+ partialComplete,
+ required TResult Function(Condition condition) complete,
+ required TResult Function(String msg) none,
+ }) {
+ return none(msg);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult? Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult? Function(Condition condition)? complete,
+ TResult? Function(String msg)? none,
+ }) {
+ return none?.call(msg);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partial,
+ TResult Function(BigInt n, BigInt m, Uint64List items, bool? sorted,
+ Map> conditions)?
+ partialComplete,
+ TResult Function(Condition condition)? complete,
+ TResult Function(String msg)? none,
+ required TResult orElse(),
+ }) {
+ if (none != null) {
+ return none(msg);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(Satisfaction_Partial value) partial,
+ required TResult Function(Satisfaction_PartialComplete value)
+ partialComplete,
+ required TResult Function(Satisfaction_Complete value) complete,
+ required TResult Function(Satisfaction_None value) none,
+ }) {
+ return none(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(Satisfaction_Partial value)? partial,
+ TResult? Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult? Function(Satisfaction_Complete value)? complete,
+ TResult? Function(Satisfaction_None value)? none,
+ }) {
+ return none?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(Satisfaction_Partial value)? partial,
+ TResult Function(Satisfaction_PartialComplete value)? partialComplete,
+ TResult Function(Satisfaction_Complete value)? complete,
+ TResult Function(Satisfaction_None value)? none,
+ required TResult orElse(),
+ }) {
+ if (none != null) {
+ return none(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class Satisfaction_None extends Satisfaction {
+ const factory Satisfaction_None({required final String msg}) =
+ _$Satisfaction_NoneImpl;
+ const Satisfaction_None._() : super._();
+
+ String get msg;
+ @JsonKey(ignore: true)
+ _$$Satisfaction_NoneImplCopyWith<_$Satisfaction_NoneImpl> get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+mixin _$SatisfiableItem {
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class $SatisfiableItemCopyWith<$Res> {
+ factory $SatisfiableItemCopyWith(
+ SatisfiableItem value, $Res Function(SatisfiableItem) then) =
+ _$SatisfiableItemCopyWithImpl<$Res, SatisfiableItem>;
+}
+
+/// @nodoc
+class _$SatisfiableItemCopyWithImpl<$Res, $Val extends SatisfiableItem>
+ implements $SatisfiableItemCopyWith<$Res> {
+ _$SatisfiableItemCopyWithImpl(this._value, this._then);
+
+ // ignore: unused_field
+ final $Val _value;
+ // ignore: unused_field
+ final $Res Function($Val) _then;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_EcdsaSignatureImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_EcdsaSignatureImplCopyWith(
+ _$SatisfiableItem_EcdsaSignatureImpl value,
+ $Res Function(_$SatisfiableItem_EcdsaSignatureImpl) then) =
+ __$$SatisfiableItem_EcdsaSignatureImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({PkOrF key});
+
+ $PkOrFCopyWith<$Res> get key;
+}
+
+/// @nodoc
+class __$$SatisfiableItem_EcdsaSignatureImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_EcdsaSignatureImpl>
+ implements _$$SatisfiableItem_EcdsaSignatureImplCopyWith<$Res> {
+ __$$SatisfiableItem_EcdsaSignatureImplCopyWithImpl(
+ _$SatisfiableItem_EcdsaSignatureImpl _value,
+ $Res Function(_$SatisfiableItem_EcdsaSignatureImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? key = null,
+ }) {
+ return _then(_$SatisfiableItem_EcdsaSignatureImpl(
+ key: null == key
+ ? _value.key
+ : key // ignore: cast_nullable_to_non_nullable
+ as PkOrF,
+ ));
+ }
+
+ @override
+ @pragma('vm:prefer-inline')
+ $PkOrFCopyWith<$Res> get key {
+ return $PkOrFCopyWith<$Res>(_value.key, (value) {
+ return _then(_value.copyWith(key: value));
+ });
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_EcdsaSignatureImpl
+ extends SatisfiableItem_EcdsaSignature {
+ const _$SatisfiableItem_EcdsaSignatureImpl({required this.key}) : super._();
+
+ @override
+ final PkOrF key;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.ecdsaSignature(key: $key)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_EcdsaSignatureImpl &&
+ (identical(other.key, key) || other.key == key));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, key);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_EcdsaSignatureImplCopyWith<
+ _$SatisfiableItem_EcdsaSignatureImpl>
+ get copyWith => __$$SatisfiableItem_EcdsaSignatureImplCopyWithImpl<
+ _$SatisfiableItem_EcdsaSignatureImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return ecdsaSignature(key);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return ecdsaSignature?.call(key);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (ecdsaSignature != null) {
+ return ecdsaSignature(key);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return ecdsaSignature(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return ecdsaSignature?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (ecdsaSignature != null) {
+ return ecdsaSignature(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_EcdsaSignature extends SatisfiableItem {
+ const factory SatisfiableItem_EcdsaSignature({required final PkOrF key}) =
+ _$SatisfiableItem_EcdsaSignatureImpl;
+ const SatisfiableItem_EcdsaSignature._() : super._();
+
+ PkOrF get key;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_EcdsaSignatureImplCopyWith<
+ _$SatisfiableItem_EcdsaSignatureImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_SchnorrSignatureImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_SchnorrSignatureImplCopyWith(
+ _$SatisfiableItem_SchnorrSignatureImpl value,
+ $Res Function(_$SatisfiableItem_SchnorrSignatureImpl) then) =
+ __$$SatisfiableItem_SchnorrSignatureImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({PkOrF key});
+
+ $PkOrFCopyWith<$Res> get key;
+}
+
+/// @nodoc
+class __$$SatisfiableItem_SchnorrSignatureImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_SchnorrSignatureImpl>
+ implements _$$SatisfiableItem_SchnorrSignatureImplCopyWith<$Res> {
+ __$$SatisfiableItem_SchnorrSignatureImplCopyWithImpl(
+ _$SatisfiableItem_SchnorrSignatureImpl _value,
+ $Res Function(_$SatisfiableItem_SchnorrSignatureImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? key = null,
+ }) {
+ return _then(_$SatisfiableItem_SchnorrSignatureImpl(
+ key: null == key
+ ? _value.key
+ : key // ignore: cast_nullable_to_non_nullable
+ as PkOrF,
+ ));
+ }
+
+ @override
+ @pragma('vm:prefer-inline')
+ $PkOrFCopyWith<$Res> get key {
+ return $PkOrFCopyWith<$Res>(_value.key, (value) {
+ return _then(_value.copyWith(key: value));
+ });
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_SchnorrSignatureImpl
+ extends SatisfiableItem_SchnorrSignature {
+ const _$SatisfiableItem_SchnorrSignatureImpl({required this.key}) : super._();
+
+ @override
+ final PkOrF key;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.schnorrSignature(key: $key)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_SchnorrSignatureImpl &&
+ (identical(other.key, key) || other.key == key));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, key);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_SchnorrSignatureImplCopyWith<
+ _$SatisfiableItem_SchnorrSignatureImpl>
+ get copyWith => __$$SatisfiableItem_SchnorrSignatureImplCopyWithImpl<
+ _$SatisfiableItem_SchnorrSignatureImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return schnorrSignature(key);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return schnorrSignature?.call(key);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (schnorrSignature != null) {
+ return schnorrSignature(key);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return schnorrSignature(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return schnorrSignature?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (schnorrSignature != null) {
+ return schnorrSignature(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_SchnorrSignature extends SatisfiableItem {
+ const factory SatisfiableItem_SchnorrSignature({required final PkOrF key}) =
+ _$SatisfiableItem_SchnorrSignatureImpl;
+ const SatisfiableItem_SchnorrSignature._() : super._();
+
+ PkOrF get key;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_SchnorrSignatureImplCopyWith<
+ _$SatisfiableItem_SchnorrSignatureImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_Sha256PreimageImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_Sha256PreimageImplCopyWith(
+ _$SatisfiableItem_Sha256PreimageImpl value,
+ $Res Function(_$SatisfiableItem_Sha256PreimageImpl) then) =
+ __$$SatisfiableItem_Sha256PreimageImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({String hash});
+}
+
+/// @nodoc
+class __$$SatisfiableItem_Sha256PreimageImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_Sha256PreimageImpl>
+ implements _$$SatisfiableItem_Sha256PreimageImplCopyWith<$Res> {
+ __$$SatisfiableItem_Sha256PreimageImplCopyWithImpl(
+ _$SatisfiableItem_Sha256PreimageImpl _value,
+ $Res Function(_$SatisfiableItem_Sha256PreimageImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? hash = null,
+ }) {
+ return _then(_$SatisfiableItem_Sha256PreimageImpl(
+ hash: null == hash
+ ? _value.hash
+ : hash // ignore: cast_nullable_to_non_nullable
+ as String,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_Sha256PreimageImpl
+ extends SatisfiableItem_Sha256Preimage {
+ const _$SatisfiableItem_Sha256PreimageImpl({required this.hash}) : super._();
+
+ @override
+ final String hash;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.sha256Preimage(hash: $hash)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_Sha256PreimageImpl &&
+ (identical(other.hash, hash) || other.hash == hash));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, hash);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_Sha256PreimageImplCopyWith<
+ _$SatisfiableItem_Sha256PreimageImpl>
+ get copyWith => __$$SatisfiableItem_Sha256PreimageImplCopyWithImpl<
+ _$SatisfiableItem_Sha256PreimageImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return sha256Preimage(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return sha256Preimage?.call(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (sha256Preimage != null) {
+ return sha256Preimage(hash);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return sha256Preimage(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return sha256Preimage?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (sha256Preimage != null) {
+ return sha256Preimage(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_Sha256Preimage extends SatisfiableItem {
+ const factory SatisfiableItem_Sha256Preimage({required final String hash}) =
+ _$SatisfiableItem_Sha256PreimageImpl;
+ const SatisfiableItem_Sha256Preimage._() : super._();
+
+ String get hash;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_Sha256PreimageImplCopyWith<
+ _$SatisfiableItem_Sha256PreimageImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_Hash256PreimageImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_Hash256PreimageImplCopyWith(
+ _$SatisfiableItem_Hash256PreimageImpl value,
+ $Res Function(_$SatisfiableItem_Hash256PreimageImpl) then) =
+ __$$SatisfiableItem_Hash256PreimageImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({String hash});
+}
+
+/// @nodoc
+class __$$SatisfiableItem_Hash256PreimageImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_Hash256PreimageImpl>
+ implements _$$SatisfiableItem_Hash256PreimageImplCopyWith<$Res> {
+ __$$SatisfiableItem_Hash256PreimageImplCopyWithImpl(
+ _$SatisfiableItem_Hash256PreimageImpl _value,
+ $Res Function(_$SatisfiableItem_Hash256PreimageImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? hash = null,
+ }) {
+ return _then(_$SatisfiableItem_Hash256PreimageImpl(
+ hash: null == hash
+ ? _value.hash
+ : hash // ignore: cast_nullable_to_non_nullable
+ as String,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_Hash256PreimageImpl
+ extends SatisfiableItem_Hash256Preimage {
+ const _$SatisfiableItem_Hash256PreimageImpl({required this.hash}) : super._();
+
+ @override
+ final String hash;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.hash256Preimage(hash: $hash)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_Hash256PreimageImpl &&
+ (identical(other.hash, hash) || other.hash == hash));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, hash);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_Hash256PreimageImplCopyWith<
+ _$SatisfiableItem_Hash256PreimageImpl>
+ get copyWith => __$$SatisfiableItem_Hash256PreimageImplCopyWithImpl<
+ _$SatisfiableItem_Hash256PreimageImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return hash256Preimage(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return hash256Preimage?.call(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (hash256Preimage != null) {
+ return hash256Preimage(hash);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return hash256Preimage(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return hash256Preimage?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (hash256Preimage != null) {
+ return hash256Preimage(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_Hash256Preimage extends SatisfiableItem {
+ const factory SatisfiableItem_Hash256Preimage({required final String hash}) =
+ _$SatisfiableItem_Hash256PreimageImpl;
+ const SatisfiableItem_Hash256Preimage._() : super._();
+
+ String get hash;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_Hash256PreimageImplCopyWith<
+ _$SatisfiableItem_Hash256PreimageImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_Ripemd160PreimageImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_Ripemd160PreimageImplCopyWith(
+ _$SatisfiableItem_Ripemd160PreimageImpl value,
+ $Res Function(_$SatisfiableItem_Ripemd160PreimageImpl) then) =
+ __$$SatisfiableItem_Ripemd160PreimageImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({String hash});
+}
+
+/// @nodoc
+class __$$SatisfiableItem_Ripemd160PreimageImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_Ripemd160PreimageImpl>
+ implements _$$SatisfiableItem_Ripemd160PreimageImplCopyWith<$Res> {
+ __$$SatisfiableItem_Ripemd160PreimageImplCopyWithImpl(
+ _$SatisfiableItem_Ripemd160PreimageImpl _value,
+ $Res Function(_$SatisfiableItem_Ripemd160PreimageImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? hash = null,
+ }) {
+ return _then(_$SatisfiableItem_Ripemd160PreimageImpl(
+ hash: null == hash
+ ? _value.hash
+ : hash // ignore: cast_nullable_to_non_nullable
+ as String,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_Ripemd160PreimageImpl
+ extends SatisfiableItem_Ripemd160Preimage {
+ const _$SatisfiableItem_Ripemd160PreimageImpl({required this.hash})
+ : super._();
+
+ @override
+ final String hash;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.ripemd160Preimage(hash: $hash)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_Ripemd160PreimageImpl &&
+ (identical(other.hash, hash) || other.hash == hash));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, hash);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_Ripemd160PreimageImplCopyWith<
+ _$SatisfiableItem_Ripemd160PreimageImpl>
+ get copyWith => __$$SatisfiableItem_Ripemd160PreimageImplCopyWithImpl<
+ _$SatisfiableItem_Ripemd160PreimageImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return ripemd160Preimage(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return ripemd160Preimage?.call(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (ripemd160Preimage != null) {
+ return ripemd160Preimage(hash);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return ripemd160Preimage(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return ripemd160Preimage?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (ripemd160Preimage != null) {
+ return ripemd160Preimage(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_Ripemd160Preimage extends SatisfiableItem {
+ const factory SatisfiableItem_Ripemd160Preimage(
+ {required final String hash}) = _$SatisfiableItem_Ripemd160PreimageImpl;
+ const SatisfiableItem_Ripemd160Preimage._() : super._();
+
+ String get hash;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_Ripemd160PreimageImplCopyWith<
+ _$SatisfiableItem_Ripemd160PreimageImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_Hash160PreimageImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_Hash160PreimageImplCopyWith(
+ _$SatisfiableItem_Hash160PreimageImpl value,
+ $Res Function(_$SatisfiableItem_Hash160PreimageImpl) then) =
+ __$$SatisfiableItem_Hash160PreimageImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({String hash});
+}
+
+/// @nodoc
+class __$$SatisfiableItem_Hash160PreimageImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_Hash160PreimageImpl>
+ implements _$$SatisfiableItem_Hash160PreimageImplCopyWith<$Res> {
+ __$$SatisfiableItem_Hash160PreimageImplCopyWithImpl(
+ _$SatisfiableItem_Hash160PreimageImpl _value,
+ $Res Function(_$SatisfiableItem_Hash160PreimageImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? hash = null,
+ }) {
+ return _then(_$SatisfiableItem_Hash160PreimageImpl(
+ hash: null == hash
+ ? _value.hash
+ : hash // ignore: cast_nullable_to_non_nullable
+ as String,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_Hash160PreimageImpl
+ extends SatisfiableItem_Hash160Preimage {
+ const _$SatisfiableItem_Hash160PreimageImpl({required this.hash}) : super._();
+
+ @override
+ final String hash;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.hash160Preimage(hash: $hash)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_Hash160PreimageImpl &&
+ (identical(other.hash, hash) || other.hash == hash));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, hash);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_Hash160PreimageImplCopyWith<
+ _$SatisfiableItem_Hash160PreimageImpl>
+ get copyWith => __$$SatisfiableItem_Hash160PreimageImplCopyWithImpl<
+ _$SatisfiableItem_Hash160PreimageImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return hash160Preimage(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return hash160Preimage?.call(hash);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (hash160Preimage != null) {
+ return hash160Preimage(hash);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return hash160Preimage(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return hash160Preimage?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (hash160Preimage != null) {
+ return hash160Preimage(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_Hash160Preimage extends SatisfiableItem {
+ const factory SatisfiableItem_Hash160Preimage({required final String hash}) =
+ _$SatisfiableItem_Hash160PreimageImpl;
+ const SatisfiableItem_Hash160Preimage._() : super._();
+
+ String get hash;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_Hash160PreimageImplCopyWith<
+ _$SatisfiableItem_Hash160PreimageImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_AbsoluteTimelockImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_AbsoluteTimelockImplCopyWith(
+ _$SatisfiableItem_AbsoluteTimelockImpl value,
+ $Res Function(_$SatisfiableItem_AbsoluteTimelockImpl) then) =
+ __$$SatisfiableItem_AbsoluteTimelockImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({LockTime value});
+
+ $LockTimeCopyWith<$Res> get value;
+}
+
+/// @nodoc
+class __$$SatisfiableItem_AbsoluteTimelockImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_AbsoluteTimelockImpl>
+ implements _$$SatisfiableItem_AbsoluteTimelockImplCopyWith<$Res> {
+ __$$SatisfiableItem_AbsoluteTimelockImplCopyWithImpl(
+ _$SatisfiableItem_AbsoluteTimelockImpl _value,
+ $Res Function(_$SatisfiableItem_AbsoluteTimelockImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? value = null,
+ }) {
+ return _then(_$SatisfiableItem_AbsoluteTimelockImpl(
+ value: null == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as LockTime,
+ ));
+ }
+
+ @override
+ @pragma('vm:prefer-inline')
+ $LockTimeCopyWith<$Res> get value {
+ return $LockTimeCopyWith<$Res>(_value.value, (value) {
+ return _then(_value.copyWith(value: value));
+ });
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_AbsoluteTimelockImpl
+ extends SatisfiableItem_AbsoluteTimelock {
+ const _$SatisfiableItem_AbsoluteTimelockImpl({required this.value})
+ : super._();
+
+ @override
+ final LockTime value;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.absoluteTimelock(value: $value)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_AbsoluteTimelockImpl &&
+ (identical(other.value, value) || other.value == value));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, value);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_AbsoluteTimelockImplCopyWith<
+ _$SatisfiableItem_AbsoluteTimelockImpl>
+ get copyWith => __$$SatisfiableItem_AbsoluteTimelockImplCopyWithImpl<
+ _$SatisfiableItem_AbsoluteTimelockImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return absoluteTimelock(value);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return absoluteTimelock?.call(value);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (absoluteTimelock != null) {
+ return absoluteTimelock(value);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return absoluteTimelock(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return absoluteTimelock?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (absoluteTimelock != null) {
+ return absoluteTimelock(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_AbsoluteTimelock extends SatisfiableItem {
+ const factory SatisfiableItem_AbsoluteTimelock(
+ {required final LockTime value}) = _$SatisfiableItem_AbsoluteTimelockImpl;
+ const SatisfiableItem_AbsoluteTimelock._() : super._();
+
+ LockTime get value;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_AbsoluteTimelockImplCopyWith<
+ _$SatisfiableItem_AbsoluteTimelockImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_RelativeTimelockImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_RelativeTimelockImplCopyWith(
+ _$SatisfiableItem_RelativeTimelockImpl value,
+ $Res Function(_$SatisfiableItem_RelativeTimelockImpl) then) =
+ __$$SatisfiableItem_RelativeTimelockImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({int value});
+}
+
+/// @nodoc
+class __$$SatisfiableItem_RelativeTimelockImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res,
+ _$SatisfiableItem_RelativeTimelockImpl>
+ implements _$$SatisfiableItem_RelativeTimelockImplCopyWith<$Res> {
+ __$$SatisfiableItem_RelativeTimelockImplCopyWithImpl(
+ _$SatisfiableItem_RelativeTimelockImpl _value,
+ $Res Function(_$SatisfiableItem_RelativeTimelockImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? value = null,
+ }) {
+ return _then(_$SatisfiableItem_RelativeTimelockImpl(
+ value: null == value
+ ? _value.value
+ : value // ignore: cast_nullable_to_non_nullable
+ as int,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_RelativeTimelockImpl
+ extends SatisfiableItem_RelativeTimelock {
+ const _$SatisfiableItem_RelativeTimelockImpl({required this.value})
+ : super._();
+
+ @override
+ final int value;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.relativeTimelock(value: $value)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_RelativeTimelockImpl &&
+ (identical(other.value, value) || other.value == value));
+ }
+
+ @override
+ int get hashCode => Object.hash(runtimeType, value);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_RelativeTimelockImplCopyWith<
+ _$SatisfiableItem_RelativeTimelockImpl>
+ get copyWith => __$$SatisfiableItem_RelativeTimelockImplCopyWithImpl<
+ _$SatisfiableItem_RelativeTimelockImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return relativeTimelock(value);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return relativeTimelock?.call(value);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (relativeTimelock != null) {
+ return relativeTimelock(value);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return relativeTimelock(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return relativeTimelock?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (relativeTimelock != null) {
+ return relativeTimelock(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_RelativeTimelock extends SatisfiableItem {
+ const factory SatisfiableItem_RelativeTimelock({required final int value}) =
+ _$SatisfiableItem_RelativeTimelockImpl;
+ const SatisfiableItem_RelativeTimelock._() : super._();
+
+ int get value;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_RelativeTimelockImplCopyWith<
+ _$SatisfiableItem_RelativeTimelockImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_MultisigImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_MultisigImplCopyWith(
+ _$SatisfiableItem_MultisigImpl value,
+ $Res Function(_$SatisfiableItem_MultisigImpl) then) =
+ __$$SatisfiableItem_MultisigImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({List keys, BigInt threshold});
+}
+
+/// @nodoc
+class __$$SatisfiableItem_MultisigImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res, _$SatisfiableItem_MultisigImpl>
+ implements _$$SatisfiableItem_MultisigImplCopyWith<$Res> {
+ __$$SatisfiableItem_MultisigImplCopyWithImpl(
+ _$SatisfiableItem_MultisigImpl _value,
+ $Res Function(_$SatisfiableItem_MultisigImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? keys = null,
+ Object? threshold = null,
+ }) {
+ return _then(_$SatisfiableItem_MultisigImpl(
+ keys: null == keys
+ ? _value._keys
+ : keys // ignore: cast_nullable_to_non_nullable
+ as List,
+ threshold: null == threshold
+ ? _value.threshold
+ : threshold // ignore: cast_nullable_to_non_nullable
+ as BigInt,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_MultisigImpl extends SatisfiableItem_Multisig {
+ const _$SatisfiableItem_MultisigImpl(
+ {required final List keys, required this.threshold})
+ : _keys = keys,
+ super._();
+
+ final List _keys;
+ @override
+ List get keys {
+ if (_keys is EqualUnmodifiableListView) return _keys;
+ // ignore: implicit_dynamic_type
+ return EqualUnmodifiableListView(_keys);
+ }
+
+ @override
+ final BigInt threshold;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.multisig(keys: $keys, threshold: $threshold)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_MultisigImpl &&
+ const DeepCollectionEquality().equals(other._keys, _keys) &&
+ (identical(other.threshold, threshold) ||
+ other.threshold == threshold));
+ }
+
+ @override
+ int get hashCode => Object.hash(
+ runtimeType, const DeepCollectionEquality().hash(_keys), threshold);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_MultisigImplCopyWith<_$SatisfiableItem_MultisigImpl>
+ get copyWith => __$$SatisfiableItem_MultisigImplCopyWithImpl<
+ _$SatisfiableItem_MultisigImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List keys, BigInt threshold) multisig,
+ required TResult Function(List items, BigInt threshold) thresh,
+ }) {
+ return multisig(keys, threshold);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? whenOrNull({
+ TResult? Function(PkOrF key)? ecdsaSignature,
+ TResult? Function(PkOrF key)? schnorrSignature,
+ TResult? Function(String hash)? sha256Preimage,
+ TResult? Function(String hash)? hash256Preimage,
+ TResult? Function(String hash)? ripemd160Preimage,
+ TResult? Function(String hash)? hash160Preimage,
+ TResult? Function(LockTime value)? absoluteTimelock,
+ TResult? Function(int value)? relativeTimelock,
+ TResult? Function(List keys, BigInt threshold)? multisig,
+ TResult? Function(List items, BigInt threshold)? thresh,
+ }) {
+ return multisig?.call(keys, threshold);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(PkOrF key)? ecdsaSignature,
+ TResult Function(PkOrF key)? schnorrSignature,
+ TResult Function(String hash)? sha256Preimage,
+ TResult Function(String hash)? hash256Preimage,
+ TResult Function(String hash)? ripemd160Preimage,
+ TResult Function(String hash)? hash160Preimage,
+ TResult Function(LockTime value)? absoluteTimelock,
+ TResult Function(int value)? relativeTimelock,
+ TResult Function(List keys, BigInt threshold)? multisig,
+ TResult Function(List items, BigInt threshold)? thresh,
+ required TResult orElse(),
+ }) {
+ if (multisig != null) {
+ return multisig(keys, threshold);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(SatisfiableItem_EcdsaSignature value)
+ ecdsaSignature,
+ required TResult Function(SatisfiableItem_SchnorrSignature value)
+ schnorrSignature,
+ required TResult Function(SatisfiableItem_Sha256Preimage value)
+ sha256Preimage,
+ required TResult Function(SatisfiableItem_Hash256Preimage value)
+ hash256Preimage,
+ required TResult Function(SatisfiableItem_Ripemd160Preimage value)
+ ripemd160Preimage,
+ required TResult Function(SatisfiableItem_Hash160Preimage value)
+ hash160Preimage,
+ required TResult Function(SatisfiableItem_AbsoluteTimelock value)
+ absoluteTimelock,
+ required TResult Function(SatisfiableItem_RelativeTimelock value)
+ relativeTimelock,
+ required TResult Function(SatisfiableItem_Multisig value) multisig,
+ required TResult Function(SatisfiableItem_Thresh value) thresh,
+ }) {
+ return multisig(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult? mapOrNull({
+ TResult? Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult? Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult? Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult? Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult? Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult? Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult? Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult? Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult? Function(SatisfiableItem_Multisig value)? multisig,
+ TResult? Function(SatisfiableItem_Thresh value)? thresh,
+ }) {
+ return multisig?.call(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(SatisfiableItem_EcdsaSignature value)? ecdsaSignature,
+ TResult Function(SatisfiableItem_SchnorrSignature value)? schnorrSignature,
+ TResult Function(SatisfiableItem_Sha256Preimage value)? sha256Preimage,
+ TResult Function(SatisfiableItem_Hash256Preimage value)? hash256Preimage,
+ TResult Function(SatisfiableItem_Ripemd160Preimage value)?
+ ripemd160Preimage,
+ TResult Function(SatisfiableItem_Hash160Preimage value)? hash160Preimage,
+ TResult Function(SatisfiableItem_AbsoluteTimelock value)? absoluteTimelock,
+ TResult Function(SatisfiableItem_RelativeTimelock value)? relativeTimelock,
+ TResult Function(SatisfiableItem_Multisig value)? multisig,
+ TResult Function(SatisfiableItem_Thresh value)? thresh,
+ required TResult orElse(),
+ }) {
+ if (multisig != null) {
+ return multisig(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SatisfiableItem_Multisig extends SatisfiableItem {
+ const factory SatisfiableItem_Multisig(
+ {required final List keys,
+ required final BigInt threshold}) = _$SatisfiableItem_MultisigImpl;
+ const SatisfiableItem_Multisig._() : super._();
+
+ List get keys;
+ BigInt get threshold;
+ @JsonKey(ignore: true)
+ _$$SatisfiableItem_MultisigImplCopyWith<_$SatisfiableItem_MultisigImpl>
+ get copyWith => throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$$SatisfiableItem_ThreshImplCopyWith<$Res> {
+ factory _$$SatisfiableItem_ThreshImplCopyWith(
+ _$SatisfiableItem_ThreshImpl value,
+ $Res Function(_$SatisfiableItem_ThreshImpl) then) =
+ __$$SatisfiableItem_ThreshImplCopyWithImpl<$Res>;
+ @useResult
+ $Res call({List items, BigInt threshold});
+}
+
+/// @nodoc
+class __$$SatisfiableItem_ThreshImplCopyWithImpl<$Res>
+ extends _$SatisfiableItemCopyWithImpl<$Res, _$SatisfiableItem_ThreshImpl>
+ implements _$$SatisfiableItem_ThreshImplCopyWith<$Res> {
+ __$$SatisfiableItem_ThreshImplCopyWithImpl(
+ _$SatisfiableItem_ThreshImpl _value,
+ $Res Function(_$SatisfiableItem_ThreshImpl) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? items = null,
+ Object? threshold = null,
+ }) {
+ return _then(_$SatisfiableItem_ThreshImpl(
+ items: null == items
+ ? _value._items
+ : items // ignore: cast_nullable_to_non_nullable
+ as List,
+ threshold: null == threshold
+ ? _value.threshold
+ : threshold // ignore: cast_nullable_to_non_nullable
+ as BigInt,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SatisfiableItem_ThreshImpl extends SatisfiableItem_Thresh {
+ const _$SatisfiableItem_ThreshImpl(
+ {required final List items, required this.threshold})
+ : _items = items,
+ super._();
+
+ final List _items;
+ @override
+ List get items {
+ if (_items is EqualUnmodifiableListView) return _items;
+ // ignore: implicit_dynamic_type
+ return EqualUnmodifiableListView(_items);
+ }
+
+ @override
+ final BigInt threshold;
+
+ @override
+ String toString() {
+ return 'SatisfiableItem.thresh(items: $items, threshold: $threshold)';
+ }
+
+ @override
+ bool operator ==(Object other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$SatisfiableItem_ThreshImpl &&
+ const DeepCollectionEquality().equals(other._items, _items) &&
+ (identical(other.threshold, threshold) ||
+ other.threshold == threshold));
+ }
+
+ @override
+ int get hashCode => Object.hash(
+ runtimeType, const DeepCollectionEquality().hash(_items), threshold);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$SatisfiableItem_ThreshImplCopyWith<_$SatisfiableItem_ThreshImpl>
+ get copyWith => __$$SatisfiableItem_ThreshImplCopyWithImpl<
+ _$SatisfiableItem_ThreshImpl>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(PkOrF key) ecdsaSignature,
+ required TResult Function(PkOrF key) schnorrSignature,
+ required TResult Function(String hash) sha256Preimage,
+ required TResult Function(String hash) hash256Preimage,
+ required TResult Function(String hash) ripemd160Preimage,
+ required TResult Function(String hash) hash160Preimage,
+ required TResult Function(LockTime value) absoluteTimelock,
+ required TResult Function(int value) relativeTimelock,
+ required TResult Function(List