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;
|
|
|
|
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);
|
|
|
|
|
|
|
|
@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
|
|
|
}
|