typedef txdata recipients

This commit is contained in:
julian 2024-06-18 17:38:47 -06:00
parent e63731a087
commit b1f5a1ec53

View file

@ -10,6 +10,8 @@ import '../../utilities/amount/amount.dart';
import '../../utilities/enums/fee_rate_type_enum.dart'; import '../../utilities/enums/fee_rate_type_enum.dart';
import '../isar/models/spark_coin.dart'; import '../isar/models/spark_coin.dart';
typedef TxRecipient = ({String address, Amount amount, bool isChange});
class TxData { class TxData {
final FeeRateType? feeRateType; final FeeRateType? feeRateType;
final int? feeRateAmount; final int? feeRateAmount;
@ -28,7 +30,7 @@ class TxData {
final String? memo; final String? memo;
final List<({String address, Amount amount, bool isChange})>? recipients; final List<TxRecipient>? recipients;
final Set<UTXO>? utxos; final Set<UTXO>? utxos;
final List<UTXO>? usedUTXOs; final List<UTXO>? usedUTXOs;
@ -165,13 +167,7 @@ class TxData {
String? memo, String? memo,
Set<UTXO>? utxos, Set<UTXO>? utxos,
List<UTXO>? usedUTXOs, List<UTXO>? usedUTXOs,
List< List<TxRecipient>? recipients,
({
String address,
Amount amount,
bool isChange,
})>?
recipients,
String? frostMSConfig, String? frostMSConfig,
List<String>? frostSigners, List<String>? frostSigners,
String? changeAddress, String? changeAddress,