| 1 | import 'package:cw_core/wallet_info.dart'; |
| 2 | import 'package:mobx/mobx.dart'; |
| 3 | import 'package:cake_wallet/view_model/restore/restore_mode.dart'; |
| 4 | |
| 5 | part 'wallet_restore_choose_derivation_view_model.g.dart'; |
| 6 | |
| 7 | class WalletRestoreChooseDerivationViewModel = WalletRestoreChooseDerivationViewModelBase |
| 8 | with _$WalletRestoreChooseDerivationViewModel; |
| 9 | |
| 10 | abstract class WalletRestoreChooseDerivationViewModelBase with Store { |
| 11 | WalletRestoreChooseDerivationViewModelBase({required this.derivationInfos}) |
| 12 | : mode = WalletRestoreMode.seed {} |
| 13 | |
| 14 | @observable |
| 15 | List<DerivationInfo> derivationInfos; |
| 16 | |
| 17 | Future<List<DerivationInfo>> get derivations async { |
| 18 | return derivationInfos; |
| 19 | } |
| 20 | |
| 21 | @observable |
| 22 | WalletRestoreMode mode; |
| 23 | } |