/* * This file is part of Stack Wallet. * * Copyright (c) 2023 Cypher Stack * All Rights Reserved. * The code is distributed under GPLv3 license, see LICENSE file for details. * Generated by Cypher Stack on 2023-05-26 * */ import 'isar/models/blockchain_data/utxo.dart'; import '../utilities/amount/amount.dart'; import '../wallets/models/tx_recipient.dart'; // TODO use something like this instead of Map transactionObject class TxInfo { final String hex; final List recipients; final Amount fee; final int vSize; final List? usedUTXOs; TxInfo({ required this.hex, required this.recipients, required this.fee, required this.vSize, required this.usedUTXOs, }); TxInfo copyWith({ String? hex, List? recipients, Amount? fee, int? vSize, List? usedUTXOs, }) => TxInfo( hex: hex ?? this.hex, fee: fee ?? this.fee, vSize: vSize ?? this.vSize, usedUTXOs: usedUTXOs ?? this.usedUTXOs, recipients: recipients ?? this.recipients, ); }