@funkit/connect 7.1.0-next.9 → 7.1.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 +234 -0
- package/dist/__generated__/default_configs.d.ts +117 -12
- package/dist/components/Dropdown/ChainDropdown.d.ts +1 -1
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -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/FunTooltip/FunTooltip.css.d.ts +2 -6
- package/dist/components/FunTooltip/FunTooltip.d.ts +14 -19
- 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/Icons/RelayIcon.d.ts +4 -0
- 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/relay.d.ts +15 -1
- 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 +117 -0
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +34 -36
- 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/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/useHasHover.d.ts +1 -0
- 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 +4 -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.css +90 -29
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2936 -2555
- 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 +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/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/FunkitCheckoutContext/types.d.ts +1 -1
- package/dist/providers/FunkitConfigContext.d.ts +12 -1
- 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/config.d.ts +1 -1
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +1 -1
- package/dist/utils/funkitProvider.d.ts +2 -0
- package/dist/utils/lighter.d.ts +5 -0
- package/dist/utils/payment.d.ts +1 -1
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +4 -5
- package/dist/utils/withdrawal.d.ts +1 -1
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +6 -6
- package/package.json +9 -7
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +0 -22
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/relay.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FeeBreakdownV2 } from '@funkit/api-base';
|
|
2
|
-
import type { RelayQuote } from '@funkit/fun-relay';
|
|
2
|
+
import type { RelayExecute, RelayQuote } from '@funkit/fun-relay';
|
|
3
3
|
export declare const KATANA_BRIDGE_ALERT_THRESHOLD_PERCENT = 0.5;
|
|
4
4
|
export type RelayQuoteMetadata = {
|
|
5
5
|
relayQuote: RelayQuote['metadata']['relayQuote'];
|
|
@@ -8,3 +8,17 @@ export type RelayQuoteMetadata = {
|
|
|
8
8
|
export declare function extractRelayFeeInfo({ relayQuote, feeBreakdown, }?: {
|
|
9
9
|
[x: string]: unknown;
|
|
10
10
|
}): FeeBreakdownV2;
|
|
11
|
+
type RelayQuoteDetails = NonNullable<RelayExecute['details']>;
|
|
12
|
+
/** Checks if input and output are the same token on the same chain. */
|
|
13
|
+
export declare function isRelayQuoteSameChainAndAsset(details: RelayQuoteDetails): boolean;
|
|
14
|
+
/** Checks if the quote is a native token wrap (e.g., ETH → WETH). */
|
|
15
|
+
export declare function isRelayQuoteWrapOperation(details: RelayQuoteDetails): boolean;
|
|
16
|
+
/** Checks if the quote has a 1:1 exchange rate (no price conversion). */
|
|
17
|
+
export declare function hasRelayQuoteUnitRate(details: RelayQuoteDetails): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Checks if Relay is acting as a passthrough (no solver, no fees).
|
|
20
|
+
* True when the quote has a 1:1 rate AND is either a same-chain/same-asset
|
|
21
|
+
* transfer or a native token wrap operation.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isRelayPassthrough(details: RelayQuoteDetails): boolean;
|
|
24
|
+
export {};
|
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;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { type DirectExecution } from '@funkit/api-base';
|
|
2
|
+
import { type PurifiedCheckoutHistoryItem } from '../../utils/purifyCheckoutHistoryItem';
|
|
3
|
+
/**
|
|
4
|
+
* Query parameters for the useRecentDeposits hook.
|
|
5
|
+
*/
|
|
6
|
+
interface RecentDirectExecutionsQuery {
|
|
7
|
+
/**
|
|
8
|
+
* Controls whether the hook should fetch and return data.
|
|
9
|
+
* When false, the query is disabled and no data will be fetched.
|
|
10
|
+
*/
|
|
11
|
+
isVisible: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Optional filter function to further refine which deposits are returned.
|
|
14
|
+
* WARNING: Must be a stable reference (wrap in useMemo), otherwise the hook will constantly re-render.
|
|
15
|
+
* @param de - The DirectExecution to filter
|
|
16
|
+
* @returns true to include the deposit, false to exclude it
|
|
17
|
+
*/
|
|
18
|
+
memoizedFilterFunc?: (de: DirectExecution) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Maximum number of deposits to fetch from the API.
|
|
21
|
+
* @default 5
|
|
22
|
+
*/
|
|
23
|
+
fetchSize?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Custom cutoff time in milliseconds for determining which deposits are "recent".
|
|
26
|
+
* Deposits created after this timestamp will be included.
|
|
27
|
+
* If not provided, uses Fun's default strategy.
|
|
28
|
+
*/
|
|
29
|
+
cutOffTimeMs?: number;
|
|
30
|
+
/**
|
|
31
|
+
* API key for authenticating requests to Fun's API server.
|
|
32
|
+
*/
|
|
33
|
+
apiKey: string;
|
|
34
|
+
/**
|
|
35
|
+
* User ID for which to fetch direct executions.
|
|
36
|
+
* Usually user's connected wallet address.
|
|
37
|
+
*/
|
|
38
|
+
userId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Interval in milliseconds for how often to refetch the data.
|
|
41
|
+
* Determines the polling frequency for keeping deposit data up to date.
|
|
42
|
+
*/
|
|
43
|
+
refreshIntervalMs: number;
|
|
44
|
+
}
|
|
45
|
+
export interface MergedMultiStepDirectExecution extends DirectExecution {
|
|
46
|
+
/**
|
|
47
|
+
* In a multi-step DE chain, represents the latest **present** DE of the chain.
|
|
48
|
+
*
|
|
49
|
+
* Always `undefined` for single-step DEs.
|
|
50
|
+
*/
|
|
51
|
+
latestStep?: DirectExecution;
|
|
52
|
+
}
|
|
53
|
+
export declare function isTokenTransferDirectExecution(de: DirectExecution): boolean;
|
|
54
|
+
export declare function isWithdrawalDirectExecution(de: DirectExecution): boolean;
|
|
55
|
+
type DefaultDEQueryKey = 'apiKey' | 'userId' | 'refreshIntervalMs';
|
|
56
|
+
export type RecentDEQuerySimplified = Omit<RecentDirectExecutionsQuery, DefaultDEQueryKey>;
|
|
57
|
+
/**
|
|
58
|
+
* @returns recent direct executions tied to a recipient address used in the token transfer flow
|
|
59
|
+
*/
|
|
60
|
+
export declare const useRecentDeposits: ({ isVisible, memoizedFilterFunc, fetchSize, cutOffTimeMs, }: RecentDEQuerySimplified) => {
|
|
61
|
+
data: MergedMultiStepDirectExecution[] | undefined;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Hook for SDK users to fetch recent deposits/direct executions with automatic context integration.
|
|
65
|
+
*
|
|
66
|
+
* **Requirements**: Must be used inside FunkitProvider context as it automatically retrieves:
|
|
67
|
+
* - API key, User ID, Refresh interval from Fun
|
|
68
|
+
*
|
|
69
|
+
* Returns checkout history items
|
|
70
|
+
*
|
|
71
|
+
* @param query - Simplified query parameters (excludes apiKey, userId, refreshIntervalMs)
|
|
72
|
+
* @returns Object with `data` property containing array of purified direct executions or undefined if not loaded
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```tsx
|
|
76
|
+
* function MyComponent() {
|
|
77
|
+
* const { data: recentDeposits } = useFunkitRecentDeposits({
|
|
78
|
+
* isVisible: true,
|
|
79
|
+
* fetchSize: 10,
|
|
80
|
+
* cutOffTimeMs: 24 * 60 * 60 * 1000, // Last 24 hours
|
|
81
|
+
* })
|
|
82
|
+
* return <div>{recentDeposits?.length} recent deposits</div>
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare function useFunkitRecentDeposits(query: RecentDEQuerySimplified): {
|
|
87
|
+
data: PurifiedCheckoutHistoryItem[] | undefined;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Implementation hook for SDK users to fetch recent deposits with explicit parameters.
|
|
91
|
+
*
|
|
92
|
+
* **Requirements**: Does NOT require FunkitProvider context. All parameters must be provided explicitly.
|
|
93
|
+
* This is useful for custom implementations or when using outside the standard Funkit provider hierarchy.
|
|
94
|
+
*
|
|
95
|
+
* Returns purified checkout history items
|
|
96
|
+
*
|
|
97
|
+
* @param query - Complete query parameters including apiKey, userId, and refreshIntervalMs
|
|
98
|
+
* @returns Object with `data` property containing array of purified direct executions or undefined if not loaded
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```tsx
|
|
102
|
+
* function MyCustomComponent() {
|
|
103
|
+
* const { data: recentDeposits } = useFunkitRecentDepositsImpl({
|
|
104
|
+
* isVisible: true,
|
|
105
|
+
* apiKey: 'your-api-key',
|
|
106
|
+
* userId: 'user-wallet-address',
|
|
107
|
+
* refreshIntervalMs: 5000,
|
|
108
|
+
* fetchSize: 10,
|
|
109
|
+
* })
|
|
110
|
+
* return <div>{recentDeposits?.length} recent deposits</div>
|
|
111
|
+
* }
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export declare function useFunkitRecentDepositsImpl(query: RecentDirectExecutionsQuery): {
|
|
115
|
+
data: PurifiedCheckoutHistoryItem[] | undefined;
|
|
116
|
+
};
|
|
117
|
+
export {};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
|
|
1
|
+
import { type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
|
|
3
2
|
interface CheckoutQuoteParams {
|
|
4
3
|
recipientAddress: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
targetAsset: Address | undefined;
|
|
4
|
+
selectedChainId: string;
|
|
5
|
+
selectedTokenSymbol: string;
|
|
8
6
|
config: FunkitWithdrawalConfig;
|
|
9
7
|
}
|
|
10
8
|
/**
|
|
11
9
|
* Simplified quoting logic used for withdrawal UI only.
|
|
12
10
|
*/
|
|
13
|
-
export declare function useWithdrawalQuote({ recipientAddress,
|
|
11
|
+
export declare function useWithdrawalQuote({ recipientAddress, selectedChainId, selectedTokenSymbol, config, }: CheckoutQuoteParams): {
|
|
14
12
|
quoteEnabled: boolean;
|
|
15
13
|
isInstantQuoting: boolean;
|
|
16
14
|
data: {
|
|
17
15
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
18
|
-
checkedAssetAmount: import("
|
|
19
|
-
finalEstimation: import("
|
|
16
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
17
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
20
18
|
} | null;
|
|
21
19
|
error: Error;
|
|
22
20
|
isError: true;
|
|
@@ -41,22 +39,22 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
41
39
|
isStale: boolean;
|
|
42
40
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
43
41
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
44
|
-
checkedAssetAmount: import("
|
|
45
|
-
finalEstimation: import("
|
|
42
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
43
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
46
44
|
} | null, Error>>;
|
|
47
45
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
48
46
|
promise: Promise<{
|
|
49
47
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
50
|
-
checkedAssetAmount: import("
|
|
51
|
-
finalEstimation: import("
|
|
48
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
49
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
52
50
|
} | null>;
|
|
53
51
|
} | {
|
|
54
52
|
quoteEnabled: boolean;
|
|
55
53
|
isInstantQuoting: boolean;
|
|
56
54
|
data: {
|
|
57
55
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
58
|
-
checkedAssetAmount: import("
|
|
59
|
-
finalEstimation: import("
|
|
56
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
57
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
60
58
|
} | null;
|
|
61
59
|
error: null;
|
|
62
60
|
isError: false;
|
|
@@ -81,14 +79,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
81
79
|
isStale: boolean;
|
|
82
80
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
83
81
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
84
|
-
checkedAssetAmount: import("
|
|
85
|
-
finalEstimation: import("
|
|
82
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
83
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
86
84
|
} | null, Error>>;
|
|
87
85
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
88
86
|
promise: Promise<{
|
|
89
87
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
90
|
-
checkedAssetAmount: import("
|
|
91
|
-
finalEstimation: import("
|
|
88
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
89
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
92
90
|
} | null>;
|
|
93
91
|
} | {
|
|
94
92
|
quoteEnabled: boolean;
|
|
@@ -117,14 +115,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
117
115
|
isStale: boolean;
|
|
118
116
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
119
117
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
120
|
-
checkedAssetAmount: import("
|
|
121
|
-
finalEstimation: import("
|
|
118
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
119
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
122
120
|
} | null, Error>>;
|
|
123
121
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
124
122
|
promise: Promise<{
|
|
125
123
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
126
|
-
checkedAssetAmount: import("
|
|
127
|
-
finalEstimation: import("
|
|
124
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
125
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
128
126
|
} | null>;
|
|
129
127
|
} | {
|
|
130
128
|
quoteEnabled: boolean;
|
|
@@ -153,14 +151,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
153
151
|
isStale: boolean;
|
|
154
152
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
155
153
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
156
|
-
checkedAssetAmount: import("
|
|
157
|
-
finalEstimation: import("
|
|
154
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
155
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
158
156
|
} | null, Error>>;
|
|
159
157
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
160
158
|
promise: Promise<{
|
|
161
159
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
162
|
-
checkedAssetAmount: import("
|
|
163
|
-
finalEstimation: import("
|
|
160
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
161
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
164
162
|
} | null>;
|
|
165
163
|
} | {
|
|
166
164
|
quoteEnabled: boolean;
|
|
@@ -189,22 +187,22 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
189
187
|
isStale: boolean;
|
|
190
188
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
191
189
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
192
|
-
checkedAssetAmount: import("
|
|
193
|
-
finalEstimation: import("
|
|
190
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
191
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
194
192
|
} | null, Error>>;
|
|
195
193
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
196
194
|
promise: Promise<{
|
|
197
195
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
198
|
-
checkedAssetAmount: import("
|
|
199
|
-
finalEstimation: import("
|
|
196
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
197
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
200
198
|
} | null>;
|
|
201
199
|
} | {
|
|
202
200
|
quoteEnabled: boolean;
|
|
203
201
|
isInstantQuoting: boolean;
|
|
204
202
|
data: {
|
|
205
203
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
206
|
-
checkedAssetAmount: import("
|
|
207
|
-
finalEstimation: import("
|
|
204
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
205
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
208
206
|
} | null;
|
|
209
207
|
isError: false;
|
|
210
208
|
error: null;
|
|
@@ -229,14 +227,14 @@ export declare function useWithdrawalQuote({ recipientAddress, chainId, symbol,
|
|
|
229
227
|
isStale: boolean;
|
|
230
228
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
231
229
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
232
|
-
checkedAssetAmount: import("
|
|
233
|
-
finalEstimation: import("
|
|
230
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
231
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
234
232
|
} | null, Error>>;
|
|
235
233
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
236
234
|
promise: Promise<{
|
|
237
235
|
baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
|
|
238
|
-
checkedAssetAmount: import("
|
|
239
|
-
finalEstimation: import("
|
|
236
|
+
checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
|
|
237
|
+
finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
|
|
240
238
|
} | null>;
|
|
241
239
|
};
|
|
242
240
|
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
1
|
import { CheckoutRefundState, CheckoutState, type DirectExecution, RelayExecutionStatus } from '@funkit/api-base';
|
|
2
|
-
import type { MergedMultiStepDirectExecution } from './queries/
|
|
2
|
+
import type { MergedMultiStepDirectExecution } from './queries/useRecentDeposits';
|
|
3
3
|
export declare function mapRelayExecutionStatusToCheckoutState(status: RelayExecutionStatus): CheckoutState;
|
|
4
4
|
export declare function mapRelayExecutionStatusToRefundState(status: RelayExecutionStatus): CheckoutRefundState | undefined;
|
|
5
5
|
export declare function useCheckoutDirectExecutionHistory({ initDirectExecution, disabled, }: {
|
|
@@ -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(): {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useHasHover(): boolean;
|
|
@@ -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,7 @@ 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
|
+
comingSoon: PaymentMethod[];
|
|
14
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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 type TransferTokenDefault = {
|
|
4
4
|
token: string;
|
|
5
5
|
chainId: number;
|