cake_wallet/lib/entities/transaction_info.dart

20 lines
476 B
Dart
Raw Normal View History

2020-09-21 11:50:26 +00:00
import 'package:cake_wallet/entities/transaction_direction.dart';
import 'package:cake_wallet/utils/mobx.dart';
2020-01-04 19:31:52 +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;
2020-12-17 13:39:21 +00:00
int fee;
2020-05-12 12:04:54 +00:00
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-12-17 13:39:21 +00:00
String feeFormatted();
void changeFiatAmount(String amount);
@override
dynamic get keyIndex => id;
2020-05-12 12:04:54 +00:00
}