mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-07 03:19:31 +00:00
42155c913d
Conflicts: cw_bitcoin/lib/bitcoin_wallet.dart cw_bitcoin/lib/bitcoin_wallet_service.dart cw_bitcoin/lib/electrum_wallet.dart cw_bitcoin/lib/litecoin_wallet.dart cw_bitcoin/lib/litecoin_wallet_service.dart cw_bitcoin_cash/lib/src/bitcoin_cash_wallet.dart cw_bitcoin_cash/lib/src/bitcoin_cash_wallet_service.dart cw_ethereum/lib/ethereum_wallet_service.dart cw_evm/lib/evm_chain_wallet.dart cw_evm/lib/evm_chain_wallet_service.dart cw_nano/lib/nano_wallet_service.dart cw_solana/lib/solana_wallet_service.dart lib/di.dart lib/entities/get_encryption_key.dart lib/main.dart lib/router.dart lib/view_model/wallet_new_vm.dart pubspec_base.yaml tool/configure.dart
40 lines
1.3 KiB
Dart
40 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 String name, WalletInfo? walletInfo, String? password})
|
|
: super(name: name, walletInfo: walletInfo, password: password);
|
|
}
|
|
|
|
class EVMChainRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|
EVMChainRestoreWalletFromSeedCredentials({
|
|
required String name,
|
|
required String password,
|
|
required this.mnemonic,
|
|
WalletInfo? walletInfo,
|
|
}) : super(name: name, password: password, walletInfo: walletInfo);
|
|
|
|
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;
|
|
}
|