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