@funkit/connect-rn 9.1.2 → 9.3.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 +142 -0
- package/README.md +23 -0
- package/dist/{chunk-ESQLFNOK.js → chunk-BSYYQSWJ.js} +3 -1
- package/dist/chunk-BSYYQSWJ.js.map +7 -0
- package/dist/{chunk-OJN7XVWC.js → chunk-GPJAVLS6.js} +3 -3
- package/dist/chunk-GPJAVLS6.js.map +7 -0
- package/dist/{chunk-ZE77GVDW.js → chunk-KOJEF2II.js} +97 -29
- package/dist/chunk-KOJEF2II.js.map +7 -0
- package/dist/{chunk-2C2OETEM.js → chunk-ZIE5S6XC.js} +275 -163
- package/dist/chunk-ZIE5S6XC.js.map +7 -0
- package/dist/clients/lighter.js +2 -2
- package/dist/clients/lighter.js.map +1 -1
- package/dist/clients/nado.js +3 -3
- package/dist/clients/solana.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29053 -25237
- package/dist/index.js.map +4 -4
- package/dist/preview.js +199 -35
- package/dist/preview.js.map +2 -2
- package/dist/src/components/AssetList.d.ts +27 -0
- package/dist/src/components/AssetList.d.ts.map +1 -0
- package/dist/src/components/DepositQrCard.d.ts +20 -0
- package/dist/src/components/DepositQrCard.d.ts.map +1 -0
- 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/SearchInput.d.ts +4 -1
- package/dist/src/components/SearchInput.d.ts.map +1 -1
- package/dist/src/components/SearchableAssetListSheet.d.ts +16 -0
- package/dist/src/components/SearchableAssetListSheet.d.ts.map +1 -0
- package/dist/src/components/TokenChainSelector.d.ts +15 -0
- package/dist/src/components/TokenChainSelector.d.ts.map +1 -0
- package/dist/src/components/v2/FeeLine.d.ts +35 -0
- package/dist/src/components/v2/FeeLine.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/FiatKycOptionRow.d.ts +4 -1
- package/dist/src/fiat/FiatKycOptionRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +1 -4
- package/dist/src/fiat/FiatKycOutcomeScreen.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/FiatStatusScreen.d.ts +1 -0
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatStepFailedScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatUnsupportedStep.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/closeFailure.d.ts +4 -1
- package/dist/src/fiat/closeFailure.d.ts.map +1 -1
- 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/kyc/kycFailover.d.ts +10 -0
- 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} +9 -2
- 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/kyc/useKycCompletion.d.ts +33 -0
- 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/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/providerFailover.d.ts +34 -0
- package/dist/src/fiat/providerFailover.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +8 -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 +3 -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 +9 -0
- 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/StripeSessionAuthScreen.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/stripePreparedPayment.d.ts +22 -0
- package/dist/src/fiat/providers/stripe/stripePreparedPayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts +15 -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 +54 -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 +35 -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 +33 -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/usePaymentFailureAnswer.d.ts +37 -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/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/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.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/WithdrawalFlowContent.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 +100 -0
- package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -0
- package/dist/src/flow/flowStepHeight.d.ts +4 -8
- package/dist/src/flow/flowStepHeight.d.ts.map +1 -1
- package/dist/src/flow/renderFiatFlowScreen.d.ts +97 -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/sheetPressHold.d.ts.map +1 -1
- package/dist/src/flow/useDepositSelection.d.ts +38 -0
- package/dist/src/flow/useDepositSelection.d.ts.map +1 -0
- package/dist/src/flow/useFeeDetails.d.ts +19 -0
- package/dist/src/flow/useFeeDetails.d.ts.map +1 -0
- package/dist/src/hooks/useCheckoutsListenerByUserId.d.ts.map +1 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts +8 -0
- package/dist/src/hooks/useEnclosingSheetOpen.d.ts.map +1 -0
- package/dist/src/hooks/useNestedSheet.d.ts +12 -0
- package/dist/src/hooks/useNestedSheet.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 +2 -2
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/iconSvg.d.ts +10 -0
- package/dist/src/icons/iconSvg.d.ts.map +1 -0
- package/dist/src/logging/datadogHttpLogTransport.d.ts +20 -2
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/logging/logger.d.ts +5 -5
- package/dist/src/logging/logger.d.ts.map +1 -1
- package/dist/src/native/glassEffect.d.ts +4 -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 +8 -2
- 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 +43 -6
- package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
- package/dist/src/preview/scenarios.d.ts +8 -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/{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/LockedTransferCryptoScreen.d.ts +11 -6
- package/dist/src/screens/LockedTransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectAvailableChainScreen.d.ts +12 -0
- package/dist/src/screens/SelectAvailableChainScreen.d.ts.map +1 -0
- package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectReceiveTokenScreen.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/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/DepositQrCode.d.ts +31 -0
- package/dist/src/transfer/DepositQrCode.d.ts.map +1 -0
- package/dist/src/transfer/DepositQrGlyph.d.ts +15 -0
- package/dist/src/transfer/DepositQrGlyph.d.ts.map +1 -0
- package/dist/src/transfer/depositQrCodeUri.d.ts +8 -0
- package/dist/src/transfer/depositQrCodeUri.d.ts.map +1 -0
- package/dist/src/transfer/depositSelection.d.ts +13 -0
- package/dist/src/transfer/depositSelection.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/monoChainLogo.d.ts +20 -0
- package/dist/src/transfer/monoChainLogo.d.ts.map +1 -0
- package/dist/src/transfer/qrModules.d.ts +20 -0
- package/dist/src/transfer/qrModules.d.ts.map +1 -0
- package/dist/src/utils/assetSearch.d.ts +5 -0
- package/dist/src/utils/assetSearch.d.ts.map +1 -0
- package/dist/src/utils/tokenAndChainPicker.d.ts +2 -0
- package/dist/src/utils/tokenAndChainPicker.d.ts.map +1 -1
- package/dist/src/utils/tokenOnChainJoiner.d.ts +12 -0
- package/dist/src/utils/tokenOnChainJoiner.d.ts.map +1 -0
- package/dist/src/withdrawal/useDepositAddressWithdrawalStatus.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -1
- package/package.json +11 -4
- package/dist/chunk-2C2OETEM.js.map +0 -7
- package/dist/chunk-ESQLFNOK.js.map +0 -7
- package/dist/chunk-OJN7XVWC.js.map +0 -7
- package/dist/chunk-ZE77GVDW.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 +0 -6
- 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 +0 -21
- 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,10 +5,10 @@ import {
|
|
|
5
5
|
NET_WORTH,
|
|
6
6
|
PERSONA_PRIVACY_POLICY_URL,
|
|
7
7
|
TRANSACTIONS_PER_MONTH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BSYYQSWJ.js";
|
|
9
9
|
import {
|
|
10
10
|
logger
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KOJEF2II.js";
|
|
12
12
|
|
|
13
13
|
// src/preview/scenarioCatalog.ts
|
|
14
14
|
var AMOUNT = [
|
|
@@ -23,6 +23,16 @@ 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 PROCESSING = [
|
|
27
|
+
"fiat/processing/DepositProcessingCard.tsx",
|
|
28
|
+
"fiat/processing/CompletionWave.tsx",
|
|
29
|
+
"fiat/processing/ProcessingAurora.tsx",
|
|
30
|
+
"fiat/processing/gradientPuff.ts",
|
|
31
|
+
"fiat/processing/pressureWave.ts",
|
|
32
|
+
"fiat/depositProcessing.ts",
|
|
33
|
+
"screens/DepositAmountScreen.tsx",
|
|
34
|
+
"flow/FiatDepositAmountStep.tsx"
|
|
35
|
+
];
|
|
26
36
|
var WITHDRAW = [
|
|
27
37
|
"flow/WithdrawalFlowContent.tsx",
|
|
28
38
|
"screens/WithdrawCryptoSteps.tsx"
|
|
@@ -321,26 +331,38 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
321
331
|
requires: "fiatRail",
|
|
322
332
|
touches: [
|
|
323
333
|
"fiat/providers/moonpay/moonpayHandoffCard.tsx",
|
|
324
|
-
"fiat/useKycCaptureRound.ts"
|
|
334
|
+
"fiat/kyc/useKycCaptureRound.ts"
|
|
325
335
|
]
|
|
326
336
|
},
|
|
327
337
|
"kyc.completion.review": {
|
|
328
338
|
title: "KYC completion: in review",
|
|
329
339
|
flow: "deposit",
|
|
330
340
|
requires: "fiatRail",
|
|
331
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
341
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
342
|
+
},
|
|
343
|
+
"kyc.review.extended": {
|
|
344
|
+
title: "KYC: an extended review opens the pending card",
|
|
345
|
+
flow: "deposit",
|
|
346
|
+
requires: "fiatRail",
|
|
347
|
+
touches: ["fiat/kyc/useKycCompletion.ts", "fiat/kyc/kycOptionRows.ts"]
|
|
348
|
+
},
|
|
349
|
+
"kyc.review.brief": {
|
|
350
|
+
title: "KYC: a brief review waited out, then priced",
|
|
351
|
+
flow: "deposit",
|
|
352
|
+
requires: "fiatRail",
|
|
353
|
+
touches: ["fiat/kyc/useKycCompletion.ts", "fiat/FiatKycOutcomeScreen.tsx"]
|
|
332
354
|
},
|
|
333
355
|
"kyc.completion.hold": {
|
|
334
356
|
title: "KYC completion: on hold",
|
|
335
357
|
flow: "deposit",
|
|
336
358
|
requires: "fiatRail",
|
|
337
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
359
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
338
360
|
},
|
|
339
361
|
"kyc.completion.restricted": {
|
|
340
362
|
title: "KYC completion: rejected",
|
|
341
363
|
flow: "deposit",
|
|
342
364
|
requires: "fiatRail",
|
|
343
|
-
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/useKycCompletion.ts"]
|
|
365
|
+
touches: ["fiat/FiatKycOutcomeScreen.tsx", "fiat/kyc/useKycCompletion.ts"]
|
|
344
366
|
},
|
|
345
367
|
"kyc.required": {
|
|
346
368
|
title: "Amount entry, identity asked before a first deposit",
|
|
@@ -409,6 +431,29 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
409
431
|
requires: "fiatRail",
|
|
410
432
|
touches: STATUS
|
|
411
433
|
},
|
|
434
|
+
"order.processing": {
|
|
435
|
+
title: "Paid, the order still settling: the processing card",
|
|
436
|
+
flow: "deposit",
|
|
437
|
+
requires: "fiatRail",
|
|
438
|
+
touches: PROCESSING
|
|
439
|
+
},
|
|
440
|
+
"order.processing.lands": {
|
|
441
|
+
title: "Paid, then the order settles: the processing card lands",
|
|
442
|
+
flow: "deposit",
|
|
443
|
+
requires: "fiatRail",
|
|
444
|
+
touches: [...PROCESSING, "fiat/processing/CompletionCheck.tsx"]
|
|
445
|
+
},
|
|
446
|
+
"order.processing.fails": {
|
|
447
|
+
title: "Paid, then the order fails: the processing card gives way to the failed sheet",
|
|
448
|
+
flow: "deposit",
|
|
449
|
+
requires: "fiatRail",
|
|
450
|
+
touches: [
|
|
451
|
+
...PROCESSING,
|
|
452
|
+
"fiat/processing/DepositCardSheet.tsx",
|
|
453
|
+
"fiat/processing/ProcessingFailure.tsx",
|
|
454
|
+
"fiat/processing/cardSurface.tsx"
|
|
455
|
+
]
|
|
456
|
+
},
|
|
412
457
|
"order.success": {
|
|
413
458
|
title: "Order settled (closes into the deposit toast)",
|
|
414
459
|
flow: "deposit",
|
|
@@ -474,7 +519,9 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
474
519
|
flow: "deposit",
|
|
475
520
|
requires: "fiatRail",
|
|
476
521
|
touches: [
|
|
477
|
-
"fiat/
|
|
522
|
+
"fiat/processing/DepositProcessingCard.tsx",
|
|
523
|
+
"fiat/processing/DepositCardSheet.tsx",
|
|
524
|
+
"fiat/processing/ProcessingFailure.tsx",
|
|
478
525
|
"fiat/usePaymentFailureAnswer.ts"
|
|
479
526
|
]
|
|
480
527
|
},
|
|
@@ -509,6 +556,19 @@ var PREVIEW_SCENARIO_CATALOG = {
|
|
|
509
556
|
requires: "cryptoDeposit",
|
|
510
557
|
touches: ["screens/TransferCryptoScreen.tsx"]
|
|
511
558
|
},
|
|
559
|
+
"deposit.lockedTransfer": {
|
|
560
|
+
title: "Locked deposit: token and chain dropdowns over the QR card",
|
|
561
|
+
flow: "deposit",
|
|
562
|
+
requires: "cryptoDepositLocked",
|
|
563
|
+
touches: [
|
|
564
|
+
"screens/LockedTransferCryptoScreen.tsx",
|
|
565
|
+
"components/DepositQrCard.tsx",
|
|
566
|
+
"components/TokenChainSelector.tsx",
|
|
567
|
+
"flow/useDepositSelection.ts",
|
|
568
|
+
"screens/SelectReceiveTokenScreen.tsx",
|
|
569
|
+
"screens/SelectAvailableChainScreen.tsx"
|
|
570
|
+
]
|
|
571
|
+
},
|
|
512
572
|
// Crypto withdrawal.
|
|
513
573
|
"withdraw.method": {
|
|
514
574
|
title: "Withdraw: payout methods",
|
|
@@ -993,6 +1053,21 @@ var IN_REVIEW = {
|
|
|
993
1053
|
}
|
|
994
1054
|
]
|
|
995
1055
|
};
|
|
1056
|
+
var reviewFor = (review) => ({
|
|
1057
|
+
...IN_REVIEW,
|
|
1058
|
+
state: { ...IN_REVIEW.state, review }
|
|
1059
|
+
});
|
|
1060
|
+
var submittedInto = (review, polled) => fiat(
|
|
1061
|
+
{ pressEntry: true },
|
|
1062
|
+
{
|
|
1063
|
+
quote: kycForm(US_ROUND),
|
|
1064
|
+
currentLimit: "500.00",
|
|
1065
|
+
responses: {
|
|
1066
|
+
"/fiat/kyc/form": review,
|
|
1067
|
+
[`/fiat/quotes/${quoteRef}`]: polled
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
);
|
|
996
1071
|
var ON_HOLD = {
|
|
997
1072
|
state: {
|
|
998
1073
|
kind: "KYC",
|
|
@@ -1113,6 +1188,35 @@ var orderCreated = (state) => ({
|
|
|
1113
1188
|
provider: PROVIDER,
|
|
1114
1189
|
transitions: []
|
|
1115
1190
|
});
|
|
1191
|
+
var SETTLED_ORDER = orderCreated({
|
|
1192
|
+
status: "SETTLED",
|
|
1193
|
+
tx: { chainId: 1151111081099710, hash: TX_HASH }
|
|
1194
|
+
});
|
|
1195
|
+
var FAILED_ORDER = orderCreated({
|
|
1196
|
+
status: "FAILED",
|
|
1197
|
+
failureReason: {
|
|
1198
|
+
category: "PAYMENT_DECLINED",
|
|
1199
|
+
retryable: true,
|
|
1200
|
+
recovery: "RETRY_PAYMENT"
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
var PROCESSING_ORDER = {
|
|
1204
|
+
...orderCreated({ status: "PROCESSING" }),
|
|
1205
|
+
transitions: [
|
|
1206
|
+
{
|
|
1207
|
+
id: "poll",
|
|
1208
|
+
mode: "AWAIT",
|
|
1209
|
+
poll: {
|
|
1210
|
+
endpoint: `GET /fiat/orders/${ORDER.orderId}`,
|
|
1211
|
+
intervalMs: 2e3,
|
|
1212
|
+
backoffFactor: 1,
|
|
1213
|
+
maxIntervalMs: 2e3,
|
|
1214
|
+
// Long enough to read every line of the wait before the poll gives up.
|
|
1215
|
+
giveUpAfterMs: 6e5
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
]
|
|
1219
|
+
};
|
|
1116
1220
|
var PENDING_ORDER = {
|
|
1117
1221
|
state: {
|
|
1118
1222
|
kind: "PENDING_ORDER",
|
|
@@ -1164,10 +1268,7 @@ var JOURNEY = {
|
|
|
1164
1268
|
"/fiat/session": otp("EMAIL_OTP"),
|
|
1165
1269
|
"/fiat/session/verify": kycForm(US_ROUND),
|
|
1166
1270
|
"/fiat/kyc/form": ORDER_REVIEW,
|
|
1167
|
-
"/fiat/orders":
|
|
1168
|
-
status: "SETTLED",
|
|
1169
|
-
tx: { chainId: 1151111081099710, hash: TX_HASH }
|
|
1170
|
-
})
|
|
1271
|
+
"/fiat/orders": SETTLED_ORDER
|
|
1171
1272
|
};
|
|
1172
1273
|
var fiat = (fiatSeed, backend = {}) => ({
|
|
1173
1274
|
seed: { deposit: { fiat: { amount: AMOUNT2, ...fiatSeed } } },
|
|
@@ -1353,6 +1454,16 @@ var DEFINITIONS = {
|
|
|
1353
1454
|
captureReissued: true
|
|
1354
1455
|
}),
|
|
1355
1456
|
"kyc.completion.review": fiat({ step: IN_REVIEW, kycCompletion: "review" }),
|
|
1457
|
+
// The pending card at once, with "Deposit max" at the table's current limit.
|
|
1458
|
+
"kyc.review.extended": submittedInto(
|
|
1459
|
+
reviewFor({ duration: "EXTENDED" }),
|
|
1460
|
+
reviewFor({ duration: "EXTENDED" })
|
|
1461
|
+
),
|
|
1462
|
+
// "Authorizing your limits now…" while the poll runs, then the price it brings.
|
|
1463
|
+
"kyc.review.brief": submittedInto(
|
|
1464
|
+
reviewFor({ duration: "BRIEF", holdMs: 3e4 }),
|
|
1465
|
+
PRICED
|
|
1466
|
+
),
|
|
1356
1467
|
"kyc.completion.hold": fiat({ step: ON_HOLD, kycCompletion: "hold" }),
|
|
1357
1468
|
"kyc.completion.restricted": fiat({
|
|
1358
1469
|
step: REJECTED,
|
|
@@ -1369,22 +1480,32 @@ var DEFINITIONS = {
|
|
|
1369
1480
|
"order.bankInstructions": fiat({ step: BANK_INSTRUCTIONS }),
|
|
1370
1481
|
"order.pending": fiat({ step: PENDING_ORDER }),
|
|
1371
1482
|
"order.tracking": fiat({ step: orderCreated({ status: "PROCESSING" }) }),
|
|
1372
|
-
"order.success": fiat({
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
category: "PAYMENT_DECLINED",
|
|
1383
|
-
retryable: true,
|
|
1384
|
-
recovery: "RETRY_PAYMENT"
|
|
1483
|
+
"order.success": fiat({ step: SETTLED_ORDER }),
|
|
1484
|
+
"order.processing": fiat({ step: PROCESSING_ORDER, paymentCaptured: true }),
|
|
1485
|
+
// Lands after the first two lines of the wait have had their turn.
|
|
1486
|
+
"order.processing.lands": fiat(
|
|
1487
|
+
{ step: PROCESSING_ORDER, paymentCaptured: true },
|
|
1488
|
+
{
|
|
1489
|
+
settles: {
|
|
1490
|
+
endpoint: `/fiat/orders/${ORDER.orderId}`,
|
|
1491
|
+
afterMs: 11e3,
|
|
1492
|
+
step: SETTLED_ORDER
|
|
1385
1493
|
}
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1494
|
+
}
|
|
1495
|
+
),
|
|
1496
|
+
// Fails at the same point the landing would: the card gives way to the
|
|
1497
|
+
// payment-failed sheet.
|
|
1498
|
+
"order.processing.fails": fiat(
|
|
1499
|
+
{ step: PROCESSING_ORDER, paymentCaptured: true },
|
|
1500
|
+
{
|
|
1501
|
+
settles: {
|
|
1502
|
+
endpoint: `/fiat/orders/${ORDER.orderId}`,
|
|
1503
|
+
afterMs: 11e3,
|
|
1504
|
+
step: FAILED_ORDER
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
),
|
|
1508
|
+
"order.failed": fiat({ step: FAILED_ORDER }),
|
|
1388
1509
|
"order.cancelled": fiat({
|
|
1389
1510
|
step: orderCreated({ status: "CANCELLED" })
|
|
1390
1511
|
}),
|
|
@@ -1429,11 +1550,31 @@ var DEFINITIONS = {
|
|
|
1429
1550
|
detail: "The provider could not start this payment."
|
|
1430
1551
|
}
|
|
1431
1552
|
}),
|
|
1432
|
-
// The quote's own pay sheet failed: the
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1553
|
+
// The quote's own pay sheet failed: the processing card holds the ways on.
|
|
1554
|
+
// Transak, not MoonPay: MoonPay's entry starts its session ahead of the tap,
|
|
1555
|
+
// which would carry the page past the failure. Coinbase is left for the
|
|
1556
|
+
// reroute probe to find, so the card offers another provider.
|
|
1557
|
+
"fiat.paymentFailed": fiat(
|
|
1558
|
+
{ amount: AMOUNT2, surfaceFailure: { code: "provider_error" } },
|
|
1559
|
+
{
|
|
1560
|
+
providers: [
|
|
1561
|
+
{
|
|
1562
|
+
provider: "TRANSAK",
|
|
1563
|
+
min: "5",
|
|
1564
|
+
max: "2000",
|
|
1565
|
+
visibility: "AUTH_GATED",
|
|
1566
|
+
answer: pricedAt("TRANSAK", "2000")
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
provider: "COINBASE",
|
|
1570
|
+
min: "5",
|
|
1571
|
+
max: "2000",
|
|
1572
|
+
visibility: "AUTH_GATED",
|
|
1573
|
+
answer: pricedAt("COINBASE", "2000")
|
|
1574
|
+
}
|
|
1575
|
+
]
|
|
1576
|
+
}
|
|
1577
|
+
),
|
|
1437
1578
|
"fiat.retryable": fiat(
|
|
1438
1579
|
{ step: ORDER_REVIEW, submitOnOpen: "confirm" },
|
|
1439
1580
|
{ responses: { "/fiat/orders": UNAVAILABLE } }
|
|
@@ -1458,6 +1599,12 @@ var DEFINITIONS = {
|
|
|
1458
1599
|
seed: { deposit: { screen: "transfer", chainId: "8453" } },
|
|
1459
1600
|
backend: {}
|
|
1460
1601
|
},
|
|
1602
|
+
"deposit.lockedTransfer": {
|
|
1603
|
+
seed: {
|
|
1604
|
+
deposit: { screen: "transfer", chainId: "8453", sourceSymbol: "USDC" }
|
|
1605
|
+
},
|
|
1606
|
+
backend: {}
|
|
1607
|
+
},
|
|
1461
1608
|
"withdraw.method": { seed: { withdrawal: {} }, backend: {} },
|
|
1462
1609
|
"withdraw.amount": {
|
|
1463
1610
|
seed: {
|
|
@@ -1679,7 +1826,7 @@ function unservedAmount(ranges) {
|
|
|
1679
1826
|
function isStepResponse(response) {
|
|
1680
1827
|
return "state" in response;
|
|
1681
1828
|
}
|
|
1682
|
-
function routingTable(quote, minimum, ranges, search) {
|
|
1829
|
+
function routingTable(quote, minimum, ranges, search, currentLimit) {
|
|
1683
1830
|
const limits = quote.state.kind === "QUOTE" ? quote.state.limits : void 0;
|
|
1684
1831
|
const provider = "provider" in quote ? quote.provider : "MOONPAY";
|
|
1685
1832
|
const spans = ranges?.map(([min, max, userMax]) => [min, userMax ?? max]) ?? [[minimum ?? limits?.min ?? 1, limits?.max ?? 1e6]];
|
|
@@ -1691,7 +1838,14 @@ function routingTable(quote, minimum, ranges, search) {
|
|
|
1691
1838
|
intervals: spans.map(([min, max]) => ({
|
|
1692
1839
|
min: Number(min).toFixed(2),
|
|
1693
1840
|
max: Number(max).toFixed(2),
|
|
1694
|
-
providers: [
|
|
1841
|
+
providers: [
|
|
1842
|
+
{
|
|
1843
|
+
provider,
|
|
1844
|
+
next: "READY",
|
|
1845
|
+
visibility: "COMPLETE",
|
|
1846
|
+
...currentLimit === void 0 ? {} : { currentLimit }
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1695
1849
|
}))
|
|
1696
1850
|
}))
|
|
1697
1851
|
};
|
|
@@ -1703,12 +1857,15 @@ function createPreviewFetch(scenario, passThrough) {
|
|
|
1703
1857
|
minimum,
|
|
1704
1858
|
noRoute: noRouteReason,
|
|
1705
1859
|
ranges,
|
|
1706
|
-
providers
|
|
1860
|
+
providers,
|
|
1861
|
+
currentLimit,
|
|
1862
|
+
settles
|
|
1707
1863
|
} = scenario.backend;
|
|
1864
|
+
let settlesFrom;
|
|
1708
1865
|
const answer = (path, method, amount, search, asked) => {
|
|
1709
1866
|
if (path.endsWith("/fiat/routing/table")) {
|
|
1710
1867
|
return json(
|
|
1711
|
-
providers === void 0 ? routingTable(quote, minimum, ranges, search) : providersTable(providers, search)
|
|
1868
|
+
providers === void 0 ? routingTable(quote, minimum, ranges, search, currentLimit) : providersTable(providers, search)
|
|
1712
1869
|
);
|
|
1713
1870
|
}
|
|
1714
1871
|
const isQuote = method === "POST" && (path.endsWith("/fiat/quote") || path.endsWith("/fiat/routing/quote"));
|
|
@@ -1735,6 +1892,13 @@ function createPreviewFetch(scenario, passThrough) {
|
|
|
1735
1892
|
current = quote;
|
|
1736
1893
|
return json(quote);
|
|
1737
1894
|
}
|
|
1895
|
+
if (settles !== void 0 && path.endsWith(settles.endpoint)) {
|
|
1896
|
+
settlesFrom ??= Date.now();
|
|
1897
|
+
if (Date.now() - settlesFrom >= settles.afterMs) {
|
|
1898
|
+
current = settles.step;
|
|
1899
|
+
return json(current);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1738
1902
|
const listed = Object.entries(scenario.backend.responses ?? {}).find(
|
|
1739
1903
|
([endpoint]) => path.endsWith(endpoint)
|
|
1740
1904
|
)?.[1];
|