mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
21 lines
665 B
Dart
21 lines
665 B
Dart
|
import 'package:cw_core/unspent_transaction_output.dart';
|
||
|
import 'package:cw_wownero/api/structs/coins_info_row.dart';
|
||
|
|
||
|
class WowneroUnspent extends Unspent {
|
||
|
WowneroUnspent(
|
||
|
String address, String hash, String keyImage, int value, bool isFrozen, this.isUnlocked)
|
||
|
: super(address, hash, value, 0, keyImage) {
|
||
|
this.isFrozen = isFrozen;
|
||
|
}
|
||
|
|
||
|
factory WowneroUnspent.fromCoinsInfoRow(CoinsInfoRow coinsInfoRow) => WowneroUnspent(
|
||
|
coinsInfoRow.getAddress(),
|
||
|
coinsInfoRow.getHash(),
|
||
|
coinsInfoRow.getKeyImage(),
|
||
|
coinsInfoRow.amount,
|
||
|
coinsInfoRow.frozen == 1,
|
||
|
coinsInfoRow.unlocked == 1);
|
||
|
|
||
|
final bool isUnlocked;
|
||
|
}
|