2021-12-24 12:52:08 +00:00
|
|
|
import 'package:cw_core/transaction_direction.dart';
|
|
|
|
import 'package:cw_core/keyable.dart';
|
|
|
|
|
|
|
|
abstract class TransactionInfo extends Object with Keyable {
|
2022-10-12 17:09:57 +00:00
|
|
|
late String id;
|
2024-07-21 00:46:43 +00:00
|
|
|
late String txHash = id;
|
2022-10-12 17:09:57 +00:00
|
|
|
late int amount;
|
|
|
|
int? fee;
|
|
|
|
late TransactionDirection direction;
|
|
|
|
late bool isPending;
|
|
|
|
late DateTime date;
|
2024-08-11 23:49:45 +00:00
|
|
|
int? height;
|
2022-10-12 17:09:57 +00:00
|
|
|
late int confirmations;
|
2021-12-24 12:52:08 +00:00
|
|
|
String amountFormatted();
|
|
|
|
String fiatAmount();
|
2022-10-12 17:09:57 +00:00
|
|
|
String? feeFormatted();
|
2021-12-24 12:52:08 +00:00
|
|
|
void changeFiatAmount(String amount);
|
2023-09-14 19:12:41 +00:00
|
|
|
String? to;
|
2024-01-11 23:00:41 +00:00
|
|
|
String? from;
|
2024-06-20 23:13:12 +00:00
|
|
|
String? evmSignatureName;
|
2024-04-08 14:54:58 +00:00
|
|
|
List<String>? inputAddresses;
|
|
|
|
List<String>? outputAddresses;
|
2021-12-24 12:52:08 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
dynamic get keyIndex => id;
|
2022-01-31 12:08:38 +00:00
|
|
|
|
2022-10-12 17:09:57 +00:00
|
|
|
late Map<String, dynamic> additionalInfo;
|
2024-08-11 23:49:45 +00:00
|
|
|
}
|
|
|
|
|