2021-07-05 13:52:24 +00:00
|
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
|
|
|
|
part 'unspent_coins_item.g.dart';
|
|
|
|
|
|
|
|
class UnspentCoinsItem = UnspentCoinsItemBase with _$UnspentCoinsItem;
|
|
|
|
|
|
|
|
abstract class UnspentCoinsItemBase with Store {
|
|
|
|
UnspentCoinsItemBase({
|
2022-10-12 17:09:57 +00:00
|
|
|
required this.address,
|
|
|
|
required this.amount,
|
|
|
|
required this.hash,
|
|
|
|
required this.isFrozen,
|
|
|
|
required this.note,
|
2023-04-20 13:46:41 +00:00
|
|
|
required this.isSending,
|
2023-11-15 23:12:23 +00:00
|
|
|
required this.isChange,
|
2023-04-20 13:46:41 +00:00
|
|
|
required this.amountRaw,
|
2023-08-24 13:54:05 +00:00
|
|
|
required this.vout,
|
2024-04-17 19:35:11 +00:00
|
|
|
required this.keyImage,
|
|
|
|
required this.isSilentPayment,
|
2023-08-24 13:54:05 +00:00
|
|
|
});
|
2021-07-05 13:52:24 +00:00
|
|
|
|
|
|
|
@observable
|
|
|
|
String address;
|
|
|
|
|
|
|
|
@observable
|
|
|
|
String amount;
|
|
|
|
|
|
|
|
@observable
|
|
|
|
String hash;
|
|
|
|
|
|
|
|
@observable
|
|
|
|
bool isFrozen;
|
|
|
|
|
|
|
|
@observable
|
|
|
|
String note;
|
2021-05-25 17:32:36 +00:00
|
|
|
|
2021-07-05 13:52:24 +00:00
|
|
|
@observable
|
|
|
|
bool isSending;
|
2023-04-20 13:46:41 +00:00
|
|
|
|
2023-11-15 23:12:23 +00:00
|
|
|
@observable
|
|
|
|
bool isChange;
|
|
|
|
|
2023-04-20 13:46:41 +00:00
|
|
|
@observable
|
|
|
|
int amountRaw;
|
|
|
|
|
|
|
|
@observable
|
|
|
|
int vout;
|
2023-08-24 13:54:05 +00:00
|
|
|
|
|
|
|
@observable
|
|
|
|
String? keyImage;
|
2024-04-17 19:35:11 +00:00
|
|
|
|
|
|
|
@observable
|
|
|
|
bool isSilentPayment;
|
2023-08-24 13:54:05 +00:00
|
|
|
}
|