cake_wallet/cw_core/lib/wallet_credentials.dart

24 lines
518 B
Dart
Raw Normal View History

import 'package:cw_core/wallet_info.dart';
abstract class WalletCredentials {
2022-10-12 17:09:57 +00:00
WalletCredentials({
required this.name,
this.height,
this.seedPhraseLength,
2022-10-12 17:09:57 +00:00
this.walletInfo,
2023-08-25 15:12:07 +00:00
this.password,
this.derivationInfo,
2023-10-10 15:27:11 +00:00
}) {
if (this.walletInfo != null && derivationInfo != null) {
this.walletInfo!.derivationInfo = derivationInfo;
}
}
final String name;
2022-10-12 17:09:57 +00:00
final int? height;
int? seedPhraseLength;
2022-10-12 17:09:57 +00:00
String? password;
WalletInfo? walletInfo;
DerivationInfo? derivationInfo;
}