@funkit/connect 7.1.0-next.13 → 7.1.0-next.16
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 +18 -0
- 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/FunDirectExecutionHistoryDetail.d.ts +1 -1
- package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +1 -1
- package/dist/components/FunNotificationBanner/FunNotificationBannerIcon.d.ts +1 -1
- package/dist/components/FunSelectBrokerage/FunSelectBrokerage.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +2 -2
- 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 +1 -1
- package/dist/components/FunTransactionSummary/PaymentRouteSummary.d.ts +1 -1
- 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/TransactionStatus.d.ts +1 -1
- package/dist/components/TransferTokenDetails/TransferTokenDetails.d.ts +1 -1
- package/dist/consts/customers.d.ts +1 -1
- package/dist/domains/asset.d.ts +2 -2
- package/dist/domains/checkout.d.ts +1 -1
- package/dist/domains/checkoutRecipient.d.ts +1 -1
- package/dist/domains/clientMetadata.d.ts +1 -1
- package/dist/domains/fees.d.ts +2 -2
- package/dist/domains/paymentMethods.d.ts +1 -1
- package/dist/domains/quote.d.ts +4 -4
- package/dist/domains/wallet.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 +3 -2
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +31 -31
- 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/useCheckoutItemDisplay.d.ts +2 -2
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +2 -2
- package/dist/hooks/useCheckoutTransferInit.d.ts +1 -1
- package/dist/hooks/useCountdown.d.ts +1 -1
- package/dist/hooks/useEnabledTokenTransferChainTokens.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/useOnNewNotification.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +3 -3
- package/dist/hooks/useRelayBypass.d.ts +1 -1
- package/dist/hooks/useTokenChain.d.ts +1 -1
- package/dist/hooks/useTokenTransfer.d.ts +1 -1
- package/dist/index.js +7 -4
- 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 +1 -1
- 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/useCheckoutConfirmation.d.ts +1 -1
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
- 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/DirectExecutionNotifCenter/DirectExecutionNotifCenter.d.ts +1 -1
- package/dist/modals/CheckoutModal/DirectExecutionNotifCenter/DirectExecutionNotifCenterContent.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +1 -1
- 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 +2 -2
- 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/useMeld.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +2 -2
- 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.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/DefiPurchaseSection.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
- 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/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 +1 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +1 -1
- package/dist/modals/WithdrwalModal/WithdrawalNotification.d.ts +2 -2
- package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +2 -2
- package/dist/providers/FunkitBrokerageProvider.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext/track.d.ts +4 -4
- package/dist/providers/FunkitHistoryContext.d.ts +2 -2
- package/dist/providers/FunkitI18nProvider.d.ts +1 -1
- package/dist/providers/FunkitProvider.d.ts +1 -1
- package/dist/providers/FunkitQuoteContext.track.d.ts +3 -3
- package/dist/themes/darkTheme.d.ts +1 -1
- package/dist/themes/lightTheme.d.ts +1 -1
- package/dist/utils/assets.d.ts +1 -1
- package/dist/utils/bluvo.d.ts +2 -2
- package/dist/utils/checkout.d.ts +2 -2
- package/dist/utils/customer.d.ts +2 -2
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
- package/dist/utils/funkitProvider.d.ts +1 -1
- package/dist/utils/payment.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.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.d.ts +1 -1
- 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 +28 -28
- 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 +3 -2
- package/dist/wallets/walletConnectors/{chunk-T5KHVUFR.js → chunk-3ZWIUCOI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-77UTBHGP.js → chunk-4SC3PZVM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5EAOMOTO.js → chunk-5AV2NSL3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RA7MCWF4.js → chunk-5FWURLPF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-R6Y36CMA.js → chunk-6677RKVT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MRRZOQGZ.js → chunk-75A4Q5E5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-U5QP7MI5.js → chunk-ENLR4LXN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2E4PDCEJ.js → chunk-FT5BX7TL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JFHP4YJG.js → chunk-GEMN6DM5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CZYUE3AR.js → chunk-GXTI2PZD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-47QF6EET.js → chunk-LGT6IAXI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-W7Y6I22Y.js → chunk-N7475PGA.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FA5DTT5R.js → chunk-O6YFVGVQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UOTQQJJD.js → chunk-OCM5YHT5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HPHADOYD.js → chunk-PRGCIJ7Y.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VYNVAGSV.js → chunk-RNIMZDHW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RLRQYUYC.js → chunk-TLOROKED.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YLJDPTYF.js → chunk-WNQ3NPHX.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 7.1.0-next.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f490277: add cache for performance
|
|
8
|
+
|
|
9
|
+
## 7.1.0-next.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e55876b: fix path alias inside the npm package
|
|
14
|
+
|
|
15
|
+
## 7.1.0-next.14
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- da4efac: fix types export
|
|
20
|
+
|
|
3
21
|
## 7.1.0-next.13
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -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;
|
|
@@ -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 '../../hooks/queries/useRecentDeposits';
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FunCheckoutStep } from '
|
|
2
|
+
import { FunCheckoutStep } from '../../modals/CheckoutModal/stepTransition';
|
|
3
3
|
interface FunCheckoutModalHeightAnimationWrapperProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
checkoutStep?: FunCheckoutStep;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DirectExecutionType } from '@funkit/api-base';
|
|
3
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
4
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
3
|
+
import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
|
|
4
|
+
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
5
5
|
interface PaymentAmountSummaryProps {
|
|
6
6
|
isLoading: boolean;
|
|
7
7
|
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,6 +1,6 @@
|
|
|
1
1
|
import type { FunAddress } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { PaymentMethodInfo } from '
|
|
3
|
+
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
4
|
interface PaymentMethodSummaryProps {
|
|
5
5
|
paymentMethodInfo: PaymentMethodInfo;
|
|
6
6
|
customRecipient: FunAddress | undefined;
|
|
@@ -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;
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import React, { type ReactNode } from 'react';
|
|
3
|
-
import type { CheckoutProgressStep } from '
|
|
3
|
+
import type { CheckoutProgressStep } from '../../providers/FunkitCheckoutContext';
|
|
4
4
|
interface TransactionStatusProps {
|
|
5
5
|
isSlowTransaction: boolean;
|
|
6
6
|
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 isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
|
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
|
export declare const isStablecoin: (symbol: string) => string | undefined;
|
|
7
7
|
export declare function isPreferredChain(chainId: number, additionalChains?: number[]): boolean;
|
|
@@ -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,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;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Make sure it is SERIALIZABLE and BACKWARD COMPATIBLE!!
|
|
6
6
|
*/
|
|
7
7
|
import type { ApiCheckoutClientMetadata } from '@funkit/utils';
|
|
8
|
-
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '
|
|
8
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
9
9
|
import type { FunkitCheckoutQuoteResult } from './quote';
|
|
10
10
|
type Serialize<T> = T extends (...args: never[]) => unknown ? DeepSerialize<ReturnType<T>> : T extends object ? DeepSerialize<T> : T;
|
|
11
11
|
type DeepSerialize<T> = {
|
package/dist/domains/fees.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CheckoutQuoteResponse } from '@funkit/utils';
|
|
2
2
|
import type { Config } from 'wagmi';
|
|
3
|
-
import type { BluvoBrokerageQuote } from '
|
|
4
|
-
import { LoginType } from '
|
|
3
|
+
import type { BluvoBrokerageQuote } from '../hooks/useBluvo';
|
|
4
|
+
import { LoginType } from '../providers/GeneralWalletProvider';
|
|
5
5
|
import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
6
6
|
import { PaymentMethod, type PaymentMethodInfo } from './paymentMethods';
|
|
7
7
|
export interface BrokerageDetails {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BridgeCustomer, BridgeVirtualBankAccount } from '@funkit/api-base';
|
|
2
|
-
import { type BluvoExchangeType } from '
|
|
2
|
+
import { type BluvoExchangeType } from '../consts/bluvo';
|
|
3
3
|
/** Supported payment methods in FunkitConnect. **/
|
|
4
4
|
export declare enum PaymentMethod {
|
|
5
5
|
/** Meld - Credit / Debit Card **/
|
package/dist/domains/quote.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ApiFunkitCheckoutQuoteResult, CheckoutQuoteResponse } from '@funkit/utils';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
3
|
import type { Config } from 'wagmi';
|
|
4
|
-
import type { BluvoBrokerageQuote } from '
|
|
5
|
-
import type { FunkitDirectExecutionInfo } from '
|
|
6
|
-
import type { FunkitActiveCheckoutItem } from '
|
|
7
|
-
import type { LoginType } from '
|
|
4
|
+
import type { BluvoBrokerageQuote } from '../hooks/useBluvo';
|
|
5
|
+
import type { FunkitDirectExecutionInfo } from '../hooks/useCheckoutDirectExecution';
|
|
6
|
+
import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
7
|
+
import type { LoginType } from '../providers/GeneralWalletProvider';
|
|
8
8
|
import { type BrokerageDetails, type CheckoutFees } from './fees';
|
|
9
9
|
import { type PaymentMethodInfo } from './paymentMethods';
|
|
10
10
|
export interface FunkitCheckoutQuoteResult extends Omit<ApiFunkitCheckoutQuoteResult, 'finalFeesBreakdown'> {
|
package/dist/domains/wallet.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CheckoutHistoryItem } from '@funkit/api-base';
|
|
2
|
-
import { PaymentMethod } from '
|
|
2
|
+
import { PaymentMethod } from '../../domains/paymentMethods';
|
|
3
3
|
export declare const DEFAULT_NOTIF_CUTOFF: number;
|
|
4
4
|
interface RecentCheckoutsQuery {
|
|
5
5
|
isVisible: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type DirectExecution } from '@funkit/api-base';
|
|
2
|
+
import { type PurifiedCheckoutHistoryItem } from '../../utils/purifyCheckoutHistoryItem';
|
|
2
3
|
/**
|
|
3
4
|
* Query parameters for the useRecentDeposits hook.
|
|
4
5
|
*/
|
|
@@ -83,7 +84,7 @@ export declare const useRecentDeposits: ({ isVisible, memoizedFilterFunc, fetchS
|
|
|
83
84
|
* ```
|
|
84
85
|
*/
|
|
85
86
|
export declare function useFunkitRecentDeposits(query: RecentDEQuerySimplified): {
|
|
86
|
-
data:
|
|
87
|
+
data: PurifiedCheckoutHistoryItem[] | undefined;
|
|
87
88
|
};
|
|
88
89
|
/**
|
|
89
90
|
* Implementation hook for SDK users to fetch recent deposits with explicit parameters.
|
|
@@ -111,6 +112,6 @@ export declare function useFunkitRecentDeposits(query: RecentDEQuerySimplified):
|
|
|
111
112
|
* ```
|
|
112
113
|
*/
|
|
113
114
|
export declare function useFunkitRecentDepositsImpl(query: RecentDirectExecutionsQuery): {
|
|
114
|
-
data:
|
|
115
|
+
data: PurifiedCheckoutHistoryItem[] | undefined;
|
|
115
116
|
};
|
|
116
117
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
import { type FunkitWithdrawalConfig } from '
|
|
2
|
+
import { type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
3
3
|
interface CheckoutQuoteParams {
|
|
4
4
|
recipientAddress: string;
|
|
5
5
|
chainId: string;
|
|
@@ -15,8 +15,8 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
15
15
|
isInstantQuoting: boolean;
|
|
16
16
|
data: {
|
|
17
17
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
18
|
-
checkedAssetAmount: import("
|
|
19
|
-
finalEstimation: import("
|
|
18
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
19
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
20
20
|
} | null;
|
|
21
21
|
error: Error;
|
|
22
22
|
isError: true;
|
|
@@ -41,22 +41,22 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
41
41
|
isStale: boolean;
|
|
42
42
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
43
43
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
44
|
-
checkedAssetAmount: import("
|
|
45
|
-
finalEstimation: import("
|
|
44
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
45
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
46
46
|
} | null, Error>>;
|
|
47
47
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
48
48
|
promise: Promise<{
|
|
49
49
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
50
|
-
checkedAssetAmount: import("
|
|
51
|
-
finalEstimation: import("
|
|
50
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
51
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
52
52
|
} | null>;
|
|
53
53
|
} | {
|
|
54
54
|
quoteEnabled: boolean;
|
|
55
55
|
isInstantQuoting: boolean;
|
|
56
56
|
data: {
|
|
57
57
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
58
|
-
checkedAssetAmount: import("
|
|
59
|
-
finalEstimation: import("
|
|
58
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
59
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
60
60
|
} | null;
|
|
61
61
|
error: null;
|
|
62
62
|
isError: false;
|
|
@@ -81,14 +81,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
81
81
|
isStale: boolean;
|
|
82
82
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
83
83
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
84
|
-
checkedAssetAmount: import("
|
|
85
|
-
finalEstimation: import("
|
|
84
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
85
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
86
86
|
} | null, Error>>;
|
|
87
87
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
88
88
|
promise: Promise<{
|
|
89
89
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
90
|
-
checkedAssetAmount: import("
|
|
91
|
-
finalEstimation: import("
|
|
90
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
91
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
92
92
|
} | null>;
|
|
93
93
|
} | {
|
|
94
94
|
quoteEnabled: boolean;
|
|
@@ -117,14 +117,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
117
117
|
isStale: boolean;
|
|
118
118
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
119
119
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
120
|
-
checkedAssetAmount: import("
|
|
121
|
-
finalEstimation: import("
|
|
120
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
121
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
122
122
|
} | null, Error>>;
|
|
123
123
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
124
124
|
promise: Promise<{
|
|
125
125
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
126
|
-
checkedAssetAmount: import("
|
|
127
|
-
finalEstimation: import("
|
|
126
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
127
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
128
128
|
} | null>;
|
|
129
129
|
} | {
|
|
130
130
|
quoteEnabled: boolean;
|
|
@@ -153,14 +153,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
153
153
|
isStale: boolean;
|
|
154
154
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
155
155
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
156
|
-
checkedAssetAmount: import("
|
|
157
|
-
finalEstimation: import("
|
|
156
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
157
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
158
158
|
} | null, Error>>;
|
|
159
159
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
160
160
|
promise: Promise<{
|
|
161
161
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
162
|
-
checkedAssetAmount: import("
|
|
163
|
-
finalEstimation: import("
|
|
162
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
163
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
164
164
|
} | null>;
|
|
165
165
|
} | {
|
|
166
166
|
quoteEnabled: boolean;
|
|
@@ -189,22 +189,22 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
189
189
|
isStale: boolean;
|
|
190
190
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
191
191
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
192
|
-
checkedAssetAmount: import("
|
|
193
|
-
finalEstimation: import("
|
|
192
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
193
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
194
194
|
} | null, Error>>;
|
|
195
195
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
196
196
|
promise: Promise<{
|
|
197
197
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
198
|
-
checkedAssetAmount: import("
|
|
199
|
-
finalEstimation: import("
|
|
198
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
199
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
200
200
|
} | null>;
|
|
201
201
|
} | {
|
|
202
202
|
quoteEnabled: boolean;
|
|
203
203
|
isInstantQuoting: boolean;
|
|
204
204
|
data: {
|
|
205
205
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
206
|
-
checkedAssetAmount: import("
|
|
207
|
-
finalEstimation: import("
|
|
206
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
207
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
208
208
|
} | null;
|
|
209
209
|
isError: false;
|
|
210
210
|
error: null;
|
|
@@ -229,14 +229,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
229
229
|
isStale: boolean;
|
|
230
230
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
231
231
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
232
|
-
checkedAssetAmount: import("
|
|
233
|
-
finalEstimation: import("
|
|
232
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
233
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
234
234
|
} | null, Error>>;
|
|
235
235
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
236
236
|
promise: Promise<{
|
|
237
237
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
238
|
-
checkedAssetAmount: import("
|
|
239
|
-
finalEstimation: import("
|
|
238
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
239
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
240
240
|
} | null>;
|
|
241
241
|
};
|
|
242
242
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FunkitUserInfo } from '
|
|
1
|
+
import type { FunkitUserInfo } from '../../consts/funkit';
|
|
2
2
|
import type { CheckoutModalEvent } from './CheckoutModalEvent';
|
|
3
3
|
import type { WithdrawModalEvent } from './WithdrawModalEvent';
|
|
4
4
|
export interface TrackEventData {
|
package/dist/hooks/useBluvo.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WalletwithdrawquotequotationResponse as WithdrawalQuotation } from '@bluvo/sdk-ts';
|
|
2
|
-
import { BluvoExchangeStatus, type BluvoExchangeType } from '
|
|
3
|
-
import { type FunkitActiveCheckoutItem } from '
|
|
2
|
+
import { BluvoExchangeStatus, type BluvoExchangeType } from '../consts/bluvo';
|
|
3
|
+
import { type FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
4
4
|
import type { FunBrokerageItemProps } from '../components/FunSelectBrokerage/FunBrokerageItem';
|
|
5
5
|
type SupportedExchangeOption = FunBrokerageItemProps & {
|
|
6
6
|
exchange: BluvoExchangeType;
|
|
@@ -18,7 +18,7 @@ export declare const useBluvoExchangeBalance: ({ exchange, refetchOnMount, }: {
|
|
|
18
18
|
exchange: BluvoExchangeType | undefined;
|
|
19
19
|
refetchOnMount?: boolean;
|
|
20
20
|
}) => {
|
|
21
|
-
data: import("
|
|
21
|
+
data: import("../domains/wallet").AssetHoldingsMap<import("../domains/wallet").BrokerageAssetHoldingsItem> | undefined;
|
|
22
22
|
totalBalance: number;
|
|
23
23
|
isLoading: boolean;
|
|
24
24
|
isError: boolean;
|
|
@@ -2,9 +2,9 @@ import { DirectExecutionType } from '@funkit/api-base';
|
|
|
2
2
|
import type { RelayTxHash, RelayVmType } from '@funkit/fun-relay';
|
|
3
3
|
import type { CheckoutQuoteResponse } from '@funkit/utils';
|
|
4
4
|
import type { Address, Hex } from 'viem';
|
|
5
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
6
|
-
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams } from '
|
|
7
|
-
import type { WithdrawalClient } from '
|
|
5
|
+
import type { FunkitCheckoutQuoteResult } from '../domains/quote';
|
|
6
|
+
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams } from '../providers/FunkitCheckoutContext';
|
|
7
|
+
import type { WithdrawalClient } from '../wallets/Wallet';
|
|
8
8
|
interface DirectExecutionQuoteRequestParamsBase {
|
|
9
9
|
actionParams: FunkitCheckoutActionParams[];
|
|
10
10
|
fromChainId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ServerCheckoutConfig } from '
|
|
2
|
-
import type { FunkitCheckoutConfig } from '
|
|
1
|
+
import type { ServerCheckoutConfig } from '../domains/clientMetadata';
|
|
2
|
+
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
3
3
|
interface UseCheckoutItemDisplay {
|
|
4
4
|
checkoutConfig: FunkitCheckoutConfig | ServerCheckoutConfig | undefined;
|
|
5
5
|
hideAmount?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PaymentMethod } from '
|
|
2
|
-
import type { FunkitCheckoutQuoteResult } from '
|
|
1
|
+
import type { PaymentMethod } from '../domains/paymentMethods';
|
|
2
|
+
import type { FunkitCheckoutQuoteResult } from '../domains/quote';
|
|
3
3
|
export declare const LAYERZEO_OFT_TIME_ESTIMATE_SECONDS = 180;
|
|
4
4
|
/**
|
|
5
5
|
* https://linear.app/funxyz/issue/PE-775/sdkconnectwith-next-pm-requests
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CheckoutInitTokenTransferAddressParams, type CheckoutInitTokenTransferResponse, type FunAddress } from '@funkit/api-base';
|
|
2
|
-
import { type FunkitCheckoutConfig } from '
|
|
2
|
+
import { type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
3
3
|
import { type UDAConfig } from './useUDAParams';
|
|
4
4
|
interface UseCheckoutTransferInitResponse {
|
|
5
5
|
transferInit: CheckoutInitTokenTransferResponse | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { type FunCountdownProps } from '
|
|
2
|
+
import { type FunCountdownProps } from '../components/FunCountdown/FunCountdown';
|
|
3
3
|
export interface UseCountdownResult {
|
|
4
4
|
countdown: ReactNode;
|
|
5
5
|
isLastSecond: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CheckoutInitTokenTransferResponse } from '@funkit/api-base';
|
|
2
|
-
import type { TokenTransferSourceChainsAndAssets } from '
|
|
2
|
+
import type { TokenTransferSourceChainsAndAssets } from '../modals/CheckoutModal/TransferToken/TransferToken';
|
|
3
3
|
export declare function useEnabledTokenTransferChainTokens(transferInit?: CheckoutInitTokenTransferResponse | null, isWithdrawal?: boolean): TokenTransferSourceChainsAndAssets;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BridgeVirtualBankAccount, type Guid } from '@funkit/api-base';
|
|
2
|
-
import { type AllFiatAccounts } from '
|
|
2
|
+
import { type AllFiatAccounts } from '../domains/bridge';
|
|
3
3
|
export declare function useFiatEnabled(): boolean;
|
|
4
4
|
export declare function useFrogAccounts(): import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").SubAccount[] | null, Error>;
|
|
5
5
|
export declare function useClearFrogAccountsCache(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FunAddress } from '@funkit/api-base';
|
|
2
|
-
import type { GeneralWalletContextProps } from '
|
|
2
|
+
import type { GeneralWalletContextProps } from '../providers/GeneralWalletProvider';
|
|
3
3
|
export declare const useIsBlacklisted: (walletAddress: GeneralWalletContextProps["walletAddress"], customRecipient?: FunAddress) => {
|
|
4
4
|
isWalletBlacklisted: boolean;
|
|
5
5
|
isCustomRecipientBlacklisted: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FunkitCheckoutConfig } from '
|
|
1
|
+
import { type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
2
2
|
export declare const useIsDynamicRoutingEnabled: ({ checkoutConfig: _checkoutConfig, }?: {
|
|
3
3
|
checkoutConfig?: FunkitCheckoutConfig;
|
|
4
4
|
}) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NotificationItem } from '
|
|
1
|
+
import type { NotificationItem } from '../modals/CheckoutModal/TransferToken/types';
|
|
2
2
|
/**
|
|
3
3
|
* This might not work if multiple instances of this hook are used in the same page
|
|
4
4
|
* since it uses sessionStorage to store the processed notifications
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ConnectablePaymentMethodInfo, PaymentMethod } from '
|
|
2
|
-
import type { FunkitCheckoutConfig } from '
|
|
1
|
+
import { type ConnectablePaymentMethodInfo, PaymentMethod } from '../domains/paymentMethods';
|
|
2
|
+
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
3
3
|
export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
|
|
4
4
|
checkoutConfig: FunkitCheckoutConfig | undefined;
|
|
5
5
|
}): {
|
|
@@ -9,6 +9,6 @@ export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
|
|
|
9
9
|
isBrokerageEnabled: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
|
|
12
|
-
preferred: PaymentMethod[] | (import("
|
|
12
|
+
preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
|
|
13
13
|
moreSources: PaymentMethod[];
|
|
14
14
|
};
|