| 1 | import 'package:cw_core/wallet_credentials.dart'; |
| 2 | import 'package:cw_core/wallet_info.dart'; |
| 3 | |
| 4 | class TronNewWalletCredentials extends WalletCredentials { |
| 5 | TronNewWalletCredentials({ |
| 6 | required String name, |
| 7 | WalletInfo? walletInfo, |
| 8 | String? password, |
| 9 | this.mnemonic, |
| 10 | String? passphrase, |
| 11 | }) : super( |
| 12 | name: name, |
| 13 | walletInfo: walletInfo, |
| 14 | password: password, |
| 15 | passphrase: passphrase, |
| 16 | ); |
| 17 | |
| 18 | final String? mnemonic; |
| 19 | } |
| 20 | |
| 21 | class TronRestoreWalletFromSeedCredentials extends WalletCredentials { |
| 22 | TronRestoreWalletFromSeedCredentials({ |
| 23 | required String name, |
| 24 | required String password, |
| 25 | required this.mnemonic, |
| 26 | WalletInfo? walletInfo, |
| 27 | String? passphrase, |
| 28 | }) : super( |
| 29 | name: name, |
| 30 | password: password, |
| 31 | walletInfo: walletInfo, |
| 32 | passphrase: passphrase, |
| 33 | ); |
| 34 | |
| 35 | final String mnemonic; |
| 36 | } |
| 37 | |
| 38 | class TronRestoreWalletFromPrivateKey extends WalletCredentials { |
| 39 | TronRestoreWalletFromPrivateKey( |
| 40 | {required String name, |
| 41 | required String password, |
| 42 | required this.privateKey, |
| 43 | WalletInfo? walletInfo}) |
| 44 | : super(name: name, password: password, walletInfo: walletInfo); |
| 45 | |
| 46 | final String privateKey; |
| 47 | } |