wallet-stack 1.0.0-alpha.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/app.plugin.js +1 -0
- package/locales/base/translation.json +2998 -0
- package/locales/de/translation.json +2998 -0
- package/locales/en-US/translation.json +2998 -0
- package/locales/es-419/translation.json +2998 -0
- package/locales/fr-FR/translation.json +2998 -0
- package/locales/index.ts +163 -0
- package/locales/it-IT/translation.json +2998 -0
- package/locales/pl-PL/translation.json +3004 -0
- package/locales/pt-BR/translation.json +2998 -0
- package/locales/ru-RU/translation.json +3004 -0
- package/locales/th-TH/translation.json +2995 -0
- package/locales/tr-TR/translation.json +2998 -0
- package/locales/uk-UA/translation.json +3004 -0
- package/locales/vi-VN/translation.json +2995 -0
- package/locales/zh-CN/translation.json +2995 -0
- package/metro-config.js +40 -0
- package/package.json +227 -0
- package/plugin/build/consts.d.ts +2 -0
- package/plugin/build/consts.js +6 -0
- package/plugin/build/index.d.ts +8 -0
- package/plugin/build/index.js +21 -0
- package/plugin/build/withAndroidUserAgent.d.ts +8 -0
- package/plugin/build/withAndroidUserAgent.js +86 -0
- package/plugin/build/withAndroidWindowSoftInputModeAdjustNothing.d.ts +6 -0
- package/plugin/build/withAndroidWindowSoftInputModeAdjustNothing.js +16 -0
- package/plugin/build/withIosAppDelegateResetKeychain.d.ts +2 -0
- package/plugin/build/withIosAppDelegateResetKeychain.js +77 -0
- package/plugin/build/withIosUserAgent.d.ts +8 -0
- package/plugin/build/withIosUserAgent.js +56 -0
- package/plugin/tsconfig.json +13 -0
- package/src/RevokePhoneNumber.tsx +117 -0
- package/src/abis/IWalletJumpstart.ts +472 -0
- package/src/account/AccountErrorScreen.test.tsx +47 -0
- package/src/account/AccountErrorScreen.tsx +72 -0
- package/src/account/AccountKeyEducation.test.tsx +20 -0
- package/src/account/AccountKeyEducation.tsx +83 -0
- package/src/account/AccountSetupFailureScreen.test.tsx +59 -0
- package/src/account/AccountSetupFailureScreen.tsx +42 -0
- package/src/account/Education.test.tsx +48 -0
- package/src/account/Education.tsx +235 -0
- package/src/account/GoldEducation.test.tsx +35 -0
- package/src/account/GoldEducation.tsx +82 -0
- package/src/account/LegalSubmenu.test.tsx +84 -0
- package/src/account/LegalSubmenu.tsx +74 -0
- package/src/account/LicenseDisclaimer.txt +15310 -0
- package/src/account/Licenses.test.tsx +17 -0
- package/src/account/Licenses.tsx +43 -0
- package/src/account/PreferencesSubmenu.test.tsx +66 -0
- package/src/account/PreferencesSubmenu.tsx +87 -0
- package/src/account/PrivateKey.test.tsx +241 -0
- package/src/account/PrivateKey.tsx +169 -0
- package/src/account/Profile.test.tsx +77 -0
- package/src/account/Profile.tsx +153 -0
- package/src/account/ProfileSubmenu.test.tsx +105 -0
- package/src/account/ProfileSubmenu.tsx +89 -0
- package/src/account/SecuritySubmenu.test.tsx +305 -0
- package/src/account/SecuritySubmenu.tsx +435 -0
- package/src/account/ShakeForSupport.test.tsx +23 -0
- package/src/account/ShakeForSupport.tsx +112 -0
- package/src/account/StoreWipeRecoveryScreen.test.tsx +39 -0
- package/src/account/StoreWipeRecoveryScreen.tsx +50 -0
- package/src/account/Support.test.tsx +67 -0
- package/src/account/Support.tsx +69 -0
- package/src/account/SupportContact.test.tsx +95 -0
- package/src/account/SupportContact.tsx +265 -0
- package/src/account/__snapshots__/AccountKeyEducation.test.tsx.snap +579 -0
- package/src/account/__snapshots__/Education.test.tsx.snap +286 -0
- package/src/account/__snapshots__/GoldEducation.test.tsx.snap +579 -0
- package/src/account/__snapshots__/Licenses.test.tsx.snap +33 -0
- package/src/account/__snapshots__/ShakeForSupport.test.tsx.snap +3 -0
- package/src/account/actions.ts +270 -0
- package/src/account/reducer.test.ts +28 -0
- package/src/account/reducer.ts +296 -0
- package/src/account/saga.test.ts +209 -0
- package/src/account/saga.ts +249 -0
- package/src/account/selectors.test.ts +18 -0
- package/src/account/selectors.ts +60 -0
- package/src/account/updateAccountRegistration.ts +35 -0
- package/src/account/utils.ts +36 -0
- package/src/account/zendesk.test.ts +166 -0
- package/src/account/zendesk.ts +199 -0
- package/src/alert/AlertBanner.test.tsx +123 -0
- package/src/alert/AlertBanner.tsx +84 -0
- package/src/alert/actions.ts +127 -0
- package/src/alert/reducer.ts +52 -0
- package/src/analytics/AppAnalytics.test.ts +334 -0
- package/src/analytics/AppAnalytics.ts +369 -0
- package/src/analytics/AsyncStoragePersistor.ts +34 -0
- package/src/analytics/Events.test.tsx +49 -0
- package/src/analytics/Events.tsx +648 -0
- package/src/analytics/InjectTraits.ts +34 -0
- package/src/analytics/Properties.tsx +1645 -0
- package/src/analytics/README.md +24 -0
- package/src/analytics/docs.ts +675 -0
- package/src/analytics/saga.test.ts +57 -0
- package/src/analytics/saga.ts +21 -0
- package/src/analytics/selectors.test.ts +391 -0
- package/src/analytics/selectors.ts +200 -0
- package/src/analytics/types.ts +46 -0
- package/src/app/App.test.tsx +25 -0
- package/src/app/App.tsx +124 -0
- package/src/app/AppInitGate.test.tsx +100 -0
- package/src/app/AppInitGate.tsx +77 -0
- package/src/app/AppLoading.test.tsx +11 -0
- package/src/app/AppLoading.tsx +79 -0
- package/src/app/DebugImages.tsx +110 -0
- package/src/app/ErrorBoundary.test.tsx +19 -0
- package/src/app/ErrorBoundary.tsx +41 -0
- package/src/app/ErrorMessages.ts +40 -0
- package/src/app/ErrorScreen.test.tsx +26 -0
- package/src/app/ErrorScreen.tsx +57 -0
- package/src/app/SanctionedCountryErrorScreen.tsx +37 -0
- package/src/app/UpgradeScreen.tsx +28 -0
- package/src/app/__snapshots__/AppLoading.test.tsx.snap +35 -0
- package/src/app/__snapshots__/ErrorScreen.test.tsx.snap +365 -0
- package/src/app/actions.ts +301 -0
- package/src/app/crowd_mobile.png +0 -0
- package/src/app/reducers.ts +204 -0
- package/src/app/saga.test.ts +651 -0
- package/src/app/saga.ts +367 -0
- package/src/app/selectors.ts +53 -0
- package/src/app/useDeepLinks.test.tsx +43 -0
- package/src/app/useDeepLinks.ts +72 -0
- package/src/app/utils.ts +14 -0
- package/src/appConfig.test.ts +37 -0
- package/src/appConfig.ts +20 -0
- package/src/backup/BackupComplete.test.tsx +61 -0
- package/src/backup/BackupComplete.tsx +69 -0
- package/src/backup/BackupIntroduction.test.tsx +37 -0
- package/src/backup/BackupIntroduction.tsx +157 -0
- package/src/backup/BackupPhrase.test.tsx +71 -0
- package/src/backup/BackupPhrase.tsx +208 -0
- package/src/backup/BackupPhraseContainer.test.tsx +43 -0
- package/src/backup/BackupPhraseContainer.tsx +207 -0
- package/src/backup/BackupQuiz.test.tsx +130 -0
- package/src/backup/BackupQuiz.tsx +429 -0
- package/src/backup/CancelConfirm.tsx +60 -0
- package/src/backup/QuizzBottom.tsx +57 -0
- package/src/backup/__snapshots__/BackupComplete.test.tsx.snap +58 -0
- package/src/backup/__snapshots__/BackupPhrase.test.tsx.snap +906 -0
- package/src/backup/__snapshots__/BackupPhraseContainer.test.tsx.snap +719 -0
- package/src/backup/__snapshots__/BackupQuiz.test.tsx.snap +1313 -0
- package/src/backup/utils.test.ts +91 -0
- package/src/backup/utils.ts +103 -0
- package/src/celoNews/CeloNewsFeed.test.tsx +157 -0
- package/src/celoNews/CeloNewsFeed.tsx +161 -0
- package/src/celoNews/CeloNewsFeedItem.test.tsx +46 -0
- package/src/celoNews/CeloNewsFeedItem.tsx +104 -0
- package/src/celoNews/types.ts +14 -0
- package/src/components/AccountNumber.test.tsx +25 -0
- package/src/components/AccountNumber.tsx +78 -0
- package/src/components/AccountNumberCard.tsx +23 -0
- package/src/components/Avatar.test.tsx +67 -0
- package/src/components/Avatar.tsx +72 -0
- package/src/components/BackButton.tsx +44 -0
- package/src/components/BeatingHeartLoader.tsx +39 -0
- package/src/components/BorderlessButton.tsx +25 -0
- package/src/components/BottomSheet.tsx +84 -0
- package/src/components/BottomSheetBase.tsx +87 -0
- package/src/components/BottomSheetScrollView.tsx +54 -0
- package/src/components/Button.test.tsx +94 -0
- package/src/components/Button.tsx +259 -0
- package/src/components/CallToActionsBar.tsx +68 -0
- package/src/components/CancelButton.test.tsx +11 -0
- package/src/components/CancelButton.tsx +58 -0
- package/src/components/Card.tsx +34 -0
- package/src/components/CircleButton.test.tsx +35 -0
- package/src/components/CircleButton.tsx +64 -0
- package/src/components/ClipboardAwarePasteButton.tsx +65 -0
- package/src/components/CloseButton.tsx +41 -0
- package/src/components/CodeInput.test.tsx +26 -0
- package/src/components/CodeInput.tsx +124 -0
- package/src/components/CodeRow.test.tsx +27 -0
- package/src/components/CodeRow.tsx +163 -0
- package/src/components/ContactCircle.test.tsx +67 -0
- package/src/components/ContactCircle.tsx +133 -0
- package/src/components/ContactCircleSelf.tsx +28 -0
- package/src/components/CurrencyDisplay.tsx +242 -0
- package/src/components/DataFieldWithCopy.tsx +75 -0
- package/src/components/DevSkipButton.tsx +105 -0
- package/src/components/Dialog.test.tsx +14 -0
- package/src/components/Dialog.tsx +124 -0
- package/src/components/Dropdown.tsx +98 -0
- package/src/components/EmptyView.tsx +34 -0
- package/src/components/ErrorMessageInline.tsx +78 -0
- package/src/components/ExchangesBottomSheet.test.tsx +84 -0
- package/src/components/ExchangesBottomSheet.tsx +74 -0
- package/src/components/Expandable.tsx +57 -0
- package/src/components/FeeDrawer.test.tsx +150 -0
- package/src/components/FeeDrawer.tsx +127 -0
- package/src/components/FeeIcon.test.tsx +14 -0
- package/src/components/FeeIcon.tsx +95 -0
- package/src/components/FeeInfoBottomSheet.test.tsx +320 -0
- package/src/components/FeeInfoBottomSheet.tsx +219 -0
- package/src/components/FilterChipsCarousel.tsx +143 -0
- package/src/components/FormField.tsx +23 -0
- package/src/components/FormLabel.tsx +21 -0
- package/src/components/FormTextInput.tsx +16 -0
- package/src/components/FullscreenCTA.test.tsx +58 -0
- package/src/components/FullscreenCTA.tsx +60 -0
- package/src/components/GasFeeWarning.test.tsx +126 -0
- package/src/components/GasFeeWarning.tsx +124 -0
- package/src/components/GradientBlock.tsx +20 -0
- package/src/components/HorizontalLine.tsx +18 -0
- package/src/components/IconWithNetworkBadge.test.tsx +49 -0
- package/src/components/IconWithNetworkBadge.tsx +69 -0
- package/src/components/InLineNotification.test.tsx +74 -0
- package/src/components/InLineNotification.tsx +160 -0
- package/src/components/InfoBottomSheet.test.tsx +55 -0
- package/src/components/InfoBottomSheet.tsx +79 -0
- package/src/components/ItemSeparator.test.tsx +8 -0
- package/src/components/ItemSeparator.tsx +16 -0
- package/src/components/KeyboardAwareScrollView.tsx +104 -0
- package/src/components/KeyboardSpacer.tsx +168 -0
- package/src/components/LabelWithInfo.tsx +57 -0
- package/src/components/LegacyTokenDisplay.test.tsx +282 -0
- package/src/components/LegacyTokenDisplay.tsx +63 -0
- package/src/components/LegacyTokenTotalLineItem.test.tsx +90 -0
- package/src/components/LegacyTokenTotalLineItem.tsx +38 -0
- package/src/components/LineItemRow.tsx +74 -0
- package/src/components/ListItem.test.tsx +19 -0
- package/src/components/ListItem.tsx +44 -0
- package/src/components/MessagingCard.tsx +21 -0
- package/src/components/Modal.tsx +57 -0
- package/src/components/NumberKeypad.test.tsx +21 -0
- package/src/components/NumberKeypad.tsx +102 -0
- package/src/components/NumberTicker.tsx +115 -0
- package/src/components/OnboardingCard.tsx +61 -0
- package/src/components/Pagination.tsx +39 -0
- package/src/components/PercentageIndicator.test.tsx +118 -0
- package/src/components/PercentageIndicator.tsx +75 -0
- package/src/components/PhoneNumberInput.test.tsx +99 -0
- package/src/components/PhoneNumberInput.tsx +132 -0
- package/src/components/PhoneNumberWithFlag.tsx +54 -0
- package/src/components/QrScanButton.test.tsx +21 -0
- package/src/components/QrScanButton.tsx +30 -0
- package/src/components/RecoveryPhraseInput.test.tsx +26 -0
- package/src/components/RecoveryPhraseInput.tsx +188 -0
- package/src/components/ReviewHeader.test.tsx +21 -0
- package/src/components/ReviewHeader.tsx +36 -0
- package/src/components/ReviewTransaction.test.tsx +474 -0
- package/src/components/ReviewTransaction.tsx +526 -0
- package/src/components/RowDivider.tsx +36 -0
- package/src/components/SearchInput.tsx +40 -0
- package/src/components/SectionHead.test.tsx +9 -0
- package/src/components/SectionHead.tsx +33 -0
- package/src/components/SegmentedControl.test.tsx +28 -0
- package/src/components/SegmentedControl.tsx +156 -0
- package/src/components/SelectRecipientButton.tsx +89 -0
- package/src/components/SelectionOption.test.tsx +18 -0
- package/src/components/SelectionOption.tsx +62 -0
- package/src/components/SettingsGearButton.tsx +30 -0
- package/src/components/SettingsItem.test.tsx +80 -0
- package/src/components/SettingsItem.tsx +195 -0
- package/src/components/SimpleMessagingCard.test.tsx +54 -0
- package/src/components/SimpleMessagingCard.tsx +90 -0
- package/src/components/SingleDigitInput.tsx +53 -0
- package/src/components/SkeletonPlaceholder.tsx +33 -0
- package/src/components/SmallButton.test.tsx +41 -0
- package/src/components/SmallButton.tsx +74 -0
- package/src/components/SmartTopAlert.test.tsx +22 -0
- package/src/components/SmartTopAlert.tsx +183 -0
- package/src/components/Switch.tsx +19 -0
- package/src/components/TextButton.tsx +22 -0
- package/src/components/TextInput.tsx +133 -0
- package/src/components/TextInputWithButtons.test.tsx +24 -0
- package/src/components/TextInputWithButtons.tsx +54 -0
- package/src/components/Toast.test.tsx +62 -0
- package/src/components/Toast.tsx +180 -0
- package/src/components/TokenBalance.test.tsx +389 -0
- package/src/components/TokenBalance.tsx +321 -0
- package/src/components/TokenBottomSheet.test.tsx +356 -0
- package/src/components/TokenBottomSheet.tsx +413 -0
- package/src/components/TokenDisplay.test.tsx +274 -0
- package/src/components/TokenDisplay.tsx +104 -0
- package/src/components/TokenEnterAmount.test.tsx +461 -0
- package/src/components/TokenEnterAmount.tsx +591 -0
- package/src/components/TokenIcon.test.tsx +93 -0
- package/src/components/TokenIcon.tsx +142 -0
- package/src/components/TokenTotalLineItem.test.tsx +199 -0
- package/src/components/TokenTotalLineItem.tsx +103 -0
- package/src/components/Touchable.tsx +48 -0
- package/src/components/ValidatedTextInput.tsx +96 -0
- package/src/components/WebView.tsx +43 -0
- package/src/components/WithPasteAware.tsx +113 -0
- package/src/components/WithTextInputPasteAware.tsx +51 -0
- package/src/components/__snapshots__/AccountNumber.test.tsx.snap +87 -0
- package/src/components/__snapshots__/Avatar.test.tsx.snap +435 -0
- package/src/components/__snapshots__/Button.test.tsx.snap +292 -0
- package/src/components/__snapshots__/CircleButton.test.tsx.snap +211 -0
- package/src/components/__snapshots__/CodeRow.test.tsx.snap +211 -0
- package/src/components/__snapshots__/ContactCircle.test.tsx.snap +46 -0
- package/src/components/__snapshots__/Dialog.test.tsx.snap +248 -0
- package/src/components/__snapshots__/FeeIcon.test.tsx.snap +147 -0
- package/src/components/__snapshots__/FullscreenCTA.test.tsx.snap +183 -0
- package/src/components/__snapshots__/ItemSeparator.test.tsx.snap +13 -0
- package/src/components/__snapshots__/NumberKeypad.test.tsx.snap +1434 -0
- package/src/components/__snapshots__/PhoneNumberInput.test.tsx.snap +202 -0
- package/src/components/__snapshots__/SectionHead.test.tsx.snap +32 -0
- package/src/components/__snapshots__/SelectionOption.test.tsx.snap +197 -0
- package/src/components/__snapshots__/SettingsItem.test.tsx.snap +226 -0
- package/src/components/__snapshots__/SmartTopAlert.test.tsx.snap +103 -0
- package/src/components/__snapshots__/TextInputWithButtons.test.tsx.snap +78 -0
- package/src/components/header/CustomHeader.tsx +56 -0
- package/src/components/multiSelect/MultiSelectBottomSheet.test.tsx +175 -0
- package/src/components/multiSelect/MultiSelectBottomSheet.tsx +249 -0
- package/src/components/multiSelect/NetworkMultiSelectBottomSheet.test.tsx +77 -0
- package/src/components/multiSelect/NetworkMultiSelectBottomSheet.tsx +56 -0
- package/src/components/useShowOrHideAnimation.tsx +33 -0
- package/src/config.enc +0 -0
- package/src/config.ts +186 -0
- package/src/dapps/DappShortcutTransactionRequest.test.tsx +187 -0
- package/src/dapps/DappShortcutTransactionRequest.tsx +270 -0
- package/src/dapps/DappShortcutsRewards.test.tsx +292 -0
- package/src/dapps/DappShortcutsRewards.tsx +284 -0
- package/src/dapps/DappsScreen.test.tsx +716 -0
- package/src/dapps/DappsScreen.tsx +365 -0
- package/src/dapps/saga.test.ts +194 -0
- package/src/dapps/saga.ts +136 -0
- package/src/dapps/selectors.test.ts +127 -0
- package/src/dapps/selectors.ts +123 -0
- package/src/dapps/slice.ts +110 -0
- package/src/dapps/types.ts +30 -0
- package/src/dappsExplorer/DappCard.tsx +141 -0
- package/src/dappsExplorer/DappFeaturedActions.test.tsx +72 -0
- package/src/dappsExplorer/DappFeaturedActions.tsx +121 -0
- package/src/dappsExplorer/DiscoverDappsCard.tsx +186 -0
- package/src/dappsExplorer/NoResults.tsx +126 -0
- package/src/dappsExplorer/TabDiscover.test.tsx +397 -0
- package/src/dappsExplorer/TabDiscover.tsx +76 -0
- package/src/dappsExplorer/searchDappList.test.tsx +69 -0
- package/src/dappsExplorer/searchDappList.tsx +113 -0
- package/src/dappsExplorer/useDappFavoritedToast.tsx +56 -0
- package/src/dappsExplorer/useOpenDapp.tsx +31 -0
- package/src/divviProtocol/saga.test.ts +51 -0
- package/src/divviProtocol/saga.ts +44 -0
- package/src/earn/ActionCard.tsx +46 -0
- package/src/earn/EarnDepositConfirmationScreen.test.tsx +603 -0
- package/src/earn/EarnDepositConfirmationScreen.tsx +596 -0
- package/src/earn/EarnEnterAmount.test.tsx +1296 -0
- package/src/earn/EarnEnterAmount.tsx +815 -0
- package/src/earn/EarnEntrypoint.test.tsx +100 -0
- package/src/earn/EarnEntrypoint.tsx +127 -0
- package/src/earn/EarnHome.test.tsx +237 -0
- package/src/earn/EarnHome.tsx +411 -0
- package/src/earn/EarnInfoScreen.test.tsx +96 -0
- package/src/earn/EarnInfoScreen.tsx +174 -0
- package/src/earn/EarnTabBar.test.tsx +43 -0
- package/src/earn/EarnTabBar.tsx +73 -0
- package/src/earn/EarnWithdrawConfirmationScreen.test.tsx +1022 -0
- package/src/earn/EarnWithdrawConfirmationScreen.tsx +476 -0
- package/src/earn/PoolCard.test.tsx +68 -0
- package/src/earn/PoolCard.tsx +218 -0
- package/src/earn/PoolList.tsx +87 -0
- package/src/earn/TabEarn.test.tsx +159 -0
- package/src/earn/TabEarn.tsx +354 -0
- package/src/earn/hooks.test.tsx +328 -0
- package/src/earn/hooks.ts +178 -0
- package/src/earn/poolInfoScreen/BeforeDepositBottomSheet.test.tsx +411 -0
- package/src/earn/poolInfoScreen/BeforeDepositBottomSheet.tsx +448 -0
- package/src/earn/poolInfoScreen/Cards.tsx +383 -0
- package/src/earn/poolInfoScreen/EarnPoolInfoScreen.test.tsx +498 -0
- package/src/earn/poolInfoScreen/EarnPoolInfoScreen.tsx +595 -0
- package/src/earn/poolInfoScreen/SafetyCard.test.tsx +108 -0
- package/src/earn/poolInfoScreen/SafetyCard.tsx +165 -0
- package/src/earn/poolInfoScreen/TokenIcons.tsx +37 -0
- package/src/earn/poolInfoScreen/WithdrawBottomSheet.test.tsx +235 -0
- package/src/earn/poolInfoScreen/WithdrawBottomSheet.tsx +168 -0
- package/src/earn/prepareTransactions.test.ts +616 -0
- package/src/earn/prepareTransactions.ts +281 -0
- package/src/earn/saga.test.ts +1149 -0
- package/src/earn/saga.ts +456 -0
- package/src/earn/selectors.ts +5 -0
- package/src/earn/simulateTransactions.test.ts +121 -0
- package/src/earn/simulateTransactions.ts +58 -0
- package/src/earn/slice.test.ts +87 -0
- package/src/earn/slice.ts +73 -0
- package/src/earn/types.ts +70 -0
- package/src/earn/utils.test.ts +48 -0
- package/src/earn/utils.ts +54 -0
- package/src/fiatExchanges/BidaliScreen.test.tsx +163 -0
- package/src/fiatExchanges/BidaliScreen.tsx +189 -0
- package/src/fiatExchanges/CashInSuccess.test.tsx +54 -0
- package/src/fiatExchanges/CashInSuccess.tsx +104 -0
- package/src/fiatExchanges/ExchangeQR.test.tsx +100 -0
- package/src/fiatExchanges/ExchangeQR.tsx +94 -0
- package/src/fiatExchanges/ExternalExchanges.test.tsx +67 -0
- package/src/fiatExchanges/ExternalExchanges.tsx +104 -0
- package/src/fiatExchanges/FiatExchangeAmount.test.tsx +418 -0
- package/src/fiatExchanges/FiatExchangeAmount.tsx +305 -0
- package/src/fiatExchanges/FiatExchangeCurrencyBottomSheet.test.tsx +309 -0
- package/src/fiatExchanges/FiatExchangeCurrencyBottomSheet.tsx +139 -0
- package/src/fiatExchanges/PaymentMethodSection.test.tsx +259 -0
- package/src/fiatExchanges/PaymentMethodSection.tsx +378 -0
- package/src/fiatExchanges/ReviewFees.test.tsx +74 -0
- package/src/fiatExchanges/ReviewFees.tsx +202 -0
- package/src/fiatExchanges/SelectProvider.test.tsx +415 -0
- package/src/fiatExchanges/SelectProvider.tsx +649 -0
- package/src/fiatExchanges/SimplexScreen.test.tsx +109 -0
- package/src/fiatExchanges/SimplexScreen.tsx +185 -0
- package/src/fiatExchanges/Spend.tsx +104 -0
- package/src/fiatExchanges/WithdrawSpend.test.tsx +37 -0
- package/src/fiatExchanges/WithdrawSpend.tsx +139 -0
- package/src/fiatExchanges/__snapshots__/CashInSuccess.test.tsx.snap +351 -0
- package/src/fiatExchanges/__snapshots__/FiatExchangeAmount.test.tsx.snap +397 -0
- package/src/fiatExchanges/__snapshots__/ReviewFees.test.tsx.snap +844 -0
- package/src/fiatExchanges/__snapshots__/SimplexScreen.test.tsx.snap +1083 -0
- package/src/fiatExchanges/actions.ts +67 -0
- package/src/fiatExchanges/amount.test.tsx +48 -0
- package/src/fiatExchanges/amount.tsx +45 -0
- package/src/fiatExchanges/quotes/ExternalQuote.test.ts +172 -0
- package/src/fiatExchanges/quotes/ExternalQuote.ts +121 -0
- package/src/fiatExchanges/quotes/FiatConnectQuote.test.ts +718 -0
- package/src/fiatExchanges/quotes/FiatConnectQuote.ts +343 -0
- package/src/fiatExchanges/quotes/NormalizedQuote.ts +47 -0
- package/src/fiatExchanges/quotes/constants.ts +63 -0
- package/src/fiatExchanges/quotes/normalizeQuotes.test.ts +102 -0
- package/src/fiatExchanges/quotes/normalizeQuotes.ts +76 -0
- package/src/fiatExchanges/quotes/utils.ts +31 -0
- package/src/fiatExchanges/reducer.ts +65 -0
- package/src/fiatExchanges/saga.test.ts +281 -0
- package/src/fiatExchanges/saga.ts +195 -0
- package/src/fiatExchanges/types.ts +104 -0
- package/src/fiatExchanges/utils.test.ts +159 -0
- package/src/fiatExchanges/utils.tsx +287 -0
- package/src/fiatconnect/FiatDetailsScreen.test.tsx +371 -0
- package/src/fiatconnect/FiatDetailsScreen.tsx +441 -0
- package/src/fiatconnect/LinkAccountScreen.test.tsx +107 -0
- package/src/fiatconnect/LinkAccountScreen.tsx +180 -0
- package/src/fiatconnect/RefetchQuoteScreen.test.tsx +119 -0
- package/src/fiatconnect/RefetchQuoteScreen.tsx +68 -0
- package/src/fiatconnect/ReviewScreen.test.tsx +505 -0
- package/src/fiatconnect/ReviewScreen.tsx +708 -0
- package/src/fiatconnect/TransferStatusScreen.test.tsx +399 -0
- package/src/fiatconnect/TransferStatusScreen.tsx +351 -0
- package/src/fiatconnect/clients.test.tsx +83 -0
- package/src/fiatconnect/clients.ts +69 -0
- package/src/fiatconnect/consts.ts +41 -0
- package/src/fiatconnect/fiatAccountSchemas/accountNumber.test.ts +60 -0
- package/src/fiatconnect/fiatAccountSchemas/accountNumber.ts +55 -0
- package/src/fiatconnect/fiatAccountSchemas/ibanNumber.test.ts +53 -0
- package/src/fiatconnect/fiatAccountSchemas/ibanNumber.ts +56 -0
- package/src/fiatconnect/fiatAccountSchemas/ifscAccount.test.ts +45 -0
- package/src/fiatconnect/fiatAccountSchemas/ifscAccount.ts +58 -0
- package/src/fiatconnect/fiatAccountSchemas/index.test.ts +119 -0
- package/src/fiatconnect/fiatAccountSchemas/index.ts +89 -0
- package/src/fiatconnect/fiatAccountSchemas/mobileMoney.test.ts +29 -0
- package/src/fiatconnect/fiatAccountSchemas/mobileMoney.ts +61 -0
- package/src/fiatconnect/fiatAccountSchemas/pixAccount.test.ts +45 -0
- package/src/fiatconnect/fiatAccountSchemas/pixAccount.ts +62 -0
- package/src/fiatconnect/fiatAccountSchemas/types.ts +40 -0
- package/src/fiatconnect/index.test.ts +244 -0
- package/src/fiatconnect/index.ts +179 -0
- package/src/fiatconnect/kyc/KycDenied.test.tsx +139 -0
- package/src/fiatconnect/kyc/KycDenied.tsx +144 -0
- package/src/fiatconnect/kyc/KycExpired.test.tsx +128 -0
- package/src/fiatconnect/kyc/KycExpired.tsx +127 -0
- package/src/fiatconnect/kyc/KycInactive.test.tsx +139 -0
- package/src/fiatconnect/kyc/KycInactive.tsx +100 -0
- package/src/fiatconnect/kyc/KycPending.test.tsx +82 -0
- package/src/fiatconnect/kyc/KycPending.tsx +106 -0
- package/src/fiatconnect/kyc/getNavigationOptions.tsx +72 -0
- package/src/fiatconnect/saga.test.ts +2594 -0
- package/src/fiatconnect/saga.ts +1133 -0
- package/src/fiatconnect/selectors.ts +24 -0
- package/src/fiatconnect/slice.test.ts +79 -0
- package/src/fiatconnect/slice.ts +380 -0
- package/src/fiatconnect/types.ts +24 -0
- package/src/firebase/actions.ts +11 -0
- package/src/firebase/db-rules.json +129 -0
- package/src/firebase/firebase.test.ts +190 -0
- package/src/firebase/firebase.ts +315 -0
- package/src/firebase/notifications.test.ts +180 -0
- package/src/firebase/notifications.ts +106 -0
- package/src/firebase/saga.test.ts +23 -0
- package/src/firebase/saga.ts +81 -0
- package/src/flags.ts +76 -0
- package/src/home/ActionsCarousel.test.tsx +162 -0
- package/src/home/ActionsCarousel.tsx +161 -0
- package/src/home/DivviBottomSheet.test.tsx +59 -0
- package/src/home/DivviBottomSheet.tsx +197 -0
- package/src/home/GetStarted.test.tsx +47 -0
- package/src/home/GetStarted.tsx +115 -0
- package/src/home/NotificationBell.test.tsx +81 -0
- package/src/home/NotificationBell.tsx +42 -0
- package/src/home/NotificationBox.test.tsx +373 -0
- package/src/home/NotificationBox.tsx +362 -0
- package/src/home/NotificationCenter.test.tsx +466 -0
- package/src/home/NotificationCenter.tsx +185 -0
- package/src/home/SendBar.tsx +60 -0
- package/src/home/TabHome.test.tsx +336 -0
- package/src/home/TabHome.tsx +181 -0
- package/src/home/__snapshots__/NotificationBox.test.tsx.snap +933 -0
- package/src/home/actions.ts +154 -0
- package/src/home/celebration/ConfettiCelebration.tsx +170 -0
- package/src/home/celebration/NftCelebration.test.tsx +137 -0
- package/src/home/celebration/NftCelebration.tsx +207 -0
- package/src/home/celebration/NftReward.test.tsx +94 -0
- package/src/home/celebration/NftReward.tsx +172 -0
- package/src/home/celebration/confettiAnimation.json +5126 -0
- package/src/home/celebration/utils.test.ts +32 -0
- package/src/home/celebration/utils.ts +21 -0
- package/src/home/reducers.test.ts +245 -0
- package/src/home/reducers.ts +191 -0
- package/src/home/saga.test.ts +34 -0
- package/src/home/saga.ts +87 -0
- package/src/home/selectors.test.ts +302 -0
- package/src/home/selectors.ts +82 -0
- package/src/home/types.ts +31 -0
- package/src/i18n/i18n.test.ts +106 -0
- package/src/i18n/index.ts +88 -0
- package/src/i18n/otaTranslations.test.ts +34 -0
- package/src/i18n/otaTranslations.ts +15 -0
- package/src/i18n/saga.test.ts +106 -0
- package/src/i18n/saga.ts +92 -0
- package/src/i18n/selectors.ts +12 -0
- package/src/i18n/slice.ts +46 -0
- package/src/i18n/useChangeLanguage.test.tsx +53 -0
- package/src/i18n/useChangeLanguage.ts +19 -0
- package/src/icons/Activity.tsx +21 -0
- package/src/icons/Apple.tsx +14 -0
- package/src/icons/ArrowDown.tsx +19 -0
- package/src/icons/ArrowRightThick.tsx +16 -0
- package/src/icons/Attention.tsx +22 -0
- package/src/icons/BackChevron.tsx +24 -0
- package/src/icons/Backspace.tsx +31 -0
- package/src/icons/BankIcon.tsx +23 -0
- package/src/icons/Celebration.tsx +18 -0
- package/src/icons/CheckCircle.tsx +19 -0
- package/src/icons/Checkmark.tsx +26 -0
- package/src/icons/CircleArrowIcon.tsx +39 -0
- package/src/icons/CircledIcon.tsx +47 -0
- package/src/icons/Clipboard.tsx +17 -0
- package/src/icons/ClockIcon.tsx +23 -0
- package/src/icons/CloudCheck.tsx +19 -0
- package/src/icons/ComingSoon.tsx +18 -0
- package/src/icons/CopyIcon.tsx +14 -0
- package/src/icons/CrossChainIndicator.tsx +36 -0
- package/src/icons/DataDown.tsx +16 -0
- package/src/icons/DataUp.tsx +16 -0
- package/src/icons/DownArrowIcon.tsx +37 -0
- package/src/icons/EarnCoins.tsx +22 -0
- package/src/icons/Error.tsx +30 -0
- package/src/icons/Exit.tsx +18 -0
- package/src/icons/ExploreTokens.tsx +17 -0
- package/src/icons/EyeIcon.tsx +22 -0
- package/src/icons/ForwardChevron.tsx +30 -0
- package/src/icons/GearIcon.tsx +19 -0
- package/src/icons/Google.tsx +14 -0
- package/src/icons/GradientIcon.tsx +70 -0
- package/src/icons/GreenLoadingSpinner.tsx +16 -0
- package/src/icons/GreenLoadingSpinnerToCheck.tsx +16 -0
- package/src/icons/HamburgerCard.tsx +55 -0
- package/src/icons/Help.tsx +21 -0
- package/src/icons/HiddenEyeIcon.tsx +26 -0
- package/src/icons/ImageErrorIcon.tsx +26 -0
- package/src/icons/InfoIcon.tsx +33 -0
- package/src/icons/KeylessBackup.tsx +32 -0
- package/src/icons/LinkArrow.tsx +27 -0
- package/src/icons/LoadingSpinner.tsx +25 -0
- package/src/icons/Lock.tsx +19 -0
- package/src/icons/MagicWand.tsx +20 -0
- package/src/icons/Manage.tsx +22 -0
- package/src/icons/NotificationBellIcon.tsx +25 -0
- package/src/icons/OpenLinkIcon.tsx +18 -0
- package/src/icons/Paste.tsx +33 -0
- package/src/icons/Phone.tsx +20 -0
- package/src/icons/Preferences.tsx +21 -0
- package/src/icons/QRCode.tsx +14 -0
- package/src/icons/RadioButton.tsx +39 -0
- package/src/icons/RedLoadingSpinnerToInfo.tsx +16 -0
- package/src/icons/Refresh.tsx +30 -0
- package/src/icons/Reward.tsx +29 -0
- package/src/icons/ScanIcon.tsx +26 -0
- package/src/icons/Search.tsx +25 -0
- package/src/icons/Share.tsx +21 -0
- package/src/icons/Social.tsx +15 -0
- package/src/icons/Stack.tsx +21 -0
- package/src/icons/StarOutline.tsx +14 -0
- package/src/icons/SwapAndDeposit.tsx +20 -0
- package/src/icons/SwapArrows.tsx +20 -0
- package/src/icons/ThumbsUpIllustration.tsx +64 -0
- package/src/icons/Times.tsx +38 -0
- package/src/icons/TripleDotVertical.tsx +18 -0
- package/src/icons/Trophy.tsx +18 -0
- package/src/icons/User.tsx +19 -0
- package/src/icons/Warning.tsx +22 -0
- package/src/icons/biometry/Face.tsx +28 -0
- package/src/icons/biometry/FaceID.tsx +18 -0
- package/src/icons/biometry/Fingerprint.tsx +16 -0
- package/src/icons/biometry/Iris.tsx +22 -0
- package/src/icons/biometry/TouchID.tsx +44 -0
- package/src/icons/loadingSpinnerGreen.json +401 -0
- package/src/icons/lottie-json/greenLoadingSpinner.json +370 -0
- package/src/icons/lottie-json/greenLoadingSpinnerToCheck.json +666 -0
- package/src/icons/lottie-json/redLoadingSpinnerToInfo.json +950 -0
- package/src/icons/navigator/Discover.tsx +17 -0
- package/src/icons/navigator/Home.tsx +18 -0
- package/src/icons/navigator/Wallet.tsx +18 -0
- package/src/icons/quick-actions/Add.tsx +18 -0
- package/src/icons/quick-actions/More.tsx +19 -0
- package/src/icons/quick-actions/Receive.tsx +18 -0
- package/src/icons/quick-actions/Send.tsx +18 -0
- package/src/icons/quick-actions/Withdraw.tsx +18 -0
- package/src/identity/actions.ts +244 -0
- package/src/identity/contactMapping.test.ts +391 -0
- package/src/identity/contactMapping.ts +422 -0
- package/src/identity/reducer.ts +243 -0
- package/src/identity/saga.test.ts +103 -0
- package/src/identity/saga.ts +122 -0
- package/src/identity/secureSend.ts +171 -0
- package/src/identity/selectors.ts +16 -0
- package/src/identity/types.ts +14 -0
- package/src/images/Blob.tsx +20 -0
- package/src/images/Celebration.tsx +35 -0
- package/src/images/DivviLogo.tsx +22 -0
- package/src/images/GuideKeyIcon.tsx +51 -0
- package/src/images/Images.ts +22 -0
- package/src/images/Logo.tsx +66 -0
- package/src/images/LogoHeart.tsx +206 -0
- package/src/images/NftReceivedIcon.tsx +18 -0
- package/src/images/NftSentIcon.tsx +18 -0
- package/src/images/Palm.tsx +21 -0
- package/src/images/Star.tsx +20 -0
- package/src/images/WelcomeLogo.tsx +19 -0
- package/src/images/assets/account-key-1.png +0 -0
- package/src/images/assets/account-key-1@1.5x.png +0 -0
- package/src/images/assets/account-key-1@2x.png +0 -0
- package/src/images/assets/account-key-1@3x.png +0 -0
- package/src/images/assets/account-key-1@4x.png +0 -0
- package/src/images/assets/account-key-2.png +0 -0
- package/src/images/assets/account-key-2@1.5x.png +0 -0
- package/src/images/assets/account-key-2@2x.png +0 -0
- package/src/images/assets/account-key-2@3x.png +0 -0
- package/src/images/assets/account-key-2@4x.png +0 -0
- package/src/images/assets/account-key-3.png +0 -0
- package/src/images/assets/account-key-3@1.5x.png +0 -0
- package/src/images/assets/account-key-3@2x.png +0 -0
- package/src/images/assets/account-key-3@3x.png +0 -0
- package/src/images/assets/account-key-3@4x.png +0 -0
- package/src/images/assets/account-key-4.png +0 -0
- package/src/images/assets/account-key-4@1.5x.png +0 -0
- package/src/images/assets/account-key-4@2x.png +0 -0
- package/src/images/assets/account-key-4@3x.png +0 -0
- package/src/images/assets/account-key-4@4x.png +0 -0
- package/src/images/assets/biometry-face-id.png +0 -0
- package/src/images/assets/biometry-face-id@1.5x.png +0 -0
- package/src/images/assets/biometry-face-id@2x.png +0 -0
- package/src/images/assets/biometry-face-id@3x.png +0 -0
- package/src/images/assets/biometry-face-id@4x.png +0 -0
- package/src/images/assets/biometry-face.png +0 -0
- package/src/images/assets/biometry-face@1.5x.png +0 -0
- package/src/images/assets/biometry-face@2x.png +0 -0
- package/src/images/assets/biometry-face@3x.png +0 -0
- package/src/images/assets/biometry-face@4x.png +0 -0
- package/src/images/assets/biometry-fingerprint.png +0 -0
- package/src/images/assets/biometry-fingerprint@1.5x.png +0 -0
- package/src/images/assets/biometry-fingerprint@2x.png +0 -0
- package/src/images/assets/biometry-fingerprint@3x.png +0 -0
- package/src/images/assets/biometry-fingerprint@4x.png +0 -0
- package/src/images/assets/biometry-iris.png +0 -0
- package/src/images/assets/biometry-iris@1.5x.png +0 -0
- package/src/images/assets/biometry-iris@2x.png +0 -0
- package/src/images/assets/biometry-iris@3x.png +0 -0
- package/src/images/assets/biometry-iris@4x.png +0 -0
- package/src/images/assets/biometry-touch-id.png +0 -0
- package/src/images/assets/biometry-touch-id@1.5x.png +0 -0
- package/src/images/assets/biometry-touch-id@2x.png +0 -0
- package/src/images/assets/biometry-touch-id@3x.png +0 -0
- package/src/images/assets/biometry-touch-id@4x.png +0 -0
- package/src/images/assets/celo-education-1.png +0 -0
- package/src/images/assets/celo-education-1@1.5x.png +0 -0
- package/src/images/assets/celo-education-1@2x.png +0 -0
- package/src/images/assets/celo-education-1@3x.png +0 -0
- package/src/images/assets/celo-education-1@4x.png +0 -0
- package/src/images/assets/celo-education-2.png +0 -0
- package/src/images/assets/celo-education-2@1.5x.png +0 -0
- package/src/images/assets/celo-education-2@2x.png +0 -0
- package/src/images/assets/celo-education-2@3x.png +0 -0
- package/src/images/assets/celo-education-2@4x.png +0 -0
- package/src/images/assets/celo-education-3.png +0 -0
- package/src/images/assets/celo-education-3@1.5x.png +0 -0
- package/src/images/assets/celo-education-3@2x.png +0 -0
- package/src/images/assets/celo-education-3@3x.png +0 -0
- package/src/images/assets/celo-education-3@4x.png +0 -0
- package/src/images/assets/celo-education-4.png +0 -0
- package/src/images/assets/celo-education-4@1.5x.png +0 -0
- package/src/images/assets/celo-education-4@2x.png +0 -0
- package/src/images/assets/celo-education-4@3x.png +0 -0
- package/src/images/assets/celo-education-4@4x.png +0 -0
- package/src/images/assets/earn-card-background.png +0 -0
- package/src/images/assets/earn-card-background@1.5x.png +0 -0
- package/src/images/assets/earn-card-background@2x.png +0 -0
- package/src/images/assets/earn-card-background@3x.png +0 -0
- package/src/images/assets/earn-card-background@4x.png +0 -0
- package/src/images/assets/email.png +0 -0
- package/src/images/assets/email@1.5x.png +0 -0
- package/src/images/assets/email@2x.png +0 -0
- package/src/images/assets/email@3x.png +0 -0
- package/src/images/assets/email@4x.png +0 -0
- package/src/images/assets/fiat-exchange.png +0 -0
- package/src/images/assets/fiat-exchange@1.5x.png +0 -0
- package/src/images/assets/fiat-exchange@2x.png +0 -0
- package/src/images/assets/fiat-exchange@3x.png +0 -0
- package/src/images/assets/fiat-exchange@4x.png +0 -0
- package/src/images/assets/get-verified.png +0 -0
- package/src/images/assets/get-verified@1.5x.png +0 -0
- package/src/images/assets/get-verified@2x.png +0 -0
- package/src/images/assets/get-verified@3x.png +0 -0
- package/src/images/assets/get-verified@4x.png +0 -0
- package/src/images/assets/learn-celo.png +0 -0
- package/src/images/assets/learn-celo@1.5x.png +0 -0
- package/src/images/assets/learn-celo@2x.png +0 -0
- package/src/images/assets/learn-celo@3x.png +0 -0
- package/src/images/assets/learn-celo@4x.png +0 -0
- package/src/images/assets/pie.png +0 -0
- package/src/images/assets/pie@1.5x.png +0 -0
- package/src/images/assets/pie@2x.png +0 -0
- package/src/images/assets/pie@3x.png +0 -0
- package/src/images/assets/pie@4x.png +0 -0
- package/src/images/assets/points-card-background.png +0 -0
- package/src/images/assets/points-card-background@1.5x.png +0 -0
- package/src/images/assets/points-card-background@2x.png +0 -0
- package/src/images/assets/points-card-background@3x.png +0 -0
- package/src/images/assets/points-card-background@4x.png +0 -0
- package/src/images/assets/points-illustration.png +0 -0
- package/src/images/assets/points-illustration@1.5x.png +0 -0
- package/src/images/assets/points-illustration@2x.png +0 -0
- package/src/images/assets/points-illustration@3x.png +0 -0
- package/src/images/assets/points-illustration@4x.png +0 -0
- package/src/images/assets/wallet-safe.png +0 -0
- package/src/images/assets/wallet-safe@1.5x.png +0 -0
- package/src/images/assets/wallet-safe@2x.png +0 -0
- package/src/images/assets/wallet-safe@3x.png +0 -0
- package/src/images/assets/wallet-safe@4x.png +0 -0
- package/src/import/ImportWallet.test.tsx +102 -0
- package/src/import/ImportWallet.tsx +277 -0
- package/src/import/actions.ts +41 -0
- package/src/import/reducer.ts +28 -0
- package/src/import/saga.test.ts +165 -0
- package/src/import/saga.ts +250 -0
- package/src/in-house-liquidity/client.test.ts +34 -0
- package/src/in-house-liquidity/client.ts +38 -0
- package/src/in-house-liquidity/index.test.ts +258 -0
- package/src/in-house-liquidity/index.ts +187 -0
- package/src/index.d.ts +25 -0
- package/src/jumpstart/JumpstartTransactionDetailsScreen.test.tsx +329 -0
- package/src/jumpstart/JumpstartTransactionDetailsScreen.tsx +407 -0
- package/src/jumpstart/fetchClaimStatus.ts +46 -0
- package/src/jumpstart/saga.test.ts +117 -0
- package/src/jumpstart/saga.ts +82 -0
- package/src/jumpstart/selectors.ts +5 -0
- package/src/jumpstart/slice.test.ts +51 -0
- package/src/jumpstart/slice.ts +64 -0
- package/src/keylessBackup/EnvelopeIcon.tsx +19 -0
- package/src/keylessBackup/KeylessBackupCancelButton.test.tsx +55 -0
- package/src/keylessBackup/KeylessBackupCancelButton.tsx +26 -0
- package/src/keylessBackup/KeylessBackupIntro.test.tsx +76 -0
- package/src/keylessBackup/KeylessBackupIntro.tsx +175 -0
- package/src/keylessBackup/KeylessBackupPhoneCodeInput.test.tsx +256 -0
- package/src/keylessBackup/KeylessBackupPhoneCodeInput.tsx +257 -0
- package/src/keylessBackup/KeylessBackupPhoneInput.test.tsx +67 -0
- package/src/keylessBackup/KeylessBackupPhoneInput.tsx +203 -0
- package/src/keylessBackup/KeylessBackupProgress.test.tsx +371 -0
- package/src/keylessBackup/KeylessBackupProgress.tsx +495 -0
- package/src/keylessBackup/LinkPhoneNumber.test.tsx +57 -0
- package/src/keylessBackup/LinkPhoneNumber.tsx +107 -0
- package/src/keylessBackup/SignInWithEmail.test.tsx +271 -0
- package/src/keylessBackup/SignInWithEmail.tsx +348 -0
- package/src/keylessBackup/SmartphoneIcon.tsx +19 -0
- package/src/keylessBackup/WalletSecurityPrimer.test.tsx +31 -0
- package/src/keylessBackup/WalletSecurityPrimer.tsx +81 -0
- package/src/keylessBackup/encryption.test.ts +139 -0
- package/src/keylessBackup/encryption.ts +121 -0
- package/src/keylessBackup/hooks.ts +179 -0
- package/src/keylessBackup/index.test.ts +204 -0
- package/src/keylessBackup/index.ts +98 -0
- package/src/keylessBackup/keychain.test.ts +55 -0
- package/src/keylessBackup/keychain.ts +30 -0
- package/src/keylessBackup/saga.test.ts +427 -0
- package/src/keylessBackup/saga.ts +264 -0
- package/src/keylessBackup/selectors.ts +8 -0
- package/src/keylessBackup/slice.ts +108 -0
- package/src/keylessBackup/types.ts +25 -0
- package/src/keylessBackup/web3auth.test.ts +74 -0
- package/src/keylessBackup/web3auth.ts +54 -0
- package/src/language/Language.test.tsx +41 -0
- package/src/language/Language.tsx +99 -0
- package/src/localCurrency/SelectLocalCurrency.test.tsx +19 -0
- package/src/localCurrency/SelectLocalCurrency.tsx +83 -0
- package/src/localCurrency/actions.ts +49 -0
- package/src/localCurrency/consts.test.ts +9 -0
- package/src/localCurrency/consts.ts +97 -0
- package/src/localCurrency/convert.test.ts +30 -0
- package/src/localCurrency/convert.ts +66 -0
- package/src/localCurrency/hooks.test.tsx +146 -0
- package/src/localCurrency/hooks.ts +47 -0
- package/src/localCurrency/reducer.ts +59 -0
- package/src/localCurrency/saga.test.ts +34 -0
- package/src/localCurrency/saga.ts +61 -0
- package/src/localCurrency/selectors.test.ts +47 -0
- package/src/localCurrency/selectors.ts +66 -0
- package/src/localCurrency/types.ts +6 -0
- package/src/missingGlobals.ts +21 -0
- package/src/nameGenerator/index.test.ts +46 -0
- package/src/nameGenerator/index.ts +17 -0
- package/src/nameGenerator/names.ts +938 -0
- package/src/navigator/DemoModeAuthBlock.test.tsx +60 -0
- package/src/navigator/DemoModeAuthBlock.tsx +61 -0
- package/src/navigator/DemoModeChipIndicator.test.tsx +109 -0
- package/src/navigator/DemoModeChipIndicator.tsx +76 -0
- package/src/navigator/Headers.tsx +263 -0
- package/src/navigator/NavigationService.test.tsx +74 -0
- package/src/navigator/NavigationService.ts +244 -0
- package/src/navigator/Navigator.tsx +760 -0
- package/src/navigator/NavigatorWrapper.test.tsx +65 -0
- package/src/navigator/NavigatorWrapper.tsx +248 -0
- package/src/navigator/QRNavigator.test.tsx +61 -0
- package/src/navigator/QRNavigator.tsx +144 -0
- package/src/navigator/Screens.tsx +107 -0
- package/src/navigator/ScrollAwareHeader.tsx +57 -0
- package/src/navigator/SettingsMenu.test.tsx +253 -0
- package/src/navigator/SettingsMenu.tsx +353 -0
- package/src/navigator/TabNavigator.test.tsx +181 -0
- package/src/navigator/TabNavigator.tsx +142 -0
- package/src/navigator/TopBarButton.test.tsx +44 -0
- package/src/navigator/TopBarButton.tsx +88 -0
- package/src/navigator/TopBarIconButtonV2.test.tsx +17 -0
- package/src/navigator/TopBarIconButtonV2.tsx +85 -0
- package/src/navigator/initialRoute.test.tsx +32 -0
- package/src/navigator/initialRoute.tsx +29 -0
- package/src/navigator/types.tsx +346 -0
- package/src/networkInfo/actions.ts +28 -0
- package/src/networkInfo/reducer.ts +44 -0
- package/src/networkInfo/saga.test.ts +43 -0
- package/src/networkInfo/saga.ts +100 -0
- package/src/networkInfo/selectors.ts +4 -0
- package/src/nfts/NftMedia.test.tsx +114 -0
- package/src/nfts/NftMedia.tsx +205 -0
- package/src/nfts/NftsInfoCarousel.test.tsx +218 -0
- package/src/nfts/NftsInfoCarousel.tsx +344 -0
- package/src/nfts/NftsLoadError.test.tsx +37 -0
- package/src/nfts/NftsLoadError.tsx +111 -0
- package/src/nfts/saga.test.tsx +502 -0
- package/src/nfts/saga.ts +198 -0
- package/src/nfts/selectors.ts +13 -0
- package/src/nfts/slice.ts +45 -0
- package/src/nfts/types.ts +51 -0
- package/src/notifications/NotificationList.test.tsx +25 -0
- package/src/notifications/NotificationList.tsx +45 -0
- package/src/notifications/__snapshots__/NotificationList.test.tsx.snap +35 -0
- package/src/notifications/types.ts +31 -0
- package/src/onboarding/LanguageButton.tsx +26 -0
- package/src/onboarding/TopBarTextButtonOnboarding.test.tsx +22 -0
- package/src/onboarding/TopBarTextButtonOnboarding.tsx +17 -0
- package/src/onboarding/actions.ts +46 -0
- package/src/onboarding/registration/EnableBiometry.test.tsx +168 -0
- package/src/onboarding/registration/EnableBiometry.tsx +207 -0
- package/src/onboarding/registration/ImportSelect.test.tsx +54 -0
- package/src/onboarding/registration/ImportSelect.tsx +167 -0
- package/src/onboarding/registration/OnboardingRecoveryPhrase.test.tsx +83 -0
- package/src/onboarding/registration/OnboardingRecoveryPhrase.tsx +197 -0
- package/src/onboarding/registration/ProtectWallet.test.tsx +96 -0
- package/src/onboarding/registration/ProtectWallet.tsx +153 -0
- package/src/onboarding/registration/RegulatoryTerms.test.tsx +75 -0
- package/src/onboarding/registration/RegulatoryTerms.tsx +174 -0
- package/src/onboarding/registration/SelectCountry.test.tsx +51 -0
- package/src/onboarding/registration/SelectCountry.tsx +88 -0
- package/src/onboarding/registration/SelectCountryItem.tsx +59 -0
- package/src/onboarding/steps.test.ts +464 -0
- package/src/onboarding/steps.ts +303 -0
- package/src/onboarding/success/OnboardingSuccessScreen.tsx +64 -0
- package/src/onboarding/types.ts +14 -0
- package/src/onboarding/welcome/Welcome.test.tsx +234 -0
- package/src/onboarding/welcome/Welcome.tsx +182 -0
- package/src/pincode/PasswordCache.ts +71 -0
- package/src/pincode/Pincode.tsx +109 -0
- package/src/pincode/PincodeDisplay.tsx +92 -0
- package/src/pincode/PincodeEnter.test.tsx +85 -0
- package/src/pincode/PincodeEnter.tsx +103 -0
- package/src/pincode/PincodeLock.test.tsx +144 -0
- package/src/pincode/PincodeLock.tsx +121 -0
- package/src/pincode/PincodeSet.test.tsx +213 -0
- package/src/pincode/PincodeSet.tsx +263 -0
- package/src/pincode/authentication.test.ts +654 -0
- package/src/pincode/authentication.ts +425 -0
- package/src/points/ActivityCard.test.tsx +63 -0
- package/src/points/ActivityCard.tsx +101 -0
- package/src/points/ActivityCardSection.tsx +126 -0
- package/src/points/PointsDiscoverCard.test.tsx +106 -0
- package/src/points/PointsDiscoverCard.tsx +122 -0
- package/src/points/PointsHistoryBottomSheet.test.tsx +179 -0
- package/src/points/PointsHistoryBottomSheet.tsx +264 -0
- package/src/points/PointsHome.test.tsx +230 -0
- package/src/points/PointsHome.tsx +357 -0
- package/src/points/PointsIntro.test.tsx +67 -0
- package/src/points/PointsIntro.tsx +85 -0
- package/src/points/cardDefinitions.tsx +94 -0
- package/src/points/cardSort.test.ts +58 -0
- package/src/points/cardSort.ts +18 -0
- package/src/points/saga.test.ts +769 -0
- package/src/points/saga.ts +379 -0
- package/src/points/selectors.test.ts +73 -0
- package/src/points/selectors.ts +68 -0
- package/src/points/slice.test.ts +76 -0
- package/src/points/slice.ts +164 -0
- package/src/points/types.ts +94 -0
- package/src/positions/HooksPreviewModeBanner.test.tsx +56 -0
- package/src/positions/HooksPreviewModeBanner.tsx +69 -0
- package/src/positions/actions.ts +11 -0
- package/src/positions/getPositionBalanceUsd.ts +14 -0
- package/src/positions/saga.test.ts +468 -0
- package/src/positions/saga.ts +378 -0
- package/src/positions/selectors.test.ts +281 -0
- package/src/positions/selectors.ts +189 -0
- package/src/positions/slice.ts +219 -0
- package/src/positions/transactions.ts +21 -0
- package/src/positions/types.ts +137 -0
- package/src/priceHistory/PriceHistoryChart.test.tsx +200 -0
- package/src/priceHistory/PriceHistoryChart.tsx +345 -0
- package/src/priceHistory/__snapshots__/PriceHistoryChart.test.tsx.snap +419 -0
- package/src/priceHistory/saga.test.ts +120 -0
- package/src/priceHistory/saga.ts +62 -0
- package/src/priceHistory/selectors.test.ts +52 -0
- package/src/priceHistory/selectors.ts +17 -0
- package/src/priceHistory/slice.test.ts +94 -0
- package/src/priceHistory/slice.ts +68 -0
- package/src/public/components/Button.tsx +66 -0
- package/src/public/createApp.ts +67 -0
- package/src/public/getFees.test.ts +24 -0
- package/src/public/getFees.ts +8 -0
- package/src/public/getPublicClient.test.ts +19 -0
- package/src/public/getPublicClient.ts +25 -0
- package/src/public/getWalletClient.test.ts +30 -0
- package/src/public/getWalletClient.ts +32 -0
- package/src/public/hooks/toAsyncStatus.ts +19 -0
- package/src/public/hooks/usePrepareTransactions.test.ts +63 -0
- package/src/public/hooks/usePrepareTransactions.ts +15 -0
- package/src/public/hooks/usePublicClient.test.ts +24 -0
- package/src/public/hooks/usePublicClient.ts +7 -0
- package/src/public/hooks/useSendTransactions.test.ts +49 -0
- package/src/public/hooks/useSendTransactions.ts +15 -0
- package/src/public/hooks/useWallet.ts +52 -0
- package/src/public/hooks/useWalletClient.test.ts +35 -0
- package/src/public/hooks/useWalletClient.ts +24 -0
- package/src/public/index.ts +29 -0
- package/src/public/navigate.test.ts +168 -0
- package/src/public/navigate.ts +168 -0
- package/src/public/prepareTransactions.test.ts +76 -0
- package/src/public/prepareTransactions.ts +78 -0
- package/src/public/sendTransactions.test.ts +37 -0
- package/src/public/sendTransactions.ts +25 -0
- package/src/public/types.tsx +278 -0
- package/src/public/unlockAccount.test.ts +79 -0
- package/src/public/unlockAccount.ts +43 -0
- package/src/qrcode/NotAuthorizedView.test.tsx +11 -0
- package/src/qrcode/NotAuthorizedView.tsx +47 -0
- package/src/qrcode/QRCode.test.tsx +117 -0
- package/src/qrcode/QRCode.tsx +190 -0
- package/src/qrcode/QRScanner.tsx +249 -0
- package/src/qrcode/QRTabBar.tsx +137 -0
- package/src/qrcode/StyledQRCode.tsx +31 -0
- package/src/qrcode/StyledQRGen.tsx +26 -0
- package/src/qrcode/__snapshots__/NotAuthorizedView.test.tsx.snap +90 -0
- package/src/qrcode/schema.test.ts +121 -0
- package/src/qrcode/schema.ts +45 -0
- package/src/qrcode/utils.test.tsx +293 -0
- package/src/qrcode/utils.ts +230 -0
- package/src/recaptcha/RecaptchaService.ts +105 -0
- package/src/recaptcha/saga.ts +24 -0
- package/src/recipients/RecipientItemV2.test.tsx +153 -0
- package/src/recipients/RecipientItemV2.tsx +142 -0
- package/src/recipients/RecipientPickerV2.test.tsx +110 -0
- package/src/recipients/RecipientPickerV2.tsx +61 -0
- package/src/recipients/recipient.test.ts +113 -0
- package/src/recipients/recipient.ts +313 -0
- package/src/recipients/reducer.ts +107 -0
- package/src/recipients/resolve-id.ts +21 -0
- package/src/recipients/saga.ts +87 -0
- package/src/redux/apiReducersList.ts +11 -0
- package/src/redux/createMigrate.test.ts +113 -0
- package/src/redux/createMigrate.ts +46 -0
- package/src/redux/hooks.ts +7 -0
- package/src/redux/migrations.test.ts +1925 -0
- package/src/redux/migrations.ts +2069 -0
- package/src/redux/persist-helper.ts +14 -0
- package/src/redux/reducers.ts +29 -0
- package/src/redux/reducersForSchemaGeneration.ts +20 -0
- package/src/redux/reducersList.ts +57 -0
- package/src/redux/sagas-helpers.ts +29 -0
- package/src/redux/sagas.test.ts +19 -0
- package/src/redux/sagas.ts +155 -0
- package/src/redux/selectors.ts +3 -0
- package/src/redux/store.test.ts +391 -0
- package/src/redux/store.ts +151 -0
- package/src/send/EnterAmount.test.tsx +1030 -0
- package/src/send/EnterAmount.tsx +360 -0
- package/src/send/EnterAmountOptions.tsx +170 -0
- package/src/send/PasteAddressButton.tsx +81 -0
- package/src/send/SelectRecipientButtons.test.tsx +256 -0
- package/src/send/SelectRecipientButtons.tsx +202 -0
- package/src/send/SendConfirmation.test.tsx +233 -0
- package/src/send/SendConfirmation.tsx +317 -0
- package/src/send/SendEnterAmount.test.tsx +235 -0
- package/src/send/SendEnterAmount.tsx +123 -0
- package/src/send/SendSelectRecipient.test.tsx +765 -0
- package/src/send/SendSelectRecipient.tsx +504 -0
- package/src/send/SendSelectRecipientSearchInput.tsx +72 -0
- package/src/send/ValidateRecipientAccount.test.tsx +181 -0
- package/src/send/ValidateRecipientAccount.tsx +387 -0
- package/src/send/ValidateRecipientIntro.test.tsx +61 -0
- package/src/send/ValidateRecipientIntro.tsx +136 -0
- package/src/send/__snapshots__/ValidateRecipientAccount.test.tsx.snap +777 -0
- package/src/send/actions.ts +142 -0
- package/src/send/hooks.test.tsx +371 -0
- package/src/send/hooks.ts +445 -0
- package/src/send/reducers.ts +90 -0
- package/src/send/saga.test.ts +247 -0
- package/src/send/saga.ts +176 -0
- package/src/send/selectors.ts +22 -0
- package/src/send/types.ts +18 -0
- package/src/send/useFetchRecipientVerificationStatus.ts +67 -0
- package/src/send/usePrepareSendTransactions.test.ts +135 -0
- package/src/send/usePrepareSendTransactions.ts +69 -0
- package/src/send/utils.test.ts +361 -0
- package/src/send/utils.ts +116 -0
- package/src/sendCalls/constants.ts +11 -0
- package/src/sendCalls/saga.test.ts +31 -0
- package/src/sendCalls/saga.ts +15 -0
- package/src/sendCalls/selectors.test.ts +40 -0
- package/src/sendCalls/selectors.ts +8 -0
- package/src/sendCalls/slice.test.ts +85 -0
- package/src/sendCalls/slice.ts +72 -0
- package/src/sentry/Sentry.ts +75 -0
- package/src/sentry/SentrySpanHub.ts +27 -0
- package/src/sentry/SentrySpans.tsx +57 -0
- package/src/sentry/actions.ts +11 -0
- package/src/sentry/saga.ts +8 -0
- package/src/shared/DisconnectBanner.test.tsx +25 -0
- package/src/shared/DisconnectBanner.tsx +81 -0
- package/src/shared/__snapshots__/DisconnectBanner.test.tsx.snap +29 -0
- package/src/shared/conts.ts +16 -0
- package/src/statsig/client.test.ts +62 -0
- package/src/statsig/client.ts +97 -0
- package/src/statsig/constants.ts +177 -0
- package/src/statsig/index.test.ts +351 -0
- package/src/statsig/index.ts +186 -0
- package/src/statsig/selector.ts +17 -0
- package/src/statsig/types.ts +52 -0
- package/src/storage/keychain.tsx +92 -0
- package/src/styles/accessibility.ts +7 -0
- package/src/styles/appTheme.ts +13 -0
- package/src/styles/colors.tsx +78 -0
- package/src/styles/fonts.tsx +143 -0
- package/src/styles/hapticFeedback.ts +27 -0
- package/src/styles/progressDots.ts +23 -0
- package/src/styles/styles.ts +67 -0
- package/src/styles/variables.tsx +16 -0
- package/src/swap/SwapAmountInput.tsx +228 -0
- package/src/swap/SwapScreen.test.tsx +1927 -0
- package/src/swap/SwapScreen.tsx +1156 -0
- package/src/swap/SwapScreenV2.test.tsx +2180 -0
- package/src/swap/SwapScreenV2.tsx +1201 -0
- package/src/swap/SwapTransactionDetails.test.tsx +217 -0
- package/src/swap/SwapTransactionDetails.tsx +274 -0
- package/src/swap/UnfavorableRateBottomSheet.test.tsx +150 -0
- package/src/swap/UnfavorableRateBottomSheet.tsx +288 -0
- package/src/swap/getCrossChainFee.ts +64 -0
- package/src/swap/getSwapTxsAnalyticsProperties.tsx +49 -0
- package/src/swap/saga.test.ts +863 -0
- package/src/swap/saga.ts +324 -0
- package/src/swap/selectors.ts +5 -0
- package/src/swap/slice.test.ts +133 -0
- package/src/swap/slice.ts +93 -0
- package/src/swap/types.ts +98 -0
- package/src/swap/useFilterChips.ts +69 -0
- package/src/swap/useSwapQuote.ts +292 -0
- package/src/tokens/AssetList.test.tsx +270 -0
- package/src/tokens/AssetList.tsx +388 -0
- package/src/tokens/AssetTabBar.test.tsx +130 -0
- package/src/tokens/AssetTabBar.tsx +106 -0
- package/src/tokens/PasteButton.test.tsx +30 -0
- package/src/tokens/PasteButton.tsx +34 -0
- package/src/tokens/PositionIcon.tsx +22 -0
- package/src/tokens/PositionItem.test.tsx +132 -0
- package/src/tokens/PositionItem.tsx +131 -0
- package/src/tokens/TabWallet.test.tsx +386 -0
- package/src/tokens/TabWallet.tsx +237 -0
- package/src/tokens/TokenBalanceItem.test.tsx +119 -0
- package/src/tokens/TokenBalanceItem.tsx +143 -0
- package/src/tokens/TokenDetails.test.tsx +476 -0
- package/src/tokens/TokenDetails.tsx +391 -0
- package/src/tokens/TokenDetailsMoreActions.test.tsx +120 -0
- package/src/tokens/TokenDetailsMoreActions.tsx +87 -0
- package/src/tokens/TokenImport.test.tsx +376 -0
- package/src/tokens/TokenImport.tsx +381 -0
- package/src/tokens/hooks.test.tsx +419 -0
- package/src/tokens/hooks.ts +164 -0
- package/src/tokens/saga.test.ts +527 -0
- package/src/tokens/saga.ts +248 -0
- package/src/tokens/selectors.test.ts +888 -0
- package/src/tokens/selectors.ts +516 -0
- package/src/tokens/slice.ts +173 -0
- package/src/tokens/types.ts +29 -0
- package/src/tokens/utils.test.tsx +330 -0
- package/src/tokens/utils.ts +218 -0
- package/src/transactions/NoActivity.test.tsx +30 -0
- package/src/transactions/NoActivity.tsx +73 -0
- package/src/transactions/TransferAvatars.tsx +39 -0
- package/src/transactions/UserSection.tsx +133 -0
- package/src/transactions/api.ts +67 -0
- package/src/transactions/apiTestHelpers.ts +55 -0
- package/src/transactions/feed/ClaimRewardFeedItem.test.tsx +164 -0
- package/src/transactions/feed/ClaimRewardFeedItem.tsx +142 -0
- package/src/transactions/feed/DepositOrWithdrawFeedItem.test.tsx +138 -0
- package/src/transactions/feed/DepositOrWithdrawFeedItem.tsx +178 -0
- package/src/transactions/feed/EarnFeedItem.test.tsx +189 -0
- package/src/transactions/feed/EarnFeedItem.tsx +190 -0
- package/src/transactions/feed/NftFeedItem.test.tsx +102 -0
- package/src/transactions/feed/NftFeedItem.tsx +99 -0
- package/src/transactions/feed/SwapFeedItem.test.tsx +137 -0
- package/src/transactions/feed/SwapFeedItem.tsx +128 -0
- package/src/transactions/feed/TokenApprovalFeedItem.test.tsx +37 -0
- package/src/transactions/feed/TokenApprovalFeedItem.tsx +59 -0
- package/src/transactions/feed/TransactionDetails.tsx +160 -0
- package/src/transactions/feed/TransactionDetailsScreen.test.tsx +1228 -0
- package/src/transactions/feed/TransactionDetailsScreen.tsx +157 -0
- package/src/transactions/feed/TransactionFeed.test.tsx +474 -0
- package/src/transactions/feed/TransactionFeed.tsx +172 -0
- package/src/transactions/feed/TransactionFeedItemImage.test.tsx +66 -0
- package/src/transactions/feed/TransactionFeedItemImage.tsx +116 -0
- package/src/transactions/feed/TransactionFeedV2.test.tsx +576 -0
- package/src/transactions/feed/TransactionFeedV2.tsx +504 -0
- package/src/transactions/feed/TransactionPrimaryAction.test.tsx +62 -0
- package/src/transactions/feed/TransactionPrimaryAction.tsx +83 -0
- package/src/transactions/feed/TransactionStatusIndicator.test.tsx +15 -0
- package/src/transactions/feed/TransactionStatusIndicator.tsx +63 -0
- package/src/transactions/feed/TransferFeedItem.test.tsx +579 -0
- package/src/transactions/feed/TransferFeedItem.tsx +148 -0
- package/src/transactions/feed/detailContent/ClaimRewardContent.tsx +84 -0
- package/src/transactions/feed/detailContent/DepositOrWithdrawContent.tsx +169 -0
- package/src/transactions/feed/detailContent/EarnContent.tsx +259 -0
- package/src/transactions/feed/detailContent/FeeRowItem.tsx +90 -0
- package/src/transactions/feed/detailContent/RewardReceivedContent.tsx +46 -0
- package/src/transactions/feed/detailContent/SwapContent.tsx +127 -0
- package/src/transactions/feed/detailContent/TokenApprovalDetails.tsx +59 -0
- package/src/transactions/feed/detailContent/TransferReceivedContent.tsx +73 -0
- package/src/transactions/feed/detailContent/TransferSentContent.tsx +117 -0
- package/src/transactions/feed/queryHelper.test.ts +229 -0
- package/src/transactions/feed/queryHelper.ts +941 -0
- package/src/transactions/saga.test.ts +482 -0
- package/src/transactions/saga.ts +322 -0
- package/src/transactions/selectors.ts +120 -0
- package/src/transactions/send.test.ts +29 -0
- package/src/transactions/send.ts +51 -0
- package/src/transactions/slice.test.ts +372 -0
- package/src/transactions/slice.ts +262 -0
- package/src/transactions/transferFeedUtils.ts +225 -0
- package/src/transactions/types.ts +355 -0
- package/src/transactions/utils.test.ts +98 -0
- package/src/transactions/utils.ts +122 -0
- package/src/utils/AppRestart.ts +12 -0
- package/src/utils/Countries.test.ts +180 -0
- package/src/utils/Countries.ts +121 -0
- package/src/utils/IosVersionUtils.ts +6 -0
- package/src/utils/Logger.test.ts +113 -0
- package/src/utils/Logger.ts +304 -0
- package/src/utils/LoggerLevels.ts +6 -0
- package/src/utils/account.test.ts +390 -0
- package/src/utils/account.ts +497 -0
- package/src/utils/accountChecker.test.ts +75 -0
- package/src/utils/accountChecker.ts +77 -0
- package/src/utils/address.test.ts +62 -0
- package/src/utils/address.ts +34 -0
- package/src/utils/aes.test.ts +36 -0
- package/src/utils/aes.ts +46 -0
- package/src/utils/contacts.ts +78 -0
- package/src/utils/contentTranslations.ts +18 -0
- package/src/utils/country.json +257 -0
- package/src/utils/countryFeatures.ts +21 -0
- package/src/utils/currencies.ts +72 -0
- package/src/utils/displayFormatting.ts +11 -0
- package/src/utils/ensureError.test.ts +32 -0
- package/src/utils/ensureError.ts +13 -0
- package/src/utils/fetchWithTimeout.test.ts +55 -0
- package/src/utils/fetchWithTimeout.ts +15 -0
- package/src/utils/formatting.test.ts +93 -0
- package/src/utils/formatting.ts +107 -0
- package/src/utils/getCountryEmoji.ts +28 -0
- package/src/utils/getPhoneHash.ts +29 -0
- package/src/utils/gql.ts +8 -0
- package/src/utils/identifier.ts +81 -0
- package/src/utils/inputValidation.test.ts +53 -0
- package/src/utils/inputValidation.ts +76 -0
- package/src/utils/io.ts +39 -0
- package/src/utils/linking.ts +42 -0
- package/src/utils/moneyAmount.ts +16 -0
- package/src/utils/parsing.test.ts +30 -0
- package/src/utils/parsing.ts +20 -0
- package/src/utils/phoneNumber.test.ts +236 -0
- package/src/utils/phoneNumbers.ts +240 -0
- package/src/utils/random.test.ts +53 -0
- package/src/utils/random.ts +48 -0
- package/src/utils/safely.test.ts +101 -0
- package/src/utils/safely.ts +30 -0
- package/src/utils/sleep.ts +3 -0
- package/src/utils/string.ts +8 -0
- package/src/utils/stylize.ts +30 -0
- package/src/utils/time.test.ts +76 -0
- package/src/utils/time.ts +99 -0
- package/src/utils/typescript.ts +38 -0
- package/src/utils/useBackHandler.ts +10 -0
- package/src/utils/useClipboard.ts +56 -0
- package/src/utils/versionCheck.test.ts +47 -0
- package/src/utils/versionCheck.ts +35 -0
- package/src/verify/ResendButtonWithDelay.tsx +56 -0
- package/src/verify/VerificationCodeInput.test.tsx +87 -0
- package/src/verify/VerificationCodeInput.tsx +103 -0
- package/src/verify/VerificationCodeInputScreen.test.tsx +364 -0
- package/src/verify/VerificationCodeInputScreen.tsx +138 -0
- package/src/verify/VerificationStartScreen.test.tsx +218 -0
- package/src/verify/VerificationStartScreen.tsx +311 -0
- package/src/verify/hooks.test.tsx +85 -0
- package/src/verify/hooks.ts +261 -0
- package/src/viem/estimateFeesPerGas.test.ts +129 -0
- package/src/viem/estimateFeesPerGas.ts +70 -0
- package/src/viem/getLockableWallet.test.ts +263 -0
- package/src/viem/getLockableWallet.ts +120 -0
- package/src/viem/index.ts +86 -0
- package/src/viem/keychainAccountToAccount.test.ts +55 -0
- package/src/viem/keychainAccountToAccount.ts +58 -0
- package/src/viem/prepareTransactions.test.ts +1668 -0
- package/src/viem/prepareTransactions.ts +741 -0
- package/src/viem/preparedTransactionSerialization.test.ts +192 -0
- package/src/viem/preparedTransactionSerialization.ts +100 -0
- package/src/viem/saga.test.ts +227 -0
- package/src/viem/saga.ts +118 -0
- package/src/walletConnect/actions.test.ts +94 -0
- package/src/walletConnect/actions.ts +232 -0
- package/src/walletConnect/analytics.ts +58 -0
- package/src/walletConnect/capabilities.ts +175 -0
- package/src/walletConnect/constants.ts +157 -0
- package/src/walletConnect/reducer.ts +105 -0
- package/src/walletConnect/request.test.ts +698 -0
- package/src/walletConnect/request.ts +225 -0
- package/src/walletConnect/saga.test.ts +1875 -0
- package/src/walletConnect/saga.ts +1159 -0
- package/src/walletConnect/screens/ActionRequest.test.tsx +727 -0
- package/src/walletConnect/screens/ActionRequest.tsx +227 -0
- package/src/walletConnect/screens/ActionRequestPayload.tsx +84 -0
- package/src/walletConnect/screens/ConnectionTimedOut.tsx +34 -0
- package/src/walletConnect/screens/DappsDisclaimer.tsx +31 -0
- package/src/walletConnect/screens/EstimatedNetworkFee.test.tsx +88 -0
- package/src/walletConnect/screens/EstimatedNetworkFee.tsx +134 -0
- package/src/walletConnect/screens/Logos.tsx +89 -0
- package/src/walletConnect/screens/RequestContent.tsx +224 -0
- package/src/walletConnect/screens/SessionRequest.test.tsx +274 -0
- package/src/walletConnect/screens/SessionRequest.tsx +221 -0
- package/src/walletConnect/screens/Sessions.tsx +142 -0
- package/src/walletConnect/screens/WalletConnectRequest.tsx +63 -0
- package/src/walletConnect/screens/useIsDappListed.test.tsx +51 -0
- package/src/walletConnect/screens/useIsDappListed.ts +20 -0
- package/src/walletConnect/selectors.ts +25 -0
- package/src/walletConnect/types.ts +99 -0
- package/src/walletConnect/walletConnect.ts +87 -0
- package/src/web3/KeychainAccounts.test.ts +326 -0
- package/src/web3/KeychainAccounts.ts +309 -0
- package/src/web3/actions.ts +30 -0
- package/src/web3/consts.ts +8 -0
- package/src/web3/contracts.test.ts +115 -0
- package/src/web3/contracts.ts +74 -0
- package/src/web3/networkConfig.test.ts +18 -0
- package/src/web3/networkConfig.ts +621 -0
- package/src/web3/reducer.ts +39 -0
- package/src/web3/saga.test.ts +200 -0
- package/src/web3/saga.ts +229 -0
- package/src/web3/selectors.ts +47 -0
- package/src/web3/utils.test.ts +12 -0
- package/src/web3/utils.ts +11 -0
- package/src/webview/WebViewAndroidBottomSheet.test.tsx +58 -0
- package/src/webview/WebViewAndroidBottomSheet.tsx +83 -0
- package/src/webview/WebViewScreen.test.tsx +84 -0
- package/src/webview/WebViewScreen.tsx +296 -0
- package/src/webview/__snapshots__/WebViewAndroidBottomSheet.test.tsx.snap +249 -0
- package/tsconfig.base.json +5 -0
- package/tsconfig.json +30 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { expectSaga } from 'redux-saga-test-plan'
|
|
2
|
+
import { select } from 'redux-saga/effects'
|
|
3
|
+
import { showErrorInline } from 'src/alert/actions'
|
|
4
|
+
import { ErrorMessages } from 'src/app/ErrorMessages'
|
|
5
|
+
import {
|
|
6
|
+
Actions,
|
|
7
|
+
ValidateRecipientAddressAction,
|
|
8
|
+
validateRecipientAddressSuccess,
|
|
9
|
+
} from 'src/identity/actions'
|
|
10
|
+
import { AddressValidationType } from 'src/identity/reducer'
|
|
11
|
+
import { watchValidateRecipientAddress } from 'src/identity/saga'
|
|
12
|
+
import { e164NumberToAddressSelector } from 'src/identity/selectors'
|
|
13
|
+
import { currentAccountSelector } from 'src/web3/selectors'
|
|
14
|
+
import {
|
|
15
|
+
mockAccount,
|
|
16
|
+
mockAccount2,
|
|
17
|
+
mockAccountInvite,
|
|
18
|
+
mockE164NumberInvite,
|
|
19
|
+
mockE164NumberToAddress,
|
|
20
|
+
mockInvitableRecipient2,
|
|
21
|
+
} from 'test/values'
|
|
22
|
+
|
|
23
|
+
describe(watchValidateRecipientAddress, () => {
|
|
24
|
+
beforeAll(() => {
|
|
25
|
+
jest.useRealTimers()
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
afterEach(() => {
|
|
29
|
+
jest.clearAllMocks()
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
it('full validation fails if the inputted address does not belong to the recipient', async () => {
|
|
33
|
+
const validateAction: ValidateRecipientAddressAction = {
|
|
34
|
+
type: Actions.VALIDATE_RECIPIENT_ADDRESS,
|
|
35
|
+
userInputOfFullAddressOrLastFourDigits: mockAccount2,
|
|
36
|
+
addressValidationType: AddressValidationType.FULL,
|
|
37
|
+
recipient: mockInvitableRecipient2,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
await expectSaga(watchValidateRecipientAddress)
|
|
41
|
+
.provide([
|
|
42
|
+
[select(currentAccountSelector), mockAccount],
|
|
43
|
+
[select(e164NumberToAddressSelector), mockE164NumberToAddress],
|
|
44
|
+
])
|
|
45
|
+
.dispatch(validateAction)
|
|
46
|
+
.put(showErrorInline(ErrorMessages.ADDRESS_VALIDATION_NO_MATCH))
|
|
47
|
+
.run()
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
it('full validation succeeds if the inputted address belongs to the recipient', async () => {
|
|
51
|
+
const validateAction: ValidateRecipientAddressAction = {
|
|
52
|
+
type: Actions.VALIDATE_RECIPIENT_ADDRESS,
|
|
53
|
+
userInputOfFullAddressOrLastFourDigits: mockAccountInvite,
|
|
54
|
+
addressValidationType: AddressValidationType.FULL,
|
|
55
|
+
recipient: mockInvitableRecipient2,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
await expectSaga(watchValidateRecipientAddress)
|
|
59
|
+
.provide([
|
|
60
|
+
[select(currentAccountSelector), mockAccount],
|
|
61
|
+
[select(e164NumberToAddressSelector), mockE164NumberToAddress],
|
|
62
|
+
])
|
|
63
|
+
.dispatch(validateAction)
|
|
64
|
+
.put(validateRecipientAddressSuccess(mockE164NumberInvite, mockAccountInvite.toLowerCase()))
|
|
65
|
+
.run()
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
it('partial validation fails if the inputted address does not belong to the recipient', async () => {
|
|
69
|
+
const validateAction: ValidateRecipientAddressAction = {
|
|
70
|
+
type: Actions.VALIDATE_RECIPIENT_ADDRESS,
|
|
71
|
+
userInputOfFullAddressOrLastFourDigits: mockAccount2.slice(-4),
|
|
72
|
+
addressValidationType: AddressValidationType.PARTIAL,
|
|
73
|
+
recipient: mockInvitableRecipient2,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
await expectSaga(watchValidateRecipientAddress)
|
|
77
|
+
.provide([
|
|
78
|
+
[select(currentAccountSelector), mockAccount],
|
|
79
|
+
[select(e164NumberToAddressSelector), mockE164NumberToAddress],
|
|
80
|
+
])
|
|
81
|
+
.dispatch(validateAction)
|
|
82
|
+
.put(showErrorInline(ErrorMessages.ADDRESS_VALIDATION_NO_MATCH))
|
|
83
|
+
.run()
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
it('partial validation succeeds if the inputted address belongs to the recipient', async () => {
|
|
87
|
+
const validateAction: ValidateRecipientAddressAction = {
|
|
88
|
+
type: Actions.VALIDATE_RECIPIENT_ADDRESS,
|
|
89
|
+
userInputOfFullAddressOrLastFourDigits: mockAccountInvite.slice(-4),
|
|
90
|
+
addressValidationType: AddressValidationType.PARTIAL,
|
|
91
|
+
recipient: mockInvitableRecipient2,
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
await expectSaga(watchValidateRecipientAddress)
|
|
95
|
+
.provide([
|
|
96
|
+
[select(currentAccountSelector), mockAccount],
|
|
97
|
+
[select(e164NumberToAddressSelector), mockE164NumberToAddress],
|
|
98
|
+
])
|
|
99
|
+
.dispatch(validateAction)
|
|
100
|
+
.put(validateRecipientAddressSuccess(mockE164NumberInvite, mockAccountInvite.toLowerCase()))
|
|
101
|
+
.run()
|
|
102
|
+
})
|
|
103
|
+
})
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { showErrorInline } from 'src/alert/actions'
|
|
2
|
+
import { SendEvents } from 'src/analytics/Events'
|
|
3
|
+
import AppAnalytics from 'src/analytics/AppAnalytics'
|
|
4
|
+
import { ErrorMessages } from 'src/app/ErrorMessages'
|
|
5
|
+
import {
|
|
6
|
+
Actions,
|
|
7
|
+
ValidateRecipientAddressAction,
|
|
8
|
+
validateRecipientAddressSuccess,
|
|
9
|
+
} from 'src/identity/actions'
|
|
10
|
+
import {
|
|
11
|
+
doImportContactsWrapper,
|
|
12
|
+
fetchAddressVerificationSaga,
|
|
13
|
+
fetchAddressesAndValidateSaga,
|
|
14
|
+
saveContacts,
|
|
15
|
+
} from 'src/identity/contactMapping'
|
|
16
|
+
import { AddressValidationType } from 'src/identity/reducer'
|
|
17
|
+
import { validateAndReturnMatch } from 'src/identity/secureSend'
|
|
18
|
+
import { e164NumberToAddressSelector } from 'src/identity/selectors'
|
|
19
|
+
import { recipientHasNumber } from 'src/recipients/recipient'
|
|
20
|
+
import Logger from 'src/utils/Logger'
|
|
21
|
+
import { ensureError } from 'src/utils/ensureError'
|
|
22
|
+
import { safely } from 'src/utils/safely'
|
|
23
|
+
import { currentAccountSelector } from 'src/web3/selectors'
|
|
24
|
+
import { cancelled, put, select, spawn, takeEvery, takeLatest, takeLeading } from 'typed-redux-saga'
|
|
25
|
+
|
|
26
|
+
const TAG = 'identity/saga'
|
|
27
|
+
|
|
28
|
+
export function* validateRecipientAddressSaga({
|
|
29
|
+
userInputOfFullAddressOrLastFourDigits,
|
|
30
|
+
addressValidationType,
|
|
31
|
+
recipient,
|
|
32
|
+
requesterAddress,
|
|
33
|
+
}: ValidateRecipientAddressAction) {
|
|
34
|
+
Logger.debug(TAG, 'Starting Recipient Address Validation')
|
|
35
|
+
try {
|
|
36
|
+
if (!recipientHasNumber(recipient)) {
|
|
37
|
+
throw Error(`Invalid recipient type for Secure Send, does not have e164Number`)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const userAddress = yield* select(currentAccountSelector)
|
|
41
|
+
if (!userAddress) {
|
|
42
|
+
// This should never happen
|
|
43
|
+
throw Error(`No userAddress set`)
|
|
44
|
+
}
|
|
45
|
+
const e164NumberToAddress = yield* select(e164NumberToAddressSelector)
|
|
46
|
+
const { e164PhoneNumber } = recipient
|
|
47
|
+
const possibleRecievingAddresses = e164NumberToAddress[e164PhoneNumber]
|
|
48
|
+
|
|
49
|
+
// Should never happen - Secure Send is initiated to deal with
|
|
50
|
+
// there being several possible addresses
|
|
51
|
+
if (!possibleRecievingAddresses) {
|
|
52
|
+
throw Error('There are no possible recipient addresses to validate against')
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// E164NumberToAddress in redux store only holds verified addresses
|
|
56
|
+
// Need to add the requester address to the option set in the event
|
|
57
|
+
// a request is coming from an unverified account
|
|
58
|
+
if (requesterAddress && !possibleRecievingAddresses.includes(requesterAddress)) {
|
|
59
|
+
possibleRecievingAddresses.push(requesterAddress)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const validatedAddress = validateAndReturnMatch(
|
|
63
|
+
userInputOfFullAddressOrLastFourDigits,
|
|
64
|
+
possibleRecievingAddresses,
|
|
65
|
+
userAddress,
|
|
66
|
+
addressValidationType
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
AppAnalytics.track(SendEvents.send_secure_complete, {
|
|
70
|
+
confirmByScan: false,
|
|
71
|
+
partialAddressValidation: addressValidationType === AddressValidationType.PARTIAL,
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
yield* put(validateRecipientAddressSuccess(e164PhoneNumber, validatedAddress))
|
|
75
|
+
} catch (err) {
|
|
76
|
+
const error = ensureError(err)
|
|
77
|
+
AppAnalytics.track(SendEvents.send_secure_incorrect, {
|
|
78
|
+
confirmByScan: false,
|
|
79
|
+
partialAddressValidation: addressValidationType === AddressValidationType.PARTIAL,
|
|
80
|
+
error: error.message,
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
Logger.error(TAG, 'validateRecipientAddressSaga/Address validation error: ', error)
|
|
84
|
+
if (Object.values(ErrorMessages).includes(error.message as ErrorMessages)) {
|
|
85
|
+
yield* put(showErrorInline(error.message as ErrorMessages))
|
|
86
|
+
} else {
|
|
87
|
+
yield* put(showErrorInline(ErrorMessages.ADDRESS_VALIDATION_ERROR))
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function* watchContactMapping() {
|
|
93
|
+
yield* takeLeading(Actions.IMPORT_CONTACTS, safely(doImportContactsWrapper))
|
|
94
|
+
yield* takeLatest(
|
|
95
|
+
Actions.FETCH_ADDRESSES_AND_VALIDATION_STATUS,
|
|
96
|
+
safely(fetchAddressesAndValidateSaga)
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function* watchValidateRecipientAddress() {
|
|
101
|
+
yield* takeLatest(Actions.VALIDATE_RECIPIENT_ADDRESS, safely(validateRecipientAddressSaga))
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function* watchFetchAddressVerification() {
|
|
105
|
+
yield* takeEvery(Actions.FETCH_ADDRESS_VERIFICATION_STATUS, safely(fetchAddressVerificationSaga))
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function* identitySaga() {
|
|
109
|
+
Logger.debug(TAG, 'Initializing identity sagas')
|
|
110
|
+
try {
|
|
111
|
+
yield* spawn(watchContactMapping)
|
|
112
|
+
yield* spawn(watchValidateRecipientAddress)
|
|
113
|
+
yield* spawn(watchFetchAddressVerification)
|
|
114
|
+
yield* spawn(saveContacts) // save contacts on app start
|
|
115
|
+
} catch (error) {
|
|
116
|
+
Logger.error(TAG, 'Error initializing identity sagas', error)
|
|
117
|
+
} finally {
|
|
118
|
+
if (yield* cancelled()) {
|
|
119
|
+
Logger.error(TAG, 'identity sagas prematurely cancelled')
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { ErrorMessages } from 'src/app/ErrorMessages'
|
|
2
|
+
import { AddressValidationType, SecureSendPhoneNumberMapping } from 'src/identity/reducer'
|
|
3
|
+
import { Recipient, recipientHasNumber } from 'src/recipients/recipient'
|
|
4
|
+
import Logger from 'src/utils/Logger'
|
|
5
|
+
|
|
6
|
+
const TAG = 'identity/secureSend'
|
|
7
|
+
|
|
8
|
+
// Given addresses can be added and deleted we can't rely on changes in length to signal address changes
|
|
9
|
+
// Not sure if address order in array is consistent so not assuming it
|
|
10
|
+
function newAddressesAdded(oldAddresses: string[], newAddresses: string[]) {
|
|
11
|
+
const oldAddressesSorted = oldAddresses.sort()
|
|
12
|
+
const newAddressesSorted = newAddresses.sort()
|
|
13
|
+
|
|
14
|
+
for (let i = 0; i < newAddressesSorted.length; i += 1) {
|
|
15
|
+
if (oldAddressesSorted[i] !== newAddressesSorted[i]) {
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return false
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function last4DigitsAreUnique(addressArr: string[]) {
|
|
24
|
+
const last4DigitArr = addressArr.map((address) => address.slice(-4).toLowerCase())
|
|
25
|
+
const last4DigitSet = new Set()
|
|
26
|
+
last4DigitArr.forEach((endDigits) => last4DigitSet.add(endDigits))
|
|
27
|
+
return last4DigitArr.length === last4DigitSet.size
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Check if there are multiple addresses but somehow a preferred address hasn't been set yet
|
|
31
|
+
// Should never happen in production but makes the change backwards compatible for testing env
|
|
32
|
+
function accidentallyBypassedValidation(
|
|
33
|
+
newAddresses: string[] | null,
|
|
34
|
+
e164Number: string,
|
|
35
|
+
secureSendPhoneNumberMapping: SecureSendPhoneNumberMapping
|
|
36
|
+
) {
|
|
37
|
+
const validatedAddress =
|
|
38
|
+
secureSendPhoneNumberMapping[e164Number] && secureSendPhoneNumberMapping[e164Number].address
|
|
39
|
+
return newAddresses && newAddresses.length > 1 && !validatedAddress
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function checkIfValidationRequired(
|
|
43
|
+
oldAddresses: string[],
|
|
44
|
+
possibleAddresses: string[],
|
|
45
|
+
userAddress: string,
|
|
46
|
+
secureSendPhoneNumberMapping: SecureSendPhoneNumberMapping,
|
|
47
|
+
e164Number: string
|
|
48
|
+
) {
|
|
49
|
+
// No validation needed if there is only 1 possible address
|
|
50
|
+
if (possibleAddresses.length < 2) {
|
|
51
|
+
return AddressValidationType.NONE
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (
|
|
55
|
+
newAddressesAdded(oldAddresses, possibleAddresses) ||
|
|
56
|
+
accidentallyBypassedValidation(possibleAddresses, e164Number, secureSendPhoneNumberMapping)
|
|
57
|
+
) {
|
|
58
|
+
Logger.debug(TAG, 'Address needs to be validated by user')
|
|
59
|
+
// Adding user's address so they don't mistakenly verify with last 4 digits of their own address
|
|
60
|
+
if (last4DigitsAreUnique([userAddress, ...possibleAddresses])) {
|
|
61
|
+
return AddressValidationType.PARTIAL
|
|
62
|
+
}
|
|
63
|
+
return AddressValidationType.FULL
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return AddressValidationType.NONE
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function hasSpecialChars(address: string, addressValidationType: AddressValidationType) {
|
|
70
|
+
const regex = new RegExp('[^0-9A-Za-z]', 'g')
|
|
71
|
+
const cleanedAddress = address.replace(regex, '')
|
|
72
|
+
|
|
73
|
+
if (cleanedAddress !== address) {
|
|
74
|
+
const errorMessage =
|
|
75
|
+
addressValidationType === AddressValidationType.FULL
|
|
76
|
+
? ErrorMessages.ADDRESS_VALIDATION_FULL_POORLY_FORMATTED
|
|
77
|
+
: ErrorMessages.ADDRESS_VALIDATION_PARTIAL_POORLY_FORMATTED
|
|
78
|
+
throw Error(errorMessage)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function validateFullAddressAndReturnMatch(
|
|
83
|
+
userInputtedAddress: string,
|
|
84
|
+
possibleRecievingAddresses: string[],
|
|
85
|
+
userAddress: string
|
|
86
|
+
) {
|
|
87
|
+
if (userInputtedAddress.length !== 42 || userInputtedAddress.slice(0, 2) !== '0x') {
|
|
88
|
+
throw Error(ErrorMessages.ADDRESS_VALIDATION_FULL_POORLY_FORMATTED)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (userInputtedAddress === userAddress) {
|
|
92
|
+
throw Error(ErrorMessages.ADDRESS_VALIDATION_FULL_OWN_ADDRESS)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (!possibleRecievingAddresses.includes(userInputtedAddress)) {
|
|
96
|
+
throw Error(ErrorMessages.ADDRESS_VALIDATION_NO_MATCH)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return userInputtedAddress
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function validatePartialAddressAndReturnMatch(
|
|
103
|
+
lastFourDigitsOfUserInputtedAddress: string,
|
|
104
|
+
possibleRecievingAddresses: string[],
|
|
105
|
+
userAddress: string
|
|
106
|
+
) {
|
|
107
|
+
if (lastFourDigitsOfUserInputtedAddress.length !== 4) {
|
|
108
|
+
throw Error(ErrorMessages.ADDRESS_VALIDATION_PARTIAL_POORLY_FORMATTED)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (lastFourDigitsOfUserInputtedAddress === userAddress.slice(-4)) {
|
|
112
|
+
throw Error(ErrorMessages.ADDRESS_VALIDATION_PARTIAL_OWN_ADDRESS)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const targetAddress = possibleRecievingAddresses.find(
|
|
116
|
+
(address) => address.slice(-4) === lastFourDigitsOfUserInputtedAddress
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
if (!targetAddress) {
|
|
120
|
+
throw Error(ErrorMessages.ADDRESS_VALIDATION_NO_MATCH)
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return targetAddress
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function validateAndReturnMatch(
|
|
127
|
+
userInputOfFullAddressOrLastFourDigits: string,
|
|
128
|
+
possibleRecievingAddresses: string[],
|
|
129
|
+
userAddress: string,
|
|
130
|
+
addressValidationType: AddressValidationType
|
|
131
|
+
) {
|
|
132
|
+
const userInput = userInputOfFullAddressOrLastFourDigits.toLowerCase()
|
|
133
|
+
const possibleAddresses = possibleRecievingAddresses.map((address) => address.toLowerCase())
|
|
134
|
+
const userOwnAddress = userAddress.toLowerCase()
|
|
135
|
+
|
|
136
|
+
hasSpecialChars(userInputOfFullAddressOrLastFourDigits, addressValidationType)
|
|
137
|
+
|
|
138
|
+
if (addressValidationType === AddressValidationType.FULL) {
|
|
139
|
+
return validateFullAddressAndReturnMatch(userInput, possibleAddresses, userOwnAddress)
|
|
140
|
+
}
|
|
141
|
+
return validatePartialAddressAndReturnMatch(userInput, possibleAddresses, userOwnAddress)
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function getAddressValidationType(
|
|
145
|
+
recipient: Recipient,
|
|
146
|
+
secureSendPhoneNumberMapping: SecureSendPhoneNumberMapping
|
|
147
|
+
) {
|
|
148
|
+
const e164PhoneNumber = recipient.e164PhoneNumber
|
|
149
|
+
|
|
150
|
+
if (
|
|
151
|
+
!e164PhoneNumber ||
|
|
152
|
+
!secureSendPhoneNumberMapping[e164PhoneNumber] ||
|
|
153
|
+
!secureSendPhoneNumberMapping[e164PhoneNumber].addressValidationType
|
|
154
|
+
) {
|
|
155
|
+
return AddressValidationType.NONE
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return secureSendPhoneNumberMapping[e164PhoneNumber].addressValidationType
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function getSecureSendAddress(
|
|
162
|
+
recipient: Recipient,
|
|
163
|
+
secureSendPhoneNumberMapping: SecureSendPhoneNumberMapping
|
|
164
|
+
) {
|
|
165
|
+
const e164PhoneNumber = recipientHasNumber(recipient) ? recipient.e164PhoneNumber : undefined
|
|
166
|
+
if (!e164PhoneNumber || !secureSendPhoneNumberMapping[e164PhoneNumber]) {
|
|
167
|
+
return undefined
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return secureSendPhoneNumberMapping[e164PhoneNumber].address
|
|
171
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RootState } from 'src/redux/reducers'
|
|
2
|
+
|
|
3
|
+
export const e164NumberToAddressSelector = (state: RootState) => state.identity.e164NumberToAddress
|
|
4
|
+
export const addressToVerificationStatusSelector = (state: RootState) =>
|
|
5
|
+
state.identity.addressToVerificationStatus
|
|
6
|
+
export const addressToE164NumberSelector = (state: RootState) => state.identity.addressToE164Number
|
|
7
|
+
export const secureSendPhoneNumberMappingSelector = (state: RootState) =>
|
|
8
|
+
state.identity.secureSendPhoneNumberMapping
|
|
9
|
+
export const importContactsProgressSelector = (state: RootState) =>
|
|
10
|
+
state.identity.importContactsProgress
|
|
11
|
+
export const addressToDisplayNameSelector = (state: RootState) =>
|
|
12
|
+
state.identity.addressToDisplayName
|
|
13
|
+
export const lastSavedContactsHashSelector = (state: RootState) =>
|
|
14
|
+
state.identity.lastSavedContactsHash
|
|
15
|
+
export const shouldRefreshStoredPasswordHashSelector = (state: RootState) =>
|
|
16
|
+
state.identity.shouldRefreshStoredPasswordHash
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { ViewStyle } from 'react-native'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
width?: number
|
|
7
|
+
height?: number
|
|
8
|
+
style?: ViewStyle
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function Blob({ width = 210, height = 212.5, style }: Props) {
|
|
12
|
+
return (
|
|
13
|
+
<Svg width={width} height={height} viewBox="0 0 210 212.5" fill="none" style={style}>
|
|
14
|
+
<Path
|
|
15
|
+
d="M102.846 -29.5006C109.785 -29.5006 116.724 -29.8502 123.638 -29.3508C126.971 -29.1261 130.652 -28.0025 133.388 -26.13C144.53 -18.4399 155.398 -10.3254 166.292 -2.26089C171.167 1.35942 175.693 5.4291 180.593 8.99948C193.277 18.2625 201.832 30.5965 207.776 44.928C210.661 51.894 210.189 59.2594 209.393 66.4501C206.632 91.3429 200.439 115.287 187.979 137.233C179.598 151.989 167.486 163.35 153.608 172.737C149.504 175.509 144.232 177.007 139.282 178.006C129.483 180.003 119.51 182.525 109.636 182.5C96.181 182.475 82.4771 181.276 69.8676 175.709C44.6237 164.548 24.0059 147.945 10.2772 123.451C0.428372 105.924 -2.38205 87.5228 2.02009 67.8233C9.48134 34.5414 27.1396 7.90092 54.3483 -12.0482C67.6044 -21.7607 82.3776 -29.0013 99.3893 -29.7503C100.558 -29.8002 101.727 -29.9251 102.871 -30C102.871 -29.8252 102.871 -29.6504 102.871 -29.4756L102.846 -29.5006Z"
|
|
16
|
+
fill="#FFD62C"
|
|
17
|
+
/>
|
|
18
|
+
</Svg>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
width?: number
|
|
6
|
+
height?: number
|
|
7
|
+
testID?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function Celebration({ width = 58, height = 53, testID }: Props) {
|
|
11
|
+
return (
|
|
12
|
+
<Svg width={width} height={height} viewBox="0 0 58 53" fill="none" testID={testID}>
|
|
13
|
+
<Path fill="#FD56B5" d="M11.617 22.922 1 52.267l30.61-10.395" />
|
|
14
|
+
<Path
|
|
15
|
+
stroke="#000"
|
|
16
|
+
strokeLinecap="round"
|
|
17
|
+
strokeLinejoin="round"
|
|
18
|
+
d="M11.617 22.922 1 52.267l30.61-10.395"
|
|
19
|
+
/>
|
|
20
|
+
<Path
|
|
21
|
+
fill="#6E75EE"
|
|
22
|
+
stroke="#000"
|
|
23
|
+
strokeLinecap="round"
|
|
24
|
+
strokeLinejoin="round"
|
|
25
|
+
d="M27.69 26.477c5.654 5.464 8.058 12 5.373 14.598-.74.715-1.794 1.06-3.045 1.064-3.29.015-7.967-2.296-12.062-6.257-5.654-5.464-8.058-12-5.373-14.598 2.688-2.598 9.452-.276 15.106 5.193Z"
|
|
26
|
+
/>
|
|
27
|
+
<Path
|
|
28
|
+
stroke="#000"
|
|
29
|
+
strokeLinecap="round"
|
|
30
|
+
strokeLinejoin="round"
|
|
31
|
+
d="M15.148 32.76s8.669-9.555 9.322-18.02M17.952 35.882S37.232 18.483 40.12 6.066M21.187 38.592s15.388-12.395 30.899-11.966M30.719 12.173l1.853-3.9M50.3 20.645l4.411-.474M18.895 14.74l.003-1.205M34.445 25.46l.919-.816M38.931 43.845l1.212.284M25.175 9.514c-3.54-1.826-2.253-4.24-.123-4.367 3.251-.19 3.338-4.909-3.318-4.04M41.038 20.955c-1.644-3.28-.523-5.51 2.257-5.296 2.97.23 7.484 2.323 7.013-3.038-.539-6.13 3.385-6.7 6.692-5.063M41.065 36.892c1.382-3.168 4.289-2.77 5.295-.076 1.005 2.694 4.803 3.838 6.7-.402"
|
|
32
|
+
/>
|
|
33
|
+
</Svg>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import Colors from 'src/styles/colors'
|
|
4
|
+
|
|
5
|
+
const DivviLogo = () => (
|
|
6
|
+
<Svg width={85} height={29} viewBox="0 0 71 24" fill="none">
|
|
7
|
+
<Path
|
|
8
|
+
fill={Colors.contentPrimary}
|
|
9
|
+
d="M18.048 0H5.952A5.952 5.952 0 0 0 0 5.952v12.096A5.952 5.952 0 0 0 5.952 24h12.096A5.952 5.952 0 0 0 24 18.048V5.952A5.952 5.952 0 0 0 18.048 0Z"
|
|
10
|
+
/>
|
|
11
|
+
<Path
|
|
12
|
+
fill={Colors.backgroundPrimary}
|
|
13
|
+
d="M8.845 5.142 5.143 8.844a.807.807 0 0 0 0 1.142l8.876 8.875a.807.807 0 0 0 1.141 0l3.702-3.702a.807.807 0 0 0 0-1.141L9.987 5.142a.807.807 0 0 0-1.142 0ZM17.872 10.445V6.39a.257.257 0 0 0-.256-.256H13.56a.257.257 0 0 0-.18.441l4.056 4.057c.16.16.441.045.441-.18l-.005-.006ZM6.128 13.56v4.056c0 .14.115.256.256.256h4.056c.231 0 .346-.276.18-.441l-4.056-4.057c-.16-.16-.441-.045-.441.18l.005.006Z"
|
|
14
|
+
/>
|
|
15
|
+
<Path
|
|
16
|
+
fill={Colors.contentPrimary}
|
|
17
|
+
d="M28.763 7.95H28V2.72h.641l.21.402c.068-.083.142-.152.223-.21a1.304 1.304 0 0 1 .57-.227c.108-.016.223-.025.345-.025.276 0 .53.048.763.142.235.095.437.227.607.395a1.812 1.812 0 0 1 .546 1.312c0 .26-.048.504-.144.729a1.803 1.803 0 0 1-1.005.977 2.015 2.015 0 0 1-.767.143c-.122 0-.238-.01-.35-.029a1.825 1.825 0 0 1-.322-.078 1.585 1.585 0 0 1-.292-.146 1.55 1.55 0 0 1-.262-.217V7.95Zm0-3.438c0 .185.028.35.083.495.059.144.14.266.243.366.107.1.232.175.376.227.147.052.309.079.486.079s.339-.03.486-.09a1.107 1.107 0 0 0 .618-.614c.058-.143.088-.297.088-.463a1.137 1.137 0 0 0-.721-1.084 1.227 1.227 0 0 0-.471-.089c-.177 0-.34.028-.486.082-.144.052-.27.128-.376.228-.104.1-.184.222-.243.37-.055.144-.083.309-.083.493Zm3.674 0a1.724 1.724 0 0 1 .592-1.315c.185-.166.4-.296.649-.391.248-.095.516-.142.805-.142.288 0 .556.047.804.142.25.095.467.225.65.391.184.166.33.361.436.587.106.225.159.468.159.728 0 .261-.053.504-.16.73-.105.224-.251.42-.436.586a2.04 2.04 0 0 1-.649.387 2.235 2.235 0 0 1-.804.143c-.289 0-.557-.048-.805-.143a2.098 2.098 0 0 1-.649-.387 1.724 1.724 0 0 1-.592-1.315Zm.763 0a1.09 1.09 0 0 0 .376.832c.116.105.251.186.405.246.157.059.324.089.502.089.177 0 .344-.03.5-.09.158-.059.294-.14.41-.245a1.127 1.127 0 0 0 .376-.832 1.127 1.127 0 0 0-.376-.832 1.26 1.26 0 0 0-.41-.248 1.408 1.408 0 0 0-.5-.09c-.178 0-.345.03-.502.09a1.264 1.264 0 0 0-.683.618 1.09 1.09 0 0 0-.098.462Zm8.873-1.791h.816l-1.472 3.558h-.642l-.877-2.584-.94 2.584h-.638l-1.404-3.558h.815l.915 2.556.907-2.556h.71l.88 2.545.93-2.545Zm4.767 2.52v.729a1.947 1.947 0 0 1-.694.295 3.81 3.81 0 0 1-.854.093c-.301 0-.576-.048-.824-.143a1.975 1.975 0 0 1-.641-.39 1.77 1.77 0 0 1-.414-.587 1.835 1.835 0 0 1-.144-.73c0-.26.05-.502.148-.724a1.858 1.858 0 0 1 1.73-1.12c.269 0 .517.044.745.131.23.088.428.21.596.366a1.735 1.735 0 0 1 .539 1.276v.246h-2.98c.02.147.06.282.121.405.063.124.15.23.258.317.112.087.247.156.407.206.162.047.353.071.573.071.248 0 .497-.033.747-.1.251-.068.48-.182.687-.34Zm-1.692-1.898c-.147 0-.28.022-.399.067a1.08 1.08 0 0 0-.315.175.97.97 0 0 0-.338.536h2.1a.834.834 0 0 0-.323-.568.935.935 0 0 0-.315-.157 1.46 1.46 0 0 0-.41-.053Zm4.698-.64.232.764a1.197 1.197 0 0 0-.531-.124c-.18 0-.328.027-.445.082a.62.62 0 0 0-.269.23.952.952 0 0 0-.136.367 2.821 2.821 0 0 0-.039.49V6.28h-.763V2.721h.642l.209.401c.063-.073.124-.137.182-.192a.906.906 0 0 1 .402-.224 1.251 1.251 0 0 1 .516-.004Zm4.251 2.538v.729a1.95 1.95 0 0 1-.694.295 3.806 3.806 0 0 1-.854.093c-.302 0-.576-.048-.824-.143a1.97 1.97 0 0 1-.641-.39 1.763 1.763 0 0 1-.414-.587 1.835 1.835 0 0 1-.144-.73c0-.26.05-.502.148-.724a1.85 1.85 0 0 1 .998-.978c.23-.095.474-.142.732-.142.268 0 .517.044.745.131.23.088.428.21.595.366a1.735 1.735 0 0 1 .54 1.276v.246h-2.98c.02.147.06.282.121.405.064.124.15.23.258.317.112.087.247.156.407.206.161.047.352.071.573.071.248 0 .497-.033.748-.1.25-.068.479-.182.686-.34Zm-1.693-1.898a1.118 1.118 0 0 0-.713.242.962.962 0 0 0-.338.536h2.1a.847.847 0 0 0-.107-.323.744.744 0 0 0-.216-.245.942.942 0 0 0-.316-.157 1.457 1.457 0 0 0-.41-.053ZM57.957 1l.763.338v4.941h-.641l-.21-.401a1.18 1.18 0 0 1-.492.355 1.345 1.345 0 0 1-.304.082 2.215 2.215 0 0 1-1.109-.117 1.9 1.9 0 0 1-.607-.392 1.85 1.85 0 0 1-.542-1.315 1.837 1.837 0 0 1 .542-1.315c.17-.166.372-.297.607-.391a2.142 2.142 0 0 1 1.446-.032 1.317 1.317 0 0 1 .547.359V1Zm0 3.488c0-.185-.029-.35-.087-.495a.966.966 0 0 0-.243-.366 1.031 1.031 0 0 0-.376-.227 1.41 1.41 0 0 0-.482-.079c-.177 0-.339.03-.485.09a1.11 1.11 0 0 0-.377.245 1.125 1.125 0 0 0-.242.37 1.216 1.216 0 0 0-.087.462c0 .168.029.324.087.469.058.142.14.265.242.37.105.104.23.186.377.245.146.06.308.089.485.089s.338-.026.482-.078a.999.999 0 0 0 .618-.597 1.34 1.34 0 0 0 .088-.498Zm3.906 1.791V1l.762.338v1.774a1.256 1.256 0 0 1 .547-.36 2.15 2.15 0 0 1 .68-.11c.278 0 .533.048.766.143.235.094.438.225.607.39a1.835 1.835 0 0 1 .543 1.315 1.826 1.826 0 0 1-.546 1.316c-.17.166-.372.297-.608.392a2.002 2.002 0 0 1-.762.142 2.077 2.077 0 0 1-.661-.107 1.432 1.432 0 0 1-.281-.146 1.404 1.404 0 0 1-.246-.22v.412h-.801Zm.762-1.791c0 .184.029.35.084.497.058.145.14.268.243.37.106.1.232.175.376.228.147.052.308.078.486.078.176 0 .339-.03.485-.09a1.104 1.104 0 0 0 .619-.614c.058-.145.087-.301.087-.47 0-.165-.029-.32-.087-.462a1.104 1.104 0 0 0-.618-.615 1.287 1.287 0 0 0-.486-.089c-.178 0-.34.027-.486.079-.144.052-.27.128-.376.227a1.04 1.04 0 0 0-.243.366c-.056.145-.084.31-.084.495Zm5.04 1.653L66.11 2.72h.797l1.13 2.591 1.185-2.591H70L67.62 8l-.656-.292.702-1.567ZM35.217 9.06l2.238.943V23.2h-1.857l-.457-.933a2.896 2.896 0 0 1-.543.505c-.197.133-.41.244-.638.333a3.19 3.19 0 0 1-.714.19 5.4 5.4 0 0 1-.8.057 4.841 4.841 0 0 1-1.933-.38 4.703 4.703 0 0 1-1.533-1.048 5.101 5.101 0 0 1-1.009-1.58 5.181 5.181 0 0 1-.362-1.943c0-.698.121-1.349.362-1.952a4.983 4.983 0 0 1 1.01-1.57 4.595 4.595 0 0 1 1.523-1.048 4.909 4.909 0 0 1 1.942-.381c.273 0 .537.022.79.067.255.038.499.098.734.18.235.083.457.191.666.324.21.133.403.295.581.486V9.06Zm.02 9.332c0-.445-.068-.841-.2-1.19a2.384 2.384 0 0 0-1.4-1.438 3.056 3.056 0 0 0-1.105-.19c-.4 0-.768.072-1.105.218-.33.14-.612.337-.847.59-.235.255-.419.553-.552.896-.133.342-.2.714-.2 1.114 0 .406.067.784.2 1.133s.317.65.552.904c.235.248.517.445.847.59.337.14.705.21 1.105.21.406 0 .774-.06 1.105-.18.33-.128.612-.312.847-.553.241-.248.425-.546.552-.895.133-.356.2-.759.2-1.21Zm5.122-4.723h2.237V23.2H40.36v-9.531Zm-.248-3.39c0-.19.035-.371.105-.542.076-.172.175-.321.295-.448s.264-.225.428-.295a1.32 1.32 0 0 1 1.076 0 1.338 1.338 0 0 1 .743.743c.07.171.105.352.105.542 0 .19-.035.372-.105.543a1.342 1.342 0 0 1-.743.743 1.424 1.424 0 0 1-1.075 0 1.262 1.262 0 0 1-.429-.295 1.567 1.567 0 0 1-.295-.448 1.423 1.423 0 0 1-.105-.543ZM48.566 23.2l-4.16-9.531h2.39l2.57 6.275 2.704-6.275h2.39L50.128 23.2h-1.562Zm10.398 0-4.161-9.531h2.39l2.57 6.275 2.705-6.275h2.39L60.524 23.2h-1.561Zm7.54-9.531h2.238V23.2h-2.237v-9.531Zm-.247-3.39c0-.19.035-.371.105-.542.076-.172.174-.321.295-.448.12-.127.263-.225.428-.295a1.323 1.323 0 0 1 1.076 0 1.34 1.34 0 0 1 .743.743c.07.171.105.352.105.542 0 .19-.035.372-.105.543a1.342 1.342 0 0 1-.742.743 1.427 1.427 0 0 1-1.077 0 1.262 1.262 0 0 1-.428-.295 1.567 1.567 0 0 1-.295-.448 1.423 1.423 0 0 1-.105-.543Z"
|
|
18
|
+
/>
|
|
19
|
+
</Svg>
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
export default DivviLogo
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import Svg, { Ellipse, Path } from 'svgs'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
height?: number
|
|
6
|
+
width?: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default class GuideKeyIcon extends React.PureComponent<Props> {
|
|
10
|
+
render() {
|
|
11
|
+
const { height = 115, width = 154 } = this.props
|
|
12
|
+
return (
|
|
13
|
+
<Svg width={width} height={height} viewBox="0 0 154 115" fill="none">
|
|
14
|
+
<Path
|
|
15
|
+
d="M85.88 60.094H71.31m-9.713 8.846v-8.846h9.713m0 0v8.846"
|
|
16
|
+
stroke="#2E3338"
|
|
17
|
+
strokeWidth={2}
|
|
18
|
+
/>
|
|
19
|
+
<Ellipse cx={91.803} cy={60.094} rx={5.923} ry={5.897} stroke="#2E3338" strokeWidth={2} />
|
|
20
|
+
<Path
|
|
21
|
+
d="M80.896 15.302c-24.38-1.09-49.05 11.16-64.854 32.729 0-29.571 34.048-46.692 62.78-45.408 28.733 1.283 54.5 22.815 53.601 42.754-15.761-18.078-27.148-28.986-51.527-30.075Z"
|
|
22
|
+
fill="#FFE768"
|
|
23
|
+
style={{
|
|
24
|
+
mixBlendMode: 'multiply',
|
|
25
|
+
}}
|
|
26
|
+
/>
|
|
27
|
+
<Path
|
|
28
|
+
d="M71.675 97.395c23.588 6.231 38.906-.497 58.958-18.222-12.183 22.218-37.095 38.111-64.895 30.769-27.8-7.343-39.09-34.793-29.318-57.202 2.962 18.28 11.667 38.425 35.255 44.655Z"
|
|
29
|
+
fill="#42D689"
|
|
30
|
+
style={{
|
|
31
|
+
mixBlendMode: 'multiply',
|
|
32
|
+
}}
|
|
33
|
+
/>
|
|
34
|
+
<Path
|
|
35
|
+
d="M41.95 47.095c-8.603 18.556-5.09 39.795 5.859 59.551-20.077-10.012-26.532-39.977-16.393-61.847 10.14-21.87 37.142-30.378 52.212-22.863l-.056.011c-14.845 2.973-33.03 6.616-41.622 25.148Z"
|
|
36
|
+
fill="#FF6F43"
|
|
37
|
+
style={{
|
|
38
|
+
mixBlendMode: 'multiply',
|
|
39
|
+
}}
|
|
40
|
+
/>
|
|
41
|
+
<Path
|
|
42
|
+
d="M115.46 59.159c1.019-20.829-7.488-37.09-26.026-50.664 22.892 1.11 38.498 22.012 38.498 50.664s-27.83 46.586-45.013 45.753c17.536-9.616 31.523-24.925 32.541-45.753Z"
|
|
43
|
+
fill="#92D8FF"
|
|
44
|
+
style={{
|
|
45
|
+
mixBlendMode: 'multiply',
|
|
46
|
+
}}
|
|
47
|
+
/>
|
|
48
|
+
</Svg>
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const accountKey1 = require('src/images/assets/account-key-1.png')
|
|
2
|
+
export const accountKey2 = require('src/images/assets/account-key-2.png')
|
|
3
|
+
export const accountKey3 = require('src/images/assets/account-key-3.png')
|
|
4
|
+
export const accountKey4 = require('src/images/assets/account-key-4.png')
|
|
5
|
+
export const biometryFace = require('src/images/assets/biometry-face.png')
|
|
6
|
+
export const biometryFaceId = require('src/images/assets/biometry-face-id.png')
|
|
7
|
+
export const biometryFingerprint = require('src/images/assets/biometry-fingerprint.png')
|
|
8
|
+
export const biometryIris = require('src/images/assets/biometry-iris.png')
|
|
9
|
+
export const biometryTouchId = require('src/images/assets/biometry-touch-id.png')
|
|
10
|
+
export const celoEducation1 = require('src/images/assets/celo-education-1.png')
|
|
11
|
+
export const celoEducation2 = require('src/images/assets/celo-education-2.png')
|
|
12
|
+
export const celoEducation3 = require('src/images/assets/celo-education-3.png')
|
|
13
|
+
export const celoEducation4 = require('src/images/assets/celo-education-4.png')
|
|
14
|
+
export const email = require('src/images/assets/email.png')
|
|
15
|
+
export const fiatExchange = require('src/images/assets/fiat-exchange.png')
|
|
16
|
+
export const getVerified = require('src/images/assets/get-verified.png')
|
|
17
|
+
export const learnCelo = require('src/images/assets/learn-celo.png')
|
|
18
|
+
export const pointsCardBackground = require('src/images/assets/points-card-background.png')
|
|
19
|
+
export const pointsIllustration = require('src/images/assets/points-illustration.png')
|
|
20
|
+
export const walletSafe = require('src/images/assets/wallet-safe.png')
|
|
21
|
+
export const earnCardBackground = require('src/images/assets/earn-card-background.png')
|
|
22
|
+
export const divviPie = require('src/images/assets/pie.png')
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
import { StyleSheet, View, ViewStyle } from 'react-native'
|
|
3
|
+
import Svg, { ClipPath, Defs, G, Path } from 'react-native-svg'
|
|
4
|
+
import { getAppConfig } from 'src/appConfig'
|
|
5
|
+
import Colors from 'src/styles/colors'
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
size?: number
|
|
9
|
+
color?: string
|
|
10
|
+
backgroundColor?: string
|
|
11
|
+
style?: ViewStyle
|
|
12
|
+
testID?: string
|
|
13
|
+
translateY?: number
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default function Logo({
|
|
17
|
+
style,
|
|
18
|
+
size = 32,
|
|
19
|
+
translateY = 0,
|
|
20
|
+
color = Colors.contentPrimary,
|
|
21
|
+
backgroundColor = Colors.backgroundPrimary,
|
|
22
|
+
testID,
|
|
23
|
+
}: Props) {
|
|
24
|
+
const themesConfig = getAppConfig().themes?.default
|
|
25
|
+
const CustomLogo = themesConfig?.assets?.brandLogo
|
|
26
|
+
if (CustomLogo) {
|
|
27
|
+
return (
|
|
28
|
+
<View testID={testID} style={[styles.container, style, { transform: [{ translateY }] }]}>
|
|
29
|
+
<CustomLogo size={size} color={color} />
|
|
30
|
+
</View>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<View testID={testID} style={[styles.container, style, { transform: [{ translateY }] }]}>
|
|
36
|
+
<Svg width={size} height={size} viewBox="0 0 180 180" fill="none">
|
|
37
|
+
<G clipPath="url(#a)">
|
|
38
|
+
<G mask="url(#b)">
|
|
39
|
+
<Path
|
|
40
|
+
fill={color}
|
|
41
|
+
d="M135.357 0H44.643C19.987 0 0 19.987 0 44.643v90.714C0 160.013 19.987 180 44.643 180h90.714C160.013 180 180 160.013 180 135.357V44.643C180 19.987 160.013 0 135.357 0Z"
|
|
42
|
+
/>
|
|
43
|
+
<Path
|
|
44
|
+
fill={backgroundColor}
|
|
45
|
+
d="M66.339 38.568 38.575 66.332a6.055 6.055 0 0 0 0 8.564l66.565 66.564a6.054 6.054 0 0 0 8.563 0l27.764-27.764a6.054 6.054 0 0 0 0-8.563L74.902 38.568a6.055 6.055 0 0 0-8.563 0ZM134.041 78.34V47.916a1.926 1.926 0 0 0-1.918-1.918h-30.426c-1.73 0-2.596 2.068-1.354 3.31l30.426 30.425c1.204 1.204 3.31.339 3.31-1.353l-.038-.038ZM45.959 101.697v30.426c0 1.053.865 1.918 1.918 1.918h30.426c1.73 0 2.595-2.068 1.354-3.31l-30.426-30.426c-1.203-1.203-3.31-.338-3.31 1.354l.038.038Z"
|
|
46
|
+
/>
|
|
47
|
+
</G>
|
|
48
|
+
</G>
|
|
49
|
+
<Defs>
|
|
50
|
+
<ClipPath id="a">
|
|
51
|
+
<Path fill={backgroundColor} d="M0 0h180v180H0z" />
|
|
52
|
+
</ClipPath>
|
|
53
|
+
</Defs>
|
|
54
|
+
</Svg>
|
|
55
|
+
</View>
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const styles = StyleSheet.create({
|
|
60
|
+
container: {
|
|
61
|
+
shadowOffset: { width: 0, height: 0 },
|
|
62
|
+
shadowRadius: 2,
|
|
63
|
+
shadowOpacity: 1,
|
|
64
|
+
shadowColor: 'rgba(46, 51, 56, 0.15)',
|
|
65
|
+
},
|
|
66
|
+
})
|