dev
dart 38 lines 1.16 KB
Raw
1 import 'package:cw_core/wallet_credentials.dart';
2 import 'package:cw_core/wallet_info.dart';
3
4 class BitcoinCashNewWalletCredentials extends WalletCredentials {
5 BitcoinCashNewWalletCredentials({
6 required String name,
7 WalletInfo? walletInfo,
8 String? password,
9 String? passphrase,
10 this.mnemonic,
11 }) : super(
12 name: name,
13 walletInfo: walletInfo,
14 password: password,
15 passphrase: passphrase,
16 );
17 final String? mnemonic;
18 }
19
20 class BitcoinCashRestoreWalletFromSeedCredentials extends WalletCredentials {
21 BitcoinCashRestoreWalletFromSeedCredentials({
22 required String name,
23 required String password,
24 required this.mnemonic,
25 WalletInfo? walletInfo,
26 String? passphrase,
27 }) : super(name: name, password: password, walletInfo: walletInfo, passphrase: passphrase);
28
29 final String mnemonic;
30 }
31
32 class BitcoinCashRestoreWalletFromWIFCredentials extends WalletCredentials {
33 BitcoinCashRestoreWalletFromWIFCredentials(
34 {required String name, required String password, required this.wif, WalletInfo? walletInfo})
35 : super(name: name, password: password, walletInfo: walletInfo);
36
37 final String wif;
38 }