cake_wallet/cw_core/lib/mweb_utxo.dart

34 lines
581 B
Dart
Raw Normal View History

2024-06-08 12:26:48 +00:00
import 'package:cw_core/hive_type_ids.dart';
import 'package:hive/hive.dart';
2024-06-19 02:07:13 +00:00
part 'mweb_utxo.g.dart';
2024-06-08 12:26:48 +00:00
@HiveType(typeId: MWEB_UTXO_TYPE_ID)
class MwebUtxo extends HiveObject {
MwebUtxo({
2024-06-19 02:07:13 +00:00
required this.height,
required this.value,
2024-06-08 12:26:48 +00:00
required this.address,
2024-06-19 02:07:13 +00:00
required this.outputId,
required this.blockTime,
2024-06-08 12:26:48 +00:00
});
static const typeId = MWEB_UTXO_TYPE_ID;
static const boxName = 'MwebUtxo';
@HiveField(0)
2024-06-19 02:07:13 +00:00
int height;
2024-06-08 12:26:48 +00:00
2024-06-19 02:07:13 +00:00
@HiveField(1)
int value;
@HiveField(2)
2024-06-08 12:26:48 +00:00
String address;
2024-06-19 02:07:13 +00:00
@HiveField(3)
String outputId;
@HiveField(4)
int blockTime;
2024-06-08 12:26:48 +00:00
}