mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-29 06:38:45 +01:00
Upstream reformatted its whole tree in 16ddc0837. Matching it removes
formatting from the conflict surface of this and every later sync.
159 lines
9.5 KiB
Dart
159 lines
9.5 KiB
Dart
import "package:cw_core/wallet_type.dart";
|
|
|
|
class PreferencesKey {
|
|
static const currentWalletType = 'current_wallet_type';
|
|
static const currentWalletName = 'current_wallet_name';
|
|
static const accountsHomePromoDismissed = 'accounts_home_promo_dismissed';
|
|
static String educationDismissed(String educationId) => "education_dismissed_$educationId";
|
|
static const currentNodeIdKey = 'current_node_id';
|
|
static const currentBitcoinElectrumSererIdKey = 'current_node_id_btc';
|
|
static const currentLitecoinElectrumSererIdKey = 'current_node_id_ltc';
|
|
static const currentHavenNodeIdKey = 'current_node_id_xhv';
|
|
static const currentZanoNodeIdKey = 'current_node_id_zano';
|
|
static const currentEthereumNodeIdKey = 'current_node_id_eth';
|
|
static const currentPolygonNodeIdKey = 'current_node_id_matic';
|
|
static const currentBaseNodeIdKey = 'current_node_id_base';
|
|
static const currentArbitrumNodeIdKey = 'current_node_id_arbitrum';
|
|
static const currentBscNodeIdKey = 'current_node_id_bsc';
|
|
static const currentRobinhoodNodeIdKey = "current_node_id_robinhood";
|
|
static const currentNanoNodeIdKey = 'current_node_id_nano';
|
|
static const currentNanoPowNodeIdKey = 'current_node_id_nano_pow';
|
|
static const currentDecredNodeIdKey = 'current_node_id_decred';
|
|
static const currentDogecoinNodeIdKey = 'current_node_id_doge';
|
|
static const currentBananoNodeIdKey = 'current_node_id_banano';
|
|
static const currentBananoPowNodeIdKey = 'current_node_id_banano_pow';
|
|
static const currentFiatCurrencyKey = 'current_fiat_currency';
|
|
static const currentCakePayCountry = 'current_cake_pay_country';
|
|
static const currentBitcoinCashNodeIdKey = 'current_node_id_bch';
|
|
static const currentSolanaNodeIdKey = 'current_node_id_sol';
|
|
static const currentTronNodeIdKey = 'current_node_id_trx';
|
|
static const currentWowneroNodeIdKey = 'current_node_id_wow';
|
|
static const currentZcashNodeIdKey = 'current_node_id_zec';
|
|
static const currentTransactionPriorityKeyLegacy = 'current_fee_priority';
|
|
static const currentBalanceDisplayModeKey = 'current_balance_display_mode';
|
|
static const displayAmountsInSatoshi = 'display_amounts_in_satoshi';
|
|
static const shouldSaveRecipientAddressKey = 'save_recipient_address';
|
|
static const isAppSecureKey = 'is_app_secure';
|
|
static const disableTradeOption = 'disable_buy';
|
|
static const disableAutomaticExchangeStatusUpdates = 'disable_automatic_exchange_status_updates';
|
|
static const disableBulletinKey = 'disable_bulletin';
|
|
static const walletListOrder = 'wallet_list_order';
|
|
static const contactListOrder = 'contact_list_order';
|
|
static const walletListAscending = 'wallet_list_ascending';
|
|
static const contactListAscending = 'contact_list_ascending';
|
|
static const currentFiatApiModeKey = 'current_fiat_api_mode';
|
|
static const failedTotpTokenTrials = 'failed_token_trials';
|
|
static const disableExchangeKey = 'disable_exchange';
|
|
static const exchangeStatusKey = 'exchange_status';
|
|
static const currentTheme = 'current_theme';
|
|
static const themeMode = 'theme_mode';
|
|
static const blackThemeOled = 'black_theme_oled_enabled';
|
|
static const savedDarkTheme = 'saved_dark_theme';
|
|
static const savedLightTheme = 'saved_light_theme';
|
|
static const displayActionListModeKey = 'display_list_mode';
|
|
static const currentPinLength = 'current_pin_length';
|
|
static const currentLanguageCode = 'language_code';
|
|
static const currentSeedPhraseLength = 'current_seed_phrase_length';
|
|
static const currentDefaultSettingsMigrationVersion =
|
|
'current_default_settings_migration_version';
|
|
static const moneroTransactionPriority = 'current_fee_priority_monero';
|
|
static const bitcoinTransactionPriority = 'current_fee_priority_bitcoin';
|
|
static const havenTransactionPriority = 'current_fee_priority_haven';
|
|
static const litecoinTransactionPriority = 'current_fee_priority_litecoin';
|
|
static const ethereumTransactionPriority = 'current_fee_priority_ethereum';
|
|
static const polygonTransactionPriority = 'current_fee_priority_polygon';
|
|
static const baseTransactionPriority = 'current_fee_priority_base';
|
|
static const bscTransactionPriority = 'current_fee_priority_bsc';
|
|
static const bitcoinCashTransactionPriority = 'current_fee_priority_bitcoin_cash';
|
|
static const zanoTransactionPriority = 'current_fee_priority_zano';
|
|
static const wowneroTransactionPriority = 'current_fee_priority_wownero';
|
|
static const decredTransactionPriority = 'current_fee_priority_decred';
|
|
static const zcashTransactionPriority = 'current_fee_priority_zcash';
|
|
static const dogecoinTransactionPriority = 'current_fee_priority_dogecoin';
|
|
static const customBitcoinFeeRate = 'custom_electrum_fee_rate';
|
|
static const silentPaymentsCardDisplay = 'silentPaymentsCardDisplay';
|
|
static const mwebCardDisplay = 'mwebCardDisplay';
|
|
static const showZcashMissingFundsCard = 'showZcashMissingFundsCard';
|
|
static const mwebEnabled = 'mwebEnabled';
|
|
static const hasEnabledMwebBefore = 'hasEnabledMwebBefore';
|
|
static const mwebAlwaysScan = 'mwebAlwaysScan';
|
|
static const mwebNodeUri = 'mwebNodeUri';
|
|
static const shouldShowReceiveWarning = 'should_show_receive_warning';
|
|
static const shouldShowYatPopup = 'should_show_yat_popup';
|
|
static const shouldShowDEuroDisclaimer = 'should_show_deuro_disclaimer';
|
|
static const shouldShowRepWarning = 'should_show_rep_warning';
|
|
static const moneroWalletPasswordUpdateV1Base = 'monero_wallet_update_v1';
|
|
static const syncModeKey = 'sync_mode';
|
|
static const syncAllKey = 'sync_all';
|
|
static const builtinTorKey = 'builtin_tor';
|
|
static const lastPopupDate = 'last_popup_date';
|
|
static const lastAppReviewDate = 'last_app_review_date';
|
|
static const sortBalanceBy = 'sort_balance_by';
|
|
static const pinNativeTokenAtTop = 'pin_native_token_at_top';
|
|
static const useEtherscan = 'use_etherscan';
|
|
static const usePolygonScan = 'use_polygonscan';
|
|
static const useBaseScan = 'use_base_scan';
|
|
static const useArbiScan = 'use_arbitrum_scan';
|
|
static const useBscScan = 'use_bscscan';
|
|
static const useRobinhoodScan = "use_robinhood_scan";
|
|
static const useTronGrid = 'use_trongrid';
|
|
static const useMempoolFeeAPI = 'use_mempool_fee_api';
|
|
static const evmHiddenChainIds = 'evm_hidden_chain_ids';
|
|
static const defaultNanoRep = 'default_nano_representative';
|
|
static const defaultBananoRep = 'default_banano_representative';
|
|
static const lookupsTwitter = 'looks_up_twitter';
|
|
static const lookupsZanoAlias = 'looks_up_zano_alias';
|
|
static const lookupsMastodon = 'looks_up_mastodon';
|
|
static const lookupsYatService = 'looks_up_yat';
|
|
static const lookupsUnstoppableDomains = 'looks_up_unstoppable_domain';
|
|
static const lookupsOpenAlias = 'looks_up_open_alias';
|
|
static const lookupsENS = 'looks_up_ens';
|
|
static const lookupsZcashNames = 'looks_up_zcash_names';
|
|
static const lookupsZcashAddress = 'looks_up_zcash_address';
|
|
static const lookupsWellKnown = 'looks_up_well_known';
|
|
static const lookupsFio = 'looks_up_fio';
|
|
static const lookupsNostr = 'looks_up_nostr';
|
|
static const lookupsThorChain = 'looks_up_thor_chain';
|
|
static const lookupsBip353 = 'looks_up_bip353';
|
|
static const lookupsLNUrl = 'looks_up_lnurl';
|
|
static const useBlinkProtection = 'use_blink_protection';
|
|
static const usePayjoin = 'use_payjoin';
|
|
static const showPayjoinCard = 'show_payjoin_card';
|
|
static const showCameraConsent = 'show_camera_consent';
|
|
static const showDecredInfoCard = 'show_decred_info_card';
|
|
static const forceDecentralizedExchanges = 'force_decentralized_exchanges';
|
|
static const decentralizedExchangesPromptDismissed = 'decentralized_exchanges_prompt_dismissed';
|
|
static String moneroWalletUpdateV1Key(String name) =>
|
|
'${PreferencesKey.moneroWalletPasswordUpdateV1Base}_${name}';
|
|
|
|
static const exchangeProvidersSelection = 'exchange-providers-selection';
|
|
static const trocadorProviderStatesKey = 'trocador_provider_states';
|
|
static const autoGenerateSubaddressStatusKey = 'auto_generate_subaddress_status';
|
|
static const moneroSeedType = 'monero_seed_type';
|
|
static const bitcoinSeedType = 'bitcoin_seed_type';
|
|
static const nanoSeedType = 'nano_seed_type';
|
|
static const clearnetDonationLink = 'clearnet_donation_link';
|
|
static const onionDonationLink = 'onion_donation_link';
|
|
static const donationLinkWalletName = 'donation_link_wallet_name';
|
|
static const lastSeenAppVersion = 'last_seen_app_version';
|
|
static const shouldShowMarketPlaceInDashboard = 'should_show_marketplace_in_dashboard';
|
|
static const showAddressBookPopupEnabled = 'show_address_book_popup_enabled';
|
|
static const isNewInstall = 'is_new_install';
|
|
static const serviceStatusShaKey = 'service_status_sha_key';
|
|
static const walletConnectPairingTopicsList = 'wallet_connect_pairing_topics_list';
|
|
static String walletConnectPairingTopicsListForWallet(String publicKey) =>
|
|
'${PreferencesKey.walletConnectPairingTopicsList}_${publicKey}';
|
|
static String backgroundSyncLastTrigger(String walletId) =>
|
|
'background_sync_last_trigger_${walletId}';
|
|
static const backgroundSyncNotificationsEnabled = 'background_sync_notifications_enabled';
|
|
static const enableAutomaticNodeSwitching = 'enable_automatic_node_switching';
|
|
static const syncStatusDisplayMode = 'sync_status_display_mode';
|
|
static const backgroundImage = 'background_image';
|
|
static const mwebAdDismissed = "mweb_ad_dismissed";
|
|
static const balanceHideCounter = "balance_hide_counter";
|
|
static const zcashMigrationModalViewed = "zcash_migration_modal_viewed";
|
|
static const showCiBuildOverlay = "show_ci_build_overlay";
|
|
static String deprecationPopupViewed(WalletType type) =>
|
|
"deprecation_popup_viewed_${walletTypeToString(type)}";
|
|
}
|