@funkit/connect 12.20.0 → 12.21.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 (93) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
  3. package/dist/clients/{chunk-VFKEUHZT.js → chunk-6XJV626L.js} +1 -1
  4. package/dist/clients/chunk-B67ESBGC.js +108 -0
  5. package/dist/clients/{chunk-TLFE74BL.js → chunk-DAMICUCH.js} +3 -3
  6. package/dist/clients/{chunk-2BBOZQLZ.js → chunk-FIJU6HZM.js} +1 -1
  7. package/dist/clients/{chunk-TFIJZTGQ.js → chunk-MTKOZB6U.js} +1 -1
  8. package/dist/clients/{chunk-5NYKSTGH.js → chunk-S4SMCBQ4.js} +1 -1
  9. package/dist/clients/{chunk-Y7ONHWCW.js → chunk-T4Q43DNC.js} +2 -2
  10. package/dist/clients/{chunk-R5VAX6YA.js → chunk-YSQX5Z3F.js} +41 -25
  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.js +5 -5
  18. package/dist/clients/lighterRh.js +1 -1
  19. package/dist/clients/mallard.js +3 -3
  20. package/dist/clients/nado.js +4 -4
  21. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  22. package/dist/clients/polymarket/index.js +3 -3
  23. package/dist/clients/polymarket/polymarket.d.ts +22 -22
  24. package/dist/clients/polymarket/polymarket.js +2 -2
  25. package/dist/components/Avatar/emojiAvatarForAddress.d.ts +35 -35
  26. package/dist/components/Box/Box.d.ts +63 -63
  27. package/dist/components/ConnectButton/ConnectButton.d.ts +16 -15
  28. package/dist/components/Dialog/Dialog.d.ts +12 -4
  29. package/dist/components/Dialog/hooks.d.ts +3 -3
  30. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +2 -2
  31. package/dist/components/FunBottomBar/FunBottomBar.d.ts +3 -1
  32. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  33. package/dist/components/FunInput/FunInput.d.ts +1 -1
  34. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  35. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  36. package/dist/components/HighPriceImpactAlert/HighPriceImpactAlert.d.ts +7 -0
  37. package/dist/components/Icons/GreenRoundCheckmark.d.ts +2 -1
  38. package/dist/components/Icons/StatusIcons.css.d.ts +2 -2
  39. package/dist/components/Icons/StatusIcons.d.ts +2 -2
  40. package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
  41. package/dist/components/ModalSelection/ModalSelection.d.ts +4 -4
  42. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +5 -2
  43. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +2 -0
  44. package/dist/consts/checkout.d.ts +8 -8
  45. package/dist/consts/polymarket.d.ts +2 -2
  46. package/dist/consts/quote.d.ts +25 -15
  47. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  48. package/dist/css/sprinkles.css.d.ts +78 -78
  49. package/dist/domains/bridge.d.ts +1 -1
  50. package/dist/domains/convert/assets.d.ts +6 -0
  51. package/dist/domains/convert/screen.d.ts +4 -0
  52. package/dist/domains/priceImpact.d.ts +14 -0
  53. package/dist/hooks/queries/useMeldLimits.d.ts +45 -45
  54. package/dist/hooks/queries/useWithdrawalQuote.d.ts +62 -62
  55. package/dist/hooks/track/useTrack.d.ts +1 -1
  56. package/dist/hooks/useCheckoutQuoteNotification.d.ts +3 -3
  57. package/dist/hooks/useConvertBalances.d.ts +1 -1
  58. package/dist/hooks/useConvertQuote.d.ts +1 -1
  59. package/dist/hooks/useDynamicRoutes.d.ts +1 -1
  60. package/dist/hooks/useFrogAccount.d.ts +77 -77
  61. package/dist/hooks/useIsomorphicEffect.d.ts +2 -2
  62. package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
  63. package/dist/hooks/usePaymentSources.d.ts +1 -1
  64. package/dist/hooks/usePolymarketAccountBalances.d.ts +1 -1
  65. package/dist/index.d.ts +2 -0
  66. package/dist/index.js +1437 -1157
  67. package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
  68. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +6 -4
  69. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +13 -2
  70. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +6 -1
  71. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +6 -1
  72. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
  73. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -1
  74. package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +1 -1
  75. package/dist/providers/FunkitCheckoutContext/types.d.ts +3 -0
  76. package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
  77. package/dist/providers/GeneralWalletProvider.d.ts +21 -21
  78. package/dist/providers/ModalSizeContext.d.ts +4 -4
  79. package/dist/themes/baseTheme.d.ts +1 -1
  80. package/dist/themes/darkTheme.d.ts +6 -4
  81. package/dist/themes/lightTheme.d.ts +6 -4
  82. package/dist/utils/checkout.d.ts +1 -1
  83. package/dist/utils/customer.d.ts +96 -96
  84. package/dist/utils/datadogBrowserLogsTransport.d.ts +11 -5
  85. package/dist/utils/datadogPageExit.d.ts +5 -0
  86. package/dist/utils/funError.d.ts +26 -0
  87. package/dist/utils/funLogger.d.ts +2 -1
  88. package/dist/utils/shakeElement.d.ts +7 -0
  89. package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
  90. package/dist/wallets/walletConnectors/index.js +34 -34
  91. package/package.json +9 -9
  92. package/dist/clients/chunk-GTPMJGCF.js +0 -52
  93. package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
@@ -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[];
@@ -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;
@@ -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 { FeeBreakdownV2 } from '@funkit/api-base';
2
+ /**
3
+ * The quote's expected loss in percent, when it exceeds `thresholdPercent`;
4
+ * otherwise undefined.
5
+ *
6
+ * - Sums the rows checkout shows, price impact (swap impact plus app fee) and
7
+ * max slippage, counting a missing field as 0 as they do. `totalImpact` also
8
+ * counts up to 1.25% that the backend moves into the displayed exchange
9
+ * rate, so it can read higher than the rows.
10
+ * - Network cost is its own row and stays out, so a small deposit isn't
11
+ * flagged for gas.
12
+ * - Rounds to the two decimals the warning shows, so it never reads "5.00%".
13
+ */
14
+ export declare function getHighPriceImpactPercent(feeBreakdown: Partial<Pick<FeeBreakdownV2, 'swapImpact' | 'appFeePercent' | 'maxSlippage'>> | undefined, thresholdPercent: number): number | undefined;
@@ -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;
@@ -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
@@ -1,4 +1,4 @@
1
1
  import type { IndexedDynamicRoutingConfig } from '@funkit/fun-relay';
2
2
  export declare const useDynamicRoutes: (_dynamicRoutingId?: string) => {
3
- findPath: IndexedDynamicRoutingConfig[string]["findPath"];
3
+ findPath: IndexedDynamicRoutingConfig[string]['findPath'];
4
4
  };