2020-09-21 11:50:26 +00:00
|
|
|
class PreferencesKey {
|
2021-05-07 07:36:38 +00:00
|
|
|
static const currentWalletType = 'current_wallet_type';
|
|
|
|
static const currentWalletName = 'current_wallet_name';
|
2020-09-21 11:50:26 +00:00
|
|
|
static const currentNodeIdKey = 'current_node_id';
|
|
|
|
static const currentBitcoinElectrumSererIdKey = 'current_node_id_btc';
|
2021-05-07 07:36:38 +00:00
|
|
|
static const currentLitecoinElectrumSererIdKey = 'current_node_id_ltc';
|
2022-03-30 15:57:04 +00:00
|
|
|
static const currentHavenNodeIdKey = 'current_node_id_xhv';
|
2023-08-04 17:01:49 +00:00
|
|
|
static const currentEthereumNodeIdKey = 'current_node_id_eth';
|
2023-12-02 02:26:43 +00:00
|
|
|
static const currentPolygonNodeIdKey = 'current_node_id_matic';
|
2023-10-05 01:09:07 +00:00
|
|
|
static const currentNanoNodeIdKey = 'current_node_id_nano';
|
|
|
|
static const currentNanoPowNodeIdKey = 'current_node_id_nano_pow';
|
|
|
|
static const currentBananoNodeIdKey = 'current_node_id_banano';
|
|
|
|
static const currentBananoPowNodeIdKey = 'current_node_id_banano_pow';
|
2020-09-21 11:50:26 +00:00
|
|
|
static const currentFiatCurrencyKey = 'current_fiat_currency';
|
2023-10-12 22:50:16 +00:00
|
|
|
static const currentBitcoinCashNodeIdKey = 'current_node_id_bch';
|
CW-555-Add-Solana-Wallet (#1272)
* chore: Create cw_solana package and clean up files
* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens
* fix: Make transactions file specific to solana only for solana transactions
* chore: Revert inject app details script
* fix: Fix issue with node and switch current node to main beta instead of testnet
* fix: Fix merge conflicts and adjust migration version
* fix: Fetch spl token error
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
* fix: Diplay and activate spl tokens bug
* fix: Review and fixes
* fix: reverted formatting for cryptocurrency class
* fix: Review comments, split sending flow into signing and sending separately, fix issues
* fix: Revert throwing unimplenented error
* chore: Fix comment
* chore: Fix comment
* fix: Errors in flow
* Update provider_types.dart [skip ci]
* fix: Issues with solana wallet
* Update solana_wallet.dart [skip ci]
* fix: Review comments
* fix: Date time config
* fix: Revert bash script for app details
* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list
* fix: Issues with address validation when sending spl tokens and walletconnect initial setup
* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect
* fix: Adjust imports that would affect monerocom building successfully
* fix: Refine transaction direction and continue work on walletconnect
* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction
* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions
* feat: Switch node and revert solana chain id to previous id
* fix: Remove print statement
* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message
* chore: Code refactoring and streamlined wallet type check for solana send success message
* fix: Make timeout error for node silent and add spl token images
---------
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-02-23 13:39:19 +00:00
|
|
|
static const currentSolanaNodeIdKey = 'current_node_id_sol';
|
CW-525-Add-Tron-Wallet (#1327)
* chore: Initial setup for Tron Wallet
* feat: Create Tron Wallet base flow implemented, keys, address, receive, restore and proxy classes all setup
* feat: Display seed and key within the app
* feat: Activate restore from key and seed for Tron wallet
* feat: Add icon for tron wallet in wallet listing page
* feat: Activate display of receive address for tron
* feat: Fetch and display tron balance, sending transaction flow setup, fee limit calculation setup
* feat: Implement sending of native tron, setup sending of trc20 tokens
* chore: Rename function
* Delete lib/tron/tron.dart
* feat: Activate exchange for tron and its tokens, implement balance display for trc20 tokens and setup secrets configuration for tron
* feat: Implement tron token management, add, remove, delete, and get tokens in home settings view, also minor cleanup
* feat: Activate buy and sell for tron
* feat: Implement restore from QR, transactions history listing for both native transactions and trc20 transactions
* feat: Activate send all and do some minor cleanups
* chore: Fix some lint infos and warnings
* chore: Adjust configurations
* ci: Modify CI to create and add secrets for node
* fix: Fixes made while self reviewing the PR for this feature
* feat: Add guide for adding new wallet types, and add fixes to requested changes
* fix: Handle exceptions gracefully
* fix: Alternative for trc20 estimated fee
* fix: Fixes to display of amount and fee, removing clashes
* fix: Fee calculation WIP
* fix: Fix issue with handling of send all flow and display of amount and fee values before broadcasting transaction
* fix: PR review fixes and fix merge conflicts
* fix: Modify fetching assetOfTransaction [skip ci]
* fix: Move tron settings migration to 33
2024-05-03 18:00:05 +00:00
|
|
|
static const currentTronNodeIdKey = 'current_node_id_trx';
|
2021-01-27 13:51:51 +00:00
|
|
|
static const currentTransactionPriorityKeyLegacy = 'current_fee_priority';
|
2020-09-21 11:50:26 +00:00
|
|
|
static const currentBalanceDisplayModeKey = 'current_balance_display_mode';
|
|
|
|
static const shouldSaveRecipientAddressKey = 'save_recipient_address';
|
2023-04-20 09:59:59 +00:00
|
|
|
static const isAppSecureKey = 'is_app_secure';
|
2023-05-15 12:26:56 +00:00
|
|
|
static const disableBuyKey = 'disable_buy';
|
|
|
|
static const disableSellKey = 'disable_sell';
|
2024-03-25 18:28:45 +00:00
|
|
|
static const disableBulletinKey = 'disable_bulletin';
|
2023-09-14 19:14:49 +00:00
|
|
|
static const defaultBuyProvider = 'default_buy_provider';
|
2023-12-13 21:58:43 +00:00
|
|
|
static const walletListOrder = 'wallet_list_order';
|
|
|
|
static const walletListAscending = 'wallet_list_ascending';
|
2022-12-06 23:38:36 +00:00
|
|
|
static const currentFiatApiModeKey = 'current_fiat_api_mode';
|
2023-05-17 14:43:23 +00:00
|
|
|
static const failedTotpTokenTrials = 'failed_token_trials';
|
2022-11-22 02:18:18 +00:00
|
|
|
static const disableExchangeKey = 'disable_exchange';
|
2023-02-06 19:20:43 +00:00
|
|
|
static const exchangeStatusKey = 'exchange_status';
|
2020-12-10 17:53:40 +00:00
|
|
|
static const currentTheme = 'current_theme';
|
2020-09-21 11:50:26 +00:00
|
|
|
static const displayActionListModeKey = 'display_list_mode';
|
|
|
|
static const currentPinLength = 'current_pin_length';
|
|
|
|
static const currentLanguageCode = 'language_code';
|
2024-01-23 00:30:16 +00:00
|
|
|
static const currentSeedPhraseLength = 'current_seed_phrase_length';
|
2021-05-07 07:36:38 +00:00
|
|
|
static const currentDefaultSettingsMigrationVersion =
|
|
|
|
'current_default_settings_migration_version';
|
2021-01-27 13:51:51 +00:00
|
|
|
static const moneroTransactionPriority = 'current_fee_priority_monero';
|
|
|
|
static const bitcoinTransactionPriority = 'current_fee_priority_bitcoin';
|
2022-12-08 15:23:17 +00:00
|
|
|
static const havenTransactionPriority = 'current_fee_priority_haven';
|
|
|
|
static const litecoinTransactionPriority = 'current_fee_priority_litecoin';
|
2023-08-04 17:01:49 +00:00
|
|
|
static const ethereumTransactionPriority = 'current_fee_priority_ethereum';
|
2023-12-02 02:26:43 +00:00
|
|
|
static const polygonTransactionPriority = 'current_fee_priority_polygon';
|
2023-10-12 22:50:16 +00:00
|
|
|
static const bitcoinCashTransactionPriority = 'current_fee_priority_bitcoin_cash';
|
2024-04-08 14:54:58 +00:00
|
|
|
static const customBitcoinFeeRate = 'custom_electrum_fee_rate';
|
Cw 453 (#1306)
* feat: rebase btc-addr-types, migrate to bitcoin_base
* feat: allow scanning elect-rs using get_tweaks
* feat: scanning and adding addresses working with getTweaks, add btc SP address type
* chore: pubspec.lock
* chore: pubspec.lock
* fix: scan when switching, fix multiple unspents in same tx
* fix: initial scan
* fix: initial scan
* fix: scanning issues
* fix: sync, storing silent unspents
* chore: deps
* fix: label issues, clear spent utxo
* chore: deps
* fix: build
* fix: missing types
* feat: new electrs API & changes, fixes for last block scanning
* feat: Scan Silent Payments homepage toggle
* chore: build configure
* feat: generic fixes, testnet UI improvements, useSSL on bitcoin nodes
* fix: invalid Object in sendData
* feat: improve addresses page & address book displays
* feat: silent payments labeled addresses disclaimer
* fix: missing i18n
* chore: print
* feat: single block scan, rescan by date working for btc mainnet
* feat: new cake features page replace market page, move sp scan toggle, auto switch node pop up alert
* feat: delete silent addresses
* fix: red dot in non ssl nodes
* fix: inconsistent connection states, fix tx history
* fix: tx & balance displays, cpfp sending
* feat: new rust lib
* chore: node path
* fix: check node based on network
* fix: missing txcount from addresses
* style: padding in feature page cards
* fix: restore not getting all wallet addresses by type
* fix: auto switch node broken
* fix: silent payment txs not being restored
* feat: change scanning to subscription model, sync improvements
* fix: scan re-subscription
* fix: default nodes
* fix: improve scanning by date, fix single block scan
* refactor: common function for input tx selection
* fix: nodes & build
* fix: send all with multiple outs
* refactor: unchanged file
* Update pr_test_build.yml
* chore: upgrade
* chore: merge changes
* refactor: unchanged files [skip ci]
* fix: scan fixes, add date, allow sending while scanning
* feat: sync fixes, sp settings
* feat: fix resyncing
* fix: date from height logic, status disconnected & chain tip get
* fix: params
* feat: electrum migration if using cake electrum
* fix nodes
update versions
* re-enable tron
* update sp_scanner to work on iOS [skip ci]
* fix: wrong socket for old electrum nodes
* Fix unchecked wallet type call
* fix: double balance
* feat: node domain
* fix: menu name
* fix: update tip on set scanning
* fix: connection switching back and forth
* feat: check if node is electrs, and supports sp
* chore: fix build
* minor enhancements
* fixes and enhancements
* solve conflicts with main
* fix: status toggle
* minor enhancement
* Monero.com fixes
* update sp_scanner to include windows and linux
---------
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-05-29 14:43:48 +00:00
|
|
|
static const silentPaymentsCardDisplay = 'silentPaymentsCardDisplay';
|
|
|
|
static const silentPaymentsAlwaysScan = 'silentPaymentsAlwaysScan';
|
2021-06-04 10:30:59 +00:00
|
|
|
static const shouldShowReceiveWarning = 'should_show_receive_warning';
|
2021-10-04 13:03:35 +00:00
|
|
|
static const shouldShowYatPopup = 'should_show_yat_popup';
|
2024-04-12 12:36:42 +00:00
|
|
|
static const shouldShowRepWarning = 'should_show_rep_warning';
|
2022-07-19 14:29:28 +00:00
|
|
|
static const moneroWalletPasswordUpdateV1Base = 'monero_wallet_update_v1';
|
2023-08-04 17:55:56 +00:00
|
|
|
static const syncModeKey = 'sync_mode';
|
|
|
|
static const syncAllKey = 'sync_all';
|
2023-02-07 14:53:57 +00:00
|
|
|
static const lastPopupDate = 'last_popup_date';
|
2023-04-17 18:06:58 +00:00
|
|
|
static const lastAppReviewDate = 'last_app_review_date';
|
2023-08-04 17:01:49 +00:00
|
|
|
static const sortBalanceBy = 'sort_balance_by';
|
|
|
|
static const pinNativeTokenAtTop = 'pin_native_token_at_top';
|
|
|
|
static const useEtherscan = 'use_etherscan';
|
2023-12-02 02:26:43 +00:00
|
|
|
static const usePolygonScan = 'use_polygonscan';
|
2024-05-08 14:26:57 +00:00
|
|
|
static const useTronGrid = 'use_trongrid';
|
2023-11-17 18:35:46 +00:00
|
|
|
static const defaultNanoRep = 'default_nano_representative';
|
|
|
|
static const defaultBananoRep = 'default_banano_representative';
|
2023-11-03 19:23:11 +00:00
|
|
|
static const lookupsTwitter = 'looks_up_twitter';
|
|
|
|
static const lookupsMastodon = 'looks_up_mastodon';
|
2024-05-08 20:23:27 +00:00
|
|
|
static const lookupsYatService = 'looks_up_yat';
|
|
|
|
static const lookupsUnstoppableDomains = 'looks_up_unstoppable_domain';
|
|
|
|
static const lookupsOpenAlias = 'looks_up_open_alias';
|
2023-11-03 19:23:11 +00:00
|
|
|
static const lookupsENS = 'looks_up_ens';
|
2024-05-22 01:18:04 +00:00
|
|
|
static const showCameraConsent = 'show_camera_consent';
|
2023-04-17 18:06:58 +00:00
|
|
|
|
2023-08-04 13:49:26 +00:00
|
|
|
static String moneroWalletUpdateV1Key(String name) =>
|
|
|
|
'${PreferencesKey.moneroWalletPasswordUpdateV1Base}_${name}';
|
2022-09-01 14:12:38 +00:00
|
|
|
|
|
|
|
static const exchangeProvidersSelection = 'exchange-providers-selection';
|
2023-08-29 16:11:51 +00:00
|
|
|
static const autoGenerateSubaddressStatusKey = 'auto_generate_subaddress_status';
|
2023-11-25 00:37:12 +00:00
|
|
|
static const moneroSeedType = 'monero_seed_type';
|
2023-08-04 13:49:26 +00:00
|
|
|
static const clearnetDonationLink = 'clearnet_donation_link';
|
2023-04-21 15:21:31 +00:00
|
|
|
static const onionDonationLink = 'onion_donation_link';
|
2024-06-20 23:17:19 +00:00
|
|
|
static const donationLinkWalletName = 'donation_link_wallet_name';
|
2023-04-21 15:21:31 +00:00
|
|
|
static const lastSeenAppVersion = 'last_seen_app_version';
|
2023-10-03 14:56:10 +00:00
|
|
|
static const shouldShowMarketPlaceInDashboard = 'should_show_marketplace_in_dashboard';
|
2023-04-21 15:21:31 +00:00
|
|
|
static const isNewInstall = 'is_new_install';
|
2024-03-10 02:02:30 +00:00
|
|
|
static const serviceStatusShaKey = 'service_status_sha_key';
|
CW-589-WalletConnect-Connections-Independent (#1361)
* chore: Create cw_solana package and clean up files
* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens
* fix: Make transactions file specific to solana only for solana transactions
* chore: Revert inject app details script
* fix: Fix issue with node and switch current node to main beta instead of testnet
* fix: Fix merge conflicts and adjust migration version
* fix: Fetch spl token error
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
* fix: Diplay and activate spl tokens bug
* fix: Review and fixes
* fix: reverted formatting for cryptocurrency class
* fix: Review comments, split sending flow into signing and sending separately, fix issues
* fix: Revert throwing unimplenented error
* chore: Fix comment
* chore: Fix comment
* fix: Errors in flow
* Update provider_types.dart [skip ci]
* fix: Issues with solana wallet
* Update solana_wallet.dart [skip ci]
* fix: Review comments
* fix: Date time config
* fix: Revert bash script for app details
* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list
* fix: Issues with address validation when sending spl tokens and walletconnect initial setup
* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect
* fix: Adjust imports that would affect monerocom building successfully
* fix: Refine transaction direction and continue work on walletconnect
* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction
* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions
* feat: Switch node and revert solana chain id to previous id
* fix: Remove print statement
* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message
* chore: Code refactoring and streamlined wallet type check for solana send success message
* fix: Make timeout error for node silent and add spl token images
* fix: Still trying to figure out what's wrong
* feat: Make walletconnect connections independent to wallet
* fix: Add proper return type to method
* fix: Alphabetizing translation files
---------
Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-04-12 00:33:43 +00:00
|
|
|
static const walletConnectPairingTopicsList = 'wallet_connect_pairing_topics_list';
|
|
|
|
static String walletConnectPairingTopicsListForWallet(String publicKey) =>
|
|
|
|
'${PreferencesKey.walletConnectPairingTopicsList}_${publicKey}';
|
2021-05-07 07:36:38 +00:00
|
|
|
}
|