import 'dart:core'; import 'package:mobx/mobx.dart'; import 'package:cw_core/transaction_history.dart'; import 'package:cw_wownero/wownero_transaction_info.dart'; part 'wownero_transaction_history.g.dart'; class WowneroTransactionHistory = WowneroTransactionHistoryBase with _$WowneroTransactionHistory; abstract class WowneroTransactionHistoryBase extends TransactionHistoryBase with Store { WowneroTransactionHistoryBase() { transactions = ObservableMap(); } @override Future save() async {} @override void addOne(WowneroTransactionInfo transaction) => transactions[transaction.id] = transaction; @override void addMany(Map transactions) => this.transactions.addAll(transactions); }