mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-30 08:57:38 +00:00
c59d39d42d
* update fee rates * periodically update fees * minor enhancements * minor enhancements * some improvements add solana node * handle empty hex as null * minor improvement * fix imports * fix app hanging on splash screen * update app versions temporarily disable sign/verify for hardware wallets
36 lines
1.8 KiB
Dart
36 lines
1.8 KiB
Dart
import 'dart:async';
|
|
import 'package:cake_wallet/reactions/fiat_rate_update.dart';
|
|
import 'package:cake_wallet/reactions/on_current_fiat_api_mode_change.dart';
|
|
import 'package:cake_wallet/reactions/on_current_node_change.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
import 'package:cake_wallet/di.dart';
|
|
import 'package:cake_wallet/entities/preferences_key.dart';
|
|
import 'package:cake_wallet/reactions/on_authentication_state_change.dart';
|
|
import 'package:cake_wallet/reactions/on_current_fiat_change.dart';
|
|
import 'package:cake_wallet/reactions/on_current_wallet_change.dart';
|
|
import 'package:cake_wallet/store/app_store.dart';
|
|
import 'package:cake_wallet/store/settings_store.dart';
|
|
import 'package:cake_wallet/store/authentication_store.dart';
|
|
import 'package:cake_wallet/store/dashboard/fiat_conversion_store.dart';
|
|
|
|
Future<void> bootstrap(GlobalKey<NavigatorState> navigatorKey) async {
|
|
final appStore = getIt.get<AppStore>();
|
|
final authenticationStore = getIt.get<AuthenticationStore>();
|
|
final settingsStore = getIt.get<SettingsStore>();
|
|
final fiatConversionStore = getIt.get<FiatConversionStore>();
|
|
|
|
final currentWalletName =
|
|
getIt.get<SharedPreferences>().getString(PreferencesKey.currentWalletName);
|
|
if (currentWalletName != null) {
|
|
authenticationStore.installed();
|
|
}
|
|
|
|
startAuthenticationStateChange(authenticationStore, navigatorKey);
|
|
startCurrentWalletChangeReaction(appStore, settingsStore, fiatConversionStore);
|
|
startCurrentFiatChangeReaction(appStore, settingsStore, fiatConversionStore);
|
|
startCurrentFiatApiModeChangeReaction(appStore, settingsStore, fiatConversionStore);
|
|
startOnCurrentNodeChangeReaction(appStore);
|
|
startFiatRateUpdate(appStore, settingsStore, fiatConversionStore);
|
|
}
|