mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 21:50:27 +00:00
22 lines
498 B
Dart
22 lines
498 B
Dart
|
import 'package:cw_core/hive_type_ids.dart';
|
||
|
import 'package:hive/hive.dart';
|
||
|
|
||
|
part 'address_info.g.dart';
|
||
|
|
||
|
@HiveType(typeId: ADDRESS_INFO_TYPE_ID)
|
||
|
class AddressInfo extends HiveObject {
|
||
|
AddressInfo({required this.address, this.accountIndex, required this.label});
|
||
|
|
||
|
static const typeId = ADDRESS_INFO_TYPE_ID;
|
||
|
static const boxName = 'AddressInfo';
|
||
|
|
||
|
@HiveField(0)
|
||
|
int? accountIndex;
|
||
|
|
||
|
@HiveField(1, defaultValue: '')
|
||
|
String address;
|
||
|
|
||
|
@HiveField(2, defaultValue: '')
|
||
|
String label;
|
||
|
}
|