mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
27 lines
482 B
Dart
27 lines
482 B
Dart
import 'package:cake_wallet/src/domain/common/wallet_type.dart';
|
|
import 'package:hive/hive.dart';
|
|
|
|
part 'wallet_info.g.dart';
|
|
|
|
@HiveType()
|
|
class WalletInfo extends HiveObject {
|
|
WalletInfo(
|
|
{this.id, this.name, this.type, this.isRecovery, this.restoreHeight});
|
|
|
|
static const boxName = 'WalletInfo';
|
|
|
|
@HiveField(0)
|
|
String id;
|
|
|
|
@HiveField(1)
|
|
String name;
|
|
|
|
@HiveField(2)
|
|
WalletType type;
|
|
|
|
@HiveField(3)
|
|
bool isRecovery;
|
|
|
|
@HiveField(4)
|
|
int restoreHeight;
|
|
}
|