mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-30 15:29:41 +00:00
46 lines
1.1 KiB
Dart
46 lines
1.1 KiB
Dart
/*
|
|
* 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 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart';
|
|
import 'package:stackwallet/utilities/amount/amount.dart';
|
|
import 'package:stackwallet/wallets/models/tx_recipient.dart';
|
|
|
|
// TODO use something like this instead of Map<String, dynamic> transactionObject
|
|
|
|
class TxInfo {
|
|
final String hex;
|
|
final List<TxRecipient> recipients;
|
|
final Amount fee;
|
|
final int vSize;
|
|
final List<UTXO>? usedUTXOs;
|
|
|
|
TxInfo({
|
|
required this.hex,
|
|
required this.recipients,
|
|
required this.fee,
|
|
required this.vSize,
|
|
required this.usedUTXOs,
|
|
});
|
|
|
|
TxInfo copyWith({
|
|
String? hex,
|
|
List<TxRecipient>? recipients,
|
|
Amount? fee,
|
|
int? vSize,
|
|
List<UTXO>? usedUTXOs,
|
|
}) =>
|
|
TxInfo(
|
|
hex: hex ?? this.hex,
|
|
fee: fee ?? this.fee,
|
|
vSize: vSize ?? this.vSize,
|
|
usedUTXOs: usedUTXOs ?? this.usedUTXOs,
|
|
recipients: recipients ?? this.recipients,
|
|
);
|
|
}
|