mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
27 lines
831 B
Dart
27 lines
831 B
Dart
import 'dart:core';
|
|
import 'package:mobx/mobx.dart';
|
|
import 'package:cake_wallet/core/transaction_history.dart';
|
|
import 'package:cake_wallet/monero/monero_transaction_info.dart';
|
|
|
|
part 'monero_transaction_history.g.dart';
|
|
|
|
class MoneroTransactionHistory = MoneroTransactionHistoryBase
|
|
with _$MoneroTransactionHistory;
|
|
|
|
abstract class MoneroTransactionHistoryBase
|
|
extends TransactionHistoryBase<MoneroTransactionInfo> with Store {
|
|
MoneroTransactionHistoryBase() {
|
|
transactions = ObservableMap<String, MoneroTransactionInfo>();
|
|
}
|
|
|
|
@override
|
|
Future<void> save() async {}
|
|
|
|
@override
|
|
void addOne(MoneroTransactionInfo transaction) =>
|
|
transactions[transaction.id] = transaction;
|
|
|
|
@override
|
|
void addMany(Map<String, MoneroTransactionInfo> transactions) =>
|
|
this.transactions.addAll(transactions);
|
|
}
|