mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-14 22:14:40 +00:00
* feat: Enhance Wallet Groups Implementation by using hashedIdentifiers instead of parentAddresses * fix: Call updateWalletGroups even if group has an hash identifier * feat: Add secrets to workflow * feat: Enhance Wallet Groups Implementation by using hashedIdentifiers instead of parentAddresses * Handle wallet grouping edgecase where wallet is restored via non seed medium * fix: Valid wallet/wallet groups not showing up when choosing wallet/groups for creating new wallets
57 lines
1.5 KiB
Dart
57 lines
1.5 KiB
Dart
import 'package:cw_core/wallet_credentials.dart';
|
|
import 'package:cw_core/wallet_info.dart';
|
|
|
|
class NanoNewWalletCredentials extends WalletCredentials {
|
|
NanoNewWalletCredentials({
|
|
required String name,
|
|
WalletInfo? walletInfo,
|
|
String? password,
|
|
DerivationType? derivationType,
|
|
this.mnemonic,
|
|
String? passphrase,
|
|
}) : super(
|
|
name: name,
|
|
password: password,
|
|
walletInfo: walletInfo,
|
|
passphrase: passphrase,
|
|
);
|
|
|
|
final String? mnemonic;
|
|
}
|
|
|
|
class NanoRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|
NanoRestoreWalletFromSeedCredentials({
|
|
required String name,
|
|
required this.mnemonic,
|
|
String? password,
|
|
required DerivationType derivationType,
|
|
String? passphrase,
|
|
}) : super(
|
|
name: name,
|
|
password: password,
|
|
derivationInfo: DerivationInfo(derivationType: derivationType),
|
|
passphrase: passphrase,
|
|
);
|
|
|
|
final String mnemonic;
|
|
}
|
|
|
|
class NanoWalletLoadingException implements Exception {
|
|
@override
|
|
String toString() => 'Failure to load the wallet.';
|
|
}
|
|
|
|
class NanoRestoreWalletFromKeysCredentials extends WalletCredentials {
|
|
NanoRestoreWalletFromKeysCredentials({
|
|
required String name,
|
|
required String password,
|
|
required DerivationType derivationType,
|
|
required this.seedKey,
|
|
}) : super(
|
|
name: name,
|
|
password: password,
|
|
derivationInfo: DerivationInfo(derivationType: derivationType),
|
|
);
|
|
|
|
final String seedKey;
|
|
}
|