2020-06-01 18:13:56 +00:00
|
|
|
import 'dart:core';
|
|
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
import 'package:cake_wallet/core/transaction_history.dart';
|
2020-09-21 11:50:26 +00:00
|
|
|
import 'package:cake_wallet/monero/monero_transaction_info.dart';
|
2020-06-01 18:13:56 +00:00
|
|
|
|
|
|
|
part 'monero_transaction_history.g.dart';
|
|
|
|
|
|
|
|
class MoneroTransactionHistory = MoneroTransactionHistoryBase
|
|
|
|
with _$MoneroTransactionHistory;
|
|
|
|
|
|
|
|
abstract class MoneroTransactionHistoryBase
|
2020-06-20 07:10:00 +00:00
|
|
|
extends TransactionHistoryBase<MoneroTransactionInfo> with Store {
|
|
|
|
MoneroTransactionHistoryBase() {
|
2020-08-25 16:32:40 +00:00
|
|
|
transactions = ObservableMap<String, MoneroTransactionInfo>();
|
2020-06-20 07:10:00 +00:00
|
|
|
}
|
|
|
|
|
2020-06-01 18:13:56 +00:00
|
|
|
@override
|
2021-05-07 07:36:38 +00:00
|
|
|
Future<void> save() async {}
|
2020-08-25 16:32:40 +00:00
|
|
|
|
|
|
|
@override
|
2021-05-07 07:36:38 +00:00
|
|
|
void addOne(MoneroTransactionInfo transaction) =>
|
|
|
|
transactions[transaction.id] = transaction;
|
2020-08-25 16:32:40 +00:00
|
|
|
|
|
|
|
@override
|
2021-05-07 07:36:38 +00:00
|
|
|
void addMany(Map<String, MoneroTransactionInfo> transactions) =>
|
|
|
|
this.transactions.addAll(transactions);
|
2020-06-01 18:13:56 +00:00
|
|
|
}
|