@funkit/connect 12.0.0 → 12.2.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 (197) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/clients/{chunk-3U55HYGJ.js → chunk-CE42WHAA.js} +1 -0
  3. package/dist/clients/{chunk-3DHSLLCU.js → chunk-DNVDK7JQ.js} +18 -14
  4. package/dist/clients/{chunk-UPZNKPYU.js → chunk-RI3XDJDQ.js} +1 -1
  5. package/dist/clients/fanatics.css +1 -1
  6. package/dist/clients/fanatics.js +2 -2
  7. package/dist/clients/internal/nado/withdrawalCallback.js +2 -2
  8. package/dist/clients/internal/nado/withdrawalForm.css +24 -14
  9. package/dist/clients/internal/nado/withdrawalForm.js +4 -2
  10. package/dist/clients/internal/nado/withdrawalStatus.js +1 -1
  11. package/dist/clients/lighter.css +24 -14
  12. package/dist/clients/lighter.js +131 -52
  13. package/dist/clients/mallard.js +1 -1
  14. package/dist/clients/nado.js +3 -3
  15. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  16. package/dist/components/FunPayments/FunPaymentMethods.d.ts +0 -5
  17. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -2
  18. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +4 -2
  19. package/dist/components/IconCluster/IconCluster.css.d.ts +3 -0
  20. package/dist/components/IconCluster/IconCluster.d.ts +20 -0
  21. package/dist/components/SupportedChainList/SupportedChainList.d.ts +12 -0
  22. package/dist/consts/funkit.d.ts +7 -0
  23. package/dist/domains/asset.d.ts +3 -2
  24. package/dist/domains/checkout.d.ts +6 -3
  25. package/dist/domains/checkoutRecipient.d.ts +21 -3
  26. package/dist/domains/quote.d.ts +7 -8
  27. package/dist/hooks/queries/useWithdrawalQuote.d.ts +7 -0
  28. package/dist/hooks/statsig/index.d.ts +1 -0
  29. package/dist/hooks/statsig/useExperimentV2.d.ts +8 -0
  30. package/dist/hooks/track/analytics/events.d.ts +53 -2
  31. package/dist/hooks/track/analytics/mappers.d.ts +4 -1
  32. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +16 -3
  33. package/dist/hooks/track/useTrack.d.ts +1 -1
  34. package/dist/hooks/track/user.d.ts +8 -0
  35. package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
  36. package/dist/hooks/useIsBlacklisted.d.ts +2 -2
  37. package/dist/hooks/usePaymentSources.d.ts +1 -1
  38. package/dist/index.css +24 -14
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +3975 -3473
  41. package/dist/interfaces/solanaWallet.d.ts +46 -0
  42. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  43. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +10 -0
  44. package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -1
  45. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +3 -1
  46. package/dist/modals/WithdrawalModal/useTrackWithdrawalEvents.d.ts +8 -1
  47. package/dist/modals/WithdrawalModal/useTrackWithdrawalQuoteEvents.d.ts +16 -0
  48. package/dist/providers/FunkitConfigContext.d.ts +1 -1
  49. package/dist/providers/FunkitProvider.d.ts +5 -1
  50. package/dist/providers/FunkitStatsigProvider.d.ts +2 -7
  51. package/dist/providers/FunkitStatsigWhnProvider.d.ts +17 -0
  52. package/dist/providers/GeneralWalletProvider.d.ts +9 -3
  53. package/dist/providers/SolanaWalletProvider.d.ts +28 -0
  54. package/dist/shadow-css.js +1 -1
  55. package/dist/utils/statsig/client.d.ts +4 -0
  56. package/dist/utils/userInfo.d.ts +22 -14
  57. package/dist/wagmi/hooks.d.ts +1 -1
  58. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +3 -3
  59. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +4 -4
  60. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +4 -4
  61. package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +3 -3
  62. package/dist/wallets/walletConnectors/bitverseWallet/bitverseWallet.js +3 -3
  63. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +3 -3
  64. package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +3 -3
  65. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +4 -4
  66. package/dist/wallets/walletConnectors/{chunk-RB66PKPA.js → chunk-5BUVYIXK.js} +1 -1
  67. package/dist/wallets/walletConnectors/{chunk-2DLDAZRH.js → chunk-5HROYRLG.js} +1 -1
  68. package/dist/wallets/walletConnectors/{chunk-BU3ZAT5X.js → chunk-5OYXRCD3.js} +1 -1
  69. package/dist/wallets/walletConnectors/{chunk-RPV27V2Y.js → chunk-6GL5FMX2.js} +1 -1
  70. package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-6IDCOP4M.js} +4 -4
  71. package/dist/wallets/walletConnectors/{chunk-PJ7Y57EH.js → chunk-C67K4EPH.js} +1 -1
  72. package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-CPSQUBEH.js} +2 -2
  73. package/dist/wallets/walletConnectors/{chunk-4DCO3TGL.js → chunk-CRPC246U.js} +1 -1
  74. package/dist/wallets/walletConnectors/{chunk-VH3THHJY.js → chunk-CVZLZKCI.js} +1 -1
  75. package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-CY6WKDYM.js} +4 -4
  76. package/dist/wallets/walletConnectors/{chunk-HBQK5RD5.js → chunk-DEM6SAFP.js} +1 -1
  77. package/dist/wallets/walletConnectors/{chunk-52QXXLDS.js → chunk-E3B632TR.js} +1 -1
  78. package/dist/wallets/walletConnectors/{chunk-76S7R2ND.js → chunk-E4DXU4KM.js} +1 -1
  79. package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-E5HZSZSQ.js} +2 -2
  80. package/dist/wallets/walletConnectors/{chunk-RCY66YHF.js → chunk-ECY7XA5D.js} +1 -1
  81. package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-ESR4UZ4B.js} +2 -2
  82. package/dist/wallets/walletConnectors/{chunk-2CX7LX4J.js → chunk-EWQ5UND7.js} +1 -1
  83. package/dist/wallets/walletConnectors/{chunk-RICTB3FA.js → chunk-F2BYFAHW.js} +1 -1
  84. package/dist/wallets/walletConnectors/{chunk-FW3WZETT.js → chunk-G6DC4MOM.js} +1 -1
  85. package/dist/wallets/walletConnectors/{chunk-IGKXZBTA.js → chunk-HQ6KPS3Q.js} +1 -1
  86. package/dist/wallets/walletConnectors/{chunk-NTMBEOR2.js → chunk-HWZX2YM7.js} +1 -1
  87. package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-JCUTBJUW.js} +4 -4
  88. package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-JTX3KUQM.js} +4 -4
  89. package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-KGALBNAA.js} +4 -4
  90. package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-KHD6RR2N.js} +4 -4
  91. package/dist/wallets/walletConnectors/{chunk-QY53O7WG.js → chunk-KNU2N67F.js} +1 -1
  92. package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-KSRWGZSC.js} +4 -4
  93. package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-KXE5IEKX.js} +2 -2
  94. package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-L6SKCBWH.js} +2 -2
  95. package/dist/wallets/walletConnectors/{chunk-N4IJLYFY.js → chunk-M2B47F67.js} +1 -1
  96. package/dist/wallets/walletConnectors/{chunk-MQM45ADF.js → chunk-NB2KTNZO.js} +1 -1
  97. package/dist/wallets/walletConnectors/{chunk-OLZ7626J.js → chunk-NCR2NZIF.js} +1 -1
  98. package/dist/wallets/walletConnectors/{chunk-NSK6A7TI.js → chunk-NQGUGDFD.js} +1 -1
  99. package/dist/wallets/walletConnectors/{chunk-QG6ZHI7B.js → chunk-OCHXL6A3.js} +1 -1
  100. package/dist/wallets/walletConnectors/{chunk-G2PHTVL6.js → chunk-OZKFQTZI.js} +1 -1
  101. package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-PJVY2BH3.js} +4 -4
  102. package/dist/wallets/walletConnectors/{chunk-JN5I3DNC.js → chunk-PNSXGILR.js} +1 -1
  103. package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-PY4BOX22.js} +2 -2
  104. package/dist/wallets/walletConnectors/{chunk-OQB55QXP.js → chunk-RH2IU2VF.js} +1 -1
  105. package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-SHRHVMF5.js} +2 -2
  106. package/dist/wallets/walletConnectors/{chunk-T6LGKC3F.js → chunk-SYG4ZC7T.js} +1 -1
  107. package/dist/wallets/walletConnectors/{chunk-WNAGGFMG.js → chunk-UBMJDZCX.js} +1 -1
  108. package/dist/wallets/walletConnectors/{chunk-YWOVAU6O.js → chunk-UIM2V3F5.js} +1 -1
  109. package/dist/wallets/walletConnectors/{chunk-DS73TZ6O.js → chunk-UO2EFEFN.js} +1 -1
  110. package/dist/wallets/walletConnectors/{chunk-WVT6BBJH.js → chunk-VBIE3QQU.js} +1 -1
  111. package/dist/wallets/walletConnectors/{chunk-7HRFUZFX.js → chunk-VL42SDC4.js} +1 -1
  112. package/dist/wallets/walletConnectors/{chunk-Z3PPW6NC.js → chunk-VLX3A27M.js} +1 -1
  113. package/dist/wallets/walletConnectors/{chunk-7ZYCBDQ4.js → chunk-W6N3GFKS.js} +1 -1
  114. package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-WK73MMGI.js} +4 -4
  115. package/dist/wallets/walletConnectors/{chunk-3FCWJRI4.js → chunk-XRPWBNDY.js} +1 -1
  116. package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-YT2VZIZ4.js} +2 -2
  117. package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-YWW64ORH.js} +2 -2
  118. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +4 -4
  119. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +4 -4
  120. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
  121. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +4 -4
  122. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +3 -3
  123. package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +3 -3
  124. package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +3 -3
  125. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +4 -4
  126. package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +3 -3
  127. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +4 -4
  128. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +4 -4
  129. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +3 -3
  130. package/dist/wallets/walletConnectors/index.js +79 -79
  131. package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +3 -3
  132. package/dist/wallets/walletConnectors/kresusWallet/kresusWallet.js +3 -3
  133. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +3 -3
  134. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +4 -4
  135. package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +3 -3
  136. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +3 -3
  137. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +4 -4
  138. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +3 -3
  139. package/dist/wallets/walletConnectors/oneInchWallet/oneInchWallet.js +3 -3
  140. package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +3 -3
  141. package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +3 -3
  142. package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +3 -3
  143. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +4 -4
  144. package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +3 -3
  145. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +4 -4
  146. package/dist/wallets/walletConnectors/safeWallet/safeWallet.js +2 -2
  147. package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +3 -3
  148. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +4 -4
  149. package/dist/wallets/walletConnectors/subWallet/subWallet.js +4 -4
  150. package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +3 -3
  151. package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +3 -3
  152. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +4 -4
  153. package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +3 -3
  154. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +4 -4
  155. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +3 -3
  156. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +3 -3
  157. package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +3 -3
  158. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +3 -3
  159. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +4 -4
  160. package/package.json +5 -5
  161. package/dist/clients/chunk-37Q6DUR7.js +0 -296
  162. package/dist/clients/chunk-3J2GOB5X.js +0 -190
  163. package/dist/clients/chunk-BCNE3ZKM.js +0 -190
  164. package/dist/clients/chunk-BWJC2WD7.js +0 -4899
  165. package/dist/clients/chunk-EQA5U4V6.js +0 -98
  166. package/dist/clients/chunk-EYMFEWQL.js +0 -30
  167. package/dist/clients/chunk-FPOGADLJ.js +0 -4899
  168. package/dist/clients/chunk-HB7S3NDI.js +0 -15
  169. package/dist/clients/chunk-HDFCM5UL.js +0 -15
  170. package/dist/clients/chunk-NEKHTWTT.js +0 -331
  171. package/dist/clients/chunk-PA7WW6VC.js +0 -296
  172. package/dist/clients/chunk-SKDFSMAO.js +0 -30
  173. package/dist/clients/chunk-TI2NG2Z6.js +0 -30
  174. package/dist/clients/chunk-TZFXFVDW.js +0 -296
  175. package/dist/clients/chunk-VXX2XK5J.js +0 -190
  176. package/dist/clients/chunk-WXSFLUPZ.js +0 -4891
  177. package/dist/clients/chunk-XSRAZSYG.js +0 -15
  178. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +0 -70
  179. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +0 -98
  180. package/dist/wallets/walletConnectors/chunk-GUQM4QSL.js +0 -66
  181. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +0 -92
  182. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +0 -93
  183. package/dist/wallets/walletConnectors/chunk-IULPZP2Q.js +0 -69
  184. package/dist/wallets/walletConnectors/chunk-KCRO2AGO.js +0 -106
  185. package/dist/wallets/walletConnectors/chunk-OEEGYENV.js +0 -87
  186. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +0 -95
  187. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +0 -94
  188. package/dist/wallets/walletConnectors/chunk-SWFF3TWJ.js +0 -100
  189. package/dist/wallets/walletConnectors/chunk-TKB2OY6G.js +0 -99
  190. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +0 -110
  191. package/dist/wallets/walletConnectors/chunk-WAHGI5L7.js +0 -96
  192. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +0 -103
  193. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +0 -96
  194. package/dist/wallets/walletConnectors/chunk-YO2K4MBH.js +0 -218
  195. package/dist/wallets/walletConnectors/chunk-YQFGVZGR.js +0 -92
  196. package/dist/clients/{chunk-JVR4CX6N.js → chunk-ECGTOMZQ.js} +3 -3
  197. /package/dist/clients/{chunk-RHOSJED2.js → chunk-RQALGV5U.js} +0 -0
@@ -1,8 +1,9 @@
1
1
  import React, { type ReactNode } from 'react';
2
2
  import type { CheckoutFees } from '../../domains/fees';
3
3
  import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
4
- import { type TransactionBreakdownStep } from '../../hooks/track/analytics/events';
5
4
  import { type FunTooltipProps } from '../FunTooltip/FunTooltip';
5
+ import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
6
+ import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
6
7
  export declare const NO_DATA_VALUE = "-";
7
8
  interface PaymentFeesSummaryProps {
8
9
  isLoading: boolean;
@@ -13,7 +14,7 @@ interface PaymentFeesSummaryProps {
13
14
  valuesNotAvailable?: boolean;
14
15
  isWithdrawal: boolean;
15
16
  extraSourceChainGasUsd?: number;
16
- step: TransactionBreakdownStep;
17
+ step: FunCheckoutStep | WithdrawalModalStep;
17
18
  }
18
19
  export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, isWithdrawal, valuesNotAvailable, extraSourceChainGasUsd, step, }: PaymentFeesSummaryProps): React.JSX.Element;
19
20
  export interface FeeItem {
@@ -1,14 +1,16 @@
1
1
  import type { PaymentMethodInfo } from '../../domains/paymentMethods';
2
2
  import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
- import type { TransactionBreakdownClickedProperties, TransactionBreakdownStep } from '../../hooks/track/analytics/events';
3
+ import type { TransactionBreakdownClickedProperties } from '../../hooks/track/analytics/events';
4
4
  import type { TrackEventData } from '../../hooks/track/useTrack';
5
5
  import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
6
6
  import type { FeeItem } from './PaymentFeesSummary';
7
+ import type { FunCheckoutStep } from '../../modals/CheckoutModal/FunCheckoutStep';
8
+ import type { WithdrawalModalStep } from '../../modals/WithdrawalModal/types';
7
9
  export declare function buildTransactionBreakdownClickedProperties({ connectorId, extraSourceChainGasUsd, paymentMethodInfo, quote, step, }: {
8
10
  connectorId: string | undefined;
9
11
  extraSourceChainGasUsd: number;
10
12
  paymentMethodInfo: PaymentMethodInfo;
11
13
  quote: FunkitCheckoutQuoteResult | null | undefined;
12
- step: TransactionBreakdownStep;
14
+ step: FunCheckoutStep | WithdrawalModalStep;
13
15
  }): TransactionBreakdownClickedProperties;
14
16
  export declare const trackEventFromPaymentFeesSummary: (checkoutItem: FunkitActiveCheckoutItem, feeItems: FeeItem[], isWithdrawal: boolean) => TrackEventData;
@@ -0,0 +1,3 @@
1
+ /** Positive spaces icons apart; negative overlaps them. */
2
+ export declare const iconSpacingVar: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
+ export declare const iconCluster: string;
@@ -0,0 +1,20 @@
1
+ import React, { type ReactNode } from 'react';
2
+ export declare const CLUSTER_ICON_SIZE = 16;
3
+ interface IconClusterProps {
4
+ children: ReactNode;
5
+ /** Icons only — a trailing {@link MoreIconsIndicator} must not be counted. */
6
+ iconCount: number;
7
+ iconSize?: number;
8
+ style?: React.CSSProperties;
9
+ }
10
+ /**
11
+ * Row of round icons used as the trailing `valueIcon` on payment-method rows.
12
+ * Children render as-is, so a caller that truncates its list can close the
13
+ * cluster with {@link MoreIconsIndicator}.
14
+ */
15
+ export declare function IconCluster({ children, iconCount, iconSize, style, }: IconClusterProps): React.JSX.Element;
16
+ /** Trailing "+" badge standing in for the icons that didn't fit. */
17
+ export declare function MoreIconsIndicator({ size, }: {
18
+ size?: number;
19
+ }): React.JSX.Element;
20
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface SupportedChainListProps {
3
+ chainIdList: string[];
4
+ iconSize?: number;
5
+ style?: React.CSSProperties;
6
+ }
7
+ /**
8
+ * Cluster of round chain icons, used as the trailing `valueIcon` on
9
+ * payment-method rows to convey supported chains at a glance.
10
+ */
11
+ export declare function SupportedChainList({ chainIdList, iconSize, style, }: SupportedChainListProps): React.JSX.Element;
12
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { SolanaAddress } from '@funkit/api-base';
1
2
  import type { Address } from 'viem';
2
3
  /**
3
4
  * NATIVE_TOKEN is a special address in Fun to represent different native currency tokens on different chains
@@ -27,6 +28,12 @@ export interface FunkitUserInfoBase {
27
28
  isConnected: boolean;
28
29
  }
29
30
  export interface FunkitUserInfo extends FunkitUserInfoBase {
31
+ /** The EVM address, or `'0x'` when the session has none. */
30
32
  address: Address;
33
+ /**
34
+ * The Solana address, when a `solanaWallet` was supplied. This is the wallet
35
+ * a Solana checkout pays from.
36
+ */
37
+ solanaAddress: SolanaAddress | undefined;
31
38
  }
32
39
  export declare const PLACEHOLDER_FUNKIT_USER_INFO: FunkitUserInfo;
@@ -1,6 +1,7 @@
1
1
  import type { TFunction } from 'i18next';
2
2
  import type { Address } from 'viem';
3
3
  import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
4
+ import type { CheckoutPayer } from '../providers/GeneralWalletProvider';
4
5
  import type { AssetHoldingsItem } from '../utils/assets';
5
6
  import { PaymentMethod } from '../domains/paymentMethods';
6
7
  /**
@@ -14,7 +15,7 @@ export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig:
14
15
  export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
15
16
  interface AssetUsableToPayParms {
16
17
  config: FunkitCheckoutConfig;
17
- payerAddress: string;
18
+ payerWallets: CheckoutPayer;
18
19
  paymentMethod: PaymentMethod;
19
20
  targetChainId: string;
20
21
  targetTokenAddress: string;
@@ -26,7 +27,7 @@ interface AssetUsableToPayParms {
26
27
  isLighterDynamicRoutingEnabled: boolean;
27
28
  t: TFunction;
28
29
  }
29
- export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minValueThreshold, isLighterDynamicRoutingEnabled, t, }: AssetUsableToPayParms) => {
30
+ export declare const isAssetUsableToPayForCheckout: ({ config, payerWallets, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minValueThreshold, isLighterDynamicRoutingEnabled, t, }: AssetUsableToPayParms) => {
30
31
  isUsable: boolean;
31
32
  reason: string;
32
33
  minUsdWithFees?: number;
@@ -1,8 +1,11 @@
1
1
  import type { FunAddress } from '@funkit/api-base';
2
2
  import { CheckoutRefundState, CheckoutState } from '@funkit/api-base';
3
- import type { GeneralWalletContextProps } from '../providers/GeneralWalletProvider';
4
- /** Web's entry to the shared screen: resolves the kill switch and logger. */
5
- export declare const hasRisk: (apiKey: string, walletAddress: GeneralWalletContextProps["walletAddress"], customRecipient?: FunAddress,
3
+ import type { CheckoutPayer } from '../providers/GeneralWalletProvider';
4
+ /**
5
+ * Web's entry to the shared screen: resolves the kill switch and logger.
6
+ * Every connected wallet is screened, not just the one paying.
7
+ */
8
+ export declare const hasRisk: (apiKey: string, payerWallets: CheckoutPayer, customRecipient?: FunAddress,
6
9
  /** Internal decimal chain ids: the wallet pays on the source chain, the recipient receives on the target chain. */
7
10
  chainIds?: {
8
11
  sourceChainId?: string;
@@ -1,6 +1,24 @@
1
+ import type { FunAddress, SolanaAddress } from '@funkit/api-base';
1
2
  import type { Address } from 'viem';
3
+ import type { CheckoutPayer } from '../providers/GeneralWalletProvider';
2
4
  import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
3
- export declare function getCheckoutRecipient({ walletAddress, config, }: {
4
- walletAddress: string;
5
+ export declare function getPayerAddressForChain({ chainId, payerWallets, }: {
6
+ chainId: string;
7
+ payerWallets: CheckoutPayer;
8
+ }): Address | SolanaAddress | null;
9
+ interface CheckoutRecipientParams {
5
10
  config: FunkitCheckoutConfig;
6
- }): Address;
11
+ payerWallets: CheckoutPayer;
12
+ /**
13
+ * Throw rather than return null, for flows that cannot proceed without a
14
+ * recipient — a quote or transfer with nowhere to send funds.
15
+ */
16
+ isRequired?: boolean;
17
+ }
18
+ /** Throws when no connected wallet can receive on the target chain. */
19
+ export declare function getCheckoutRecipient(params: CheckoutRecipientParams & {
20
+ isRequired: true;
21
+ }): FunAddress;
22
+ /** Null when no connected wallet can receive on the target chain. */
23
+ export declare function getCheckoutRecipient(params: CheckoutRecipientParams): FunAddress | null;
24
+ export {};
@@ -6,6 +6,7 @@ import type { BluvoBrokerageQuote } from '../hooks/useBluvo';
6
6
  import type { FunkitDirectExecutionInfo } from '../hooks/useCheckoutDirectExecution';
7
7
  import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
8
8
  import type { LoginType } from '../providers/GeneralWalletProvider';
9
+ import type { CheckoutPayer } from '../providers/GeneralWalletProvider';
9
10
  import { type BrokerageDetails, type CheckoutFees } from './fees';
10
11
  import { type PaymentMethodInfo } from './paymentMethods';
11
12
  import type { QuoteBuilder } from './quoteMode';
@@ -13,13 +14,12 @@ export interface FunkitCheckoutQuoteResult extends Omit<ApiFunkitCheckoutQuoteRe
13
14
  finalSpreadUsd: string;
14
15
  finalFeesBreakdown: CheckoutFees;
15
16
  }
16
- export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, userId: string, walletAddress: Address, apiKey: string, wagmiConfig: Config, directExecutionInfo: FunkitDirectExecutionInfo, senderAddress?: Address, isWithdrawal?: boolean, quoteBuilder?: QuoteBuilder,
17
+ export declare function getCheckoutBaseQuote(checkoutItem: FunkitActiveCheckoutItem, payerWallets: CheckoutPayer, wagmiConfig: Config, directExecutionInfo: FunkitDirectExecutionInfo, senderAddress?: Address, isWithdrawal?: boolean, quoteBuilder?: QuoteBuilder,
17
18
  /**
18
- * User-driven preference for the source-side authorization step. Forwarded
19
- * to the direct-execution branch (`getDirectExecutionQuote` →
20
- * `getCheckoutQuoteV2`) where Relay's `usePermit` flag actually flows. The
21
- * legacy `getApiCheckoutQuote` branch ignores this. On the Aave native
22
- * fast path it drives `shouldUsePermitForSupply` instead of flowing here.
19
+ * User-driven preference for the source-side authorization step, forwarded
20
+ * to `getDirectExecutionQuote` where Relay's `usePermit` flag actually
21
+ * flows. On the Aave native fast path it drives `shouldUsePermitForSupply`
22
+ * instead of flowing here.
23
23
  */
24
24
  usePermit?: boolean): Promise<CheckoutQuoteResponse>;
25
25
  /**
@@ -46,7 +46,6 @@ export interface CheckedAssetAmount {
46
46
  export declare function checkAssetAmount(checkoutItem: FunkitActiveCheckoutItem, finalEstimation: FunkitCheckoutQuoteResult, wagmiConfig: Config, walletAddress: Address, brokerage?: BrokerageDetails): Promise<CheckedAssetAmount>;
47
47
  export interface CheckoutQuoteParams {
48
48
  checkoutItem: FunkitActiveCheckoutItem;
49
- userId: string;
50
49
  walletAddress: Address;
51
50
  apiKey: string;
52
51
  newPaymentMethodInfo: PaymentMethodInfo;
@@ -59,7 +58,7 @@ export interface CheckoutQuoteParams {
59
58
  senderAddress?: Address;
60
59
  isWithdrawal?: boolean;
61
60
  }
62
- export declare function getQuoteAndEstimation({ checkoutItem, userId, walletAddress, apiKey, newPaymentMethodInfo, wagmiConfig, loginType, directExecutionInfo, senderAddress, isWithdrawal, }: CheckoutQuoteParams): Promise<{
61
+ export declare function getQuoteAndEstimation({ checkoutItem, walletAddress, apiKey, newPaymentMethodInfo, wagmiConfig, loginType, directExecutionInfo, senderAddress, isWithdrawal, }: CheckoutQuoteParams): Promise<{
63
62
  baseQuote: CheckoutQuoteResponse;
64
63
  checkedAssetAmount: CheckedAssetAmount;
65
64
  finalEstimation: FunkitCheckoutQuoteResult;
@@ -8,11 +8,13 @@ interface CheckoutQuoteParams {
8
8
  /** Extra gate ANDed into the internal enabled conditions (default true). */
9
9
  isEnabled?: boolean;
10
10
  }
11
+ export declare const PLACEHOLDER_WITHDRAWAL_WALLET_ADDRESS = "0x0000000000000000000000000000000000000000";
11
12
  /**
12
13
  * Simplified quoting logic used for withdrawal UI only.
13
14
  */
14
15
  export declare function useWithdrawalQuote({ recipientAddress, selectedChainId, selectedTokenAddress, selectedTokenSymbol, config, isEnabled, }: CheckoutQuoteParams): {
15
16
  quoteEnabled: boolean;
17
+ withdrawalWalletAddress: `0x${string}`;
16
18
  data: {
17
19
  baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
18
20
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
@@ -52,6 +54,7 @@ export declare function useWithdrawalQuote({ recipientAddress, selectedChainId,
52
54
  } | null>;
53
55
  } | {
54
56
  quoteEnabled: boolean;
57
+ withdrawalWalletAddress: `0x${string}`;
55
58
  data: {
56
59
  baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
57
60
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
@@ -91,6 +94,7 @@ export declare function useWithdrawalQuote({ recipientAddress, selectedChainId,
91
94
  } | null>;
92
95
  } | {
93
96
  quoteEnabled: boolean;
97
+ withdrawalWalletAddress: `0x${string}`;
94
98
  data: undefined;
95
99
  error: Error;
96
100
  isError: true;
@@ -126,6 +130,7 @@ export declare function useWithdrawalQuote({ recipientAddress, selectedChainId,
126
130
  } | null>;
127
131
  } | {
128
132
  quoteEnabled: boolean;
133
+ withdrawalWalletAddress: `0x${string}`;
129
134
  data: undefined;
130
135
  error: null;
131
136
  isError: false;
@@ -161,6 +166,7 @@ export declare function useWithdrawalQuote({ recipientAddress, selectedChainId,
161
166
  } | null>;
162
167
  } | {
163
168
  quoteEnabled: boolean;
169
+ withdrawalWalletAddress: `0x${string}`;
164
170
  data: undefined;
165
171
  error: null;
166
172
  isError: false;
@@ -196,6 +202,7 @@ export declare function useWithdrawalQuote({ recipientAddress, selectedChainId,
196
202
  } | null>;
197
203
  } | {
198
204
  quoteEnabled: boolean;
205
+ withdrawalWalletAddress: `0x${string}`;
199
206
  data: {
200
207
  baseQuote: import("@funkit/utils").CheckoutQuoteResponse;
201
208
  checkedAssetAmount: import("../../domains/quote").CheckedAssetAmount;
@@ -1,3 +1,4 @@
1
1
  export { useDynamicConfig } from './useDynamicConfig';
2
2
  export { useExperiment } from './useExperiment';
3
+ export { useExperimentV2 } from './useExperimentV2';
3
4
  export { useFeatureGate } from './useFeatureGate';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Reads an experiment parameter from the secondary Fun WHN Statsig client.
3
+ *
4
+ * The secondary client is not mounted in a StatsigProvider, so this hook
5
+ * subscribes to `values_updated` directly. That keeps the returned value in
6
+ * sync after client initialization and user updates.
7
+ */
8
+ export declare function useExperimentV2<T>(experimentName: string, parameterName: string, fallback: T): T;
@@ -27,10 +27,13 @@ export declare enum AnalyticsEvent {
27
27
  DEPOSIT_TRANSACTION_BREAKDOWN_CLICKED = "fc_deposit_transaction_breakdown_clicked",
28
28
  DEPOSIT_TRANSACTION_SUBMITTED = "fc_deposit_transaction_submitted",
29
29
  MODAL_OPENED = "fc_modal_opened",
30
+ STEP_VIEWED = "fc_step_viewed",
30
31
  TAB_SWITCHED = "fc_tab_switched",
31
32
  WITHDRAWAL_AMOUNT_CONFIRMED = "fc_withdrawal_amount_confirmed",
32
33
  WITHDRAWAL_FAILED = "fc_withdrawal_failed",
33
34
  WITHDRAWAL_METHOD_SELECTED = "fc_withdrawal_method_selected",
35
+ WITHDRAWAL_QUOTE_DISPLAYED = "fc_withdrawal_quote_displayed",
36
+ WITHDRAWAL_QUOTE_CONFIRMED = "fc_withdrawal_quote_confirmed",
34
37
  WITHDRAWAL_SUCCEEDED = "fc_withdrawal_succeeded",
35
38
  WITHDRAWAL_TRANSACTION_BREAKDOWN_CLICKED = "fc_withdrawal_transaction_breakdown_clicked",
36
39
  WITHDRAWAL_TRANSFER_INTERACTED = "fc_withdrawal_transfer_interacted",
@@ -39,6 +42,7 @@ export declare enum AnalyticsEvent {
39
42
  export type ConnectionStatus = 'new' | 'existing';
40
43
  export type AnalyticsFlow = 'deposit' | 'withdraw';
41
44
  export type AnalyticsPaymentRail = 'bluvo' | 'swapped' | 'meld' | 'bridge';
45
+ export type AnalyticsStep = Lowercase<FunCheckoutStep | WithdrawalModalStep>;
42
46
  /** Envelope carried by every analytics-v2 event. */
43
47
  export type CommonProperties = {
44
48
  /**
@@ -59,6 +63,8 @@ export type CommonProperties = {
59
63
  /** Human-readable connector name for the authenticated session wallet. */
60
64
  connector_name: string | null;
61
65
  flow: AnalyticsFlow;
66
+ /** Fixed per package — distinguishes this SDK's events from connect-rn's. */
67
+ sdk_type: 'web';
62
68
  user_id: string | null;
63
69
  };
64
70
  export type PaymentMethodProperties = {
@@ -147,10 +153,9 @@ export type VisibleQuoteFeeProperties = {
147
153
  swap_impact_pct: number | null;
148
154
  wallet_gas_cost_usd: number | null;
149
155
  };
150
- export type TransactionBreakdownStep = FunCheckoutStep | WithdrawalModalStep;
151
156
  /** Payload emitted when the user manually expands a transaction breakdown. */
152
157
  export type TransactionBreakdownClickedProperties = PaymentMethodProperties & VisibleQuoteFeeProperties & {
153
- step: Lowercase<TransactionBreakdownStep>;
158
+ step: AnalyticsStep;
154
159
  };
155
160
  /** Route fields shared by quote-bearing and later lifecycle events. */
156
161
  export type DepositRouteContextProperties = DepositAssetContextProperties & {
@@ -232,6 +237,24 @@ export type TabSwitchedProperties = {
232
237
  switch_count: number;
233
238
  tab: PaymentMethodType;
234
239
  };
240
+ export type StepViewedProperties = {
241
+ flow: AnalyticsFlow;
242
+ /**
243
+ * Whether the user initiated a back navigation gesture. Note that we support
244
+ * back navigation by step name, which falls back to pushing the step instead
245
+ * if it's not already in history. Thus, `step_index` may still be incremented
246
+ * even if `is_back_navigation` is true.
247
+ */
248
+ is_back_navigation: boolean;
249
+ prev_step: AnalyticsStep | null;
250
+ step: AnalyticsStep;
251
+ /**
252
+ * 1-based index of the step being entered. When navigating backward, we attempt
253
+ * to preserve the original index of the step when it was first entered. When
254
+ * navigating forward, it is incremented by 1.
255
+ */
256
+ step_index: number;
257
+ };
235
258
  export type DepositTransferInteractionAction = 'address_copied' | 'chain_changed' | 'token_changed';
236
259
  export type DepositTransferInteractedProperties = {
237
260
  action: DepositTransferInteractionAction;
@@ -274,6 +297,31 @@ export type WithdrawalTransferInteractedProperties = PaymentMethodProperties & {
274
297
  target_asset_ticker: string | null;
275
298
  target_chain: string | null;
276
299
  };
300
+ /** Route/quote fields shared by the withdrawal quote-lifecycle events. */
301
+ export type WithdrawalQuoteSnapshotProperties = PaymentMethodProperties & VisibleQuoteFeeProperties & {
302
+ destination_address: string | null;
303
+ /** Estimated fulfillment time in milliseconds. */
304
+ est_fulfillment_time_ms: number | null;
305
+ execution_type: DirectExecutionType | null;
306
+ sender_address: string | null;
307
+ source_amount: string;
308
+ source_chain: string;
309
+ source_asset: string;
310
+ source_asset_ticker: string | null;
311
+ target_amount: string | null;
312
+ target_chain: string;
313
+ target_asset: string;
314
+ target_asset_ticker: string | null;
315
+ trade_type: QuoteMode;
316
+ };
317
+ /** Quote snapshot plus quote-lifecycle metadata. */
318
+ export type WithdrawalQuoteContextProperties = WithdrawalQuoteSnapshotProperties & {
319
+ num_quote_refreshes: number;
320
+ };
321
+ /** Payload specific to {@link AnalyticsEvent.WITHDRAWAL_QUOTE_DISPLAYED}. */
322
+ export type WithdrawalQuoteDisplayedProperties = WithdrawalQuoteContextProperties;
323
+ /** Payload specific to {@link AnalyticsEvent.WITHDRAWAL_QUOTE_CONFIRMED}. */
324
+ export type WithdrawalQuoteConfirmedProperties = WithdrawalQuoteContextProperties;
277
325
  export type AnalyticsEventProperties = {
278
326
  [AnalyticsEvent.ACCOUNT_CONNECT_COMPLETED]: AccountConnectProperties;
279
327
  [AnalyticsEvent.ACCOUNT_CONNECT_FAILED]: AccountConnectFailedProperties;
@@ -291,10 +339,13 @@ export type AnalyticsEventProperties = {
291
339
  [AnalyticsEvent.DEPOSIT_TRANSACTION_BREAKDOWN_CLICKED]: TransactionBreakdownClickedProperties;
292
340
  [AnalyticsEvent.DEPOSIT_TRANSACTION_SUBMITTED]: TransactionSubmittedProperties;
293
341
  [AnalyticsEvent.MODAL_OPENED]: ModalOpenedProperties;
342
+ [AnalyticsEvent.STEP_VIEWED]: StepViewedProperties;
294
343
  [AnalyticsEvent.TAB_SWITCHED]: TabSwitchedProperties;
295
344
  [AnalyticsEvent.WITHDRAWAL_AMOUNT_CONFIRMED]: WithdrawalAmountConfirmedProperties;
296
345
  [AnalyticsEvent.WITHDRAWAL_FAILED]: ExecutionFailedProperties;
297
346
  [AnalyticsEvent.WITHDRAWAL_METHOD_SELECTED]: WithdrawalMethodSelectedProperties;
347
+ [AnalyticsEvent.WITHDRAWAL_QUOTE_DISPLAYED]: WithdrawalQuoteDisplayedProperties;
348
+ [AnalyticsEvent.WITHDRAWAL_QUOTE_CONFIRMED]: WithdrawalQuoteConfirmedProperties;
298
349
  [AnalyticsEvent.WITHDRAWAL_SUCCEEDED]: ExecutionSucceededProperties;
299
350
  [AnalyticsEvent.WITHDRAWAL_TRANSACTION_BREAKDOWN_CLICKED]: TransactionBreakdownClickedProperties;
300
351
  [AnalyticsEvent.WITHDRAWAL_TRANSFER_INTERACTED]: WithdrawalTransferInteractedProperties;
@@ -1,8 +1,11 @@
1
1
  import { FormOfPaymentType, type MeldServiceProvider } from '@funkit/api-base';
2
2
  import { PaymentMethod, type PaymentMethodInfo } from '../../../domains/paymentMethods';
3
- import type { PaymentMethodProperties } from './events';
3
+ import type { AnalyticsStep, PaymentMethodProperties } from './events';
4
+ import type { FunCheckoutStep } from '../../../modals/CheckoutModal/FunCheckoutStep';
5
+ import type { WithdrawalModalStep } from '../../../modals/WithdrawalModal/types';
4
6
  /** Round analytics amounts before Statsig stringifies event metadata. */
5
7
  export declare function formatAnalyticsAmount(amount: number | null): string | null;
8
+ export declare function formatAnalyticsStep(step: FunCheckoutStep | WithdrawalModalStep): AnalyticsStep;
6
9
  export declare function getHistoricalSourceAddress(sourceOfFund: string | null | undefined): string | null;
7
10
  /** Selected checkout provider, such as a Bluvo exchange or wallet connector. */
8
11
  export declare function resolveProvider(args: {
@@ -1,7 +1,8 @@
1
- import type { FormOfPaymentType } from '@funkit/api-base';
1
+ import type { DirectExecutionType, FormOfPaymentType } from '@funkit/api-base';
2
+ import type { FunkitCheckoutQuoteResult } from '../../../domains/quote';
2
3
  import { PaymentMethod } from '../../../domains/paymentMethods';
3
4
  import { type AnalyticsPaymentRail, type ConnectionStatus, type WithdrawalAmountSelectionType, type WithdrawalTransferInteractionAction } from './events';
4
- type AssetDescriptorArgs = {
5
+ export type AssetDescriptorArgs = {
5
6
  chainId: string;
6
7
  tokenAddress: string;
7
8
  ticker: string | null;
@@ -43,10 +44,22 @@ export type TrackWithdrawalTransferInteractedArgs = {
43
44
  chain: string | null;
44
45
  };
45
46
  };
47
+ export type TrackWithdrawalQuoteSnapshotArgs = {
48
+ destinationAddress: string | null;
49
+ executionType: DirectExecutionType | null;
50
+ numQuoteRefreshes: number;
51
+ quote: FunkitCheckoutQuoteResult;
52
+ source: AssetDescriptorArgs;
53
+ sourceAddress: string | null;
54
+ sourceAssetAmount: string;
55
+ target: AssetDescriptorArgs;
56
+ targetAssetAmount: string | null;
57
+ };
46
58
  /** Gathers withdrawal context and emits withdrawal-family analytics events. */
47
59
  export declare function useWithdrawalAnalytics(): {
48
60
  trackWithdrawalAmountConfirmed: (args: TrackWithdrawalAmountConfirmedArgs) => void;
49
61
  trackWithdrawalMethodSelected: (args: TrackWithdrawalMethodSelectedArgs) => void;
62
+ trackWithdrawalQuoteConfirmed: (args: TrackWithdrawalQuoteSnapshotArgs) => void;
63
+ trackWithdrawalQuoteDisplayed: (args: TrackWithdrawalQuoteSnapshotArgs) => void;
50
64
  trackWithdrawalTransferInteracted: (args: TrackWithdrawalTransferInteractedArgs) => void;
51
65
  };
52
- export {};
@@ -15,5 +15,5 @@ export declare const useTrack: () => {
15
15
  startMeasuredEvent: (eventName: CheckoutModalEvent | WithdrawModalEvent) => void;
16
16
  updateUserAsync: (userInfo: FunkitUserInfo & {
17
17
  l2Address?: string;
18
- }, apiKey: string) => Promise<[import("@statsig/react-bindings").StatsigUpdateDetails, import("@statsig/react-bindings").StatsigUpdateDetails | undefined]>;
18
+ }, apiKey: string) => Promise<import("@statsig/react-bindings").StatsigUpdateDetails>;
19
19
  };
@@ -0,0 +1,8 @@
1
+ import type { StatsigUser } from '@statsig/react-bindings';
2
+ export declare function buildStatsigUser({ apiKey, l2Address, userId, userName, userType, }: {
3
+ apiKey: string;
4
+ l2Address?: string;
5
+ userId: string;
6
+ userName: string;
7
+ userType: string;
8
+ }): StatsigUser;
@@ -1,4 +1,5 @@
1
1
  import { DirectExecutionType } from '@funkit/api-base';
2
+ import type { FunAddress } from '@funkit/api-base';
2
3
  import type { RelayTxHash, RelayVmType } from '@funkit/fun-relay';
3
4
  import type { CheckoutQuoteResponse } from '@funkit/utils';
4
5
  import type { Address, Hex } from 'viem';
@@ -13,7 +14,7 @@ interface DirectExecutionQuoteRequestParamsBase {
13
14
  isExactIn?: boolean;
14
15
  toChainId: string;
15
16
  toTokenAddress: Address;
16
- recipientAddress: Address;
17
+ recipientAddress: FunAddress;
17
18
  senderAddress?: Address;
18
19
  /**
19
20
  * Explicit permit preference for the source-side authorization step.
@@ -1,6 +1,6 @@
1
1
  import type { FunAddress } from '@funkit/api-base';
2
- import type { GeneralWalletContextProps } from '../providers/GeneralWalletProvider';
3
- export declare const useIsBlacklisted: (walletAddress: GeneralWalletContextProps["walletAddress"], customRecipient?: FunAddress) => {
2
+ import type { CheckoutPayer } from '../providers/GeneralWalletProvider';
3
+ export declare const useIsBlacklisted: (payerWallets: CheckoutPayer, customRecipient?: FunAddress) => {
4
4
  isWalletBlacklisted: boolean;
5
5
  isCustomRecipientBlacklisted: boolean;
6
6
  };
@@ -15,7 +15,7 @@ export type UnavailablePaymentSource = {
15
15
  };
16
16
  export declare const usePaymentSources: (currentPaymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string) => {
17
17
  isFallback: boolean;
18
- preferred: (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[] | PaymentMethod[];
18
+ preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
19
19
  moreSources: PaymentMethod[];
20
20
  unavailable: UnavailablePaymentSource[];
21
21
  hasUsableBalance: boolean;