@funkit/connect 12.20.0 → 12.22.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.
Files changed (160) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
  3. package/dist/clients/{chunk-2BBOZQLZ.js → chunk-5JVG4MS2.js} +1 -1
  4. package/dist/clients/chunk-B67ESBGC.js +108 -0
  5. package/dist/clients/{chunk-R5VAX6YA.js → chunk-HGLDKRSQ.js} +81 -33
  6. package/dist/clients/{chunk-VFKEUHZT.js → chunk-R7I5OO6C.js} +1 -1
  7. package/dist/clients/{chunk-5NYKSTGH.js → chunk-S4SMCBQ4.js} +1 -1
  8. package/dist/clients/{chunk-Y7ONHWCW.js → chunk-T4Q43DNC.js} +2 -2
  9. package/dist/clients/{chunk-TLFE74BL.js → chunk-UBZOARBX.js} +3 -3
  10. package/dist/clients/{chunk-TFIJZTGQ.js → chunk-Y2O77SJO.js} +1 -1
  11. package/dist/clients/fanatics.d.ts +5 -7
  12. package/dist/clients/fanatics.js +4 -4
  13. package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
  14. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  15. package/dist/clients/internal/nado/withdrawalForm.js +4 -4
  16. package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
  17. package/dist/clients/lighter.css +32 -11
  18. package/dist/clients/lighter.js +5 -5
  19. package/dist/clients/lighterRh.js +1 -1
  20. package/dist/clients/mallard.d.ts +34 -1
  21. package/dist/clients/mallard.js +148 -3
  22. package/dist/clients/nado.js +4 -4
  23. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  24. package/dist/clients/polymarket/index.js +3 -3
  25. package/dist/clients/polymarket/polymarket.d.ts +22 -22
  26. package/dist/clients/polymarket/polymarket.js +2 -2
  27. package/dist/components/Avatar/emojiAvatarForAddress.d.ts +35 -35
  28. package/dist/components/Box/Box.d.ts +63 -63
  29. package/dist/components/ConnectButton/ConnectButton.d.ts +16 -15
  30. package/dist/components/CustomSlot/CustomSlot.d.ts +8 -0
  31. package/dist/components/CustomSlot/CustomSlotBoundary.d.ts +12 -0
  32. package/dist/components/DestinationSelector/DestinationAssetBalanceLabel.d.ts +6 -0
  33. package/dist/components/DestinationSelector/DestinationSelector.css.d.ts +3 -0
  34. package/dist/components/DestinationSelector/DestinationSelector.d.ts +17 -0
  35. package/dist/components/DestinationSelector/DestinationSelectorSkeleton.d.ts +2 -0
  36. package/dist/components/Dialog/Dialog.d.ts +12 -4
  37. package/dist/components/Dialog/hooks.d.ts +3 -3
  38. package/dist/components/Dropdown/AccountSelectDropdown.d.ts +8 -1
  39. package/dist/components/Dropdown/BaseDropdown.d.ts +3 -1
  40. package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
  41. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -0
  42. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +2 -2
  43. package/dist/components/FunBottomBar/FunBottomBar.d.ts +3 -1
  44. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  45. package/dist/components/FunInput/FunInput.d.ts +1 -1
  46. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  47. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  48. package/dist/components/FunTransactionSummary/DestinationLineItems.d.ts +1 -1
  49. package/dist/components/HighPriceImpactAlert/HighPriceImpactAlert.d.ts +7 -0
  50. package/dist/components/Icons/GreenRoundCheckmark.d.ts +2 -1
  51. package/dist/components/Icons/StatusIcons.css.d.ts +2 -2
  52. package/dist/components/Icons/StatusIcons.d.ts +2 -2
  53. package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
  54. package/dist/components/ModalSelection/ModalSelection.d.ts +4 -4
  55. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +5 -2
  56. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +2 -0
  57. package/dist/consts/checkout.d.ts +8 -8
  58. package/dist/consts/polymarket.d.ts +2 -2
  59. package/dist/consts/quote.d.ts +25 -15
  60. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  61. package/dist/css/sprinkles.css.d.ts +78 -78
  62. package/dist/domains/asset.d.ts +6 -0
  63. package/dist/domains/bridge.d.ts +1 -1
  64. package/dist/domains/clientMetadata.d.ts +5 -6
  65. package/dist/domains/convert/assets.d.ts +6 -0
  66. package/dist/domains/convert/balances.d.ts +4 -2
  67. package/dist/domains/convert/screen.d.ts +4 -0
  68. package/dist/domains/destinationAccount.d.ts +14 -0
  69. package/dist/domains/destinationAssetBalance.d.ts +39 -0
  70. package/dist/domains/fees.d.ts +13 -0
  71. package/dist/domains/inputAmountComponentContext.d.ts +11 -0
  72. package/dist/hooks/queries/useMeldLimits.d.ts +45 -45
  73. package/dist/hooks/queries/useWithdrawalQuote.d.ts +62 -62
  74. package/dist/hooks/track/useTrack.d.ts +1 -1
  75. package/dist/hooks/useCheckoutQuoteNotification.d.ts +3 -3
  76. package/dist/hooks/useConvertBalances.d.ts +4 -2
  77. package/dist/hooks/useConvertQuote.d.ts +1 -1
  78. package/dist/hooks/useDestinationAccountSelector.d.ts +18 -0
  79. package/dist/hooks/useDestinationAssetBalances.d.ts +5 -0
  80. package/dist/hooks/useDynamicRoutes.d.ts +1 -1
  81. package/dist/hooks/useFrogAccount.d.ts +77 -77
  82. package/dist/hooks/useHighPriceImpactPercent.d.ts +11 -0
  83. package/dist/hooks/useIsomorphicEffect.d.ts +2 -2
  84. package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
  85. package/dist/hooks/usePaymentSources.d.ts +1 -1
  86. package/dist/hooks/usePolymarketAccountBalances.d.ts +1 -1
  87. package/dist/index.css +32 -11
  88. package/dist/index.d.ts +4 -1
  89. package/dist/index.js +3652 -2674
  90. package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
  91. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +6 -4
  92. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +2 -1
  93. package/dist/modals/CheckoutModal/SourceChange/FlatList.d.ts +2 -8
  94. package/dist/modals/CheckoutModal/SourceChange/SourceList.d.ts +1 -2
  95. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +5 -1
  96. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +13 -2
  97. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +6 -1
  98. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +6 -1
  99. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
  100. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -1
  101. package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +1 -1
  102. package/dist/providers/FunkitCheckoutContext/types.d.ts +55 -11
  103. package/dist/providers/FunkitConfigContext.d.ts +24 -1
  104. package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
  105. package/dist/providers/GeneralWalletProvider.d.ts +21 -21
  106. package/dist/providers/ModalSizeContext.d.ts +4 -4
  107. package/dist/shadow-css.js +1 -1
  108. package/dist/themes/baseTheme.d.ts +1 -1
  109. package/dist/themes/darkTheme.d.ts +6 -4
  110. package/dist/themes/lightTheme.d.ts +6 -4
  111. package/dist/utils/checkout.d.ts +2 -1
  112. package/dist/utils/consts.d.ts +1 -0
  113. package/dist/utils/customer.d.ts +96 -96
  114. package/dist/utils/datadogBrowserLogsTransport.d.ts +11 -5
  115. package/dist/utils/datadogPageExit.d.ts +5 -0
  116. package/dist/utils/funError.d.ts +26 -0
  117. package/dist/utils/funLogger.d.ts +2 -1
  118. package/dist/utils/shakeElement.d.ts +7 -0
  119. package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
  120. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  121. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  122. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  123. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  124. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  125. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  126. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  127. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  128. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  129. package/dist/wallets/walletConnectors/index.js +57 -57
  130. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  131. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  132. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  133. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  134. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  135. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  136. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  137. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  138. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  139. package/package.json +10 -10
  140. package/dist/clients/chunk-GTPMJGCF.js +0 -52
  141. package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
  142. package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +0 -2
  143. package/dist/wallets/walletConnectors/{chunk-CU5J53XR.js → chunk-53MYTA42.js} +3 -3
  144. package/dist/wallets/walletConnectors/{chunk-ZSSSLFQF.js → chunk-65ULY6OC.js} +3 -3
  145. package/dist/wallets/walletConnectors/{chunk-XODA5ESL.js → chunk-A5POD5SV.js} +3 -3
  146. package/dist/wallets/walletConnectors/{chunk-RXRYHMRI.js → chunk-ANODOMIN.js} +3 -3
  147. package/dist/wallets/walletConnectors/{chunk-IWOMSW64.js → chunk-ASTCNVJC.js} +3 -3
  148. package/dist/wallets/walletConnectors/{chunk-U52QO5HF.js → chunk-F45CUFRR.js} +3 -3
  149. package/dist/wallets/walletConnectors/{chunk-YRMBR6NA.js → chunk-FYPQ3HP4.js} +3 -3
  150. package/dist/wallets/walletConnectors/{chunk-BBDNB5TQ.js → chunk-IWPW26AL.js} +3 -3
  151. package/dist/wallets/walletConnectors/{chunk-4FHNLTR3.js → chunk-JJBLW4IU.js} +3 -3
  152. package/dist/wallets/walletConnectors/{chunk-NXWG6FG2.js → chunk-KE4CWI3A.js} +3 -3
  153. package/dist/wallets/walletConnectors/{chunk-BBB2J3US.js → chunk-MWB6LFSG.js} +3 -3
  154. package/dist/wallets/walletConnectors/{chunk-34B7OJNT.js → chunk-OVDCDVFX.js} +3 -3
  155. package/dist/wallets/walletConnectors/{chunk-SR5CZR3L.js → chunk-PPQ6L4K2.js} +3 -3
  156. package/dist/wallets/walletConnectors/{chunk-IA5432IR.js → chunk-RJF2YEZ5.js} +3 -3
  157. package/dist/wallets/walletConnectors/{chunk-RFCZYLNR.js → chunk-RQYEGJKL.js} +3 -3
  158. package/dist/wallets/walletConnectors/{chunk-TRZDAXCQ.js → chunk-TIHTQ3OB.js} +3 -3
  159. package/dist/wallets/walletConnectors/{chunk-ALGPGI6V.js → chunk-TM7UBV3Q.js} +3 -3
  160. package/dist/wallets/walletConnectors/{chunk-HOCKAU5H.js → chunk-USLZMUJ3.js} +3 -3
@@ -12,6 +12,12 @@ export declare function getMinValueThreshold(config: FunkitCheckoutConfig | unde
12
12
  export declare function isPreferredChain(chainId: number, additionalChains?: number[]): boolean;
13
13
  export { isNativeTokenAddress };
14
14
  export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig: FunkitCheckoutConfig): boolean;
15
+ /** The token a checkout delivers, as handed to integrator slots. */
16
+ export declare function getCheckoutTargetAsset(checkoutConfig: Pick<FunkitCheckoutConfig, 'targetAsset' | 'targetChain' | 'targetAssetTicker'>): {
17
+ address: `0x${string}`;
18
+ chainId: string;
19
+ symbol: string;
20
+ };
15
21
  export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
16
22
  interface AssetUsableToPayParms {
17
23
  config: FunkitCheckoutConfig;
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { type BaseApiRequest, type BridgeCustomer, BridgeCustomerStatus, type BridgeSubAccount, type BridgeVirtualBankAccount, type CreateBridgeBankAccountRequest, type FunAddress } from '@funkit/api-base';
10
10
  /** Bridge only supports a handful of chains so we need to normalize other chains to the supported chain*/
11
- export declare const findBridgeSupportedChain: (chainId: string) => CreateBridgeBankAccountRequest["chainName"];
11
+ export declare const findBridgeSupportedChain: (chainId: string) => CreateBridgeBankAccountRequest['chainName'];
12
12
  export interface AllFiatAccounts {
13
13
  bridgeCustomer?: BridgeCustomer;
14
14
  bankAccounts?: BridgeVirtualBankAccount[];
@@ -4,9 +4,8 @@
4
4
  *
5
5
  * Make sure it is SERIALIZABLE and BACKWARD COMPATIBLE!!
6
6
  */
7
- import type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
8
7
  import type { ApiCheckoutClientMetadata } from '@funkit/utils';
9
- import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
8
+ import type { DynamicTargetAssetCandidate, FunkitActiveCheckoutItem, FunkitCheckoutActionParams, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
10
9
  import type { FunkitCheckoutQuoteResult } from './quote';
11
10
  type Serialize<T> = T extends (...args: never[]) => unknown ? DeepSerialize<ReturnType<T>> : T extends object ? DeepSerialize<T> : T;
12
11
  type DeepSerialize<T> = {
@@ -17,7 +16,7 @@ type SerializedCandidate = Omit<DynamicTargetAssetCandidate, 'generateActionsPar
17
16
  * Historical Checkout Configuration stored in the server
18
17
  * This is similar to FunkitCheckoutConfig but with some fields changed to serializable types
19
18
  * */
20
- export type ServerCheckoutConfig = Omit<DeepSerialize<FunkitCheckoutConfig>, 'dynamicTargetAssetCandidates' | 'headerTabs'> & {
19
+ export type ServerCheckoutConfig = Omit<DeepSerialize<FunkitCheckoutConfig>, 'dynamicTargetAssetCandidates' | 'headerTabs' | 'destinationAccountConfig'> & {
21
20
  dynamicTargetAssetCandidates?: SerializedCandidate[];
22
21
  };
23
22
  type HistoricalCheckoutItemKey = 'id' | 'startTimestampMs' | 'finalDollarValue' | 'latestQuote' | 'depositAddress' | 'selectedSourceAssetInfo' | 'selectedPaymentMethodInfo';
@@ -44,10 +43,10 @@ export interface HistoricalCheckoutItem extends Pick<FunkitActiveCheckoutItem, H
44
43
  * stripped candidates;
45
44
  * - `modalTitle` is restored whenever a live config exists (falling back to the
46
45
  * serializable value) so validation passes;
47
- * - the remaining live-only closures (`getMinDepositUSD`,
46
+ * - the remaining live-only fields (`getMinDepositUSD`,
48
47
  * `generateActionsParams`, `polymarketPerpsTransfer`, `headerTabs`,
49
- * `resolveHealthFactor`) are carried forward only when re-starting the
50
- * still-active checkout.
48
+ * `resolveHealthFactor`, `destinationAccountConfig`) are carried forward only
49
+ * when re-starting the still-active checkout.
51
50
  */
52
51
  export declare function createNewCheckoutConfig({ serializedConfig, liveConfig, isActiveCheckout, }: {
53
52
  serializedConfig: ServerCheckoutConfig;
@@ -29,6 +29,12 @@ export declare function resolveConvertAssets({ assets, supportedAssets, wagmiCon
29
29
  }): Promise<ConvertResolvedAsset[]>;
30
30
  /** The listed asset with this {@link convertAssetKey}, if any. */
31
31
  export declare function findConvertAsset(assets: ConvertResolvedAsset[] | undefined, assetKey: string | undefined): ConvertResolvedAsset | undefined;
32
+ /**
33
+ * Whether a token answers a search: its symbol contains the query in any case,
34
+ * or the query is its address as {@link normalizeTokenAddress} spells it, so
35
+ * a Solana mint must match exactly. An empty query matches everything.
36
+ */
37
+ export declare function matchesConvertAssetQuery(asset: ConvertAsset, query: string): boolean;
32
38
  /** One row on a Convert token screen. */
33
39
  export interface ConvertAssetOption {
34
40
  asset: ConvertResolvedAsset;
@@ -28,9 +28,10 @@ export type ConvertBalances = Record<string, ConvertBalanceState>;
28
28
  * unavailable; it never becomes 0. Balances for assets that weren't requested
29
29
  * are ignored.
30
30
  */
31
- export declare function parseConvertBalances({ assets, assetBalances, }: {
31
+ export declare function parseConvertBalances({ assets, assetBalances, logPrefix, }: {
32
32
  assets: ConvertResolvedAsset[];
33
33
  assetBalances: ConvertAssetBalance[];
34
+ logPrefix?: string;
34
35
  }): ConvertBalances;
35
36
  /** The balance in USD; `undefined` when the balance is unknown. */
36
37
  export declare function getConvertUsdAmount(balance: ConvertBalanceState | undefined, decimals: number): number | undefined;
@@ -51,8 +52,9 @@ export declare function getConvertMaxAmount({ asset, balance, isFeeReserveLoadin
51
52
  * Calls the host getter and parses its result. A throw or timeout is logged
52
53
  * and rethrown so the query keeps the last good read instead of replacing it.
53
54
  */
54
- export declare function fetchConvertBalances({ assets, getBalances, timeoutMs, }: {
55
+ export declare function fetchConvertBalances({ assets, getBalances, timeoutMs, logPrefix, }: {
55
56
  assets: ConvertResolvedAsset[];
56
57
  getBalances: GetConvertBalances;
57
58
  timeoutMs?: number;
59
+ logPrefix?: string;
58
60
  }): Promise<ConvertBalances>;
@@ -116,6 +116,10 @@ export declare function getConvertNotification({ issue, sourceSymbol, destinatio
116
116
  destinationSymbol: string | undefined;
117
117
  t: TFunction;
118
118
  }): ErrorNotification | undefined;
119
+ /** Another press restarts the timer. */
120
+ export declare const CONVERT_RECEIVE_AMOUNT_HINT_MS = 3000;
121
+ /** Shown briefly when the read-only To amount is pressed. */
122
+ export declare function getConvertReceiveAmountHint(t: TFunction): ErrorNotification;
119
123
  export type ConvertActionButton =
120
124
  /** From the submission until Relay settles. */
121
125
  {
@@ -0,0 +1,14 @@
1
+ import type { DestinationAccount, DynamicTargetAssetCandidate, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext/types';
2
+ export interface DestinationAssetGroup {
3
+ label?: string;
4
+ candidates: readonly DynamicTargetAssetCandidate[];
5
+ }
6
+ type RoutedCandidate = DynamicTargetAssetCandidate & {
7
+ dynamicRoutingId: string;
8
+ };
9
+ export declare function hasRoutingId(candidate: DynamicTargetAssetCandidate): candidate is RoutedCandidate;
10
+ export declare function createCandidateByRoutingId(assetGroups: readonly DestinationAssetGroup[]): Map<string, DynamicTargetAssetCandidate>;
11
+ export declare function getDestinationAccountConfigIssue(config: Pick<FunkitCheckoutConfig, 'destinationAccountConfig' | 'dynamicTargetAssetCandidates'>): string | undefined;
12
+ export declare function getActiveDestinationAccount({ destinationAccountConfig, dynamicTargetAssetCandidates, dynamicRoutingId, }: Pick<FunkitCheckoutConfig, 'destinationAccountConfig' | 'dynamicTargetAssetCandidates' | 'dynamicRoutingId'>): DestinationAccount | undefined;
13
+ export declare function groupDestinationAccountCandidates(candidates: readonly DynamicTargetAssetCandidate[]): DestinationAssetGroup[];
14
+ export {};
@@ -0,0 +1,39 @@
1
+ import type { ConvertBalanceState } from './convert/balances';
2
+ import type { ConvertAssetBalance, ConvertResolvedAsset } from './convert/types';
3
+ /**
4
+ * A destination asset the SDK asks the host to read, with the decimals the SDK
5
+ * resolved so the host never has to.
6
+ * @experimental
7
+ */
8
+ export type DestinationAsset = ConvertResolvedAsset;
9
+ /**
10
+ * One asset's wallet balance as the host read it: a base-unit integer string in
11
+ * the decimals the SDK passed. `"0"` means a real zero. A missing or invalid
12
+ * `unitPriceUsd` leaves the asset selectable without a balance label.
13
+ * @experimental
14
+ */
15
+ export type DestinationAssetBalance = ConvertAssetBalance;
16
+ /**
17
+ * Reads wallet balances for the destination asset menu, in one call.
18
+ * - Called when the menu opens, then every 60s while it stays open.
19
+ * - Answer for exactly the assets passed; leave out any you can't read or
20
+ * don't want labelled. Don't throw.
21
+ * @experimental
22
+ */
23
+ export type GetDestinationAssetBalances = (params: {
24
+ assets: DestinationAsset[];
25
+ }) => Promise<DestinationAssetBalance[]>;
26
+ /** What the asset menu shows for one asset's balance label. */
27
+ export type DestinationAssetBalanceState = {
28
+ status: 'loading';
29
+ } | {
30
+ status: 'unavailable';
31
+ } | {
32
+ status: 'ready';
33
+ tokenAmount: string;
34
+ usdValue: number;
35
+ };
36
+ /** Keyed by `convertAssetKey` (`chainId:address`); a missing key shows no label. */
37
+ export type DestinationAssetBalanceStates = Record<string, DestinationAssetBalanceState>;
38
+ export declare function formatDestinationAssetAmount(tokenAmount: string): string;
39
+ export declare function toDestinationAssetBalanceState(balance: ConvertBalanceState | undefined, decimals: number): DestinationAssetBalanceState | undefined;
@@ -1,3 +1,4 @@
1
+ import { type FeeBreakdownV2 } from '@funkit/api-base';
1
2
  import type { CheckoutQuoteResponse } from '@funkit/utils';
2
3
  import type { BluvoBrokerageQuote } from '../hooks/useBluvo';
3
4
  import { LoginType } from '../providers/GeneralWalletProvider';
@@ -50,4 +51,16 @@ export declare function evaluateFeeBreakdown(evalItem: EvaluateFeeBreakdownItem
50
51
  fees: CheckoutFees;
51
52
  brokerage?: BrokerageDetails;
52
53
  }>;
54
+ /**
55
+ * The quote's expected loss in percent, when it exceeds `thresholdPercent`;
56
+ * otherwise undefined.
57
+ *
58
+ * - Sums swap impact and max slippage, counting a missing field as 0 as the
59
+ * fee rows do. The app fee and network cost are fees rather than slippage
60
+ * or execution loss, so they stay out.
61
+ * - Leaves out `totalImpact`, which adds up to 1.25% that the backend moves
62
+ * into the displayed exchange rate.
63
+ * - Rounds to the two decimals the warning shows, so it never reads "5.00%".
64
+ */
65
+ export declare function getHighPriceImpactPercent(feeBreakdown: Partial<Pick<FeeBreakdownV2, 'swapImpact' | 'maxSlippage'>> | undefined, thresholdPercent: number): number | undefined;
53
66
  export {};
@@ -0,0 +1,11 @@
1
+ import type { FunkitActiveCheckoutItem, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
2
+ import type { InputAmountComponentContext } from '../providers/FunkitConfigContext';
3
+ import type { QuoteBuilder } from './quoteMode';
4
+ export declare function getInputAmountComponentContext({ quoteBuilder, assetAmount, fiatAmount, unitPrice, checkoutConfig, selectedSourceAssetInfo, }: {
5
+ quoteBuilder: Pick<QuoteBuilder, 'getPreQuoteAmounts'>;
6
+ assetAmount: number | undefined;
7
+ fiatAmount: number | undefined;
8
+ unitPrice: number;
9
+ checkoutConfig: Pick<FunkitCheckoutConfig, 'targetAsset' | 'targetChain' | 'targetAssetTicker' | 'destinationAccountConfig' | 'dynamicTargetAssetCandidates' | 'dynamicRoutingId'>;
10
+ selectedSourceAssetInfo: FunkitActiveCheckoutItem['selectedSourceAssetInfo'] | undefined;
11
+ }): InputAmountComponentContext;
@@ -4,16 +4,6 @@ import type { ErrorNotification } from '../../components/FunNotification/FunNoti
4
4
  */
5
5
  export declare const useMeldLimits: (isEnabled?: boolean) => import("@tanstack/react-query").UseQueryResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>;
6
6
  export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
7
- data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
8
- error: Error;
9
- isError: true;
10
- isPending: false;
11
- isLoading: false;
12
- isLoadingError: false;
13
- isRefetchError: true;
14
- isSuccess: false;
15
- isPlaceholderData: false;
16
- status: "error";
17
7
  dataUpdatedAt: number;
18
8
  errorUpdatedAt: number;
19
9
  failureCount: number;
@@ -29,17 +19,17 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
29
19
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
30
20
  fetchStatus: import("@tanstack/react-query").FetchStatus;
31
21
  promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
32
- } | {
33
- data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
34
- error: null;
35
- isError: false;
22
+ error: Error;
23
+ isError: true;
36
24
  isPending: false;
37
25
  isLoading: false;
38
- isLoadingError: false;
26
+ isLoadingError: true;
39
27
  isRefetchError: false;
40
- isSuccess: true;
28
+ isSuccess: false;
41
29
  isPlaceholderData: false;
42
- status: "success";
30
+ status: 'error';
31
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
32
+ } | {
43
33
  dataUpdatedAt: number;
44
34
  errorUpdatedAt: number;
45
35
  failureCount: number;
@@ -55,17 +45,17 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
55
45
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
56
46
  fetchStatus: import("@tanstack/react-query").FetchStatus;
57
47
  promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
58
- } | {
59
- data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
60
- error: Error;
61
- isError: true;
62
- isPending: false;
63
- isLoading: false;
64
- isLoadingError: true;
48
+ error: null;
49
+ isError: false;
50
+ isPending: true;
51
+ isLoading: true;
52
+ isLoadingError: false;
65
53
  isRefetchError: false;
66
54
  isSuccess: false;
67
55
  isPlaceholderData: false;
68
- status: "error";
56
+ status: 'pending';
57
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
58
+ } | {
69
59
  dataUpdatedAt: number;
70
60
  errorUpdatedAt: number;
71
61
  failureCount: number;
@@ -74,6 +64,7 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
74
64
  isFetched: boolean;
75
65
  isFetchedAfterMount: boolean;
76
66
  isFetching: boolean;
67
+ isLoading: boolean;
77
68
  isInitialLoading: boolean;
78
69
  isPaused: boolean;
79
70
  isRefetching: boolean;
@@ -81,17 +72,16 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
81
72
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
82
73
  fetchStatus: import("@tanstack/react-query").FetchStatus;
83
74
  promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
84
- } | {
85
- data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
86
75
  error: null;
87
76
  isError: false;
88
77
  isPending: true;
89
- isLoading: true;
90
78
  isLoadingError: false;
91
79
  isRefetchError: false;
92
80
  isSuccess: false;
93
81
  isPlaceholderData: false;
94
- status: "pending";
82
+ status: 'pending';
83
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
84
+ } | {
95
85
  dataUpdatedAt: number;
96
86
  errorUpdatedAt: number;
97
87
  failureCount: number;
@@ -107,16 +97,17 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
107
97
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
108
98
  fetchStatus: import("@tanstack/react-query").FetchStatus;
109
99
  promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
110
- } | {
111
- data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
112
- error: null;
113
100
  isError: false;
114
- isPending: true;
101
+ error: null;
102
+ isPending: false;
103
+ isLoading: false;
115
104
  isLoadingError: false;
116
105
  isRefetchError: false;
117
- isSuccess: false;
118
- isPlaceholderData: false;
119
- status: "pending";
106
+ isSuccess: true;
107
+ isPlaceholderData: true;
108
+ status: 'success';
109
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
110
+ } | {
120
111
  dataUpdatedAt: number;
121
112
  errorUpdatedAt: number;
122
113
  failureCount: number;
@@ -125,7 +116,6 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
125
116
  isFetched: boolean;
126
117
  isFetchedAfterMount: boolean;
127
118
  isFetching: boolean;
128
- isLoading: boolean;
129
119
  isInitialLoading: boolean;
130
120
  isPaused: boolean;
131
121
  isRefetching: boolean;
@@ -133,17 +123,17 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
133
123
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
134
124
  fetchStatus: import("@tanstack/react-query").FetchStatus;
135
125
  promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
136
- } | {
137
- data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
138
- isError: false;
139
- error: null;
126
+ error: Error;
127
+ isError: true;
140
128
  isPending: false;
141
129
  isLoading: false;
142
130
  isLoadingError: false;
143
- isRefetchError: false;
144
- isSuccess: true;
145
- isPlaceholderData: true;
146
- status: "success";
131
+ isRefetchError: true;
132
+ isSuccess: false;
133
+ isPlaceholderData: false;
134
+ status: 'error';
135
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
136
+ } | {
147
137
  dataUpdatedAt: number;
148
138
  errorUpdatedAt: number;
149
139
  failureCount: number;
@@ -159,6 +149,16 @@ export declare const useMeldLimit: (fiatCurrency: string | undefined) => {
159
149
  refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined, Error>>;
160
150
  fetchStatus: import("@tanstack/react-query").FetchStatus;
161
151
  promise: Promise<import("@funkit/api-base").MeldFiatCurrencyLimit[] | undefined>;
152
+ error: null;
153
+ isError: false;
154
+ isPending: false;
155
+ isLoading: false;
156
+ isLoadingError: false;
157
+ isRefetchError: false;
158
+ isSuccess: true;
159
+ isPlaceholderData: false;
160
+ status: 'success';
161
+ data: import("@funkit/api-base").MeldFiatCurrencyLimit | undefined;
162
162
  };
163
163
  type MeldLimitError = Pick<ErrorNotification, 'code' | 'messageKey'> & {
164
164
  issue: string;
@@ -16,22 +16,6 @@ export declare const PLACEHOLDER_WITHDRAWAL_WALLET_ADDRESS = "0x0000000000000000
16
16
  * Simplified quoting logic used for withdrawal UI only.
17
17
  */
18
18
  export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, selectedChainId, selectedTokenAddress, selectedTokenSymbol, config, isEnabled, }: CheckoutQuoteParams): {
19
- quoteEnabled: boolean;
20
- withdrawalWalletAddress: `0x${string}`;
21
- data: {
22
- baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
23
- checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
24
- finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
25
- } | null;
26
- error: Error;
27
- isError: true;
28
- isPending: false;
29
- isLoading: false;
30
- isLoadingError: false;
31
- isRefetchError: true;
32
- isSuccess: false;
33
- isPlaceholderData: false;
34
- status: "error";
35
19
  dataUpdatedAt: number;
36
20
  errorUpdatedAt: number;
37
21
  failureCount: number;
@@ -55,23 +39,19 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
55
39
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
56
40
  finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
57
41
  } | null>;
58
- } | {
59
- quoteEnabled: boolean;
60
- withdrawalWalletAddress: `0x${string}`;
61
- data: {
62
- baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
63
- checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
64
- finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
65
- } | null;
66
- error: null;
67
- isError: false;
42
+ data: undefined;
43
+ error: Error;
44
+ isError: true;
68
45
  isPending: false;
69
46
  isLoading: false;
70
- isLoadingError: false;
47
+ isLoadingError: true;
71
48
  isRefetchError: false;
72
- isSuccess: true;
49
+ isSuccess: false;
73
50
  isPlaceholderData: false;
74
- status: "success";
51
+ status: 'error';
52
+ quoteEnabled: boolean;
53
+ withdrawalWalletAddress: `0x${string}`;
54
+ } | {
75
55
  dataUpdatedAt: number;
76
56
  errorUpdatedAt: number;
77
57
  failureCount: number;
@@ -95,19 +75,19 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
95
75
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
96
76
  finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
97
77
  } | null>;
98
- } | {
99
- quoteEnabled: boolean;
100
- withdrawalWalletAddress: `0x${string}`;
101
78
  data: undefined;
102
- error: Error;
103
- isError: true;
104
- isPending: false;
105
- isLoading: false;
106
- isLoadingError: true;
79
+ error: null;
80
+ isError: false;
81
+ isPending: true;
82
+ isLoading: true;
83
+ isLoadingError: false;
107
84
  isRefetchError: false;
108
85
  isSuccess: false;
109
86
  isPlaceholderData: false;
110
- status: "error";
87
+ status: 'pending';
88
+ quoteEnabled: boolean;
89
+ withdrawalWalletAddress: `0x${string}`;
90
+ } | {
111
91
  dataUpdatedAt: number;
112
92
  errorUpdatedAt: number;
113
93
  failureCount: number;
@@ -116,6 +96,7 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
116
96
  isFetched: boolean;
117
97
  isFetchedAfterMount: boolean;
118
98
  isFetching: boolean;
99
+ isLoading: boolean;
119
100
  isInitialLoading: boolean;
120
101
  isPaused: boolean;
121
102
  isRefetching: boolean;
@@ -131,19 +112,18 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
131
112
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
132
113
  finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
133
114
  } | null>;
134
- } | {
135
- quoteEnabled: boolean;
136
- withdrawalWalletAddress: `0x${string}`;
137
115
  data: undefined;
138
116
  error: null;
139
117
  isError: false;
140
118
  isPending: true;
141
- isLoading: true;
142
119
  isLoadingError: false;
143
120
  isRefetchError: false;
144
121
  isSuccess: false;
145
122
  isPlaceholderData: false;
146
- status: "pending";
123
+ status: 'pending';
124
+ quoteEnabled: boolean;
125
+ withdrawalWalletAddress: `0x${string}`;
126
+ } | {
147
127
  dataUpdatedAt: number;
148
128
  errorUpdatedAt: number;
149
129
  failureCount: number;
@@ -167,18 +147,23 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
167
147
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
168
148
  finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
169
149
  } | null>;
170
- } | {
171
- quoteEnabled: boolean;
172
- withdrawalWalletAddress: `0x${string}`;
173
- data: undefined;
174
- error: null;
150
+ data: {
151
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
152
+ checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
153
+ finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
154
+ } | null;
175
155
  isError: false;
176
- isPending: true;
156
+ error: null;
157
+ isPending: false;
158
+ isLoading: false;
177
159
  isLoadingError: false;
178
160
  isRefetchError: false;
179
- isSuccess: false;
180
- isPlaceholderData: false;
181
- status: "pending";
161
+ isSuccess: true;
162
+ isPlaceholderData: true;
163
+ status: 'success';
164
+ quoteEnabled: boolean;
165
+ withdrawalWalletAddress: `0x${string}`;
166
+ } | {
182
167
  dataUpdatedAt: number;
183
168
  errorUpdatedAt: number;
184
169
  failureCount: number;
@@ -187,7 +172,6 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
187
172
  isFetched: boolean;
188
173
  isFetchedAfterMount: boolean;
189
174
  isFetching: boolean;
190
- isLoading: boolean;
191
175
  isInitialLoading: boolean;
192
176
  isPaused: boolean;
193
177
  isRefetching: boolean;
@@ -203,23 +187,23 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
203
187
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
204
188
  finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
205
189
  } | null>;
206
- } | {
207
- quoteEnabled: boolean;
208
- withdrawalWalletAddress: `0x${string}`;
209
190
  data: {
210
191
  baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
211
192
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
212
193
  finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
213
194
  } | null;
214
- isError: false;
215
- error: null;
195
+ error: Error;
196
+ isError: true;
216
197
  isPending: false;
217
198
  isLoading: false;
218
199
  isLoadingError: false;
219
- isRefetchError: false;
220
- isSuccess: true;
221
- isPlaceholderData: true;
222
- status: "success";
200
+ isRefetchError: true;
201
+ isSuccess: false;
202
+ isPlaceholderData: false;
203
+ status: 'error';
204
+ quoteEnabled: boolean;
205
+ withdrawalWalletAddress: `0x${string}`;
206
+ } | {
223
207
  dataUpdatedAt: number;
224
208
  errorUpdatedAt: number;
225
209
  failureCount: number;
@@ -243,5 +227,21 @@ export declare function useWithdrawalQuote({ analyticsStep, recipientAddress, se
243
227
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
244
228
  finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
245
229
  } | null>;
230
+ data: {
231
+ baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
232
+ checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
233
+ finalEstimation: import("../../domains/quote").FunkitCheckoutQuoteResult;
234
+ } | null;
235
+ error: null;
236
+ isError: false;
237
+ isPending: false;
238
+ isLoading: false;
239
+ isLoadingError: false;
240
+ isRefetchError: false;
241
+ isSuccess: true;
242
+ isPlaceholderData: false;
243
+ status: 'success';
244
+ quoteEnabled: boolean;
245
+ withdrawalWalletAddress: `0x${string}`;
246
246
  };
247
247
  export {};
@@ -11,7 +11,7 @@ export declare const eventCounts: Partial<Record<CheckoutModalEvent | WithdrawMo
11
11
  export declare const useTrack: () => {
12
12
  logEvent: (eventNameOrTrackEventData: CheckoutModalEvent | TrackEventData) => void;
13
13
  logEventV2: <T extends AnalyticsEvent>(event: T, buildMetadata: () => AnalyticsEventPayload<T>) => void;
14
- logMeasuredEvent: (trackEventData: Omit<TrackEventData, "value">) => void;
14
+ logMeasuredEvent: (trackEventData: Omit<TrackEventData, 'value'>) => void;
15
15
  startMeasuredEvent: (eventName: CheckoutModalEvent | WithdrawModalEvent) => void;
16
16
  updateUserAsync: (userInfo: FunkitUserInfo & {
17
17
  l2Address?: string;
@@ -1,12 +1,12 @@
1
1
  export declare function useCheckoutQuoteNotification(): {
2
2
  quoteNotification: {
3
- readonly messageType: "error";
3
+ readonly messageType: 'error';
4
4
  readonly quoteMessage: import("react").ReactNode;
5
5
  } | {
6
- readonly messageType: "step";
6
+ readonly messageType: 'step';
7
7
  readonly quoteMessage: string;
8
8
  } | {
9
- readonly messageType: "none";
9
+ readonly messageType: 'none';
10
10
  readonly quoteMessage: undefined;
11
11
  };
12
12
  clearCheckoutQuoteMessages: () => void;
@@ -1,6 +1,6 @@
1
1
  import { type ConvertBalances } from '../domains/convert/balances';
2
2
  import type { ConvertRecipientAddresses, ConvertResolvedAsset, GetConvertBalances } from '../domains/convert/types';
3
- export declare const BALANCES_QUERY_KEY: readonly ["convert", "balances"];
3
+ export declare const BALANCES_QUERY_KEY: readonly ['convert', 'balances'];
4
4
  interface UseConvertBalancesParams {
5
5
  /** Scopes reads to one checkout, whose `getBalances` may differ from the last. */
6
6
  checkoutId: string | undefined;
@@ -14,6 +14,8 @@ interface UseConvertBalancesParams {
14
14
  * each balance was read from (Polygon pUSD is read from the proxy).
15
15
  */
16
16
  recipientAddresses: ConvertRecipientAddresses | undefined;
17
+ /** Isolates independent balance readers and identifies their warning logs. */
18
+ queryScope?: string;
17
19
  refetchIntervalMs?: number;
18
20
  /** Off stops reads and polling; the last read stays readable. */
19
21
  enabled?: boolean;
@@ -46,5 +48,5 @@ export interface UseConvertBalancesResult {
46
48
  * change to either is a cache miss; a late response for an old key can't
47
49
  * replace a newer one.
48
50
  */
49
- export declare function useConvertBalances({ checkoutId, assets, getBalances, recipientAddresses, refetchIntervalMs, enabled, }: UseConvertBalancesParams): UseConvertBalancesResult;
51
+ export declare function useConvertBalances({ checkoutId, assets, getBalances, recipientAddresses, queryScope, refetchIntervalMs, enabled, }: UseConvertBalancesParams): UseConvertBalancesResult;
50
52
  export {};
@@ -1,7 +1,7 @@
1
1
  import { type ConvertQuote } from '../domains/convert/quote';
2
2
  import type { ConvertResolvedAsset } from '../domains/convert/types';
3
3
  export declare const CONVERT_QUOTE_REFRESH_MS = 30000;
4
- export declare const CONVERT_QUOTE_QUERY_KEY: readonly ["convert", "quote"];
4
+ export declare const CONVERT_QUOTE_QUERY_KEY: readonly ['convert', 'quote'];
5
5
  interface UseConvertQuoteParams {
6
6
  /**
7
7
  * Scopes quotes to one checkout, like withdrawal's, so a reopened checkout