mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
9cd69c4ba3
* init commit * add select all button * localisation all coins * fix isSending and isFrozen state updates * fix: clean up electrum UTXOs * ui fixes * address the review comments[skip ci] * remove onPopInvoked[skip ci] --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
55 lines
947 B
Dart
55 lines
947 B
Dart
import 'package:cw_core/unspent_comparable_mixin.dart';
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
part 'unspent_coins_item.g.dart';
|
|
|
|
class UnspentCoinsItem = UnspentCoinsItemBase with _$UnspentCoinsItem;
|
|
|
|
abstract class UnspentCoinsItemBase with Store, UnspentComparable {
|
|
UnspentCoinsItemBase({
|
|
required this.address,
|
|
required this.amount,
|
|
required this.hash,
|
|
required this.isFrozen,
|
|
required this.note,
|
|
required this.isSending,
|
|
required this.isChange,
|
|
required this.value,
|
|
required this.vout,
|
|
required this.keyImage,
|
|
required this.isSilentPayment,
|
|
});
|
|
|
|
@observable
|
|
String address;
|
|
|
|
@observable
|
|
String amount;
|
|
|
|
@observable
|
|
String hash;
|
|
|
|
@observable
|
|
bool isFrozen;
|
|
|
|
@observable
|
|
String note;
|
|
|
|
@observable
|
|
bool isSending;
|
|
|
|
@observable
|
|
bool isChange;
|
|
|
|
@observable
|
|
int value;
|
|
|
|
@observable
|
|
int vout;
|
|
|
|
@observable
|
|
String? keyImage;
|
|
|
|
@observable
|
|
bool isSilentPayment;
|
|
}
|