mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-07 20:52:20 +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
48 lines
1.3 KiB
Dart
48 lines
1.3 KiB
Dart
import 'package:cw_core/hardware/hardware_account_data.dart';
|
|
import 'package:cw_core/wallet_credentials.dart';
|
|
import 'package:cw_core/wallet_info.dart';
|
|
|
|
class EVMChainNewWalletCredentials extends WalletCredentials {
|
|
EVMChainNewWalletCredentials({
|
|
required super.name,
|
|
super.walletInfo,
|
|
super.password,
|
|
this.mnemonic,
|
|
super.passphrase,
|
|
});
|
|
|
|
final String? mnemonic;
|
|
}
|
|
|
|
class EVMChainRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|
EVMChainRestoreWalletFromSeedCredentials({
|
|
required super.name,
|
|
required super.password,
|
|
required this.mnemonic,
|
|
super.walletInfo,
|
|
super.passphrase,
|
|
});
|
|
|
|
final String mnemonic;
|
|
}
|
|
|
|
class EVMChainRestoreWalletFromPrivateKey extends WalletCredentials {
|
|
EVMChainRestoreWalletFromPrivateKey({
|
|
required String name,
|
|
required String password,
|
|
required this.privateKey,
|
|
WalletInfo? walletInfo,
|
|
}) : super(name: name, password: password, walletInfo: walletInfo);
|
|
|
|
final String privateKey;
|
|
}
|
|
|
|
class EVMChainRestoreWalletFromHardware extends WalletCredentials {
|
|
EVMChainRestoreWalletFromHardware({
|
|
required String name,
|
|
required this.hwAccountData,
|
|
WalletInfo? walletInfo,
|
|
}) : super(name: name, walletInfo: walletInfo);
|
|
|
|
final HardwareAccountData hwAccountData;
|
|
}
|