@funkit/connect 12.1.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 (140) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/clients/{chunk-3U55HYGJ.js → chunk-CE42WHAA.js} +1 -0
  3. package/dist/clients/{chunk-UPZNKPYU.js → chunk-RI3XDJDQ.js} +1 -1
  4. package/dist/clients/fanatics.js +1 -1
  5. package/dist/clients/internal/nado/withdrawalForm.css +13 -0
  6. package/dist/clients/internal/nado/withdrawalForm.js +3 -2
  7. package/dist/clients/internal/nado/withdrawalStatus.js +1 -1
  8. package/dist/clients/lighter.css +13 -0
  9. package/dist/clients/lighter.js +130 -51
  10. package/dist/clients/mallard.js +1 -1
  11. package/dist/clients/nado.js +1 -1
  12. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  13. package/dist/components/FunPayments/FunPaymentMethods.d.ts +0 -5
  14. package/dist/components/IconCluster/IconCluster.css.d.ts +3 -0
  15. package/dist/components/IconCluster/IconCluster.d.ts +20 -0
  16. package/dist/components/SupportedChainList/SupportedChainList.d.ts +12 -0
  17. package/dist/consts/funkit.d.ts +7 -0
  18. package/dist/domains/asset.d.ts +3 -2
  19. package/dist/domains/checkout.d.ts +6 -3
  20. package/dist/domains/checkoutRecipient.d.ts +21 -3
  21. package/dist/domains/quote.d.ts +7 -8
  22. package/dist/hooks/track/analytics/events.d.ts +2 -0
  23. package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
  24. package/dist/hooks/useIsBlacklisted.d.ts +2 -2
  25. package/dist/hooks/usePaymentSources.d.ts +1 -1
  26. package/dist/index.css +13 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +3183 -3005
  29. package/dist/interfaces/solanaWallet.d.ts +46 -0
  30. package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -1
  31. package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +3 -1
  32. package/dist/providers/FunkitProvider.d.ts +5 -1
  33. package/dist/providers/GeneralWalletProvider.d.ts +8 -3
  34. package/dist/providers/SolanaWalletProvider.d.ts +28 -0
  35. package/dist/shadow-css.js +1 -1
  36. package/dist/utils/userInfo.d.ts +22 -14
  37. package/dist/wagmi/hooks.d.ts +1 -1
  38. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +3 -3
  39. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +4 -4
  40. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +4 -4
  41. package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +3 -3
  42. package/dist/wallets/walletConnectors/bitverseWallet/bitverseWallet.js +3 -3
  43. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +3 -3
  44. package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +3 -3
  45. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +4 -4
  46. package/dist/wallets/walletConnectors/{chunk-RB66PKPA.js → chunk-5BUVYIXK.js} +1 -1
  47. package/dist/wallets/walletConnectors/{chunk-2DLDAZRH.js → chunk-5HROYRLG.js} +1 -1
  48. package/dist/wallets/walletConnectors/{chunk-BU3ZAT5X.js → chunk-5OYXRCD3.js} +1 -1
  49. package/dist/wallets/walletConnectors/{chunk-RPV27V2Y.js → chunk-6GL5FMX2.js} +1 -1
  50. package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-6IDCOP4M.js} +4 -4
  51. package/dist/wallets/walletConnectors/{chunk-PJ7Y57EH.js → chunk-C67K4EPH.js} +1 -1
  52. package/dist/wallets/walletConnectors/{chunk-STVVP43G.js → chunk-CPSQUBEH.js} +4 -4
  53. package/dist/wallets/walletConnectors/{chunk-4DCO3TGL.js → chunk-CRPC246U.js} +1 -1
  54. package/dist/wallets/walletConnectors/{chunk-VH3THHJY.js → chunk-CVZLZKCI.js} +1 -1
  55. package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-CY6WKDYM.js} +4 -4
  56. package/dist/wallets/walletConnectors/{chunk-HBQK5RD5.js → chunk-DEM6SAFP.js} +1 -1
  57. package/dist/wallets/walletConnectors/{chunk-52QXXLDS.js → chunk-E3B632TR.js} +1 -1
  58. package/dist/wallets/walletConnectors/{chunk-76S7R2ND.js → chunk-E4DXU4KM.js} +1 -1
  59. package/dist/wallets/walletConnectors/{chunk-VTM6EECM.js → chunk-E5HZSZSQ.js} +4 -4
  60. package/dist/wallets/walletConnectors/{chunk-RCY66YHF.js → chunk-ECY7XA5D.js} +1 -1
  61. package/dist/wallets/walletConnectors/{chunk-RB3HR4R2.js → chunk-ESR4UZ4B.js} +4 -4
  62. package/dist/wallets/walletConnectors/{chunk-2CX7LX4J.js → chunk-EWQ5UND7.js} +1 -1
  63. package/dist/wallets/walletConnectors/{chunk-RICTB3FA.js → chunk-F2BYFAHW.js} +1 -1
  64. package/dist/wallets/walletConnectors/{chunk-FW3WZETT.js → chunk-G6DC4MOM.js} +1 -1
  65. package/dist/wallets/walletConnectors/{chunk-IGKXZBTA.js → chunk-HQ6KPS3Q.js} +1 -1
  66. package/dist/wallets/walletConnectors/{chunk-NTMBEOR2.js → chunk-HWZX2YM7.js} +1 -1
  67. package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-JCUTBJUW.js} +4 -4
  68. package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-JTX3KUQM.js} +4 -4
  69. package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-KGALBNAA.js} +4 -4
  70. package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-KHD6RR2N.js} +4 -4
  71. package/dist/wallets/walletConnectors/{chunk-QY53O7WG.js → chunk-KNU2N67F.js} +1 -1
  72. package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-KSRWGZSC.js} +4 -4
  73. package/dist/wallets/walletConnectors/{chunk-HTHAK6XB.js → chunk-KXE5IEKX.js} +4 -4
  74. package/dist/wallets/walletConnectors/{chunk-F5XEEVG6.js → chunk-L6SKCBWH.js} +4 -4
  75. package/dist/wallets/walletConnectors/{chunk-N4IJLYFY.js → chunk-M2B47F67.js} +1 -1
  76. package/dist/wallets/walletConnectors/{chunk-MQM45ADF.js → chunk-NB2KTNZO.js} +1 -1
  77. package/dist/wallets/walletConnectors/{chunk-OLZ7626J.js → chunk-NCR2NZIF.js} +1 -1
  78. package/dist/wallets/walletConnectors/{chunk-NSK6A7TI.js → chunk-NQGUGDFD.js} +1 -1
  79. package/dist/wallets/walletConnectors/{chunk-QG6ZHI7B.js → chunk-OCHXL6A3.js} +1 -1
  80. package/dist/wallets/walletConnectors/{chunk-G2PHTVL6.js → chunk-OZKFQTZI.js} +1 -1
  81. package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-PJVY2BH3.js} +4 -4
  82. package/dist/wallets/walletConnectors/{chunk-JN5I3DNC.js → chunk-PNSXGILR.js} +1 -1
  83. package/dist/wallets/walletConnectors/{chunk-YEZM4CK4.js → chunk-PY4BOX22.js} +4 -4
  84. package/dist/wallets/walletConnectors/{chunk-OQB55QXP.js → chunk-RH2IU2VF.js} +1 -1
  85. package/dist/wallets/walletConnectors/{chunk-HNRB7KJU.js → chunk-SHRHVMF5.js} +4 -4
  86. package/dist/wallets/walletConnectors/{chunk-T6LGKC3F.js → chunk-SYG4ZC7T.js} +1 -1
  87. package/dist/wallets/walletConnectors/{chunk-WNAGGFMG.js → chunk-UBMJDZCX.js} +1 -1
  88. package/dist/wallets/walletConnectors/{chunk-YWOVAU6O.js → chunk-UIM2V3F5.js} +1 -1
  89. package/dist/wallets/walletConnectors/{chunk-DS73TZ6O.js → chunk-UO2EFEFN.js} +1 -1
  90. package/dist/wallets/walletConnectors/{chunk-WVT6BBJH.js → chunk-VBIE3QQU.js} +1 -1
  91. package/dist/wallets/walletConnectors/{chunk-7HRFUZFX.js → chunk-VL42SDC4.js} +1 -1
  92. package/dist/wallets/walletConnectors/{chunk-Z3PPW6NC.js → chunk-VLX3A27M.js} +1 -1
  93. package/dist/wallets/walletConnectors/{chunk-7ZYCBDQ4.js → chunk-W6N3GFKS.js} +1 -1
  94. package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-WK73MMGI.js} +4 -4
  95. package/dist/wallets/walletConnectors/{chunk-3FCWJRI4.js → chunk-XRPWBNDY.js} +1 -1
  96. package/dist/wallets/walletConnectors/{chunk-X6CGV36L.js → chunk-YT2VZIZ4.js} +4 -4
  97. package/dist/wallets/walletConnectors/{chunk-2VP2F6EK.js → chunk-YWW64ORH.js} +4 -4
  98. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +4 -4
  99. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +4 -4
  100. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
  101. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +4 -4
  102. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +3 -3
  103. package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +3 -3
  104. package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +3 -3
  105. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +4 -4
  106. package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +3 -3
  107. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +4 -4
  108. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +4 -4
  109. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +3 -3
  110. package/dist/wallets/walletConnectors/index.js +74 -74
  111. package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +3 -3
  112. package/dist/wallets/walletConnectors/kresusWallet/kresusWallet.js +3 -3
  113. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +3 -3
  114. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +4 -4
  115. package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +3 -3
  116. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +3 -3
  117. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +4 -4
  118. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +3 -3
  119. package/dist/wallets/walletConnectors/oneInchWallet/oneInchWallet.js +3 -3
  120. package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +3 -3
  121. package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +3 -3
  122. package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +3 -3
  123. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +4 -4
  124. package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +3 -3
  125. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +4 -4
  126. package/dist/wallets/walletConnectors/safeWallet/safeWallet.js +2 -2
  127. package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +3 -3
  128. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +4 -4
  129. package/dist/wallets/walletConnectors/subWallet/subWallet.js +4 -4
  130. package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +3 -3
  131. package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +3 -3
  132. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +4 -4
  133. package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +3 -3
  134. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +4 -4
  135. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +3 -3
  136. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +3 -3
  137. package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +3 -3
  138. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +3 -3
  139. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +4 -4
  140. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1c2e492: Add a `solanaWallet` prop to `FunkitProvider` for a host-connected Solana wallet; not yet wired to a deposit flow.
8
+ - 25ae016: Add a `solanaWalletOnly` prop to `FunkitProvider` so hosts without an EVM wallet stack don't need to supply a wagmi config.
9
+
10
+ ### Patch Changes
11
+
12
+ - 5ae3952: Payment method rows now show up to six chain icons, overlapping them only past four, matching the Figma design.
13
+ - 005d0ca: Resolve the checkout payer and recipient from their own chain.
14
+ - 29d063e: Show the perps deposit toggle while a Polymarket perps checkout loads, matching the header tabs.
15
+ - 6bce845: Tighten vertical spacing around the Polymarket perps transfer amount input.
16
+ - 2dd0720: Remove the unreachable legacy quote fallback from checkout quoting.
17
+ - 6048500: Tag analytics events with the SDK platform they originated from.
18
+ - 8cf0d10: Fix the cashier Withdraw button staying disabled for the initially selected receive chain until the user switched chains and back.
19
+ - Updated dependencies [005d0ca]
20
+ - Updated dependencies [005d0ca]
21
+ - Updated dependencies [005d0ca]
22
+ - Updated dependencies [91fd04a]
23
+ - Updated dependencies [ad4f69c]
24
+ - Updated dependencies [3e35fc3]
25
+ - Updated dependencies [e4b413a]
26
+ - Updated dependencies [1c2e492]
27
+ - Updated dependencies [df228c4]
28
+ - Updated dependencies [05a0fed]
29
+ - Updated dependencies [641d2a1]
30
+ - Updated dependencies [76848d7]
31
+ - Updated dependencies [2dd0720]
32
+ - Updated dependencies [a8cf4cd]
33
+ - @funkit/api-base@8.0.0
34
+ - @funkit/chains@2.3.0
35
+ - @funkit/connect-core@5.0.0
36
+ - @funkit/fun-relay@2.15.0
37
+
3
38
  ## 12.1.0
4
39
 
5
40
  ### Minor Changes
@@ -6,6 +6,7 @@ var FUN_BRAND_NAME = "Fun";
6
6
  var PLACEHOLDER_FUNKIT_USER_INFO = {
7
7
  id: "0x",
8
8
  address: "0x",
9
+ solanaAddress: void 0,
9
10
  name: "Guest",
10
11
  nameTruncated: "Guest",
11
12
  type: "unknown",
@@ -18,7 +18,7 @@ import {
18
18
  useWatchAsset,
19
19
  useWriteContract
20
20
  } from "wagmi";
21
- import { WagmiProvider } from "wagmi";
21
+ import { WagmiContext, WagmiProvider } from "wagmi";
22
22
  import { createConfig, createConnector, http } from "wagmi";
23
23
 
24
24
  export {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  FUN_BRAND_NAME
4
- } from "./chunk-3U55HYGJ.js";
4
+ } from "./chunk-CE42WHAA.js";
5
5
  import {
6
6
  AsyncImage,
7
7
  Box,
@@ -16810,6 +16810,19 @@
16810
16810
  border-top-width: 0;
16811
16811
  }
16812
16812
 
16813
+ /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MSB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkxID4gKiB7CiAgZmxleC1zaHJpbms6IDA7Cn0KLl8xaTN5aTZ5MSA-ICogKyAqIHsKICBtYXJnaW4tbGVmdDogdmFyKC0tXzFpM3lpNnkwKTsKfQ */
16814
+ [data-rk] ._1i3yi6y1 {
16815
+ display: flex;
16816
+ align-items: center;
16817
+ isolation: isolate;
16818
+ }
16819
+ [data-rk] ._1i3yi6y1 > * {
16820
+ flex-shrink: 0;
16821
+ }
16822
+ [data-rk] ._1i3yi6y1 > * + * {
16823
+ margin-left: var(--_1i3yi6y0);
16824
+ }
16825
+
16813
16826
  /* vanilla-extract-css-ns:src/components/FunCheckoutHistory/AddTokenToWalletButton.css.ts.vanilla.css?source=Ll8xc3R1dWtyMCB7CiAgYmFja2dyb3VuZDogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7CiAgYmFja2dyb3VuZDogY29sb3ItbWl4KGluIHNyZ2IsIHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpIDcwJSwgdHJhbnNwYXJlbnQpOwp9Ci5fMXN0dXVrcjA6aG92ZXIgewogIGJhY2tncm91bmQ6IHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpOwogIGJhY2tncm91bmQ6IGNvbG9yLW1peChpbiBzcmdiLCB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKSA5MCUsIHRyYW5zcGFyZW50KTsKfQ */
16814
16827
  [data-rk] ._1stuukr0 {
16815
16828
  background: var(--rk-colors-modalBackground);
@@ -4,7 +4,7 @@ import {
4
4
  } from "../../chunk-WCQ6HJ27.js";
5
5
  import {
6
6
  PLACEHOLDER_FUNKIT_USER_INFO
7
- } from "../../chunk-3U55HYGJ.js";
7
+ } from "../../chunk-CE42WHAA.js";
8
8
  import "../../chunk-6EU6CXNH.js";
9
9
  import {
10
10
  useFunkitConfig
@@ -13,7 +13,7 @@ import {
13
13
  useFunkitTranslation
14
14
  } from "../../chunk-A5JW3UI6.js";
15
15
  import "../../chunk-B7UU2ETA.js";
16
- import "../../chunk-UPZNKPYU.js";
16
+ import "../../chunk-RI3XDJDQ.js";
17
17
  import "../../chunk-27VBRE7W.js";
18
18
  import {
19
19
  logger
@@ -55,6 +55,7 @@ import React, {
55
55
  } from "react";
56
56
  var GeneralWalletContext = createContext({
57
57
  walletAddress: "",
58
+ payerWallets: { walletAddress: "", solanaWalletAddress: void 0 },
58
59
  isUserLoggedIn: false,
59
60
  loginType: "guest" /* Guest */,
60
61
  connectorId: void 0,
@@ -5,7 +5,7 @@ import {
5
5
  import "../../chunk-A5JW3UI6.js";
6
6
  import {
7
7
  useAccount
8
- } from "../../chunk-UPZNKPYU.js";
8
+ } from "../../chunk-RI3XDJDQ.js";
9
9
  import "../../chunk-27VBRE7W.js";
10
10
  import {
11
11
  logger
@@ -14701,6 +14701,19 @@
14701
14701
  }
14702
14702
  }
14703
14703
 
14704
+ /* vanilla-extract-css-ns:src/components/IconCluster/IconCluster.css.ts.vanilla.css?source=Ll8xaTN5aTZ5MSB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGlzb2xhdGlvbjogaXNvbGF0ZTsKfQouXzFpM3lpNnkxID4gKiB7CiAgZmxleC1zaHJpbms6IDA7Cn0KLl8xaTN5aTZ5MSA-ICogKyAqIHsKICBtYXJnaW4tbGVmdDogdmFyKC0tXzFpM3lpNnkwKTsKfQ */
14705
+ [data-rk] ._1i3yi6y1 {
14706
+ display: flex;
14707
+ align-items: center;
14708
+ isolation: isolate;
14709
+ }
14710
+ [data-rk] ._1i3yi6y1 > * {
14711
+ flex-shrink: 0;
14712
+ }
14713
+ [data-rk] ._1i3yi6y1 > * + * {
14714
+ margin-left: var(--_1i3yi6y0);
14715
+ }
14716
+
14704
14717
  /* vanilla-extract-css-ns:src/components/Icons/Icons.css.ts.vanilla.css?source=QGtleWZyYW1lcyBxZTIyMWEwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTsKICB9CiAgMTAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIHFlMjIxYTEgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgfQp9Ci5xZTIyMWEyIHsKICBhbmltYXRpb246IHFlMjIxYTAgMC44cyBsaW5lYXIgaW5maW5pdGU7Cn0KLnFlMjIxYTMgewogIGFuaW1hdGlvbjogcWUyMjFhMCAzMDAwbXMgbGluZWFyIGluZmluaXRlOwp9Ci5xZTIyMWE0IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgYm9yZGVyLXJhZGl1czogNTAlOwogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICBhbmltYXRpb246IHFlMjIxYTEgMC44cyBsaW5lYXIgaW5maW5pdGU7CiAgYXNwZWN0LXJhdGlvOiAxIC8gMTsKfQoucWUyMjFhNSB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIHRvcDogNTAlOwogIGxlZnQ6IDUwJTsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTsKICBib3JkZXItcmFkaXVzOiA1MCU7Cn0 */
14705
14718
  @keyframes qe221a0 {
14706
14719
  0% {
@@ -15,7 +15,7 @@ import {
15
15
  useFunkitTranslation
16
16
  } from "./chunk-A5JW3UI6.js";
17
17
  import "./chunk-OODIKHYE.js";
18
- import "./chunk-UPZNKPYU.js";
18
+ import "./chunk-RI3XDJDQ.js";
19
19
  import "./chunk-27VBRE7W.js";
20
20
  import {
21
21
  logger
@@ -26,25 +26,41 @@ import { LIGHTERXYZ_API_KEY } from "@funkit/api-base";
26
26
  import { SOLANA_MAINNET_CHAIN_ID } from "@funkit/chains";
27
27
  import { RELAY_LIGHTER_CHAIN_ID as RELAY_LIGHTER_CHAIN_ID2 } from "@funkit/fun-relay";
28
28
  import i18next from "i18next";
29
- import React5, { useMemo as useMemo3 } from "react";
29
+ import React7, { useMemo as useMemo3 } from "react";
30
30
  import { arbitrum, base, bsc, mainnet as mainnet2, optimism } from "viem/chains";
31
31
 
32
- // src/components/ChainIcon/ChainIcon.tsx
33
- import React2 from "react";
32
+ // src/components/Icons/EvmWallet.tsx
33
+ import React from "react";
34
+ var EvmWallet = ({ size = 20 }) => /* @__PURE__ */ React.createElement(
35
+ "svg",
36
+ {
37
+ width: size,
38
+ height: size,
39
+ viewBox: "0 0 20 20",
40
+ fill: "none",
41
+ xmlns: "http://www.w3.org/2000/svg"
42
+ },
43
+ /* @__PURE__ */ React.createElement(
44
+ "path",
45
+ {
46
+ d: "M13.3333 6.66628V3.75016C13.3333 3.05704 13.3333 2.71048 13.1873 2.49751C13.0598 2.31143 12.8622 2.18503 12.6398 2.14718C12.3852 2.10386 12.0706 2.24909 11.4413 2.53955L4.04918 5.95127C3.48792 6.21031 3.20729 6.33984 3.00175 6.54071C2.82005 6.71829 2.68135 6.93507 2.59625 7.17447C2.5 7.44527 2.5 7.75435 2.5 8.3725V12.4996M13.75 12.0829H13.7583M2.5 9.33295L2.5 14.8329C2.5 15.7664 2.5 16.2331 2.68166 16.5896C2.84144 16.9032 3.09641 17.1582 3.41002 17.318C3.76654 17.4996 4.23325 17.4996 5.16667 17.4996H14.8333C15.7668 17.4996 16.2335 17.4996 16.59 17.318C16.9036 17.1582 17.1586 16.9032 17.3183 16.5896C17.5 16.2331 17.5 15.7664 17.5 14.8329V9.33295C17.5 8.39953 17.5 7.93282 17.3183 7.5763C17.1586 7.26269 16.9036 7.00773 16.59 6.84794C16.2335 6.66628 15.7668 6.66628 14.8333 6.66628L5.16667 6.66628C4.23325 6.66628 3.76654 6.66628 3.41002 6.84793C3.09641 7.00772 2.84144 7.26269 2.68166 7.57629C2.5 7.93281 2.5 8.39952 2.5 9.33295ZM14.1667 12.0829C14.1667 12.3131 13.9801 12.4996 13.75 12.4996C13.5199 12.4996 13.3333 12.3131 13.3333 12.0829C13.3333 11.8528 13.5199 11.6663 13.75 11.6663C13.9801 11.6663 14.1667 11.8528 14.1667 12.0829Z",
47
+ stroke: "currentColor",
48
+ strokeWidth: "1.5",
49
+ strokeLinecap: "round",
50
+ strokeLinejoin: "round"
51
+ }
52
+ )
53
+ );
34
54
 
35
- // src/consts/assets.ts
36
- import {
37
- ASSET_LOGO_SRCS,
38
- FALLBACK_ASSET,
39
- getAssetLogoSrc
40
- } from "@funkit/fun-relay";
55
+ // src/components/SupportedChainList/SupportedChainList.tsx
56
+ import React5 from "react";
41
57
 
42
58
  // src/hooks/useChainMetadata.ts
43
59
  import { getChainIconUrl } from "@funkit/connect-core";
44
60
  import { useCallback } from "react";
45
61
 
46
62
  // src/providers/FunkitConnectChainContext.tsx
47
- import React, {
63
+ import React2, {
48
64
  createContext,
49
65
  useContext,
50
66
  useMemo
@@ -116,6 +132,16 @@ function useChainMetadata() {
116
132
  );
117
133
  }
118
134
 
135
+ // src/components/ChainIcon/ChainIcon.tsx
136
+ import React3 from "react";
137
+
138
+ // src/consts/assets.ts
139
+ import {
140
+ ASSET_LOGO_SRCS,
141
+ FALLBACK_ASSET,
142
+ getAssetLogoSrc
143
+ } from "@funkit/fun-relay";
144
+
119
145
  // src/components/ChainIcon/ChainIcon.tsx
120
146
  function ChainIcon({
121
147
  chainId,
@@ -129,7 +155,7 @@ function ChainIcon({
129
155
  if (!chainMetadata) {
130
156
  return null;
131
157
  }
132
- return /* @__PURE__ */ React2.createElement(
158
+ return /* @__PURE__ */ React3.createElement(
133
159
  AsyncImage,
134
160
  {
135
161
  alt: chainMetadata.name,
@@ -145,28 +171,92 @@ function ChainIcon({
145
171
  );
146
172
  }
147
173
 
148
- // src/components/Icons/EvmWallet.tsx
149
- import React3 from "react";
150
- var EvmWallet = ({ size = 20 }) => /* @__PURE__ */ React3.createElement(
151
- "svg",
152
- {
153
- width: size,
154
- height: size,
155
- viewBox: "0 0 20 20",
156
- fill: "none",
157
- xmlns: "http://www.w3.org/2000/svg"
158
- },
159
- /* @__PURE__ */ React3.createElement(
160
- "path",
174
+ // src/components/IconCluster/IconCluster.tsx
175
+ import { assignInlineVars } from "@vanilla-extract/dynamic";
176
+ import React4 from "react";
177
+
178
+ // src/components/IconCluster/IconCluster.css.ts
179
+ var iconCluster = "_1i3yi6y1";
180
+ var iconSpacingVar = "var(--_1i3yi6y0)";
181
+
182
+ // src/components/IconCluster/IconCluster.tsx
183
+ var CLUSTER_ICON_SIZE = 16;
184
+ var COMPRESS_ABOVE = 4;
185
+ var SPACED_GAP = 2;
186
+ var OVERLAP_RATIO = 3 / 16;
187
+ var PLUS_GLYPH_RATIO = 11 / 16;
188
+ function IconCluster({
189
+ children,
190
+ iconCount,
191
+ iconSize = CLUSTER_ICON_SIZE,
192
+ style
193
+ }) {
194
+ const spacing = iconCount > COMPRESS_ABOVE ? -Math.round(iconSize * OVERLAP_RATIO) : SPACED_GAP;
195
+ return /* @__PURE__ */ React4.createElement(
196
+ Box,
161
197
  {
162
- d: "M13.3333 6.66628V3.75016C13.3333 3.05704 13.3333 2.71048 13.1873 2.49751C13.0598 2.31143 12.8622 2.18503 12.6398 2.14718C12.3852 2.10386 12.0706 2.24909 11.4413 2.53955L4.04918 5.95127C3.48792 6.21031 3.20729 6.33984 3.00175 6.54071C2.82005 6.71829 2.68135 6.93507 2.59625 7.17447C2.5 7.44527 2.5 7.75435 2.5 8.3725V12.4996M13.75 12.0829H13.7583M2.5 9.33295L2.5 14.8329C2.5 15.7664 2.5 16.2331 2.68166 16.5896C2.84144 16.9032 3.09641 17.1582 3.41002 17.318C3.76654 17.4996 4.23325 17.4996 5.16667 17.4996H14.8333C15.7668 17.4996 16.2335 17.4996 16.59 17.318C16.9036 17.1582 17.1586 16.9032 17.3183 16.5896C17.5 16.2331 17.5 15.7664 17.5 14.8329V9.33295C17.5 8.39953 17.5 7.93282 17.3183 7.5763C17.1586 7.26269 16.9036 7.00773 16.59 6.84794C16.2335 6.66628 15.7668 6.66628 14.8333 6.66628L5.16667 6.66628C4.23325 6.66628 3.76654 6.66628 3.41002 6.84793C3.09641 7.00772 2.84144 7.26269 2.68166 7.57629C2.5 7.93281 2.5 8.39952 2.5 9.33295ZM14.1667 12.0829C14.1667 12.3131 13.9801 12.4996 13.75 12.4996C13.5199 12.4996 13.3333 12.3131 13.3333 12.0829C13.3333 11.8528 13.5199 11.6663 13.75 11.6663C13.9801 11.6663 14.1667 11.8528 14.1667 12.0829Z",
163
- stroke: "currentColor",
164
- strokeWidth: "1.5",
165
- strokeLinecap: "round",
166
- strokeLinejoin: "round"
167
- }
168
- )
169
- );
198
+ className: iconCluster,
199
+ style: {
200
+ ...assignInlineVars({ [iconSpacingVar]: `${spacing}px` }),
201
+ ...style
202
+ }
203
+ },
204
+ children
205
+ );
206
+ }
207
+ function MoreIconsIndicator({
208
+ size = CLUSTER_ICON_SIZE
209
+ }) {
210
+ const glyphSize = Math.round(size * PLUS_GLYPH_RATIO);
211
+ return /* @__PURE__ */ React4.createElement(
212
+ Box,
213
+ {
214
+ alignItems: "center",
215
+ background: "secondaryBackground",
216
+ borderRadius: "full",
217
+ color: "secondaryText",
218
+ display: "flex",
219
+ justifyContent: "center",
220
+ position: "relative",
221
+ style: { width: size, height: size },
222
+ testId: "more-icons-indicator"
223
+ },
224
+ /* @__PURE__ */ React4.createElement("svg", { fill: "none", height: glyphSize, viewBox: "0 0 10 10", width: glyphSize }, /* @__PURE__ */ React4.createElement(
225
+ "path",
226
+ {
227
+ d: "M5 1v8M1 5h8",
228
+ stroke: "currentColor",
229
+ strokeLinecap: "round",
230
+ strokeWidth: "1.5"
231
+ }
232
+ ))
233
+ );
234
+ }
235
+
236
+ // src/components/SupportedChainList/SupportedChainList.tsx
237
+ var MAX_VISIBLE_CHAINS = 6;
238
+ function SupportedChainList({
239
+ chainIdList,
240
+ iconSize = CLUSTER_ICON_SIZE,
241
+ style
242
+ }) {
243
+ const getChainMetadata = useChainMetadata();
244
+ const resolvedChains = chainIdList.filter(
245
+ (chainId) => getChainMetadata(Number(chainId))
246
+ );
247
+ const visibleChains = resolvedChains.slice(0, MAX_VISIBLE_CHAINS);
248
+ const hasMore = resolvedChains.length > MAX_VISIBLE_CHAINS;
249
+ return /* @__PURE__ */ React5.createElement(
250
+ IconCluster,
251
+ {
252
+ iconCount: visibleChains.length,
253
+ iconSize,
254
+ style
255
+ },
256
+ visibleChains.map((chainId) => /* @__PURE__ */ React5.createElement(ChainIcon, { key: chainId, chainId: Number(chainId), size: iconSize })),
257
+ hasMore && /* @__PURE__ */ React5.createElement(MoreIconsIndicator, { size: iconSize })
258
+ );
259
+ }
170
260
 
171
261
  // src/clients/lighter.tsx
172
262
  import {
@@ -187,7 +277,7 @@ import {
187
277
  import { RELAY_LIGHTER_CHAIN_ID } from "@funkit/fun-relay";
188
278
  import { formatAddress, formatCryptoAndStringify } from "@funkit/utils";
189
279
  import { v4 as uuid } from "uuid";
190
- import React4, {
280
+ import React6, {
191
281
  useCallback as useCallback2,
192
282
  useEffect,
193
283
  useMemo as useMemo2,
@@ -441,25 +531,14 @@ function buildLighterFastWalletWithdrawalConfig({
441
531
  getMaxWithdrawalUSD: () => LIGHTER_FAST_MAX_WITHDRAWAL_USD2
442
532
  };
443
533
  }
444
- function ChainIconStack({ chainIds }) {
445
- return /* @__PURE__ */ React5.createElement(Box, { display: "flex", alignItems: "center", justifyContent: "flex-end" }, chainIds.map((chainId, index) => /* @__PURE__ */ React5.createElement(
446
- Box,
447
- {
448
- key: chainId,
449
- position: "relative",
450
- style: { right: `${(chainIds.length - index - 1) * -2}px` }
451
- },
452
- /* @__PURE__ */ React5.createElement(ChainIcon, { chainId, size: 16 })
453
- )));
454
- }
455
534
  var LIGHTER_FAST_PREVIEW_CHAIN_IDS = [
456
535
  arbitrum.id,
457
536
  base.id,
458
537
  optimism.id,
459
538
  bsc.id,
460
539
  SOLANA_MAINNET_CHAIN_ID
461
- ];
462
- var LIGHTER_SECURE_PREVIEW_CHAIN_IDS = [mainnet2.id];
540
+ ].map(String);
541
+ var LIGHTER_SECURE_PREVIEW_CHAIN_IDS = [mainnet2.id].map(String);
463
542
  function buildLighterMultiMethodConfig({
464
543
  config,
465
544
  accountIndex,
@@ -503,8 +582,8 @@ function buildLighterMultiMethodConfig({
503
582
  id: LIGHTER_FAST_METHOD_ID,
504
583
  keyText: t("withdrawal.methodFast"),
505
584
  subtitleText: isUnifiedTradingMode ? t("withdrawal.fastDisclaimerUnified") : t("withdrawal.fastDisclaimer"),
506
- icon: /* @__PURE__ */ React5.createElement(EvmWallet, { size: 20 }),
507
- valueIcon: /* @__PURE__ */ React5.createElement(ChainIconStack, { chainIds: LIGHTER_FAST_PREVIEW_CHAIN_IDS }),
585
+ icon: /* @__PURE__ */ React7.createElement(EvmWallet, { size: 20 }),
586
+ valueIcon: /* @__PURE__ */ React7.createElement(SupportedChainList, { chainIdList: LIGHTER_FAST_PREVIEW_CHAIN_IDS }),
508
587
  config: fastConfig
509
588
  };
510
589
  const secure = {
@@ -516,8 +595,8 @@ function buildLighterMultiMethodConfig({
516
595
  // so it doesn't bleed into live values, which are exact.
517
596
  delay: secureDelayText ?? t("withdrawal.secureFallbackDelay")
518
597
  }),
519
- icon: /* @__PURE__ */ React5.createElement(EvmWallet, { size: 20 }),
520
- valueIcon: /* @__PURE__ */ React5.createElement(ChainIconStack, { chainIds: LIGHTER_SECURE_PREVIEW_CHAIN_IDS }),
598
+ icon: /* @__PURE__ */ React7.createElement(EvmWallet, { size: 20 }),
599
+ valueIcon: /* @__PURE__ */ React7.createElement(SupportedChainList, { chainIdList: LIGHTER_SECURE_PREVIEW_CHAIN_IDS }),
521
600
  config: secureConfig
522
601
  };
523
602
  return {
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  useAccount,
15
15
  useConfig
16
- } from "./chunk-UPZNKPYU.js";
16
+ } from "./chunk-RI3XDJDQ.js";
17
17
  import "./chunk-27VBRE7W.js";
18
18
  import {
19
19
  logger
@@ -8,7 +8,7 @@ import "./chunk-OODIKHYE.js";
8
8
  import {
9
9
  useAccount,
10
10
  useConfig
11
- } from "./chunk-UPZNKPYU.js";
11
+ } from "./chunk-RI3XDJDQ.js";
12
12
  import {
13
13
  i18n_default
14
14
  } from "./chunk-27VBRE7W.js";
@@ -1 +1 @@
1
- export declare const funOptionBoxStyle: Record<"activeBackground" | "baseStyle" | "compactListStyle" | "defaultBorder" | "defaultModeNotActiveBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "borderedBackground" | "uninteractiveBackground", string>;
1
+ export declare const funOptionBoxStyle: Record<"baseStyle" | "compactListStyle" | "defaultBorder" | "defaultModeNotActiveBorder" | "activeBorder" | "disabledOptionBorder" | "defaultBackground" | "borderedBackground" | "activeBackground" | "uninteractiveBackground", string>;
@@ -16,11 +16,6 @@ export declare const getDynamicValueIconComponent: () => React.JSX.Element;
16
16
  * to render after them rather than being silently dropped.
17
17
  */
18
18
  export declare function resolveConnectWalletChainOrder(configuredOrder: readonly (string | number)[]): string[];
19
- export declare function SupportedChainList({ chainIdList, iconSize, style, }: {
20
- chainIdList: string[];
21
- iconSize?: number;
22
- style?: React.CSSProperties;
23
- }): React.JSX.Element;
24
19
  export declare function PaymentMethodIcon({ paymentIcon, keyIconSize, }: {
25
20
  paymentIcon: ReactNode;
26
21
  keyIconSize: number;
@@ -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;
@@ -63,6 +63,8 @@ export type CommonProperties = {
63
63
  /** Human-readable connector name for the authenticated session wallet. */
64
64
  connector_name: string | null;
65
65
  flow: AnalyticsFlow;
66
+ /** Fixed per package — distinguishes this SDK's events from connect-rn's. */
67
+ sdk_type: 'web';
66
68
  user_id: string | null;
67
69
  };
68
70
  export type PaymentMethodProperties = {
@@ -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.