import 'dart:core'; import 'package:mobx/mobx.dart'; import 'package:cw_core/transaction_history.dart'; import 'package:cw_monero/monero_transaction_info.dart'; part 'monero_transaction_history.g.dart'; class MoneroTransactionHistory = MoneroTransactionHistoryBase with _$MoneroTransactionHistory; abstract class MoneroTransactionHistoryBase extends TransactionHistoryBase with Store { MoneroTransactionHistoryBase() { transactions = ObservableMap(); } @override Future save() async {} @override void addOne(MoneroTransactionInfo transaction) => transactions[transaction.id] = transaction; @override void addMany(Map transactions) => this.transactions.addAll(transactions); }