mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
* commit generated files and remove codegen metadata * remove hive_generator dependency * update dependencies * update intl * update ios project files * update native code * update android deps * update image name in ci * revert impeller * re-ignore min version error * fix cw_decred dependency * update hive in cw_core * fix docker build cache for decred * fix conflict * prevent frozen coins being reset on coin info refresh * fix for makeSecure --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
38 lines
681 B
Dart
38 lines
681 B
Dart
import 'package:cw_core/hive_type_ids.dart';
|
|
import 'package:hive/hive.dart';
|
|
|
|
part 'mweb_utxo.part.dart';
|
|
|
|
// @HiveType(typeId: MWEB_UTXO_TYPE_ID)
|
|
class MwebUtxo extends HiveObject {
|
|
MwebUtxo({
|
|
required this.height,
|
|
required this.value,
|
|
required this.address,
|
|
required this.outputId,
|
|
required this.blockTime,
|
|
this.spent = false,
|
|
});
|
|
|
|
static const typeId = MWEB_UTXO_TYPE_ID;
|
|
static const boxName = 'MwebUtxo';
|
|
|
|
// @HiveField(0)
|
|
int height;
|
|
|
|
// @HiveField(1)
|
|
int value;
|
|
|
|
// @HiveField(2)
|
|
String address;
|
|
|
|
// @HiveField(3)
|
|
String outputId;
|
|
|
|
// @HiveField(4)
|
|
int blockTime;
|
|
|
|
// @HiveField(5, defaultValue: false)
|
|
bool spent;
|
|
}
|