mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 20:19:25 +00:00
28 lines
826 B
Dart
28 lines
826 B
Dart
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<WowneroTransactionInfo> with Store {
|
|
WowneroTransactionHistoryBase() {
|
|
transactions = ObservableMap<String, WowneroTransactionInfo>();
|
|
}
|
|
|
|
@override
|
|
Future<void> save() async {}
|
|
|
|
@override
|
|
void addOne(WowneroTransactionInfo transaction) =>
|
|
transactions[transaction.id] = transaction;
|
|
|
|
@override
|
|
void addMany(Map<String, WowneroTransactionInfo> transactions) =>
|
|
this.transactions.addAll(transactions);
|
|
|
|
}
|