@funkit/connect-rn 9.2.0 → 9.4.0
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/CHANGELOG.md +141 -0
- package/README.md +23 -0
- package/dist/{chunk-AI6F43VP.js → chunk-7EDY3KSV.js} +2 -2
- package/dist/chunk-7EDY3KSV.js.map +7 -0
- package/dist/{chunk-5DJHIA7X.js → chunk-EKU6Y6IC.js} +365 -92
- package/dist/chunk-EKU6Y6IC.js.map +7 -0
- package/dist/{chunk-OW6L3UM7.js → chunk-FAEJVOAC.js} +4 -1
- package/dist/chunk-FAEJVOAC.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/lighter.js.map +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19948 -15445
- package/dist/index.js.map +4 -4
- package/dist/preview.js +224 -34
- package/dist/preview.js.map +2 -2
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- package/dist/src/components/InfoTooltip.d.ts.map +1 -1
- package/dist/src/components/v2/FeeLine.d.ts +35 -0
- package/dist/src/components/v2/FeeLine.d.ts.map +1 -0
- package/dist/src/components/v2/IconDisc.d.ts +14 -0
- package/dist/src/components/v2/IconDisc.d.ts.map +1 -0
- package/dist/src/components/v2/ListRow.d.ts +29 -0
- package/dist/src/components/v2/ListRow.d.ts.map +1 -0
- package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts +1 -1
- package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -1
- package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSsnField.d.ts.map +1 -1
- package/dist/src/fiat/FiatUnsupportedStep.d.ts.map +1 -1
- package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/actionSlot.d.ts +51 -0
- package/dist/src/fiat/actionSlot.d.ts.map +1 -0
- package/dist/src/fiat/applePayAttempt.d.ts +25 -0
- package/dist/src/fiat/applePayAttempt.d.ts.map +1 -0
- package/dist/src/fiat/contactRound.d.ts +33 -0
- package/dist/src/fiat/contactRound.d.ts.map +1 -0
- package/dist/src/fiat/depositOutcome.d.ts +2 -3
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
- package/dist/src/fiat/depositProcessing.d.ts +20 -0
- package/dist/src/fiat/depositProcessing.d.ts.map +1 -0
- package/dist/src/fiat/depositSettlement.d.ts +18 -0
- package/dist/src/fiat/depositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/fieldLimits.d.ts +13 -0
- package/dist/src/fiat/fieldLimits.d.ts.map +1 -0
- package/dist/src/fiat/kyc/fieldLabel.d.ts.map +1 -0
- package/dist/src/fiat/{formScreenProps.d.ts → kyc/formScreenProps.d.ts} +1 -1
- package/dist/src/fiat/kyc/formScreenProps.d.ts.map +1 -0
- package/dist/src/fiat/{formValidationError.d.ts → kyc/formValidationError.d.ts} +1 -1
- package/dist/src/fiat/kyc/formValidationError.d.ts.map +1 -0
- package/dist/src/fiat/kyc/isAdditionalKycForm.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycCapture.d.ts +13 -0
- package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycCopy.d.ts +21 -0
- package/dist/src/fiat/kyc/kycCopy.d.ts.map +1 -0
- package/dist/src/fiat/{kycFailover.d.ts → kyc/kycFailover.d.ts} +1 -1
- package/dist/src/fiat/kyc/kycFailover.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycForm.d.ts +39 -0
- package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -0
- package/dist/src/fiat/{kycFormAttempt.d.ts → kyc/kycFormAttempt.d.ts} +1 -1
- package/dist/src/fiat/kyc/kycFormAttempt.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -0
- package/dist/src/fiat/{kycOptionRows.d.ts → kyc/kycOptionRows.d.ts} +1 -1
- package/dist/src/fiat/kyc/kycOptionRows.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycRoutes.d.ts +34 -0
- package/dist/src/fiat/kyc/kycRoutes.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts +34 -0
- package/dist/src/fiat/kyc/kycVerdict.d.ts.map +1 -0
- package/dist/src/fiat/kyc/kycWait.d.ts.map +1 -0
- package/dist/src/fiat/{sectionDetail.d.ts → kyc/sectionDetail.d.ts} +1 -1
- package/dist/src/fiat/kyc/sectionDetail.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycCaptureRound.d.ts.map +1 -0
- package/dist/src/fiat/{useKycCompletion.d.ts → kyc/useKycCompletion.d.ts} +1 -1
- package/dist/src/fiat/kyc/useKycCompletion.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts +16 -0
- package/dist/src/fiat/kyc/useKycFormFailure.d.ts.map +1 -0
- package/dist/src/fiat/{useKycRoundReporting.d.ts → kyc/useKycRoundReporting.d.ts} +1 -1
- package/dist/src/fiat/kyc/useKycRoundReporting.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts +48 -0
- package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -0
- package/dist/src/fiat/kyc/useKycThreshold.d.ts +15 -0
- package/dist/src/fiat/kyc/useKycThreshold.d.ts.map +1 -0
- package/dist/src/fiat/paymentAttempts.d.ts +79 -0
- package/dist/src/fiat/paymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/paymentReroute.d.ts +28 -1
- package/dist/src/fiat/paymentReroute.d.ts.map +1 -1
- package/dist/src/fiat/paymentSurfaceFailure.d.ts +5 -4
- package/dist/src/fiat/paymentSurfaceFailure.d.ts.map +1 -1
- package/dist/src/fiat/processing/CompletionCheck.d.ts +12 -0
- package/dist/src/fiat/processing/CompletionCheck.d.ts.map +1 -0
- package/dist/src/fiat/processing/CompletionWave.d.ts +17 -0
- package/dist/src/fiat/processing/CompletionWave.d.ts.map +1 -0
- package/dist/src/fiat/processing/DepositCardSheet.d.ts +25 -0
- package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -0
- package/dist/src/fiat/processing/DepositProcessingCard.d.ts +22 -0
- package/dist/src/fiat/processing/DepositProcessingCard.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingAurora.d.ts +13 -0
- package/dist/src/fiat/processing/ProcessingAurora.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts +26 -0
- package/dist/src/fiat/processing/ProcessingFailure.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingOptionIcons.d.ts +21 -0
- package/dist/src/fiat/processing/ProcessingOptionIcons.d.ts.map +1 -0
- package/dist/src/fiat/processing/ProcessingProgress.d.ts +7 -0
- package/dist/src/fiat/processing/ProcessingProgress.d.ts.map +1 -0
- package/dist/src/fiat/processing/RevealText.d.ts +16 -0
- package/dist/src/fiat/processing/RevealText.d.ts.map +1 -0
- package/dist/src/fiat/processing/cardSurface.d.ts +65 -0
- package/dist/src/fiat/processing/cardSurface.d.ts.map +1 -0
- package/dist/src/fiat/processing/cornerRadius.d.ts +13 -0
- package/dist/src/fiat/processing/cornerRadius.d.ts.map +1 -0
- package/dist/src/fiat/processing/gradientPuff.d.ts +18 -0
- package/dist/src/fiat/processing/gradientPuff.d.ts.map +1 -0
- package/dist/src/fiat/processing/pressureWave.d.ts +23 -0
- package/dist/src/fiat/processing/pressureWave.d.ts.map +1 -0
- package/dist/src/fiat/processing/skiaPeer.d.ts +15 -0
- package/dist/src/fiat/processing/skiaPeer.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +10 -3
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/applePayPaintGate.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts +4 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/CoinbaseWarmup.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -1
- package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts +7 -1
- package/dist/src/fiat/providers/coinbase/coinbasePreparedPayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpay/moonpayCardRefusal.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts +5 -1
- package/dist/src/fiat/providers/stripe/stripeApplePayReady.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts +9 -1
- package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts +12 -0
- package/dist/src/fiat/providers/stripe/stripeLinkWarmup.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts +9 -0
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeKycFailover.d.ts +5 -0
- package/dist/src/fiat/providers/stripe/useStripeKycFailover.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeKycPush.d.ts +20 -0
- package/dist/src/fiat/providers/stripe/useStripeKycPush.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts +18 -1
- package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -1
- package/dist/src/fiat/providers/stripe/useStripeSheets.d.ts +9 -0
- package/dist/src/fiat/providers/stripe/useStripeSheets.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts +7 -0
- package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -0
- package/dist/src/fiat/providers/transak/TransakApplePaySurface.d.ts.map +1 -1
- package/dist/src/fiat/quoteRouting.d.ts +59 -0
- package/dist/src/fiat/quoteRouting.d.ts.map +1 -0
- package/dist/src/fiat/sessionAuth.d.ts +8 -0
- package/dist/src/fiat/sessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/shownFieldIssues.d.ts +1 -1
- package/dist/src/fiat/shownFieldIssues.d.ts.map +1 -1
- package/dist/src/fiat/stepSurface.d.ts +36 -0
- package/dist/src/fiat/stepSurface.d.ts.map +1 -0
- package/dist/src/fiat/{renderCaptureSurface.d.ts → surfaceRegistry.d.ts} +5 -5
- package/dist/src/fiat/surfaceRegistry.d.ts.map +1 -0
- package/dist/src/fiat/useAuthHandoff.d.ts +17 -0
- package/dist/src/fiat/useAuthHandoff.d.ts.map +1 -0
- package/dist/src/fiat/useCaptureHold.d.ts +22 -0
- package/dist/src/fiat/useCaptureHold.d.ts.map +1 -0
- package/dist/src/fiat/useContactAutoSubmit.d.ts.map +1 -1
- package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
- package/dist/src/fiat/useDepositSettlement.d.ts +35 -0
- package/dist/src/fiat/useDepositSettlement.d.ts.map +1 -0
- package/dist/src/fiat/useEntryQuote.d.ts +25 -0
- package/dist/src/fiat/useEntryQuote.d.ts.map +1 -0
- package/dist/src/fiat/useEntrySubmit.d.ts +24 -0
- package/dist/src/fiat/useEntrySubmit.d.ts.map +1 -0
- package/dist/src/fiat/useFailureAnnouncements.d.ts +17 -0
- package/dist/src/fiat/useFailureAnnouncements.d.ts.map +1 -0
- package/dist/src/fiat/useIdentityAssertion.d.ts +2 -6
- package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -1
- package/dist/src/fiat/usePaymentAttempts.d.ts +24 -0
- package/dist/src/fiat/usePaymentAttempts.d.ts.map +1 -0
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts +40 -22
- package/dist/src/fiat/usePaymentFailureAnswer.d.ts.map +1 -1
- package/dist/src/fiat/useProcessingPhase.d.ts +4 -0
- package/dist/src/fiat/useProcessingPhase.d.ts.map +1 -0
- package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -1
- package/dist/src/fiat/useRerouteProbe.d.ts +24 -0
- package/dist/src/fiat/useRerouteProbe.d.ts.map +1 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +16 -0
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/fiat/useStandingRefusals.d.ts +1 -1
- package/dist/src/fiat/useStandingRefusals.d.ts.map +1 -1
- package/dist/src/fiat/useSurfaceAttempt.d.ts +24 -0
- package/dist/src/fiat/useSurfaceAttempt.d.ts.map +1 -0
- package/dist/src/flow/CryptoAddressPage.d.ts +29 -0
- package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoDepositStep.d.ts +33 -0
- package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -0
- package/dist/src/flow/CryptoListPage.d.ts +17 -0
- package/dist/src/flow/CryptoListPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts +12 -0
- package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -0
- package/dist/src/flow/CryptoTokenPage.d.ts +15 -0
- package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -0
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +1 -4
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +24 -2
- package/dist/src/flow/Drawer.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +1 -11
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +12 -2
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +21 -2
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +37 -1
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- package/dist/src/flow/cryptoDepositFlow.d.ts +81 -0
- package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts +10 -0
- package/dist/src/flow/cryptoSheetSearch.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenList.d.ts +39 -0
- package/dist/src/flow/cryptoTokenList.d.ts.map +1 -0
- package/dist/src/flow/cryptoTokenPick.d.ts +16 -0
- package/dist/src/flow/cryptoTokenPick.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +7 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/entryBanners.d.ts +29 -0
- package/dist/src/flow/entryBanners.d.ts.map +1 -0
- package/dist/src/flow/fiatStepScreens.d.ts +30 -0
- package/dist/src/flow/fiatStepScreens.d.ts.map +1 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts +103 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -0
- package/dist/src/flow/renderFiatFlowScreen.d.ts +99 -0
- package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -0
- package/dist/src/flow/screenBundles.d.ts +49 -0
- package/dist/src/flow/screenBundles.d.ts.map +1 -0
- package/dist/src/flow/selectedChainStorage.d.ts +9 -0
- package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
- package/dist/src/flow/sheetPressHold.d.ts.map +1 -1
- package/dist/src/flow/sheetSizing.d.ts +26 -0
- package/dist/src/flow/sheetSizing.d.ts.map +1 -1
- package/dist/src/flow/storedChain.d.ts +7 -2
- package/dist/src/flow/storedChain.d.ts.map +1 -1
- package/dist/src/flow/useFeeDetails.d.ts +19 -0
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -0
- package/dist/src/hooks/track/events.d.ts +29 -0
- package/dist/src/hooks/track/events.d.ts.map +1 -0
- package/dist/src/hooks/track/useTrackV2.d.ts +8 -0
- package/dist/src/hooks/track/useTrackV2.d.ts.map +1 -0
- package/dist/src/hooks/useCheckoutsListenerByUserId.d.ts.map +1 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts +14 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +5 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/useRecentDeposits.d.ts.map +1 -0
- package/dist/src/hooks/useSettledOpacity.d.ts +10 -0
- package/dist/src/hooks/useSettledOpacity.d.ts.map +1 -0
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/assetLogos.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +9 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -1
- package/dist/src/preview/fiatPreviewPress.d.ts +6 -0
- package/dist/src/preview/fiatPreviewPress.d.ts.map +1 -0
- package/dist/src/preview/flowPreview.d.ts +15 -3
- package/dist/src/preview/flowPreview.d.ts.map +1 -1
- package/dist/src/preview/previewFetch.d.ts.map +1 -1
- package/dist/src/preview/scenarioCatalog.d.ts +65 -9
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +6 -0
- package/dist/src/preview/scenarios.d.ts.map +1 -1
- package/dist/src/providers/BrandingContext.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +2 -2
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +10 -0
- package/dist/src/providers/FunkitStatsigWhnProvider.d.ts.map +1 -0
- package/dist/src/{haptics → providers}/HapticsContext.d.ts +3 -1
- package/dist/src/providers/HapticsContext.d.ts.map +1 -0
- package/dist/src/providers/IdentityContext.d.ts.map +1 -0
- package/dist/src/{haptics → providers}/hapticTap.d.ts +3 -2
- package/dist/src/providers/hapticTap.d.ts.map +1 -0
- package/dist/src/providers/useFrozenIdentity.d.ts +1 -1
- package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +20 -22
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts +3 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +7 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts +4 -0
- package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +4 -1
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +4 -2
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts +4 -2
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts +23 -0
- package/dist/src/swapped/useSwappedBuyingCrypto.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +2 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +66 -0
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +6 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/typeScale.d.ts +12 -0
- package/dist/src/theme/typeScale.d.ts.map +1 -1
- package/dist/src/theme/useFunkitTheme.d.ts.map +1 -1
- package/dist/src/transfer/depositAssets.d.ts +4 -34
- package/dist/src/transfer/depositAssets.d.ts.map +1 -1
- package/dist/src/transfer/depositQrCodeUri.d.ts.map +1 -1
- package/dist/src/transfer/depositSelection.d.ts +1 -12
- package/dist/src/transfer/depositSelection.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts +1 -1
- package/dist/src/transfer/hooks/useDepositAssets.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts +2 -0
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
- package/dist/src/transfer/supportedTokens.d.ts +2 -16
- package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
- package/dist/src/utils/tokenAndChainPicker.d.ts +2 -7
- package/dist/src/utils/tokenAndChainPicker.d.ts.map +1 -1
- package/dist/src/withdrawal/useDepositAddressWithdrawalStatus.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -1
- package/ios/FrostedGlassView.swift +28 -3
- package/ios/FunkitGlassEffectModule.swift +4 -0
- package/package.json +7 -2
- package/dist/chunk-5DJHIA7X.js.map +0 -7
- package/dist/chunk-AI6F43VP.js.map +0 -7
- package/dist/chunk-OW6L3UM7.js.map +0 -7
- package/dist/src/branding/BrandingContext.d.ts.map +0 -1
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts +0 -26
- package/dist/src/fiat/FiatPaymentFailedSheet.d.ts.map +0 -1
- package/dist/src/fiat/fieldLabel.d.ts.map +0 -1
- package/dist/src/fiat/formScreenProps.d.ts.map +0 -1
- package/dist/src/fiat/formValidationError.d.ts.map +0 -1
- package/dist/src/fiat/isAdditionalKycForm.d.ts.map +0 -1
- package/dist/src/fiat/kycFailover.d.ts.map +0 -1
- package/dist/src/fiat/kycFieldValidators.d.ts.map +0 -1
- package/dist/src/fiat/kycFormAttempt.d.ts.map +0 -1
- package/dist/src/fiat/kycFormState.d.ts.map +0 -1
- package/dist/src/fiat/kycOptionRows.d.ts.map +0 -1
- package/dist/src/fiat/kycWait.d.ts.map +0 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +0 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +0 -1
- package/dist/src/fiat/useKycCaptureRound.d.ts.map +0 -1
- package/dist/src/fiat/useKycCompletion.d.ts.map +0 -1
- package/dist/src/fiat/useKycRoundReporting.d.ts.map +0 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +0 -17
- package/dist/src/flow/DepositReceivedToast.d.ts.map +0 -1
- package/dist/src/flow/useDepositReceivedToast.d.ts +0 -31
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +0 -1
- package/dist/src/haptics/HapticsContext.d.ts.map +0 -1
- package/dist/src/haptics/hapticTap.d.ts.map +0 -1
- package/dist/src/history/useCheckoutsListenerByUserId.d.ts.map +0 -1
- package/dist/src/history/useRecentDeposits.d.ts.map +0 -1
- package/dist/src/identity/IdentityContext.d.ts.map +0 -1
- /package/dist/src/fiat/{fieldLabel.d.ts → kyc/fieldLabel.d.ts} +0 -0
- /package/dist/src/fiat/{isAdditionalKycForm.d.ts → kyc/isAdditionalKycForm.d.ts} +0 -0
- /package/dist/src/fiat/{kycFieldValidators.d.ts → kyc/kycFieldValidators.d.ts} +0 -0
- /package/dist/src/fiat/{kycFormState.d.ts → kyc/kycFormState.d.ts} +0 -0
- /package/dist/src/fiat/{kycWait.d.ts → kyc/kycWait.d.ts} +0 -0
- /package/dist/src/fiat/{useKycCaptureRound.d.ts → kyc/useKycCaptureRound.d.ts} +0 -0
- /package/dist/src/{history → hooks}/useCheckoutsListenerByUserId.d.ts +0 -0
- /package/dist/src/{history → hooks}/useRecentDeposits.d.ts +0 -0
- /package/dist/src/{branding → providers}/BrandingContext.d.ts +0 -0
- /package/dist/src/{identity → providers}/IdentityContext.d.ts +0 -0
package/dist/preview.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
NET_WORTH,
|
|
6
6
|
PERSONA_PRIVACY_POLICY_URL,
|
|
7
7
|
TRANSACTIONS_PER_MONTH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FAEJVOAC.js";
|
|
9
9
|
import {
|
|
10
10
|
logger
|
|
11
11
|
} from "./chunk-KOJEF2II.js";
|
|
@@ -23,6 +23,26 @@ var FORM = [
|
|
|
23
23
|
];
|
|
24
24
|
var INTRO = ["fiat/FiatIdentityStep.tsx", "fiat/FiatKycIntroScreen.tsx"];
|
|
25
25
|
var STATUS = ["fiat/FiatStatusScreen.tsx", "fiat/depositOutcome.ts"];
|
|
26
|
+
var CRYPTO_V2 = [
|
|
27
|
+
"flow/CryptoAddressPage.tsx",
|
|
28
|
+
"flow/CryptoDepositStep.tsx",
|
|
29
|
+
"flow/CryptoListPage.tsx",
|
|
30
|
+
"flow/CryptoNetworkPage.tsx",
|
|
31
|
+
"flow/CryptoTokenPage.tsx",
|
|
32
|
+
"flow/cryptoDepositFlow.ts",
|
|
33
|
+
"flow/cryptoTokenList.ts",
|
|
34
|
+
"components/v2/ListRow.tsx"
|
|
35
|
+
];
|
|
36
|
+
var PROCESSING = [
|
|
37
|
+
"fiat/processing/DepositProcessingCard.tsx",
|
|
38
|
+
"fiat/processing/CompletionWave.tsx",
|
|
39
|
+
"fiat/processing/ProcessingAurora.tsx",
|
|
40
|
+
"fiat/processing/gradientPuff.ts",
|
|
41
|
+
"fiat/processing/pressureWave.ts",
|
|
42
|
+
"fiat/depositProcessing.ts",
|
|
43
|
+
"screens/DepositAmountScreen.tsx",
|
|
44
|
+
"flow/FiatDepositAmountStep.tsx"
|
|
45
|
+
];
|
|
26
46
|
var WITHDRAW = [
|
|
27
47
|
"flow/WithdrawalFlowContent.tsx",
|
|
28
48
|
"screens/WithdrawCryptoSteps.tsx"
|
|
@@ -118,7 +138,7 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
118
138
|
touches: AMOUNT
|
|
119
139
|
},
|
|
120
140
|
"fiat.amount.gap": {
|
|
121
|
-
title: "Amount entry, between two providers' ranges (Deposit
|
|
141
|
+
title: "Amount entry, between two providers' ranges (Deposit Minimum)",
|
|
122
142
|
flow: "deposit",
|
|
123
143
|
requires: "fiatRail",
|
|
124
144
|
touches: AMOUNT
|
|
@@ -321,38 +341,38 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
321
341
|
requires: "fiatRail",
|
|
322
342
|
touches: [
|
|
323
343
|
"fiat/providers/moonpay/moonpayHandoffCard.tsx",
|
|
324
|
-
"fiat/useKycCaptureRound.ts"
|
|
344
|
+
"fiat/kyc/useKycCaptureRound.ts"
|
|
325
345
|
]
|
|
326
346
|
},
|
|
327
347
|
"kyc.completion.review": {
|
|
328
348
|
title: "KYC completion: in review",
|
|
329
349
|
flow: "deposit",
|
|
330
350
|
requires: "fiatRail",
|
|
331
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
351
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
332
352
|
},
|
|
333
353
|
"kyc.review.extended": {
|
|
334
354
|
title: "KYC: an extended review opens the pending card",
|
|
335
355
|
flow: "deposit",
|
|
336
356
|
requires: "fiatRail",
|
|
337
|
-
touches: ["fiat/useKycCompletion.ts", "fiat/kycOptionRows.ts"]
|
|
357
|
+
touches: ["fiat/kyc/useKycCompletion.ts", "fiat/kyc/kycOptionRows.ts"]
|
|
338
358
|
},
|
|
339
359
|
"kyc.review.brief": {
|
|
340
360
|
title: "KYC: a brief review waited out, then priced",
|
|
341
361
|
flow: "deposit",
|
|
342
362
|
requires: "fiatRail",
|
|
343
|
-
touches: ["fiat/useKycCompletion.ts", "fiat/FiatKycOutcomeScreen.tsx"]
|
|
363
|
+
touches: ["fiat/kyc/useKycCompletion.ts", "fiat/FiatKycOutcomeScreen.tsx"]
|
|
344
364
|
},
|
|
345
365
|
"kyc.completion.hold": {
|
|
346
366
|
title: "KYC completion: on hold",
|
|
347
367
|
flow: "deposit",
|
|
348
368
|
requires: "fiatRail",
|
|
349
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
369
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
350
370
|
},
|
|
351
371
|
"kyc.completion.restricted": {
|
|
352
372
|
title: "KYC completion: rejected",
|
|
353
373
|
flow: "deposit",
|
|
354
374
|
requires: "fiatRail",
|
|
355
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
375
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
356
376
|
},
|
|
357
377
|
"kyc.required": {
|
|
358
378
|
title: "Amount entry, identity asked before a first deposit",
|
|
@@ -421,6 +441,29 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
421
441
|
requires: "fiatRail",
|
|
422
442
|
touches: STATUS
|
|
423
443
|
},
|
|
444
|
+
"order.processing": {
|
|
445
|
+
title: "Paid, the order still settling: the processing card",
|
|
446
|
+
flow: "deposit",
|
|
447
|
+
requires: "fiatRail",
|
|
448
|
+
touches: PROCESSING
|
|
449
|
+
},
|
|
450
|
+
"order.processing.lands": {
|
|
451
|
+
title: "Paid, then the order settles: the processing card lands",
|
|
452
|
+
flow: "deposit",
|
|
453
|
+
requires: "fiatRail",
|
|
454
|
+
touches: [...PROCESSING, "fiat/processing/CompletionCheck.tsx"]
|
|
455
|
+
},
|
|
456
|
+
"order.processing.fails": {
|
|
457
|
+
title: "Paid, then the order fails: the processing card gives way to the failed sheet",
|
|
458
|
+
flow: "deposit",
|
|
459
|
+
requires: "fiatRail",
|
|
460
|
+
touches: [
|
|
461
|
+
...PROCESSING,
|
|
462
|
+
"fiat/processing/DepositCardSheet.tsx",
|
|
463
|
+
"fiat/processing/ProcessingFailure.tsx",
|
|
464
|
+
"fiat/processing/cardSurface.tsx"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
424
467
|
"order.success": {
|
|
425
468
|
title: "Order settled (closes into the deposit toast)",
|
|
426
469
|
flow: "deposit",
|
|
@@ -486,7 +529,9 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
486
529
|
flow: "deposit",
|
|
487
530
|
requires: "fiatRail",
|
|
488
531
|
touches: [
|
|
489
|
-
"fiat/
|
|
532
|
+
"fiat/processing/DepositProcessingCard.tsx",
|
|
533
|
+
"fiat/processing/DepositCardSheet.tsx",
|
|
534
|
+
"fiat/processing/ProcessingFailure.tsx",
|
|
490
535
|
"fiat/usePaymentFailureAnswer.ts"
|
|
491
536
|
]
|
|
492
537
|
},
|
|
@@ -534,6 +579,43 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
534
579
|
"screens/SelectAvailableChainScreen.tsx"
|
|
535
580
|
]
|
|
536
581
|
},
|
|
582
|
+
// V2 crypto deposit: one inset modal, resized per page.
|
|
583
|
+
"deposit.crypto.token": {
|
|
584
|
+
title: "V2 crypto: token page, peek height",
|
|
585
|
+
flow: "deposit",
|
|
586
|
+
requires: "cryptoDepositV2",
|
|
587
|
+
touches: CRYPTO_V2
|
|
588
|
+
},
|
|
589
|
+
"deposit.crypto.token.search": {
|
|
590
|
+
title: "V2 crypto: token page, searching at max height",
|
|
591
|
+
flow: "deposit",
|
|
592
|
+
requires: "cryptoDepositV2",
|
|
593
|
+
touches: CRYPTO_V2
|
|
594
|
+
},
|
|
595
|
+
"deposit.crypto.network": {
|
|
596
|
+
title: "V2 crypto: network page",
|
|
597
|
+
flow: "deposit",
|
|
598
|
+
requires: "cryptoDepositV2",
|
|
599
|
+
touches: CRYPTO_V2
|
|
600
|
+
},
|
|
601
|
+
"deposit.crypto.address": {
|
|
602
|
+
title: "V2 crypto: deposit address page",
|
|
603
|
+
flow: "deposit",
|
|
604
|
+
requires: "cryptoDepositV2",
|
|
605
|
+
touches: CRYPTO_V2
|
|
606
|
+
},
|
|
607
|
+
"deposit.crypto.address.expanded": {
|
|
608
|
+
title: "V2 crypto: deposit address, tapped open in full",
|
|
609
|
+
flow: "deposit",
|
|
610
|
+
requires: "cryptoDepositV2",
|
|
611
|
+
touches: CRYPTO_V2
|
|
612
|
+
},
|
|
613
|
+
"deposit.crypto.learnMore": {
|
|
614
|
+
title: "V2 crypto: learn more, max height",
|
|
615
|
+
flow: "deposit",
|
|
616
|
+
requires: "cryptoDepositV2",
|
|
617
|
+
touches: CRYPTO_V2
|
|
618
|
+
},
|
|
537
619
|
// Crypto withdrawal.
|
|
538
620
|
"withdraw.method": {
|
|
539
621
|
title: "Withdraw: payout methods",
|
|
@@ -1153,6 +1235,35 @@ var orderCreated = (state) => ({
|
|
|
1153
1235
|
provider: PROVIDER,
|
|
1154
1236
|
transitions: []
|
|
1155
1237
|
});
|
|
1238
|
+
var SETTLED_ORDER = orderCreated({
|
|
1239
|
+
status: "SETTLED",
|
|
1240
|
+
tx: { chainId: 1151111081099710, hash: TX_HASH }
|
|
1241
|
+
});
|
|
1242
|
+
var FAILED_ORDER = orderCreated({
|
|
1243
|
+
status: "FAILED",
|
|
1244
|
+
failureReason: {
|
|
1245
|
+
category: "PAYMENT_DECLINED",
|
|
1246
|
+
retryable: true,
|
|
1247
|
+
recovery: "RETRY_PAYMENT"
|
|
1248
|
+
}
|
|
1249
|
+
});
|
|
1250
|
+
var PROCESSING_ORDER = {
|
|
1251
|
+
...orderCreated({ status: "PROCESSING" }),
|
|
1252
|
+
transitions: [
|
|
1253
|
+
{
|
|
1254
|
+
id: "poll",
|
|
1255
|
+
mode: "AWAIT",
|
|
1256
|
+
poll: {
|
|
1257
|
+
endpoint: `GET /fiat/orders/${ORDER.orderId}`,
|
|
1258
|
+
intervalMs: 2e3,
|
|
1259
|
+
backoffFactor: 1,
|
|
1260
|
+
maxIntervalMs: 2e3,
|
|
1261
|
+
// Long enough to read every line of the wait before the poll gives up.
|
|
1262
|
+
giveUpAfterMs: 6e5
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
]
|
|
1266
|
+
};
|
|
1156
1267
|
var PENDING_ORDER = {
|
|
1157
1268
|
state: {
|
|
1158
1269
|
kind: "PENDING_ORDER",
|
|
@@ -1204,10 +1315,7 @@ var JOURNEY = {
|
|
|
1204
1315
|
"/fiat/session": otp("EMAIL_OTP"),
|
|
1205
1316
|
"/fiat/session/verify": kycForm(US_ROUND),
|
|
1206
1317
|
"/fiat/kyc/form": ORDER_REVIEW,
|
|
1207
|
-
"/fiat/orders":
|
|
1208
|
-
status: "SETTLED",
|
|
1209
|
-
tx: { chainId: 1151111081099710, hash: TX_HASH }
|
|
1210
|
-
})
|
|
1318
|
+
"/fiat/orders": SETTLED_ORDER
|
|
1211
1319
|
};
|
|
1212
1320
|
var fiat = (fiatSeed, backend = {}) => ({
|
|
1213
1321
|
seed: { deposit: { fiat: { amount: AMOUNT2, ...fiatSeed } } },
|
|
@@ -1419,22 +1527,32 @@ var DEFINITIONS = {
|
|
|
1419
1527
|
"order.bankInstructions": fiat({ step: BANK_INSTRUCTIONS }),
|
|
1420
1528
|
"order.pending": fiat({ step: PENDING_ORDER }),
|
|
1421
1529
|
"order.tracking": fiat({ step: orderCreated({ status: "PROCESSING" }) }),
|
|
1422
|
-
"order.success": fiat({
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
category: "PAYMENT_DECLINED",
|
|
1433
|
-
retryable: true,
|
|
1434
|
-
recovery: "RETRY_PAYMENT"
|
|
1530
|
+
"order.success": fiat({ step: SETTLED_ORDER }),
|
|
1531
|
+
"order.processing": fiat({ step: PROCESSING_ORDER, paymentCaptured: true }),
|
|
1532
|
+
// Lands after the first two lines of the wait have had their turn.
|
|
1533
|
+
"order.processing.lands": fiat(
|
|
1534
|
+
{ step: PROCESSING_ORDER, paymentCaptured: true },
|
|
1535
|
+
{
|
|
1536
|
+
settles: {
|
|
1537
|
+
endpoint: `/fiat/orders/${ORDER.orderId}`,
|
|
1538
|
+
afterMs: 11e3,
|
|
1539
|
+
step: SETTLED_ORDER
|
|
1435
1540
|
}
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1541
|
+
}
|
|
1542
|
+
),
|
|
1543
|
+
// Fails at the same point the landing would: the card gives way to the
|
|
1544
|
+
// payment-failed sheet.
|
|
1545
|
+
"order.processing.fails": fiat(
|
|
1546
|
+
{ step: PROCESSING_ORDER, paymentCaptured: true },
|
|
1547
|
+
{
|
|
1548
|
+
settles: {
|
|
1549
|
+
endpoint: `/fiat/orders/${ORDER.orderId}`,
|
|
1550
|
+
afterMs: 11e3,
|
|
1551
|
+
step: FAILED_ORDER
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
),
|
|
1555
|
+
"order.failed": fiat({ step: FAILED_ORDER }),
|
|
1438
1556
|
"order.cancelled": fiat({
|
|
1439
1557
|
step: orderCreated({ status: "CANCELLED" })
|
|
1440
1558
|
}),
|
|
@@ -1479,11 +1597,31 @@ var DEFINITIONS = {
|
|
|
1479
1597
|
detail: "The provider could not start this payment."
|
|
1480
1598
|
}
|
|
1481
1599
|
}),
|
|
1482
|
-
// The quote's own pay sheet failed: the
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1600
|
+
// The quote's own pay sheet failed: the processing card holds the ways on.
|
|
1601
|
+
// Transak, not MoonPay: MoonPay's entry starts its session ahead of the tap,
|
|
1602
|
+
// which would carry the page past the failure. Coinbase is left for the
|
|
1603
|
+
// reroute probe to find, so the card offers another provider.
|
|
1604
|
+
"fiat.paymentFailed": fiat(
|
|
1605
|
+
{ amount: AMOUNT2, surfaceFailure: { code: "provider_error" } },
|
|
1606
|
+
{
|
|
1607
|
+
providers: [
|
|
1608
|
+
{
|
|
1609
|
+
provider: "TRANSAK",
|
|
1610
|
+
min: "5",
|
|
1611
|
+
max: "2000",
|
|
1612
|
+
visibility: "AUTH_GATED",
|
|
1613
|
+
answer: pricedAt("TRANSAK", "2000")
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
provider: "COINBASE",
|
|
1617
|
+
min: "5",
|
|
1618
|
+
max: "2000",
|
|
1619
|
+
visibility: "AUTH_GATED",
|
|
1620
|
+
answer: pricedAt("COINBASE", "2000")
|
|
1621
|
+
}
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1624
|
+
),
|
|
1487
1625
|
"fiat.retryable": fiat(
|
|
1488
1626
|
{ step: ORDER_REVIEW, submitOnOpen: "confirm" },
|
|
1489
1627
|
{ responses: { "/fiat/orders": UNAVAILABLE } }
|
|
@@ -1514,6 +1652,49 @@ var DEFINITIONS = {
|
|
|
1514
1652
|
},
|
|
1515
1653
|
backend: {}
|
|
1516
1654
|
},
|
|
1655
|
+
"deposit.crypto.token": {
|
|
1656
|
+
seed: { deposit: { screen: "cryptoToken" } },
|
|
1657
|
+
backend: {}
|
|
1658
|
+
},
|
|
1659
|
+
"deposit.crypto.token.search": {
|
|
1660
|
+
seed: { deposit: { screen: "cryptoToken", tokenQuery: "w" } },
|
|
1661
|
+
backend: {}
|
|
1662
|
+
},
|
|
1663
|
+
"deposit.crypto.network": {
|
|
1664
|
+
seed: {
|
|
1665
|
+
deposit: {
|
|
1666
|
+
screen: "cryptoNetwork",
|
|
1667
|
+
chainId: "8453",
|
|
1668
|
+
sourceSymbol: "USDC"
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
backend: {}
|
|
1672
|
+
},
|
|
1673
|
+
"deposit.crypto.address": {
|
|
1674
|
+
seed: {
|
|
1675
|
+
deposit: {
|
|
1676
|
+
screen: "cryptoAddress",
|
|
1677
|
+
chainId: "8453",
|
|
1678
|
+
sourceSymbol: "USDC"
|
|
1679
|
+
}
|
|
1680
|
+
},
|
|
1681
|
+
backend: {}
|
|
1682
|
+
},
|
|
1683
|
+
"deposit.crypto.address.expanded": {
|
|
1684
|
+
seed: {
|
|
1685
|
+
deposit: {
|
|
1686
|
+
screen: "cryptoAddress",
|
|
1687
|
+
chainId: "8453",
|
|
1688
|
+
sourceSymbol: "USDC",
|
|
1689
|
+
addressExpanded: true
|
|
1690
|
+
}
|
|
1691
|
+
},
|
|
1692
|
+
backend: {}
|
|
1693
|
+
},
|
|
1694
|
+
"deposit.crypto.learnMore": {
|
|
1695
|
+
seed: { deposit: { screen: "cryptoLearnMore" } },
|
|
1696
|
+
backend: {}
|
|
1697
|
+
},
|
|
1517
1698
|
"withdraw.method": { seed: { withdrawal: {} }, backend: {} },
|
|
1518
1699
|
"withdraw.amount": {
|
|
1519
1700
|
seed: {
|
|
@@ -1767,8 +1948,10 @@ function createPreviewFetch(scenario, passThrough) {
|
|
|
1767
1948
|
noRoute: noRouteReason,
|
|
1768
1949
|
ranges,
|
|
1769
1950
|
providers,
|
|
1770
|
-
currentLimit
|
|
1951
|
+
currentLimit,
|
|
1952
|
+
settles
|
|
1771
1953
|
} = scenario.backend;
|
|
1954
|
+
let settlesFrom;
|
|
1772
1955
|
const answer = (path, method, amount, search, asked) => {
|
|
1773
1956
|
if (path.endsWith("/fiat/routing/table")) {
|
|
1774
1957
|
return json(
|
|
@@ -1799,6 +1982,13 @@ function createPreviewFetch(scenario, passThrough) {
|
|
|
1799
1982
|
current = quote;
|
|
1800
1983
|
return json(quote);
|
|
1801
1984
|
}
|
|
1985
|
+
if (settles !== void 0 && path.endsWith(settles.endpoint)) {
|
|
1986
|
+
settlesFrom ??= Date.now();
|
|
1987
|
+
if (Date.now() - settlesFrom >= settles.afterMs) {
|
|
1988
|
+
current = settles.step;
|
|
1989
|
+
return json(current);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1802
1992
|
const listed = Object.entries(scenario.backend.responses ?? {}).find(
|
|
1803
1993
|
([endpoint]) => path.endsWith(endpoint)
|
|
1804
1994
|
)?.[1];
|