2020-09-21 11:50:26 +00:00
|
|
|
import 'package:cake_wallet/entities/transaction_direction.dart';
|
2020-09-22 13:35:23 +00:00
|
|
|
import 'package:cake_wallet/utils/mobx.dart';
|
2020-01-04 19:31:52 +00:00
|
|
|
|
2020-09-22 13:35:23 +00:00
|
|
|
abstract class TransactionInfo extends Object with Keyable {
|
2020-08-25 16:32:40 +00:00
|
|
|
String id;
|
2020-05-12 12:04:54 +00:00
|
|
|
int amount;
|
|
|
|
TransactionDirection direction;
|
|
|
|
bool isPending;
|
|
|
|
DateTime date;
|
|
|
|
int height;
|
2020-08-29 10:19:27 +00:00
|
|
|
int confirmations;
|
2020-05-12 12:04:54 +00:00
|
|
|
String amountFormatted();
|
|
|
|
String fiatAmount();
|
2020-07-23 12:20:52 +00:00
|
|
|
void changeFiatAmount(String amount);
|
2020-09-22 13:35:23 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
dynamic get keyIndex => id;
|
2020-05-12 12:04:54 +00:00
|
|
|
}
|