mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 21:19:37 +00:00
27 lines
882 B
Dart
27 lines
882 B
Dart
part of 'ethereum.dart';
|
|
|
|
class CWEthereum extends Ethereum {
|
|
@override
|
|
List<String> getEthereumWordList(String language) => EthereumMnemonics.englishWordlist;
|
|
|
|
WalletService createEthereumWalletService(Box<WalletInfo> walletInfoSource) =>
|
|
EthereumWalletService(walletInfoSource);
|
|
|
|
@override
|
|
WalletCredentials createEthereumNewWalletCredentials({
|
|
required String name,
|
|
WalletInfo? walletInfo,
|
|
}) =>
|
|
EthereumNewWalletCredentials(name: name, walletInfo: walletInfo);
|
|
|
|
@override
|
|
WalletCredentials createEthereumRestoreWalletFromSeedCredentials({
|
|
required String name,
|
|
required String mnemonic,
|
|
required String password,
|
|
}) =>
|
|
EthereumRestoreWalletFromSeedCredentials(name: name, password: password, mnemonic: mnemonic);
|
|
|
|
@override
|
|
String getAddress(WalletBase wallet) => (wallet as EthereumWallet).walletAddresses.address;
|
|
}
|