mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +00:00
42155c913d
Conflicts: cw_bitcoin/lib/bitcoin_wallet.dart cw_bitcoin/lib/bitcoin_wallet_service.dart cw_bitcoin/lib/electrum_wallet.dart cw_bitcoin/lib/litecoin_wallet.dart cw_bitcoin/lib/litecoin_wallet_service.dart cw_bitcoin_cash/lib/src/bitcoin_cash_wallet.dart cw_bitcoin_cash/lib/src/bitcoin_cash_wallet_service.dart cw_ethereum/lib/ethereum_wallet_service.dart cw_evm/lib/evm_chain_wallet.dart cw_evm/lib/evm_chain_wallet_service.dart cw_nano/lib/nano_wallet_service.dart cw_solana/lib/solana_wallet_service.dart lib/di.dart lib/entities/get_encryption_key.dart lib/main.dart lib/router.dart lib/view_model/wallet_new_vm.dart pubspec_base.yaml tool/configure.dart
60 lines
1.7 KiB
Dart
60 lines
1.7 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 BitcoinNewWalletCredentials extends WalletCredentials {
|
|
BitcoinNewWalletCredentials(
|
|
{required String name,
|
|
WalletInfo? walletInfo,
|
|
String? password,
|
|
DerivationType? derivationType,
|
|
String? derivationPath})
|
|
: super(
|
|
name: name,
|
|
walletInfo: walletInfo,
|
|
password: password,
|
|
);
|
|
}
|
|
|
|
class BitcoinRestoreWalletFromSeedCredentials extends WalletCredentials {
|
|
BitcoinRestoreWalletFromSeedCredentials({
|
|
required String name,
|
|
required String password,
|
|
required this.mnemonic,
|
|
WalletInfo? walletInfo,
|
|
required DerivationType derivationType,
|
|
required String derivationPath,
|
|
String? passphrase,
|
|
}) : super(
|
|
name: name,
|
|
password: password,
|
|
passphrase: passphrase,
|
|
walletInfo: walletInfo,
|
|
derivationInfo: DerivationInfo(
|
|
derivationType: derivationType,
|
|
derivationPath: derivationPath,
|
|
));
|
|
|
|
final String mnemonic;
|
|
}
|
|
|
|
class BitcoinRestoreWalletFromWIFCredentials extends WalletCredentials {
|
|
BitcoinRestoreWalletFromWIFCredentials({
|
|
required String name,
|
|
required String password,
|
|
required this.wif,
|
|
WalletInfo? walletInfo,
|
|
}) : super(name: name, password: password, walletInfo: walletInfo);
|
|
|
|
final String wif;
|
|
}
|
|
|
|
class BitcoinRestoreWalletFromHardware extends WalletCredentials {
|
|
BitcoinRestoreWalletFromHardware({
|
|
required String name,
|
|
required this.hwAccountData,
|
|
WalletInfo? walletInfo,
|
|
}) : super(name: name, walletInfo: walletInfo);
|
|
|
|
final HardwareAccountData hwAccountData;
|
|
}
|