| 1 | import 'package:mobx/mobx.dart'; |
| 2 | import 'package:cw_core/transaction_info.dart'; |
| 3 | import 'package:cw_core/transaction_history.dart'; |
| 4 | |
| 5 | class ZcashTransactionHistory extends TransactionHistoryBase<TransactionInfo> { |
| 6 | ZcashTransactionHistory() { |
| 7 | transactions = ObservableMap<String, TransactionInfo>(); |
| 8 | } |
| 9 | |
| 10 | @override |
| 11 | void addMany(final Map<String, TransactionInfo> txs) { |
| 12 | transactions.addAll(txs); |
| 13 | } |
| 14 | |
| 15 | @override |
| 16 | void addOne(final TransactionInfo txs) { |
| 17 | transactions[txs.txHash] = txs; |
| 18 | } |
| 19 | |
| 20 | @override |
| 21 | Future<void> save() async { |
| 22 | // No need to save anything, backend is taking care of that |
| 23 | } |
| 24 | } |