mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
3577730de8
* Add restore from private key to Ethereum Add restore from QR code for Ethereum in both seeds/keys * Add node network issue to ignored errors [skip ci]
29 lines
965 B
Dart
29 lines
965 B
Dart
import 'package:cw_core/wallet_credentials.dart';
|
|
import 'package:cw_core/wallet_info.dart';
|
|
|
|
class EthereumNewWalletCredentials extends WalletCredentials {
|
|
EthereumNewWalletCredentials({required String name, WalletInfo? walletInfo})
|
|
: super(name: name, walletInfo: walletInfo);
|
|
}
|
|
|
|
class EthereumRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|
EthereumRestoreWalletFromSeedCredentials(
|
|
{required String name,
|
|
required String password,
|
|
required this.mnemonic,
|
|
WalletInfo? walletInfo})
|
|
: super(name: name, password: password, walletInfo: walletInfo);
|
|
|
|
final String mnemonic;
|
|
}
|
|
|
|
class EthereumRestoreWalletFromPrivateKey extends WalletCredentials {
|
|
EthereumRestoreWalletFromPrivateKey(
|
|
{required String name,
|
|
required String password,
|
|
required this.privateKey,
|
|
WalletInfo? walletInfo})
|
|
: super(name: name, password: password, walletInfo: walletInfo);
|
|
|
|
final String privateKey;
|
|
}
|