cake_wallet/cw_evm/lib/evm_chain_wallet_creation_credentials.dart
Omar Hatem 4b4d8a4840
Add passphrase support for Eth, Polygon, and Tron (#1719)
* Add passphrase support for Eth, Polygon, and Tron

* move passphrase to advanced settings even for restore
2024-10-04 20:01:46 +03:00

49 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,
super.parentAddress,
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;
}