mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
30 lines
941 B
Dart
30 lines
941 B
Dart
|
import 'package:cw_core/wallet_credentials.dart';
|
||
|
import 'package:cw_core/wallet_info.dart';
|
||
|
|
||
|
class TronNewWalletCredentials extends WalletCredentials {
|
||
|
TronNewWalletCredentials({required String name, WalletInfo? walletInfo})
|
||
|
: super(name: name, walletInfo: walletInfo);
|
||
|
}
|
||
|
|
||
|
class TronRestoreWalletFromSeedCredentials extends WalletCredentials {
|
||
|
TronRestoreWalletFromSeedCredentials(
|
||
|
{required String name,
|
||
|
required String password,
|
||
|
required this.mnemonic,
|
||
|
WalletInfo? walletInfo})
|
||
|
: super(name: name, password: password, walletInfo: walletInfo);
|
||
|
|
||
|
final String mnemonic;
|
||
|
}
|
||
|
|
||
|
class TronRestoreWalletFromPrivateKey extends WalletCredentials {
|
||
|
TronRestoreWalletFromPrivateKey(
|
||
|
{required String name,
|
||
|
required String password,
|
||
|
required this.privateKey,
|
||
|
WalletInfo? walletInfo})
|
||
|
: super(name: name, password: password, walletInfo: walletInfo);
|
||
|
|
||
|
final String privateKey;
|
||
|
}
|