mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-19 09:15:11 +00:00
45 lines
1.5 KiB
Dart
45 lines
1.5 KiB
Dart
|
import 'package:cw_core/wallet_credentials.dart';
|
||
|
import 'package:cw_core/wallet_info.dart';
|
||
|
import 'package:cw_core/hardware/hardware_account_data.dart';
|
||
|
|
||
|
class DecredNewWalletCredentials extends WalletCredentials {
|
||
|
DecredNewWalletCredentials({required String name, WalletInfo? walletInfo})
|
||
|
: super(name: name, walletInfo: walletInfo);
|
||
|
}
|
||
|
|
||
|
class DecredRestoreWalletFromSeedCredentials extends WalletCredentials {
|
||
|
DecredRestoreWalletFromSeedCredentials(
|
||
|
{required String name,
|
||
|
required String password,
|
||
|
required this.mnemonic,
|
||
|
WalletInfo? walletInfo})
|
||
|
: super(name: name, password: password, walletInfo: walletInfo);
|
||
|
|
||
|
final String mnemonic;
|
||
|
}
|
||
|
|
||
|
class DecredRestoreWalletFromWIFCredentials extends WalletCredentials {
|
||
|
DecredRestoreWalletFromWIFCredentials(
|
||
|
{required String name,
|
||
|
required String password,
|
||
|
required this.wif,
|
||
|
WalletInfo? walletInfo})
|
||
|
: t = throw UnimplementedError(), // TODO: Maybe can be used to create watching only wallets?
|
||
|
super(name: name, password: password, walletInfo: walletInfo);
|
||
|
|
||
|
final String wif;
|
||
|
final void t;
|
||
|
}
|
||
|
|
||
|
class DecredRestoreWalletFromHardwareCredentials extends WalletCredentials {
|
||
|
DecredRestoreWalletFromHardwareCredentials(
|
||
|
{required String name,
|
||
|
required this.hwAccountData,
|
||
|
WalletInfo? walletInfo})
|
||
|
: t = throw UnimplementedError(),
|
||
|
super(name: name, walletInfo: walletInfo);
|
||
|
|
||
|
final HardwareAccountData hwAccountData;
|
||
|
final void t;
|
||
|
}
|