import 'dart:core'; import 'package:mobx/mobx.dart'; import 'package:cw_core/transaction_history.dart'; import 'package:cw_ethereum/ethereum_transaction_info.dart'; part 'ethereum_transaction_history.g.dart'; class EthereumTransactionHistory = EthereumTransactionHistoryBase with _$EthereumTransactionHistory; abstract class EthereumTransactionHistoryBase extends TransactionHistoryBase with Store { EthereumTransactionHistoryBase() { transactions = ObservableMap(); } @override Future save() async { // TODO: implement } @override void addOne(EthereumTransactionInfo transaction) => transactions[transaction.id] = transaction; @override void addMany(Map transactions) => this.transactions.addAll(transactions); }