@funkit/connect 9.23.2-next.0 → 9.24.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 +30 -1
- package/dist/clients/aave.d.ts +10 -1
- package/dist/clients/aave.js +4 -1
- package/dist/clients/{chunk-4HCOSF4M.js → chunk-7G3QEQFB.js} +2 -2
- package/dist/clients/{chunk-7FIVHWNC.js → chunk-7UIDHSYG.js} +47 -0
- package/dist/clients/{chunk-UUHGOBKZ.js → chunk-AHYOV7AV.js} +2 -1
- package/dist/clients/chunk-JN6WUYT2.js +1110 -0
- package/dist/clients/{chunk-S7FRYR55.js → chunk-ME4OAQIY.js} +1 -1
- package/dist/clients/{chunk-VVTNR7YH.js → chunk-MXPZTW2H.js} +212 -1126
- package/dist/clients/{chunk-KWIR3HO4.js → chunk-VJZW3MA3.js} +1 -1
- package/dist/clients/{chunk-MRBN4XCA.js → chunk-ZEXZQOAO.js} +1 -1
- package/dist/clients/fanatics.css +1 -1
- package/dist/clients/fanatics.js +4 -6
- package/dist/clients/lighter.css +2821 -1
- package/dist/clients/lighter.d.ts +19 -1
- package/dist/clients/lighter.js +51 -30
- package/dist/clients/mallard.d.ts +1 -1
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +217 -217
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +1 -1
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +7 -8
- package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +1 -1
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
- package/dist/clients/polymarket/index.css +217 -217
- package/dist/clients/polymarket/index.js +7 -8
- package/dist/clients/polymarket/polymarket.d.ts +2 -2
- package/dist/clients/polymarket/polymarket.js +2 -2
- package/dist/clients/polymarket/usePolymarketAccountBalances.js +2 -2
- package/dist/clients/rolly.d.ts +1 -1
- package/dist/clients/rolly.js +1 -1
- package/dist/components/ApprovalMethodToggle/ApprovalMethodToggle.d.ts +1 -1
- package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/TokenDropdown.d.ts +1 -1
- package/dist/components/FunAsset/FunAssetItem.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/AddTokenToWalletButton.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/PendingSuccessScreen.d.ts +2 -2
- package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +1 -1
- package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
- package/dist/components/FunTooltip/FunTooltip.d.ts +10 -5
- package/dist/components/FunTransactionSummary/DestinationHealthFactorRow.d.ts +15 -0
- package/dist/components/FunTransactionSummary/DestinationYieldRows.d.ts +2 -1
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +3 -3
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +2 -2
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +10 -3
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
- package/dist/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.d.ts +2 -2
- package/dist/components/NewTokenDepositAlert/NewTokenDepositAlert.d.ts +1 -1
- package/dist/components/ReceiveAmount/ReceiveAmount.d.ts +2 -2
- package/dist/components/SourcePaymentMethodItem/SourcePaymentMethodItem.d.ts +1 -1
- package/dist/components/TransactionStatus/AnimatedSpinner/AnimatedSpinner.d.ts +1 -1
- package/dist/components/TransactionStatus/StepSpinner.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +2 -2
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
- package/dist/consts/customers.d.ts +1 -1
- package/dist/domains/aave.d.ts +15 -10
- package/dist/domains/asset.d.ts +2 -2
- package/dist/domains/checkout.d.ts +1 -1
- package/dist/domains/checkoutErrors.d.ts +2 -2
- package/dist/domains/checkoutRecipient.d.ts +1 -1
- package/dist/domains/clientMetadata.d.ts +1 -1
- package/dist/domains/dynamicRouting.d.ts +1 -1
- package/dist/domains/fees.d.ts +3 -3
- package/dist/domains/paymentMethods.d.ts +1 -1
- package/dist/domains/quote.d.ts +5 -5
- package/dist/domains/quoteMode/exactOut.d.ts +1 -1
- package/dist/domains/quoteMode/resolveQuoteMode.d.ts +1 -1
- package/dist/domains/quoteMode/types.d.ts +2 -2
- package/dist/hooks/queries/useLightningQuote.d.ts +1 -1
- package/dist/hooks/queries/useMeldDefaultCurrency.d.ts +1 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -1
- package/dist/hooks/queries/useRecentDeposits.d.ts +1 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +31 -31
- package/dist/hooks/track/WithdrawModalEvent.d.ts +9 -1
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useBluvo.d.ts +3 -3
- package/dist/hooks/useCheckoutDirectExecution.d.ts +3 -3
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -1
- package/dist/hooks/useCheckoutItemDisplay.d.ts +2 -2
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
- package/dist/hooks/useCountdown.d.ts +1 -1
- package/dist/hooks/useEnabledTokenTransferChainTokens.d.ts +1 -1
- package/dist/hooks/useExchangeOptions.d.ts +1 -1
- package/dist/hooks/useFrogAccount.d.ts +1 -1
- package/dist/hooks/useIsBlacklisted.d.ts +1 -1
- package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +1 -1
- package/dist/hooks/useMinDeposit.d.ts +1 -1
- package/dist/hooks/useNewTokenBanner.d.ts +1 -1
- package/dist/hooks/useOnNewNotification.d.ts +1 -1
- package/dist/hooks/usePaymentMethodTabs.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +2 -2
- package/dist/hooks/useRelayBypass.d.ts +1 -1
- package/dist/hooks/useStepQueryReadiness.d.ts +3 -3
- package/dist/hooks/useTokenAndChainDropdown.d.ts +1 -1
- package/dist/hooks/useTokenTransfer.d.ts +1 -1
- package/dist/hooks/useTokenTransferConfig.d.ts +1 -1
- package/dist/hooks/useUserIpInfo.d.ts +1 -1
- package/dist/index.css +11 -11
- package/dist/index.js +4373 -3881
- package/dist/interfaces/identity.d.ts +1 -1
- package/dist/modals/ChainModal/Chain.d.ts +1 -1
- package/dist/modals/CheckoutModal/Brokerage/BrokerageSuccessModal.d.ts +1 -1
- package/dist/modals/CheckoutModal/Brokerage/BrokerageTwoFA.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/ConnectExchange.d.ts +2 -2
- package/dist/modals/CheckoutModal/Brokerage/SelectBrokerage.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/DisclaimerText.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/mapRetryAction.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +2 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useSourceAssetConfirm.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useAaveNativeSupply.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/useAvailableBalanceForCheckout.d.ts +3 -3
- package/dist/modals/CheckoutModal/InputAmount/useCheckoutAmountLimits.d.ts +2 -2
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoice.d.ts +1 -1
- package/dist/modals/CheckoutModal/LightningInvoice/LightningInvoiceQrCode.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldCurrencySelect/MeldCurrencySelect.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +1 -1
- package/dist/modals/CheckoutModal/SelectAsset/SelectAsset.d.ts +4 -4
- package/dist/modals/CheckoutModal/SelectAsset/SelectAssetInfoSection.d.ts +2 -2
- package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -2
- package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +1 -1
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeController.d.ts +2 -2
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.track.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/TransferToken.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/types.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/FiatAccountDetail.d.ts +1 -1
- package/dist/modals/CheckoutModal/VirtualFiatAccount/KycIframe.d.ts +2 -2
- package/dist/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount.d.ts +2 -2
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +2 -2
- package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +2 -2
- package/dist/modals/CheckoutModal/stepTransition.d.ts +5 -5
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +2 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
- package/dist/modals/WithdrawalModal/ErrorMessage.d.ts +2 -2
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +29 -8
- package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +11 -2
- package/dist/modals/WithdrawalModal/WithdrawalCallbackSuccess.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +9 -2
- package/dist/modals/WithdrawalModal/WithdrawalModal.d.ts +1 -1
- package/dist/modals/WithdrawalModal/WithdrawalSwappedIframeController.d.ts +11 -0
- package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +1 -1
- package/dist/modals/WithdrawalModal/types.d.ts +1 -0
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +3 -3
- package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
- package/dist/providers/FunkitCheckoutContext/types.d.ts +30 -0
- package/dist/providers/FunkitConfigContext.d.ts +3 -3
- package/dist/providers/FunkitHistoryContext.d.ts +2 -2
- package/dist/providers/FunkitProvider.d.ts +2 -2
- package/dist/providers/FunkitQuoteContext.track.d.ts +4 -4
- package/dist/providers/GeneralWalletProvider.d.ts +2 -2
- package/dist/providers/QuoteModeContext.d.ts +1 -1
- package/dist/providers/SwappedProvider.d.ts +1 -1
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/bluvo.d.ts +3 -3
- package/dist/utils/checkout.d.ts +3 -3
- package/dist/utils/customer.d.ts +6 -0
- package/dist/utils/depositCutoff.d.ts +1 -1
- package/dist/utils/funkitProvider.d.ts +1 -1
- package/dist/utils/payment.d.ts +1 -1
- package/dist/utils/polygonRpcCheck.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +1 -1
- package/dist/utils/swapped.d.ts +1 -1
- package/dist/utils/withdrawal.d.ts +1 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +59 -59
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -4
- package/dist/__generated__/default_configs.d.ts +0 -901
- package/dist/__generated__/default_feature_gates.d.ts +0 -20
- package/dist/clients/chunk-25ICASD7.js +0 -2371
- package/dist/clients/chunk-3GO74QTP.js +0 -2382
- package/dist/clients/chunk-7GWX2ZS4.js +0 -69
- package/dist/clients/chunk-7HNGV6JU.js +0 -54
- package/dist/clients/chunk-CEBG7XQ5.js +0 -2382
- package/dist/clients/chunk-ELLXM7RO.js +0 -186
- package/dist/clients/chunk-GGXTLJ7J.js +0 -290
- package/dist/clients/chunk-HRWCNZJA.js +0 -230
- package/dist/clients/chunk-JD3FIVZ7.js +0 -69
- package/dist/clients/chunk-JTGKAPID.js +0 -2382
- package/dist/clients/chunk-L7PABCF2.js +0 -54
- package/dist/clients/chunk-LII3SVUH.js +0 -230
- package/dist/clients/chunk-NCUPPJ2Z.js +0 -2382
- package/dist/clients/chunk-NUJ6ZM5F.js +0 -186
- package/dist/clients/chunk-UVWNEQMD.js +0 -186
- package/dist/clients/chunk-ZNVFASTH.js +0 -54
- package/dist/clients/nado.d.ts +0 -78
- package/dist/clients/nado.js +0 -107
- package/dist/clients/polymarket.d.ts +0 -161
- package/dist/clients/polymarket.js +0 -688
- package/dist/interfaces/logTransport.d.ts +0 -51
- package/dist/interfaces/swapped-transport.d.ts +0 -78
- package/dist/modals/CheckoutModal/SourceChange/EmptyFormOfPaymentsMessage.d.ts +0 -4
- package/dist/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.d.ts +0 -4
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedErrorMessage.d.ts +0 -6
- package/dist/utils/flags/resolver.d.ts +0 -34
- package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +0 -70
- package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +0 -96
- package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +0 -218
- package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +0 -99
- package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +0 -98
- package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +0 -93
- package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +0 -66
- package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +0 -95
- package/dist/wallets/walletConnectors/chunk-RVOY537T.js +0 -100
- package/dist/wallets/walletConnectors/chunk-STVVP43G.js +0 -94
- package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +0 -92
- package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +0 -110
- package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +0 -103
- package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +0 -96
- package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +0 -106
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PaymentMethodBrokerageInfo } from '
|
|
2
|
+
import type { PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
3
3
|
import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepComponentProps, ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export declare const BROKERAGE_SUCCESS_MODAL_CONTENT_ID = "brokerage-success-modal-content";
|
|
5
5
|
export type BrokerageSuccessState = CheckoutModalCommonState & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import type { BluvoExchangeInfo } from '
|
|
4
|
-
import type { PaymentMethodBrokerageInfo } from '
|
|
3
|
+
import type { BluvoExchangeInfo } from '../../../consts/bluvo';
|
|
4
|
+
import type { PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
5
5
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
6
|
export type BrokerageTwoFAState = CheckoutModalCommonState & {
|
|
7
7
|
paymentMethodInfo: PaymentMethodBrokerageInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type BluvoExchangeType } from '
|
|
3
|
-
import { type PaymentMethodBrokerageInfo } from '
|
|
2
|
+
import { type BluvoExchangeType } from '../../../consts/bluvo';
|
|
3
|
+
import { type PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
5
|
export type ConnectExchangeState = CheckoutModalCommonState & {
|
|
6
6
|
brokerType: BluvoExchangeType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type BluvoExchangeType } from '
|
|
3
|
-
import { type PaymentMethodBrokerageInfo } from '
|
|
2
|
+
import { type BluvoExchangeType } from '../../../consts/bluvo';
|
|
3
|
+
import { type PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
5
|
export type SelectBrokerageState = CheckoutModalCommonState;
|
|
6
6
|
export type SelectBrokerageNext = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { QuoteDisplayAmounts } from '
|
|
3
|
-
import type { FunkitCheckoutConfig } from '
|
|
2
|
+
import type { QuoteDisplayAmounts } from '../../../domains/quoteMode';
|
|
3
|
+
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
4
4
|
interface CheckoutPrimaryInfoProps {
|
|
5
5
|
showLeftAlignedDollarValueWithLabel: boolean;
|
|
6
6
|
showTokenAmount: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import { type PaymentMethodInfo } from '
|
|
3
|
+
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
5
|
export type ConfirmationStepState = CheckoutModalCommonState & {
|
|
6
6
|
paymentMethodInfo: PaymentMethodInfo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
2
|
+
import type { FunkitActiveCheckoutItem } from '../../../providers/FunkitCheckoutContext';
|
|
3
3
|
interface DisclaimerTextProps {
|
|
4
4
|
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
5
5
|
continueText: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
import { type CheckoutConfirmationError } from '
|
|
2
|
+
import { type CheckoutConfirmationError } from '../../../domains/checkoutErrors';
|
|
3
3
|
interface UseCheckoutConfirmationOptions {
|
|
4
4
|
onError(error: CheckoutConfirmationError): void;
|
|
5
5
|
onSuccess(depositAddress: Address): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { QuoteBuilder } from '
|
|
3
|
-
import type { CheckoutQuoteError } from '
|
|
2
|
+
import type { QuoteBuilder } from '../../../domains/quoteMode/types';
|
|
3
|
+
import type { CheckoutQuoteError } from '../../../providers/FunkitQuoteContext';
|
|
4
4
|
interface TriggerNewQuoteOptions {
|
|
5
5
|
maxRetries: number;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
import type { ErrorNotification } from '
|
|
3
|
-
import { type PaymentMethodInfo } from '
|
|
2
|
+
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
3
|
+
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
export interface PostCheckoutError extends ErrorNotification {
|
|
5
5
|
disableContinue: boolean;
|
|
6
6
|
durationMs?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ErrorNotification } from '
|
|
1
|
+
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
2
2
|
interface UseQuoteRefreshOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Freeze the latest quote state, e.g. so we do not change the quote mid-confirmation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
2
|
-
import { type CheckoutQuoteResult } from '
|
|
1
|
+
import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
|
|
2
|
+
import { type CheckoutQuoteResult } from '../../../providers/FunkitQuoteContext';
|
|
3
3
|
export interface SourceAssetConfirmed {
|
|
4
4
|
isQuoteSuccess: boolean;
|
|
5
5
|
maxTargetAssetAmount: number | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { Hex } from 'viem';
|
|
4
|
-
import { type PaymentMethodInfo } from '
|
|
4
|
+
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
5
5
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
6
|
export type InputAmountState = CheckoutModalCommonState & {
|
|
7
7
|
paymentMethodInfo: PaymentMethodInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type FunkitTextCustomizationsConfig } from '
|
|
3
|
-
import type { AssetHoldingsItem } from '
|
|
2
|
+
import { type FunkitTextCustomizationsConfig } from '../../../providers/FunkitConfigContext';
|
|
3
|
+
import type { AssetHoldingsItem } from '../../../utils/assets';
|
|
4
4
|
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
5
5
|
import { FunCheckoutStep, type ModalStepComponentProps } from '../stepTransition';
|
|
6
6
|
interface InputAmountLoadedProps extends ModalStepComponentProps<FunCheckoutStep.INPUT_AMOUNT> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Dnum } from 'dnum';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import { type PaymentMethodInfo } from '
|
|
4
|
-
import type { QuoteBuilder } from '
|
|
5
|
-
import type { AssetHoldingsItem } from '
|
|
3
|
+
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
4
|
+
import type { QuoteBuilder } from '../../../domains/quoteMode/types';
|
|
5
|
+
import type { AssetHoldingsItem } from '../../../utils/assets';
|
|
6
6
|
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
7
7
|
export interface AmountInputInitOptions {
|
|
8
8
|
checkoutConfig: FunkitCheckoutConfig;
|
|
@@ -7,9 +7,9 @@ import { type ERC712Signature, type SupplyRequest } from '@aave/client';
|
|
|
7
7
|
import type { ApiFunkitCheckoutConfig } from '@funkit/utils';
|
|
8
8
|
import type { Dnum } from 'dnum';
|
|
9
9
|
import { type Address, type Hex, type WalletClient } from 'viem';
|
|
10
|
-
import { type CheckoutConfirmationError } from '
|
|
11
|
-
import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '
|
|
12
|
-
import { type Config } from '
|
|
10
|
+
import { type CheckoutConfirmationError } from '../../../domains/checkoutErrors';
|
|
11
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
12
|
+
import { type Config } from '../../../wagmi/hooks';
|
|
13
13
|
/**
|
|
14
14
|
* Stringify an amount for Aave's `bigDecimal()`. Prefers the precise
|
|
15
15
|
* base-unit Dnum (carries the token's real decimals) so we don't ship
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dnum } from 'dnum';
|
|
2
2
|
import { type RefObject } from 'react';
|
|
3
|
-
import type { FunInputChangeEvent } from '
|
|
3
|
+
import type { FunInputChangeEvent } from '../../../components/FunInput/FunInput';
|
|
4
4
|
import { type AmountInputDerivedState, type AmountInputInitOptions } from './state';
|
|
5
5
|
import { type InputAmountSuggestion } from './utils';
|
|
6
6
|
export interface UseAmountInputResult extends AmountInputDerivedState {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssetHoldingsItem } from '
|
|
2
|
-
import { type PaymentMethodInfo } from '
|
|
3
|
-
import type { QueryResult } from '
|
|
1
|
+
import type { AssetHoldingsItem } from '../../../utils/assets';
|
|
2
|
+
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
|
+
import type { QueryResult } from '../../../types/utils';
|
|
4
4
|
export declare function useAvailableBalanceForCheckout(paymentMethodInfo: PaymentMethodInfo, targetChainId: string, assetChainId: string, assetSymbol: string | null): QueryResult<AssetHoldingsItem>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PaymentMethod } from '
|
|
2
|
-
import type { FunkitCheckoutConfig } from '
|
|
1
|
+
import { PaymentMethod } from '../../../domains/paymentMethods';
|
|
2
|
+
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
3
3
|
export interface CheckoutAmountLimitsUsd {
|
|
4
4
|
minUsd: number | undefined;
|
|
5
5
|
maxUsd: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MeldQuote } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { ErrorNotification } from '
|
|
3
|
+
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
4
4
|
import { FunCheckoutStep, type NextPayload } from '../stepTransition';
|
|
5
5
|
export declare function useMeldUI({ meldEnabled, manuallySelectedQuote, fiatAmount, fiatCurrency, onNext, }: {
|
|
6
6
|
meldEnabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ErrorNotification } from '
|
|
2
|
-
import type { useFunkitTranslation } from '
|
|
1
|
+
import type { ErrorNotification } from '../../../components/FunNotification/FunNotification';
|
|
2
|
+
import type { useFunkitTranslation } from '../../../hooks/useFunkitTranslation';
|
|
3
3
|
import type { AmountInputError } from './state';
|
|
4
4
|
type TFunction = ReturnType<typeof useFunkitTranslation>['t'];
|
|
5
5
|
export declare const ASSET_DECIMALS = 5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PaymentMethodBitcoinLightningInfo } from '
|
|
2
|
+
import type { PaymentMethodBitcoinLightningInfo } from '../../../domains/paymentMethods';
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type LightningInvoiceState = CheckoutModalCommonState & {
|
|
5
5
|
paymentMethodInfo: PaymentMethodBitcoinLightningInfo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PaymentMethodCardInfo } from '
|
|
2
|
+
import type { PaymentMethodCardInfo } from '../../../domains/paymentMethods';
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type MeldCurrencySelectState = CheckoutModalCommonState & {
|
|
5
5
|
defaultCurrency: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { PaymentMethodCardInfo } from '
|
|
3
|
+
import type { PaymentMethodCardInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
5
|
export type MeldQuotesState = CheckoutModalCommonState & {
|
|
6
6
|
paymentMethodInfo: PaymentMethodCardInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MeldQuote } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { PaymentMethodCardInfo } from '
|
|
3
|
+
import type { PaymentMethodCardInfo } from '../../../domains/paymentMethods';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
5
|
export type MeldRedirectState = CheckoutModalCommonState & {
|
|
6
6
|
paymentMethodInfo: PaymentMethodCardInfo;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { IndexedDynamicRoutingConfig } from '@funkit/fun-relay';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '
|
|
4
|
-
import type { AssetHoldingsItem } from '
|
|
5
|
-
import type { TransferTokenDefault } from '
|
|
6
|
-
import { type DynamicTargetAssetCandidate } from '
|
|
3
|
+
import { type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo } from '../../../domains/paymentMethods';
|
|
4
|
+
import type { AssetHoldingsItem } from '../../../domains/wallet';
|
|
5
|
+
import type { TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
|
|
6
|
+
import { type DynamicTargetAssetCandidate } from '../../../providers/FunkitCheckoutContext';
|
|
7
7
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
8
8
|
export type SelectAssetState = CheckoutModalCommonState & {
|
|
9
9
|
paymentMethodInfo: PaymentMethodBrokerageInfo | PaymentMethodAccountInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type { PaymentMethodInfo } from '
|
|
3
|
-
import type { TransferTokenDefault } from '
|
|
2
|
+
import type { PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
|
+
import type { TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
|
|
4
4
|
interface SelectAssetInfoSectionProps {
|
|
5
5
|
totalBalance: number;
|
|
6
6
|
paymentMethodInfo: PaymentMethodInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type PaymentMethodInfo } from '
|
|
3
|
-
import type { AssetHoldingsItem } from '
|
|
2
|
+
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
|
+
import type { AssetHoldingsItem } from '../../../domains/wallet';
|
|
4
4
|
interface AssetOption {
|
|
5
5
|
asset: AssetHoldingsItem;
|
|
6
6
|
badgeText: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ConnectablePaymentMethodInfo } from '
|
|
2
|
+
import { type ConnectablePaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
3
|
interface ConnectedSourceProps {
|
|
4
4
|
targetChainId: string;
|
|
5
5
|
paymentInfo: ConnectablePaymentMethodInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type BoxProps } from '
|
|
3
|
-
import type { PaymentMethodType } from '
|
|
2
|
+
import { type BoxProps } from '../../../components/Box/Box';
|
|
3
|
+
import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
4
4
|
interface CryptoCashToggleProps {
|
|
5
5
|
activeTab: PaymentMethodType;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodBitcoinLightningInfo, type PaymentMethodCardInfo, type PaymentMethodVirtualBankIncompleteInfo } from '
|
|
4
|
-
import { type PaymentMethodType } from '
|
|
3
|
+
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodBitcoinLightningInfo, type PaymentMethodCardInfo, type PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
|
|
4
|
+
import { type PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
5
5
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
6
6
|
export type SourceChangeState = CheckoutModalCommonState & {
|
|
7
7
|
paymentMethodInfo: ConnectablePaymentMethodInfo | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { PaymentMethodType } from '
|
|
4
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '
|
|
3
|
+
import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
|
|
4
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
5
5
|
export type SwappedIframeState = CheckoutModalCommonState & {
|
|
6
6
|
/** The selected payment option from the fops API */
|
|
7
7
|
selectedPaymentOption: SwappedFormOfPayment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
3
3
|
import type { Address } from 'viem';
|
|
4
|
-
import { type CheckoutStatus } from '
|
|
4
|
+
import { type CheckoutStatus } from '../../../domains/checkout';
|
|
5
5
|
export type NotificationStatus = CheckoutStatus | 'delayed';
|
|
6
6
|
interface CheckoutNotificationProps {
|
|
7
7
|
checkout: CheckoutHistoryItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TrackEventData } from '
|
|
1
|
+
import type { TrackEventData } from '../../../hooks/track/useTrack';
|
|
2
2
|
import type { NotificationItem } from './types';
|
|
3
3
|
export declare function getNotificationId(item: NotificationItem): string;
|
|
4
4
|
export declare function buildNotificationMetadata(item: NotificationItem, extras: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { Address } from 'viem';
|
|
4
|
-
import type { MergedMultiStepDirectExecution } from '
|
|
4
|
+
import type { MergedMultiStepDirectExecution } from '../../../domains/checkoutNotifications';
|
|
5
5
|
interface DirectExecutionNotificationProps {
|
|
6
6
|
directExecution: MergedMultiStepDirectExecution;
|
|
7
7
|
onClose: (id: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type TransferTokenDefault } from '
|
|
2
|
+
import { type TransferTokenDefault } from '../../../hooks/useTokenAndChainDropdown';
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type TransferTokenState = CheckoutModalCommonState & {
|
|
5
5
|
transferToken?: TransferTokenDefault;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CheckoutHistoryItem } from '@funkit/api-base';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import type { MergedMultiStepDirectExecution, NotificationVariant } from '
|
|
3
|
+
import type { MergedMultiStepDirectExecution, NotificationVariant } from '../../../domains/checkoutNotifications';
|
|
4
4
|
export type { NotificationVariant };
|
|
5
5
|
export type NotificationItem = (MergedMultiStepDirectExecution & {
|
|
6
6
|
isDirectExecution: true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PaymentMethodVirtualBankIncompleteInfo } from '
|
|
2
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '
|
|
1
|
+
import type { PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
|
|
2
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
3
|
export type BridgeCustomerNext = {
|
|
4
4
|
hasError?: false;
|
|
5
5
|
kycLink: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BridgeCustomer, type BridgeVirtualBankAccount, type Guid } from '@funkit/api-base';
|
|
2
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '
|
|
2
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
3
|
export declare enum NextStep {
|
|
4
4
|
ShowSource = "ShowSource",
|
|
5
5
|
ShowKyc = "ShowKyc",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepInfo } from '
|
|
2
|
+
import type { CheckoutModalCommonState, FunCheckoutStep, ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
3
|
export type ErrorScreenState = CheckoutModalCommonState & {
|
|
4
4
|
errorCode: string;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type PaymentMethodVirtualBankInfo } from '
|
|
2
|
+
import { type PaymentMethodVirtualBankInfo } from '../../../domains/paymentMethods';
|
|
3
3
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
4
4
|
export type FiatAccountDetailState = CheckoutModalCommonState & {
|
|
5
5
|
paymentMethodInfo: PaymentMethodVirtualBankInfo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type KycLinkLoad } from '
|
|
2
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '
|
|
1
|
+
import { type KycLinkLoad } from '../../../hooks/useFrogAccount';
|
|
2
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
3
3
|
export type KycIframeState = CheckoutModalCommonState & KycLinkLoad;
|
|
4
4
|
export type KycIframeNext = Record<string, never>;
|
|
5
5
|
export declare const KycIframeInfo: ModalStepInfo<FunCheckoutStep.KYC_IFRAME>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PaymentMethodVirtualBankIncompleteInfo } from '
|
|
3
|
-
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '
|
|
2
|
+
import type { PaymentMethodVirtualBankIncompleteInfo } from '../../../domains/paymentMethods';
|
|
3
|
+
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
|
|
4
4
|
export type VirtualFiatAccountNext = Record<string, never>;
|
|
5
5
|
export type VirtualFiatAccountState = CheckoutModalCommonState & {
|
|
6
6
|
paymentMethodInfo: PaymentMethodVirtualBankIncompleteInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hex } from 'viem';
|
|
2
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
3
|
-
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '
|
|
2
|
+
import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
|
|
3
|
+
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
5
|
export type WithdrawalCompleteState = CheckoutModalCommonState & {
|
|
6
6
|
withdrawalConfig: WalletWithdrawalConfig | CustomWithdrawalConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hex } from 'viem';
|
|
2
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
3
|
-
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '
|
|
2
|
+
import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
|
|
3
|
+
import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
5
|
export type WithdrawalEnterAmountState = CheckoutModalCommonState & {
|
|
6
6
|
withdrawalConfig: WalletWithdrawalConfig | CustomWithdrawalConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ComponentType, type SetStateAction } from 'react';
|
|
2
|
-
import { type BridgeCustomerNext, type BridgeCustomerState } from '
|
|
3
|
-
import { type BridgeKycNext, type BridgeKycState } from '
|
|
4
|
-
import { type ErrorScreenState } from '
|
|
5
|
-
import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '
|
|
2
|
+
import { type BridgeCustomerNext, type BridgeCustomerState } from '../../modals/CheckoutModal/VirtualFiatAccount/BridgeCustomer';
|
|
3
|
+
import { type BridgeKycNext, type BridgeKycState } from '../../modals/CheckoutModal/VirtualFiatAccount/BridgeKyc';
|
|
4
|
+
import { type ErrorScreenState } from '../../modals/CheckoutModal/VirtualFiatAccount/ErrorScreen';
|
|
5
|
+
import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '../../modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount';
|
|
6
6
|
import { type DynamicTargetAssetCandidate, FunCheckoutStartingStep, type FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
7
7
|
import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfigContext';
|
|
8
8
|
import { type PerpsTransferNext, type PerpsTransferState } from '../PolymarketPerpsTransfer/PerpsTransferStep';
|
|
@@ -170,7 +170,7 @@ export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
170
170
|
popCurrentStep?: boolean;
|
|
171
171
|
};
|
|
172
172
|
export declare function useCheckoutModalTransition(checkoutItem: FunkitActiveCheckoutItem, onClose: () => void): {
|
|
173
|
-
animation: import("
|
|
173
|
+
animation: import("../../hooks/useAnimatedNavigation").AnimationState;
|
|
174
174
|
modalState: CheckoutModalState<FunCheckoutStep>;
|
|
175
175
|
onBack: () => void;
|
|
176
176
|
onCloseWrapper: (options?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckoutModalEvent } from '
|
|
2
|
-
import type { TrackEventData } from '
|
|
1
|
+
import { CheckoutModalEvent } from '../../hooks/track/CheckoutModalEvent';
|
|
2
|
+
import type { TrackEventData } from '../../hooks/track/useTrack';
|
|
3
3
|
import { FunCheckoutStep } from './FunCheckoutStep';
|
|
4
4
|
import type { CheckoutModalState } from './stepTransition';
|
|
5
5
|
export declare const CHECKOUT_STEP_TO_READY_EVENT: Partial<Record<FunCheckoutStep, CheckoutModalEvent>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Hex } from 'viem';
|
|
3
|
-
import type { MergedCheckoutHistoryItem } from '
|
|
4
|
-
import { HistoryContentPages } from '
|
|
3
|
+
import type { MergedCheckoutHistoryItem } from '../../../../utils/checkout';
|
|
4
|
+
import { HistoryContentPages } from '../../../../utils/checkoutHistory';
|
|
5
5
|
export declare const HomeCheckoutDisplayRow: ({ checkoutHistoryItem, onSelect, }: {
|
|
6
6
|
checkoutHistoryItem: MergedCheckoutHistoryItem;
|
|
7
7
|
onSelect: (checkoutId: Hex, initialPage: HistoryContentPages) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { KnownAssetBalanceInfo } from '
|
|
2
|
+
import type { KnownAssetBalanceInfo } from '../../../../providers/GeneralWalletProvider';
|
|
3
3
|
export declare const HomeTokenBalanceDisplayRow: ({ asset, }: {
|
|
4
4
|
asset: KnownAssetBalanceInfo;
|
|
5
5
|
}) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FunkitUserInfo } from '
|
|
3
|
-
import type { Config, UseAccountReturnType } from '
|
|
2
|
+
import type { FunkitUserInfo } from '../../../../consts/funkit';
|
|
3
|
+
import type { Config, UseAccountReturnType } from '../../../../wagmi/hooks';
|
|
4
4
|
import { FunProfileView } from '../../ProfileDetails';
|
|
5
5
|
export declare const ProfileTitleSection: ({ animateOut, account, userInfo, onChangeView, onLogout, onClose, }: {
|
|
6
6
|
animateOut?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type AnimationState } from '
|
|
2
|
+
import { type AnimationState } from '../../../../hooks/useAnimatedNavigation';
|
|
3
3
|
import { type BaseActivitySelection } from '../../ActivityTraversalContext';
|
|
4
4
|
import type { FunProfileView } from '../../ProfileDetails';
|
|
5
5
|
export declare enum SelectedHomeTab {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
|
-
import type { ErrorNotification } from '
|
|
3
|
-
import type { CheckoutConfirmationError } from '
|
|
2
|
+
import type { ErrorNotification } from '../../components/FunNotification/FunNotification';
|
|
3
|
+
import type { CheckoutConfirmationError } from '../../domains/checkoutErrors';
|
|
4
4
|
export declare function getErrorNotification({ quoteErrorObject, withdrawalError, targetAssetFetchError, riskCheckError, t, }: {
|
|
5
5
|
quoteErrorObject: Error | null;
|
|
6
6
|
withdrawalError: CheckoutConfirmationError | null;
|