mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 04:59:33 +00:00
28 lines
789 B
Dart
28 lines
789 B
Dart
|
import 'dart:core';
|
||
|
import 'package:mobx/mobx.dart';
|
||
|
import 'package:cw_core/transaction_history.dart';
|
||
|
import 'package:cw_zano/zano_transaction_info.dart';
|
||
|
|
||
|
part 'zano_transaction_history.g.dart';
|
||
|
|
||
|
class ZanoTransactionHistory = ZanoTransactionHistoryBase
|
||
|
with _$ZanoTransactionHistory;
|
||
|
|
||
|
abstract class ZanoTransactionHistoryBase
|
||
|
extends TransactionHistoryBase<ZanoTransactionInfo> with Store {
|
||
|
ZanoTransactionHistoryBase() {
|
||
|
transactions = ObservableMap<String, ZanoTransactionInfo>();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Future<void> save() async {}
|
||
|
|
||
|
@override
|
||
|
void addOne(ZanoTransactionInfo transaction) =>
|
||
|
transactions[transaction.id] = transaction;
|
||
|
|
||
|
@override
|
||
|
void addMany(Map<String, ZanoTransactionInfo> transactions) =>
|
||
|
this.transactions.addAll(transactions);
|
||
|
}
|