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-19 19:26:15 +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;
|
|
|
|
late int height;
|
|
|
|
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;
|
2021-12-24 12:52:08 +00:00
|
|
|
}
|