@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,17 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-7FIVHWNC.js";
|
|
4
|
+
} from "../chunk-JN6WUYT2.js";
|
|
5
|
+
import "../chunk-ZEXZQOAO.js";
|
|
6
|
+
import "../chunk-MXPZTW2H.js";
|
|
7
|
+
import "../chunk-7UIDHSYG.js";
|
|
9
8
|
import {
|
|
10
9
|
POLYMARKET_PERPS_ROUTING_ID,
|
|
11
10
|
POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
12
11
|
createPolymarketDepositConfig,
|
|
13
12
|
createPredictionsGenerateActionParams
|
|
14
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-VJZW3MA3.js";
|
|
15
14
|
import {
|
|
16
15
|
AMOUNT_PLACEHOLDER,
|
|
17
16
|
COLLATERAL_ONRAMP_ABI,
|
|
@@ -22,8 +21,8 @@ import {
|
|
|
22
21
|
VAULT_DEPOSITOR_POLYGON,
|
|
23
22
|
createPerpsGenerateActionParams,
|
|
24
23
|
createPolymarketWithdrawalConfig
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-ME4OAQIY.js";
|
|
25
|
+
import "../chunk-AHYOV7AV.js";
|
|
27
26
|
export {
|
|
28
27
|
AMOUNT_PLACEHOLDER,
|
|
29
28
|
COLLATERAL_ONRAMP_ABI,
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
* {@link WalletWithdrawalConfig}.
|
|
17
17
|
*/
|
|
18
18
|
import { type Address, type PublicClient, type TransactionReceipt } from 'viem';
|
|
19
|
-
import type { CustomWithdrawalConfig, FunkitCheckoutActionParams, FunkitWithdrawalConfig, WalletWithdrawalConfig } from '
|
|
20
|
-
import type { WithdrawalTransaction } from '
|
|
19
|
+
import type { CustomWithdrawalConfig, FunkitCheckoutActionParams, FunkitWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext/types';
|
|
20
|
+
import type { WithdrawalTransaction } from '../../wallets/Wallet';
|
|
21
21
|
/** Polygon USDCe — used as sourceTokenAddress for withdrawals */
|
|
22
22
|
export declare const POLYGON_USDCE: Address;
|
|
23
23
|
/** Polymarket pUSD on Polygon — the integrator-held source token in the wallet-unwrap flow. */
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
VAULT_DEPOSITOR_POLYGON,
|
|
10
10
|
createPerpsGenerateActionParams,
|
|
11
11
|
createPolymarketWithdrawalConfig
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-ME4OAQIY.js";
|
|
13
|
+
import "../chunk-AHYOV7AV.js";
|
|
14
14
|
export {
|
|
15
15
|
AMOUNT_PLACEHOLDER,
|
|
16
16
|
COLLATERAL_ONRAMP_ABI,
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
applyOptimisticTransferBalances,
|
|
4
4
|
polymarketAccountBalanceQueryKey,
|
|
5
5
|
usePolymarketAccountBalances
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-ZEXZQOAO.js";
|
|
7
|
+
import "../chunk-AHYOV7AV.js";
|
|
8
8
|
export {
|
|
9
9
|
applyOptimisticTransferBalances,
|
|
10
10
|
polymarketAccountBalanceQueryKey,
|
package/dist/clients/rolly.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* known at quote time.
|
|
13
13
|
*/
|
|
14
14
|
import { type Address } from 'viem';
|
|
15
|
-
import type { FunkitCheckoutActionParams } from '
|
|
15
|
+
import type { FunkitCheckoutActionParams } from '../providers/FunkitCheckoutContext/types';
|
|
16
16
|
/** Rolly rollup deposit contract on Arbitrum (UUPS proxy). */
|
|
17
17
|
export declare const ROLLY_VAULT_ADDRESS: `0x${string}`;
|
|
18
18
|
/** Arbitrum USDT0 — Rolly's source deposit token. */
|
package/dist/clients/rolly.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
maxUint256
|
|
10
10
|
} from "viem";
|
|
11
11
|
var ROLLY_VAULT_ADDRESS = getAddress(
|
|
12
|
-
"
|
|
12
|
+
"0x57d05CfC7bCAc9E7Ebf4D35a2b1725a83ADA771C"
|
|
13
13
|
);
|
|
14
14
|
var ARBITRUM_USDT0 = getAddress(
|
|
15
15
|
"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ApprovalMethod } from '
|
|
2
|
+
import type { ApprovalMethod } from '../../providers/FunkitQuoteContext';
|
|
3
3
|
interface ApprovalMethodToggleProps {
|
|
4
4
|
value: ApprovalMethod;
|
|
5
5
|
onChange: (next: ApprovalMethod) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TokenTransferSourceChainsAndAssets } from '
|
|
2
|
+
import type { TokenTransferSourceChainsAndAssets } from '../../modals/CheckoutModal/TransferToken/TransferToken';
|
|
3
3
|
import type { BaseActiveDropdownItemProps } from './BaseActiveDropdownItem';
|
|
4
4
|
import { type BaseDropdownProps } from './BaseDropdown';
|
|
5
5
|
interface ChainDropdownProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { TokenTransferSourceChainsAndAssets } from '
|
|
2
|
+
import type { TokenTransferSourceChainsAndAssets } from '../../modals/CheckoutModal/TransferToken/TransferToken';
|
|
3
3
|
import type { BaseDropdownProps } from './BaseDropdown';
|
|
4
4
|
interface TokenAndChainDropdownProps {
|
|
5
5
|
isLoading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TokenTransferSourceChainsAndAssets } from '
|
|
2
|
+
import type { TokenTransferSourceChainsAndAssets } from '../../modals/CheckoutModal/TransferToken/TransferToken';
|
|
3
3
|
import { type BaseDropdownProps } from './BaseDropdown';
|
|
4
4
|
interface TokenDropdownProps {
|
|
5
5
|
selectedChainId: number | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { AddToWalletToken } from '
|
|
2
|
+
import type { AddToWalletToken } from '../../providers/FunkitCheckoutContext';
|
|
3
3
|
export type AddTokenToWalletBannerStatus = 'idle' | 'pending' | 'success' | 'error';
|
|
4
4
|
interface AddTokenToWalletBannerProps {
|
|
5
5
|
status: AddTokenToWalletBannerStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type { FunButtonProps } from '
|
|
2
|
+
import type { FunButtonProps } from '../../components/FunButton/FunButton';
|
|
3
3
|
interface FunDirectExecutionHistoryBottomBarProps {
|
|
4
4
|
isProcessing: boolean;
|
|
5
5
|
isLoaded: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DirectExecution } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { MergedMultiStepDirectExecution } from '
|
|
3
|
+
import type { MergedMultiStepDirectExecution } from '../../domains/checkoutNotifications';
|
|
4
4
|
import type { TextConfigStatus, TextConfigSteps } from '../TransactionStatus/TransactionStatus';
|
|
5
5
|
import type { FunDirectExecutionStatusProps } from './FunDirectExecutionStatus';
|
|
6
6
|
export declare function FunDirectExecutionHistoryDetail({ bottomBarId, directExecution, isActiveCheckout, onClose, onAnimationComplete, showCheckoutStatus, customTextConfigStatus, customTextConfigSteps, dangerousCustomDelayedAutoTriggerCutoff, disableAutoUpdate, hideYouReceive, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TextConfigSteps } from '
|
|
3
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
2
|
+
import type { TextConfigSteps } from '../../components/TransactionStatus/TransactionStatus';
|
|
3
|
+
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
4
|
export interface PendingSuccessScreenProps {
|
|
5
5
|
bottomBarId: string;
|
|
6
6
|
onClose: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { HistoricalCheckoutItem } from '
|
|
2
|
+
import type { HistoricalCheckoutItem } from '../../domains/clientMetadata';
|
|
3
3
|
export declare function YouSendItem({ clientMetadata, isLoaded, }: {
|
|
4
4
|
clientMetadata: HistoricalCheckoutItem | undefined;
|
|
5
5
|
isLoaded: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { NotificationStatus } from '
|
|
2
|
+
import type { NotificationStatus } from '../../modals/CheckoutModal/TransferToken/CheckoutNotification';
|
|
3
3
|
export interface FunNotificationBannerIconProps {
|
|
4
4
|
iconUrl?: string | null;
|
|
5
5
|
fallbackIconUrl?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
|
-
import { type FunkitPaymentMethodIconsConfig } from '
|
|
3
|
+
import { type FunkitPaymentMethodIconsConfig } from '../../providers/FunkitConfigContext';
|
|
4
4
|
import { PaymentMethod, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
5
5
|
import type { AssetHoldingsItem } from '../../domains/wallet';
|
|
6
6
|
/**
|
|
@@ -12,12 +12,17 @@ export interface FunTooltipProps {
|
|
|
12
12
|
*/
|
|
13
13
|
enableDynamicPositioning?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* Tooltip
|
|
16
|
-
* - 'center':
|
|
17
|
-
* - 'left':
|
|
18
|
-
* - 'right':
|
|
15
|
+
* Tooltip alignment relative to the trigger along `side`:
|
|
16
|
+
* - 'center': centered (default)
|
|
17
|
+
* - 'left': aligned to the trigger's left edge
|
|
18
|
+
* - 'right': aligned to the trigger's right edge
|
|
19
19
|
*/
|
|
20
20
|
tooltipPosition?: 'center' | 'left' | 'right';
|
|
21
|
+
/**
|
|
22
|
+
* Which side of the trigger the tooltip opens on. Defaults to 'top'.
|
|
23
|
+
* Radix still flips to the opposite side on collision.
|
|
24
|
+
*/
|
|
25
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
21
26
|
/**
|
|
22
27
|
* Offset from trigger element in pixels. Defaults to 6px.
|
|
23
28
|
*/
|
|
@@ -30,4 +35,4 @@ export interface FunTooltipProps {
|
|
|
30
35
|
width?: BoxProps['width'];
|
|
31
36
|
}
|
|
32
37
|
export declare const TooltipAnchorRefContext: React.Context<React.RefObject<HTMLElement | null> | null>;
|
|
33
|
-
export declare const FunTooltip: ({ content, children, tooltipPosition, sideOffset, maxWidth, startDelay, width, }: FunTooltipProps) => React.JSX.Element;
|
|
38
|
+
export declare const FunTooltip: ({ content, children, tooltipPosition, side, sideOffset, maxWidth, startDelay, width, }: FunTooltipProps) => React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface HealthFactorInfo {
|
|
3
|
+
/** Current health factor (decimal string), or `null` when unavailable. */
|
|
4
|
+
before: string | null;
|
|
5
|
+
/** Projected health factor after the supply (decimal string), or `null`. */
|
|
6
|
+
after: string | null;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Health factor (`before → after`) for an Aave supply — the preview the native
|
|
11
|
+
* fast-path lost by skipping confirmation.
|
|
12
|
+
*/
|
|
13
|
+
export declare function DestinationHealthFactorRow({ healthFactorInfo, }: {
|
|
14
|
+
healthFactorInfo?: HealthFactorInfo;
|
|
15
|
+
}): React.JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FunkitCheckoutConfig } from '
|
|
2
|
+
import type { FunkitCheckoutConfig } from '../../providers/FunkitCheckoutContext/types';
|
|
3
|
+
export declare const YIELD_GREEN = "#478f00";
|
|
3
4
|
/**
|
|
4
5
|
* Renders integrator-provided destination yield metadata (Supply APY /
|
|
5
6
|
* Collateralization) as rows. Driven by the customer-agnostic
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DirectExecutionType } from '@funkit/api-base';
|
|
3
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
4
|
-
import type { QuoteDisplayAmounts } from '
|
|
5
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
3
|
+
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
|
+
import type { QuoteDisplayAmounts } from '../../domains/quoteMode';
|
|
5
|
+
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
6
6
|
interface PaymentAmountSummaryProps {
|
|
7
7
|
isLoading: boolean;
|
|
8
8
|
targetChainId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { CheckoutFees } from '
|
|
3
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
2
|
+
import type { CheckoutFees } from '../../domains/fees';
|
|
3
|
+
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
4
|
import { type FunTooltipProps } from '../FunTooltip/FunTooltip';
|
|
5
5
|
export declare const NO_DATA_VALUE = "-";
|
|
6
6
|
interface PaymentFeesSummaryProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TrackEventData } from '
|
|
2
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
1
|
+
import type { TrackEventData } from '../../hooks/track/useTrack';
|
|
2
|
+
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
3
3
|
import type { FeeItem } from './PaymentFeesSummary';
|
|
4
4
|
export declare const trackEventFromPaymentFeesSummary: (checkoutItem: FunkitActiveCheckoutItem, feeItems: FeeItem[], isWithdrawal: boolean) => TrackEventData;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { FunAddress } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { PaymentMethodInfo } from '
|
|
4
|
-
import type { FunkitCheckoutConfig } from '
|
|
3
|
+
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
|
+
import type { FunkitCheckoutConfig } from '../../providers/FunkitCheckoutContext/types';
|
|
5
|
+
import { type HealthFactorInfo } from './DestinationHealthFactorRow';
|
|
5
6
|
interface PaymentMethodSummaryProps {
|
|
6
7
|
paymentMethodInfo: PaymentMethodInfo;
|
|
7
8
|
customRecipient: FunAddress | undefined;
|
|
@@ -13,6 +14,12 @@ interface PaymentMethodSummaryProps {
|
|
|
13
14
|
* rendered as Supply APY / Collateralization rows after the Estimated Time row.
|
|
14
15
|
*/
|
|
15
16
|
destinationYieldInfo?: FunkitCheckoutConfig['destinationYieldInfo'];
|
|
17
|
+
/**
|
|
18
|
+
* Projected health factor for an Aave supply. When present, rendered as a
|
|
19
|
+
* Health factor (before → after) row after the yield rows. The SDK computes
|
|
20
|
+
* this from the live confirmation amount (Aave supply checkouts only).
|
|
21
|
+
*/
|
|
22
|
+
healthFactorInfo?: HealthFactorInfo;
|
|
16
23
|
}
|
|
17
|
-
export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTimeText, isLoading, isWithdrawal, destinationYieldInfo, }: PaymentMethodSummaryProps): React.JSX.Element;
|
|
24
|
+
export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTimeText, isLoading, isWithdrawal, destinationYieldInfo, healthFactorInfo, }: PaymentMethodSummaryProps): React.JSX.Element;
|
|
18
25
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FunAddress } from '@funkit/api-base';
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
|
-
import { type PaymentMethodInfo } from '
|
|
3
|
+
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
4
|
type PaymentRouteSummaryProps = {
|
|
5
5
|
paymentMethodInfo: PaymentMethodInfo | null;
|
|
6
6
|
customRecipient: FunAddress | undefined;
|
package/dist/components/ModalHeightAnimationLayer/FunCheckoutModalHeightAnimationWrapper.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type FunkitCheckoutConfig } from '
|
|
3
|
-
import { FunCheckoutStep } from '
|
|
2
|
+
import { type FunkitCheckoutConfig } from '../../index';
|
|
3
|
+
import { FunCheckoutStep } from '../../modals/CheckoutModal/stepTransition';
|
|
4
4
|
interface FunCheckoutModalHeightAnimationWrapperProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
checkoutConfig?: FunkitCheckoutConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TransferTokenDefault } from '
|
|
2
|
+
import type { TransferTokenDefault } from '../../hooks/useTokenAndChainDropdown';
|
|
3
3
|
interface NewTokenDepositAlertProps {
|
|
4
4
|
onClick: (value: TransferTokenDefault) => void;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ApiFunkitCheckoutQuoteResult } from '@funkit/utils';
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
|
-
import type { ServerCheckoutConfig } from '
|
|
4
|
-
import type { FunkitCheckoutConfig } from '
|
|
3
|
+
import type { ServerCheckoutConfig } from '../../domains/clientMetadata';
|
|
4
|
+
import type { FunkitCheckoutConfig } from '../../providers/FunkitCheckoutContext';
|
|
5
5
|
interface ReceiveAmountProps {
|
|
6
6
|
config: ServerCheckoutConfig | FunkitCheckoutConfig;
|
|
7
7
|
/** To override the default icon if custom one is needed */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PaymentMethod } from '
|
|
2
|
+
import { PaymentMethod } from '../../domains/paymentMethods';
|
|
3
3
|
import { type FunPaymentMethodItemProps } from '../FunPaymentMethodItem/FunPaymentMethodItem';
|
|
4
4
|
interface SourcePaymentMethodItemProps extends Omit<FunPaymentMethodItemProps, 'valueIcon'> {
|
|
5
5
|
type: PaymentMethod;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CheckoutProgressStep } from '
|
|
2
|
+
import type { CheckoutProgressStep } from '../../../providers/FunkitCheckoutContext';
|
|
3
3
|
import type { TransactionStatusProps } from '../TransactionStatus';
|
|
4
4
|
interface AnimatedSpinnerProps {
|
|
5
5
|
currentStatus: TransactionStatusProps['status'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CheckoutProgressStep } from '
|
|
2
|
+
import type { CheckoutProgressStep } from '../../providers/FunkitCheckoutContext';
|
|
3
3
|
export declare const STEP_SPINNER_MORPH_DEGREES = 45;
|
|
4
4
|
export declare const STEP_SPINNER_MORPH_MAX_OFFSET = 4;
|
|
5
5
|
export declare const STEP_SPINNER_SIZE_BIG_SCALE = 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
|
-
import type { CheckoutProgressStep } from '
|
|
4
|
-
import { type FunkitTextCustomizationsConfig } from '
|
|
3
|
+
import type { CheckoutProgressStep } from '../../providers/FunkitCheckoutContext';
|
|
4
|
+
import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfigContext';
|
|
5
5
|
export interface TransactionStatusProps {
|
|
6
6
|
isSlowTransaction: boolean;
|
|
7
7
|
isWithdrawal: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FunkitCheckoutConfig } from '
|
|
1
|
+
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
2
2
|
export declare function isPolymarketCustomer(apiKey: string): apiKey is "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6";
|
|
3
3
|
export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
|
|
4
4
|
export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
|
package/dist/domains/aave.d.ts
CHANGED
|
@@ -6,23 +6,28 @@
|
|
|
6
6
|
* would run SDK init for every consumer of this module.
|
|
7
7
|
*/
|
|
8
8
|
import type { Address } from 'viem';
|
|
9
|
-
import type { FunkitCheckoutConfig } from '
|
|
9
|
+
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
10
10
|
export declare const AAVE_MARKET_ADDRESS_BY_CHAIN: Record<string, Address>;
|
|
11
11
|
interface AaveNativeSupplyContextArgs {
|
|
12
12
|
apiKey: string;
|
|
13
13
|
sourceAsset: {
|
|
14
14
|
chainId: string | number;
|
|
15
|
-
address: string;
|
|
16
|
-
};
|
|
17
|
-
checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain' | 'targetAsset'
|
|
15
|
+
address: string | null;
|
|
16
|
+
} | undefined;
|
|
17
|
+
checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain' | 'targetAsset'> | undefined;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* (same chain, same token address). Decoupled from the hook so callers
|
|
25
|
-
* can branch their UI before mounting the hook.
|
|
20
|
+
* The single check for "is this an Aave native supply" (same chain + same token
|
|
21
|
+
* as the target, on a chain with an Aave market, for a native-supply-enabled
|
|
22
|
+
* customer). Tolerates missing source/config — returns false — so callers pass
|
|
23
|
+
* possibly-undefined checkout state directly without their own guards.
|
|
26
24
|
*/
|
|
27
25
|
export declare function isAaveNativeSupplyContext({ apiKey, sourceAsset, checkoutConfig, }: AaveNativeSupplyContextArgs): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Wraps an integrator-provided `resolveHealthFactor` so a throw degrades to a
|
|
28
|
+
* hidden row (`null`) instead of crashing the confirmation screen — the SDK
|
|
29
|
+
* never trusts the callback to be total. Returns `undefined` when no resolver
|
|
30
|
+
* is configured, so callers keep gating on presence.
|
|
31
|
+
*/
|
|
32
|
+
export declare function wrapResolveHealthFactor(resolve: FunkitCheckoutConfig['resolveHealthFactor']): FunkitCheckoutConfig['resolveHealthFactor'];
|
|
28
33
|
export {};
|
package/dist/domains/asset.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
-
import type { FunkitCheckoutConfig } from '
|
|
4
|
-
import type { AssetHoldingsItem } from '
|
|
3
|
+
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
4
|
+
import type { AssetHoldingsItem } from '../utils/assets';
|
|
5
5
|
import { PaymentMethod } from '../domains/paymentMethods';
|
|
6
6
|
/**
|
|
7
7
|
* Calculates the minimum USD value an asset must have to be considered usable for checkout.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FunAddress } from '@funkit/api-base';
|
|
2
2
|
import { CheckoutRefundState, CheckoutState } from '@funkit/api-base';
|
|
3
|
-
import type { GeneralWalletContextProps } from '
|
|
3
|
+
import type { GeneralWalletContextProps } from '../providers/GeneralWalletProvider';
|
|
4
4
|
export declare const hasRisk: (apiKey: string, walletAddress: GeneralWalletContextProps["walletAddress"], customRecipient?: FunAddress) => Promise<boolean>;
|
|
5
5
|
export type CheckoutStatus = 'failed' | 'expired' | 'processing' | 'completed';
|
|
6
6
|
type CheckoutStateBooleans = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
|
-
import type { ErrorNotification } from '
|
|
3
|
-
import type { Config, Connector } from '
|
|
2
|
+
import type { ErrorNotification } from '../components/FunNotification/FunNotification';
|
|
3
|
+
import type { Config, Connector } from '../wagmi/hooks';
|
|
4
4
|
export interface CheckoutConfirmationError extends ErrorNotification {
|
|
5
5
|
durationMs?: number;
|
|
6
6
|
code: ConfirmationErrorCode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
import type { FunkitCheckoutConfig } from '
|
|
2
|
+
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
3
3
|
export declare function getCheckoutRecipient({ walletAddress, config, }: {
|
|
4
4
|
walletAddress: string;
|
|
5
5
|
config: FunkitCheckoutConfig;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
|
|
8
8
|
import type { ApiCheckoutClientMetadata } from '@funkit/utils';
|
|
9
|
-
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '
|
|
9
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
10
10
|
import type { FunkitCheckoutQuoteResult } from './quote';
|
|
11
11
|
type Serialize<T> = T extends (...args: never[]) => unknown ? DeepSerialize<ReturnType<T>> : T extends object ? DeepSerialize<T> : T;
|
|
12
12
|
type DeepSerialize<T> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DynamicRoutePath } from '@funkit/fun-relay';
|
|
2
|
-
import type { DynamicTargetAssetCandidate, FunkitCheckoutConfig } from '
|
|
2
|
+
import type { DynamicTargetAssetCandidate, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
3
3
|
/**
|
|
4
4
|
* The path shape accepted by {@link mergeDynamicRoutingIntoConfig} /
|
|
5
5
|
* `applyDynamicRouting`. It is a {@link DynamicRoutePath} with the
|
package/dist/domains/fees.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CheckoutQuoteResponse } from '@funkit/utils';
|
|
2
|
-
import type { BluvoBrokerageQuote } from '
|
|
3
|
-
import { LoginType } from '
|
|
4
|
-
import type { Config } from '
|
|
2
|
+
import type { BluvoBrokerageQuote } from '../hooks/useBluvo';
|
|
3
|
+
import { LoginType } from '../providers/GeneralWalletProvider';
|
|
4
|
+
import type { Config } from '../wagmi/hooks';
|
|
5
5
|
import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
6
6
|
import { PaymentMethod, type PaymentMethodInfo } from './paymentMethods';
|
|
7
7
|
export interface BrokerageDetails {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BridgeCustomer, BridgeVirtualBankAccount } from '@funkit/api-base';
|
|
2
2
|
import { PaymentMethod } from '@funkit/connect-core';
|
|
3
|
-
import { type BluvoExchangeType } from '
|
|
3
|
+
import { type BluvoExchangeType } from '../consts/bluvo';
|
|
4
4
|
export { PaymentMethod };
|
|
5
5
|
/** Full payment method information used in frontend during payment flows. **/
|
|
6
6
|
interface PaymentMethodInfoBase {
|
package/dist/domains/quote.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ApiFunkitCheckoutQuoteResult, CheckoutQuoteResponse } from '@funkit/utils';
|
|
2
2
|
import type { Dnum } from 'dnum';
|
|
3
3
|
import { type Address } from 'viem';
|
|
4
|
-
import type { Config } from '
|
|
5
|
-
import type { BluvoBrokerageQuote } from '
|
|
6
|
-
import type { FunkitDirectExecutionInfo } from '
|
|
7
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
8
|
-
import type { LoginType } from '
|
|
4
|
+
import type { Config } from '../wagmi/hooks';
|
|
5
|
+
import type { BluvoBrokerageQuote } from '../hooks/useBluvo';
|
|
6
|
+
import type { FunkitDirectExecutionInfo } from '../hooks/useCheckoutDirectExecution';
|
|
7
|
+
import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
8
|
+
import type { LoginType } from '../providers/GeneralWalletProvider';
|
|
9
9
|
import { type BrokerageDetails, type CheckoutFees } from './fees';
|
|
10
10
|
import { type PaymentMethodInfo } from './paymentMethods';
|
|
11
11
|
import type { QuoteBuilder } from './quoteMode';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dnum } from 'dnum';
|
|
2
|
-
import type { PaymentMethod } from '
|
|
3
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
2
|
+
import type { PaymentMethod } from '../../domains/paymentMethods';
|
|
3
|
+
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
4
|
export declare enum QuoteMode {
|
|
5
5
|
EXACT_IN = "EXACT_IN",
|
|
6
6
|
EXACT_OUT = "EXACT_OUT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LightningQuoteResponse } from '@funkit/api-base';
|
|
2
2
|
import { type Address } from 'viem';
|
|
3
|
-
import type { GeneralWalletContextProps } from '
|
|
3
|
+
import type { GeneralWalletContextProps } from '../../providers/GeneralWalletProvider';
|
|
4
4
|
export declare function usdToSats(usd: number | undefined, btcPrice: number | undefined): bigint | undefined;
|
|
5
5
|
type UseLightningQuoteParams = {
|
|
6
6
|
depositAddr: Address | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DirectExecution } from '@funkit/api-base';
|
|
2
2
|
import { type RecentDepositsApiQueryParams } from '@funkit/connect-core';
|
|
3
3
|
import type { UseQueryResult } from '@tanstack/react-query';
|
|
4
|
-
import { type PurifiedCheckoutHistoryItem } from '
|
|
4
|
+
import { type PurifiedCheckoutHistoryItem } from '../../utils/purifyCheckoutHistoryItem';
|
|
5
5
|
type RecentDepositsApiQuery = Omit<RecentDepositsApiQueryParams, 'isFasterNotificationsEnabled' | 'logger'>;
|
|
6
6
|
type DefaultDEQueryKey = 'apiKey' | 'userId' | 'refreshIntervalMs';
|
|
7
7
|
export type RecentDEQuerySimplified = {
|