| 1 | import 'package:cw_core/amount/money.dart'; |
| 2 | import 'package:cw_core/transaction_direction.dart'; |
| 3 | import 'package:cw_core/transaction_info.dart'; |
| 4 | |
| 5 | class MoneroTransactionInfo extends TransactionInfo { |
| 6 | MoneroTransactionInfo(this.txHash, this.height, this.direction, this.date, this.isPending, |
| 7 | this.amount, this.accountIndex, this.addressIndex, this.fee, this.confirmations) |
| 8 | : id = "${txHash}_${amount}_${accountIndex}_${addressIndex}"; |
| 9 | |
| 10 | final String id; |
| 11 | final String txHash; |
| 12 | final int height; |
| 13 | final TransactionDirection direction; |
| 14 | final DateTime date; |
| 15 | final int accountIndex; |
| 16 | final bool isPending; |
| 17 | final Money amount; |
| 18 | final Money fee; |
| 19 | final int addressIndex; |
| 20 | final int confirmations; |
| 21 | String? recipientAddress; |
| 22 | String? key; |
| 23 | } |