mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-12 14:02:14 +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
46 lines
1.2 KiB
Dart
46 lines
1.2 KiB
Dart
import 'package:cw_core/wallet_credentials.dart';
|
|
import 'package:cw_core/wallet_info.dart';
|
|
|
|
class SolanaNewWalletCredentials extends WalletCredentials {
|
|
SolanaNewWalletCredentials({
|
|
required String name,
|
|
WalletInfo? walletInfo,
|
|
String? password,
|
|
this.mnemonic,
|
|
String? passphrase,
|
|
}) : super(
|
|
name: name,
|
|
walletInfo: walletInfo,
|
|
password: password,
|
|
passphrase: passphrase,
|
|
);
|
|
final String? mnemonic;
|
|
}
|
|
|
|
class SolanaRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|
SolanaRestoreWalletFromSeedCredentials({
|
|
required String name,
|
|
required String password,
|
|
required this.mnemonic,
|
|
WalletInfo? walletInfo,
|
|
String? passphrase,
|
|
}) : super(
|
|
name: name,
|
|
password: password,
|
|
walletInfo: walletInfo,
|
|
passphrase: passphrase,
|
|
);
|
|
|
|
final String mnemonic;
|
|
}
|
|
|
|
class SolanaRestoreWalletFromPrivateKey extends WalletCredentials {
|
|
SolanaRestoreWalletFromPrivateKey(
|
|
{required String name,
|
|
required String password,
|
|
required this.privateKey,
|
|
WalletInfo? walletInfo})
|
|
: super(name: name, password: password, walletInfo: walletInfo);
|
|
|
|
final String privateKey;
|
|
}
|