| 1 | import 'package:cw_core/hive_type_ids.dart'; |
| 2 | import 'package:hive/hive.dart'; |
| 3 | |
| 4 | part 'mweb_utxo.part.dart'; |
| 5 | |
| 6 | // @HiveType(typeId: MWEB_UTXO_TYPE_ID) |
| 7 | class MwebUtxo extends HiveObject { |
| 8 | MwebUtxo({ |
| 9 | required this.height, |
| 10 | required this.value, |
| 11 | required this.address, |
| 12 | required this.outputId, |
| 13 | required this.blockTime, |
| 14 | this.spent = false, |
| 15 | }); |
| 16 | |
| 17 | static const typeId = MWEB_UTXO_TYPE_ID; |
| 18 | static const boxName = 'MwebUtxo'; |
| 19 | |
| 20 | // @HiveField(0) |
| 21 | int height; |
| 22 | |
| 23 | // @HiveField(1) |
| 24 | int value; |
| 25 | |
| 26 | // @HiveField(2) |
| 27 | String address; |
| 28 | |
| 29 | // @HiveField(3) |
| 30 | String outputId; |
| 31 | |
| 32 | // @HiveField(4) |
| 33 | int blockTime; |
| 34 | |
| 35 | // @HiveField(5, defaultValue: false) |
| 36 | bool spent; |
| 37 | } |