@funkit/connect 12.18.1 → 12.20.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 (50) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/clients/{chunk-FOXMRDKD.js → chunk-2BBOZQLZ.js} +1 -1
  3. package/dist/clients/{chunk-FLREOB24.js → chunk-5NYKSTGH.js} +1 -1
  4. package/dist/clients/{chunk-AHYOV7AV.js → chunk-GTPMJGCF.js} +1 -1
  5. package/dist/clients/{chunk-RQALGV5U.js → chunk-N46CL4ZT.js} +1 -1
  6. package/dist/clients/{chunk-R25GIAD5.js → chunk-PZSKO3BJ.js} +1 -0
  7. package/dist/clients/{chunk-YSAAJSWT.js → chunk-R5VAX6YA.js} +8 -0
  8. package/dist/clients/{chunk-L6JL2XJY.js → chunk-TFIJZTGQ.js} +1 -1
  9. package/dist/clients/{chunk-G6A62MZO.js → chunk-TLFE74BL.js} +6 -6
  10. package/dist/clients/{chunk-AELXD5XA.js → chunk-VFKEUHZT.js} +1 -1
  11. package/dist/clients/{chunk-IUVVGGP4.js → chunk-Y7ONHWCW.js} +2 -2
  12. package/dist/clients/fanatics.js +4 -4
  13. package/dist/clients/internal/nado/withdrawalCallback.js +5 -5
  14. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  15. package/dist/clients/internal/nado/withdrawalForm.js +5 -5
  16. package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
  17. package/dist/clients/lighter.css +8 -1
  18. package/dist/clients/lighter.js +6 -6
  19. package/dist/clients/lighterRh.d.ts +44 -0
  20. package/dist/clients/lighterRh.js +51 -0
  21. package/dist/clients/mallard.js +3 -3
  22. package/dist/clients/nado.js +5 -5
  23. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  24. package/dist/clients/polymarket/index.js +3 -3
  25. package/dist/clients/polymarket/polymarket.js +2 -2
  26. package/dist/clients/solana-transfer.d.ts +1 -0
  27. package/dist/clients/solana-transfer.js +13 -0
  28. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
  29. package/dist/components/TokenSwapWidget/TokenSelectButton/TokenSelectButton.d.ts +1 -1
  30. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +14 -4
  31. package/dist/components/TokenSwapWidget/TokenSwapPercentOptions/TokenSwapPercentOptions.d.ts +9 -0
  32. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +4 -2
  33. package/dist/components/TokenSwapWidget/TokenSwapWidgetSkeleton/TokenSwapWidgetSkeleton.d.ts +3 -0
  34. package/dist/consts/customers.d.ts +5 -1
  35. package/dist/domains/bridge.d.ts +1 -2
  36. package/dist/domains/convert/assets.d.ts +32 -0
  37. package/dist/domains/convert/inputAmount.d.ts +24 -21
  38. package/dist/domains/convert/reducer.d.ts +11 -6
  39. package/dist/domains/convert/screen.d.ts +6 -1
  40. package/dist/domains/convert/view.d.ts +4 -0
  41. package/dist/index.css +8 -1
  42. package/dist/index.js +1336 -1160
  43. package/dist/modals/CheckoutModal/Convert/ConvertAssetList.d.ts +1 -1
  44. package/dist/modals/CheckoutModal/Convert/ConvertAssetRow.d.ts +1 -14
  45. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +5 -2
  46. package/dist/modals/CheckoutModal/Convert/ConvertSelectSourceStep.d.ts +0 -12
  47. package/dist/providers/ConvertProvider.d.ts +2 -0
  48. package/dist/shadow-css.js +1 -1
  49. package/dist/wallets/walletConnectors/index.js +40 -40
  50. package/package.json +10 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 37e2741: Support Lighter Robinhood stock deposits from wallet checkout. Robinhood stock balances show for Lighter Robinhood, Mallard keeps its own stocks, and other customers keep them hidden.
8
+ - cc2cc39: Convert now waits for balances, then opens with the user's most valuable token selected, and shows an empty token picker as a primary button.
9
+ - 5a144ee: The Convert screen adds 25%, 50%, 75% and Max buttons to fill in the amount; the balance is now plain text.
10
+
11
+ ### Patch Changes
12
+
13
+ - fb88d63: Convert's transaction breakdown now names the route provider.
14
+ - 37e2741: Long destination token lists now scroll inside the checkout modal instead of overflowing it.
15
+ - Updated dependencies [98262c5]
16
+ - Updated dependencies [9e868c3]
17
+ - Updated dependencies [50573f4]
18
+ - Updated dependencies [37e2741]
19
+ - Updated dependencies [37e2741]
20
+ - Updated dependencies [39d56c6]
21
+ - Updated dependencies [316fa81]
22
+ - Updated dependencies [0d75af5]
23
+ - @funkit/connect-core@11.0.0
24
+ - @funkit/fun-relay@3.3.0
25
+
26
+ ## 12.19.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 1bdcbce: Provide opt-in unsigned SOL and USDC transfer construction for web and React Native.
31
+
32
+ ### Patch Changes
33
+
34
+ - c6e5943: Fix scroll divider updating state after its modal content unmounts
35
+ - c083795: Convert's receive token list now shows tokens the user already holds first, by USD value.
36
+ - 22276a3: Fix the Convert token lists cutting off long lists instead of scrolling
37
+ - 9cf858e: Remove an unused Bridge customer-status mapper and commented-out image-loading debug scaffolding.
38
+ - 29b52d4: Warn logs now report their error in Datadog's standard error fields, as error logs do.
39
+ - Updated dependencies [5283b62]
40
+ - Updated dependencies [ff472ba]
41
+ - Updated dependencies [5283b62]
42
+ - Updated dependencies [bf49825]
43
+ - Updated dependencies [a2cff67]
44
+ - Updated dependencies [1bdcbce]
45
+ - Updated dependencies [29b52d4]
46
+ - @funkit/api-base@9.1.2
47
+ - @funkit/connect-core@10.1.0
48
+
3
49
  ## 12.18.1
4
50
 
5
51
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitTranslation
4
- } from "./chunk-L6JL2XJY.js";
4
+ } from "./chunk-TFIJZTGQ.js";
5
5
 
6
6
  // src/providers/FunkitConfigContext.tsx
7
7
  import {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-TKEBGMVW.js";
5
5
  import {
6
6
  logger
7
- } from "./chunk-AHYOV7AV.js";
7
+ } from "./chunk-GTPMJGCF.js";
8
8
 
9
9
  // src/clients/polymarket/polymarket.tsx
10
10
  import {
@@ -35,7 +35,7 @@ var DatadogBrowserLogsTransport = class {
35
35
  datadogLogs.logger.debug(title, context);
36
36
  break;
37
37
  case "warn":
38
- datadogLogs.logger.warn(title, context);
38
+ datadogLogs.logger.warn(title, context, error);
39
39
  break;
40
40
  case "error":
41
41
  datadogLogs.logger.error(title, context, error);
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  logger
4
- } from "./chunk-AHYOV7AV.js";
4
+ } from "./chunk-GTPMJGCF.js";
5
5
 
6
6
  // src/components/Box/Box.ts
7
7
  import clsx2 from "clsx";
@@ -26,6 +26,7 @@ import {
26
26
  LIGHTER_RH_CHAIN_ID,
27
27
  ROBINHOOD_MAINNET_CHAIN_ID
28
28
  } from "@funkit/chains";
29
+ import { LIGHTER_RH_STOCK_ASSETS } from "@funkit/connect-core/clients/lighter";
29
30
  import { isTokenEquivalent } from "@funkit/utils";
30
31
  import { mainnet } from "viem/chains";
31
32
  var LIGHTER_API_KEY_BY_CHAIN_ID = {
@@ -719,6 +719,7 @@ var en_default = {
719
719
  sourceWalletUnavailable: "Unable to reach your wallet for {{token}}",
720
720
  recipientUnavailable: "Unable to confirm where {{token}} will be received",
721
721
  converting: "Converting",
722
+ loadingBalance: "Loading balance...",
722
723
  converted: "Convert successful",
723
724
  balanceCheckFailed: "Couldn't confirm your balance. Please try again.",
724
725
  insufficientSol: "Not enough SOL to cover network fees. Lower the amount and try again.",
@@ -1365,6 +1366,7 @@ var es_default = {
1365
1366
  sourceWalletUnavailable: "No se pudo conectar con tu billetera de {{token}}",
1366
1367
  recipientUnavailable: "No se pudo confirmar d\xF3nde se recibir\xE1 {{token}}",
1367
1368
  converting: "Convirtiendo",
1369
+ loadingBalance: "Cargando saldo...",
1368
1370
  converted: "Conversi\xF3n exitosa",
1369
1371
  balanceCheckFailed: "No se pudo confirmar tu saldo. Por favor, intenta nuevamente.",
1370
1372
  insufficientSol: "No tienes suficiente SOL para cubrir las comisiones de red. Reduce el monto e intenta nuevamente.",
@@ -2011,6 +2013,7 @@ var fr_default = {
2011
2013
  sourceWalletUnavailable: "Impossible de joindre votre portefeuille {{token}}",
2012
2014
  recipientUnavailable: "Impossible de confirmer o\xF9 {{token}} sera re\xE7u",
2013
2015
  converting: "Conversion en cours",
2016
+ loadingBalance: "Chargement du solde...",
2014
2017
  converted: "Conversion r\xE9ussie",
2015
2018
  balanceCheckFailed: "Impossible de confirmer votre solde. Veuillez r\xE9essayer.",
2016
2019
  insufficientSol: "Pas assez de SOL pour couvrir les frais de r\xE9seau. R\xE9duisez le montant et r\xE9essayez.",
@@ -2657,6 +2660,7 @@ var ja_default = {
2657
2660
  sourceWalletUnavailable: "{{token}} \u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093",
2658
2661
  recipientUnavailable: "{{token}} \u306E\u53D7\u53D6\u5148\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093",
2659
2662
  converting: "\u5909\u63DB\u4E2D",
2663
+ loadingBalance: "\u6B8B\u9AD8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D...",
2660
2664
  converted: "\u5909\u63DB\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F",
2661
2665
  balanceCheckFailed: "\u6B8B\u9AD8\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
2662
2666
  insufficientSol: "\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u624B\u6570\u6599\u306B\u5FC5\u8981\u306ASOL\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059\u3002\u91D1\u984D\u3092\u6E1B\u3089\u3057\u3066\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
@@ -3303,6 +3307,7 @@ var ko_default = {
3303
3307
  sourceWalletUnavailable: "{{token}} \uC9C0\uAC11\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
3304
3308
  recipientUnavailable: "{{token}}\uC744(\uB97C) \uBC1B\uC744 \uC8FC\uC18C\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
3305
3309
  converting: "\uBCC0\uD658 \uC911",
3310
+ loadingBalance: "\uC794\uC561 \uBD88\uB7EC\uC624\uB294 \uC911...",
3306
3311
  converted: "\uBCC0\uD658 \uC131\uACF5",
3307
3312
  balanceCheckFailed: "\uC794\uC561\uC744 \uD655\uC778\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
3308
3313
  insufficientSol: "\uB124\uD2B8\uC6CC\uD06C \uC218\uC218\uB8CC\uB97C \uB0BC SOL\uC774 \uBD80\uC871\uD569\uB2C8\uB2E4. \uAE08\uC561\uC744 \uC904\uC774\uACE0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
@@ -3949,6 +3954,7 @@ var ru_default = {
3949
3954
  sourceWalletUnavailable: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0443 {{token}}",
3950
3955
  recipientUnavailable: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C, \u043A\u0443\u0434\u0430 \u043F\u043E\u0441\u0442\u0443\u043F\u0438\u0442 {{token}}",
3951
3956
  converting: "\u041A\u043E\u043D\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044F",
3957
+ loadingBalance: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0431\u0430\u043B\u0430\u043D\u0441\u0430...",
3952
3958
  converted: "\u041A\u043E\u043D\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0430",
3953
3959
  balanceCheckFailed: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0431\u0430\u043B\u0430\u043D\u0441. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
3954
3960
  insufficientSol: "\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E SOL \u0434\u043B\u044F \u043E\u043F\u043B\u0430\u0442\u044B \u0441\u0435\u0442\u0435\u0432\u044B\u0445 \u043A\u043E\u043C\u0438\u0441\u0441\u0438\u0439. \u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u0435 \u0441\u0443\u043C\u043C\u0443 \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
@@ -4595,6 +4601,7 @@ var tr_default = {
4595
4601
  sourceWalletUnavailable: "{{token}} c\xFCzdan\u0131n\u0131za ula\u015F\u0131lam\u0131yor",
4596
4602
  recipientUnavailable: "{{token}} i\xE7in al\u0131c\u0131 adresi do\u011Frulanam\u0131yor",
4597
4603
  converting: "D\xF6n\xFC\u015Ft\xFCr\xFCl\xFCyor",
4604
+ loadingBalance: "Bakiye y\xFCkleniyor...",
4598
4605
  converted: "D\xF6n\xFC\u015Ft\xFCrme ba\u015Far\u0131l\u0131",
4599
4606
  balanceCheckFailed: "Bakiyeniz do\u011Frulanamad\u0131. L\xFCtfen tekrar deneyin.",
4600
4607
  insufficientSol: "A\u011F \xFCcretlerini kar\u015F\u0131lamak i\xE7in yeterli SOL yok. Tutar\u0131 azalt\u0131p tekrar deneyin.",
@@ -5241,6 +5248,7 @@ var zh_default = {
5241
5248
  sourceWalletUnavailable: "\u65E0\u6CD5\u8FDE\u63A5\u60A8\u7684 {{token}} \u94B1\u5305",
5242
5249
  recipientUnavailable: "\u65E0\u6CD5\u786E\u8BA4 {{token}} \u7684\u63A5\u6536\u5730\u5740",
5243
5250
  converting: "\u8F6C\u6362\u4E2D",
5251
+ loadingBalance: "\u6B63\u5728\u52A0\u8F7D\u4F59\u989D...",
5244
5252
  converted: "\u8F6C\u6362\u6210\u529F",
5245
5253
  balanceCheckFailed: "\u65E0\u6CD5\u786E\u8BA4\u60A8\u7684\u4F59\u989D\u3002\u8BF7\u91CD\u8BD5\u3002",
5246
5254
  insufficientSol: "SOL \u4E0D\u8DB3\u4EE5\u652F\u4ED8\u7F51\u7EDC\u8D39\u7528\u3002\u8BF7\u51CF\u5C11\u91D1\u989D\u540E\u91CD\u8BD5\u3002",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-YSAAJSWT.js";
4
+ } from "./chunk-R5VAX6YA.js";
5
5
 
6
6
  // src/hooks/useFunkitTranslation.ts
7
7
  import { useTranslation } from "react-i18next";
@@ -1,8 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ generateClientMetadataForTokenTransfer
4
+ } from "./chunk-TKEBGMVW.js";
2
5
  import {
3
6
  isExpectedNadoWithdrawalFailure,
4
7
  toNadoWithdrawalErrorMessage
5
- } from "./chunk-AELXD5XA.js";
8
+ } from "./chunk-VFKEUHZT.js";
6
9
  import {
7
10
  toWithdrawalAmountBaseUnit
8
11
  } from "./chunk-LICTGZXW.js";
@@ -13,13 +16,10 @@ import {
13
16
  } from "./chunk-OODIKHYE.js";
14
17
  import {
15
18
  i18n_default
16
- } from "./chunk-YSAAJSWT.js";
17
- import {
18
- generateClientMetadataForTokenTransfer
19
- } from "./chunk-TKEBGMVW.js";
19
+ } from "./chunk-R5VAX6YA.js";
20
20
  import {
21
21
  logger
22
- } from "./chunk-AHYOV7AV.js";
22
+ } from "./chunk-GTPMJGCF.js";
23
23
 
24
24
  // src/clients/internal/nado/withdrawalCallback.ts
25
25
  import {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-YSAAJSWT.js";
4
+ } from "./chunk-R5VAX6YA.js";
5
5
 
6
6
  // src/clients/internal/nado/withdrawalErrors.ts
7
7
  import {
@@ -10,10 +10,10 @@ import {
10
10
  VAULT_DEPOSITOR_ABI,
11
11
  VAULT_DEPOSITOR_POLYGON,
12
12
  createPerpsGenerateActionParams
13
- } from "./chunk-FLREOB24.js";
13
+ } from "./chunk-5NYKSTGH.js";
14
14
  import {
15
15
  logger
16
- } from "./chunk-AHYOV7AV.js";
16
+ } from "./chunk-GTPMJGCF.js";
17
17
 
18
18
  // src/clients/polymarket/createPolymarketDepositConfig.ts
19
19
  import { encodeFunctionData, erc20Abi, getAddress as getAddress2, maxUint256 } from "viem";
@@ -7,12 +7,12 @@ import {
7
7
  Box,
8
8
  Text,
9
9
  preloadRemoteImages
10
- } from "./chunk-RQALGV5U.js";
10
+ } from "./chunk-N46CL4ZT.js";
11
11
  import {
12
12
  useFunkitTranslation
13
- } from "./chunk-L6JL2XJY.js";
14
- import "./chunk-YSAAJSWT.js";
15
- import "./chunk-AHYOV7AV.js";
13
+ } from "./chunk-TFIJZTGQ.js";
14
+ import "./chunk-R5VAX6YA.js";
15
+ import "./chunk-GTPMJGCF.js";
16
16
 
17
17
  // src/clients/fanatics.tsx
18
18
  import React4, { useEffect, useMemo } from "react";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "../../chunk-G6A62MZO.js";
5
- import "../../chunk-AELXD5XA.js";
4
+ } from "../../chunk-TLFE74BL.js";
5
+ import "../../chunk-TKEBGMVW.js";
6
+ import "../../chunk-VFKEUHZT.js";
6
7
  import "../../chunk-LICTGZXW.js";
7
8
  import "../../chunk-OODIKHYE.js";
8
- import "../../chunk-YSAAJSWT.js";
9
- import "../../chunk-TKEBGMVW.js";
10
- import "../../chunk-AHYOV7AV.js";
9
+ import "../../chunk-R5VAX6YA.js";
10
+ import "../../chunk-GTPMJGCF.js";
11
11
  export {
12
12
  createNadoWithdrawalCallback
13
13
  };
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  isExpectedNadoWithdrawalFailure,
4
4
  toNadoWithdrawalErrorMessage
5
- } from "../../chunk-AELXD5XA.js";
6
- import "../../chunk-YSAAJSWT.js";
5
+ } from "../../chunk-VFKEUHZT.js";
6
+ import "../../chunk-R5VAX6YA.js";
7
7
  export {
8
8
  isExpectedNadoWithdrawalFailure,
9
9
  toNadoWithdrawalErrorMessage
@@ -5,19 +5,19 @@ import {
5
5
  import {
6
6
  PLACEHOLDER_FUNKIT_USER_INFO
7
7
  } from "../../chunk-CE42WHAA.js";
8
- import "../../chunk-R25GIAD5.js";
8
+ import "../../chunk-PZSKO3BJ.js";
9
9
  import {
10
10
  useFunkitConfig
11
- } from "../../chunk-FOXMRDKD.js";
11
+ } from "../../chunk-2BBOZQLZ.js";
12
12
  import {
13
13
  useFunkitTranslation
14
- } from "../../chunk-L6JL2XJY.js";
14
+ } from "../../chunk-TFIJZTGQ.js";
15
15
  import "../../chunk-LICTGZXW.js";
16
16
  import "../../chunk-2W2P3OS6.js";
17
- import "../../chunk-YSAAJSWT.js";
17
+ import "../../chunk-R5VAX6YA.js";
18
18
  import {
19
19
  logger
20
- } from "../../chunk-AHYOV7AV.js";
20
+ } from "../../chunk-GTPMJGCF.js";
21
21
 
22
22
  // src/clients/internal/nado/withdrawalForm.ts
23
23
  import {
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitConfig
4
- } from "../../chunk-FOXMRDKD.js";
5
- import "../../chunk-L6JL2XJY.js";
4
+ } from "../../chunk-2BBOZQLZ.js";
5
+ import "../../chunk-TFIJZTGQ.js";
6
6
  import {
7
7
  useAccount
8
8
  } from "../../chunk-2W2P3OS6.js";
9
- import "../../chunk-YSAAJSWT.js";
9
+ import "../../chunk-R5VAX6YA.js";
10
10
  import {
11
11
  logger
12
- } from "../../chunk-AHYOV7AV.js";
12
+ } from "../../chunk-GTPMJGCF.js";
13
13
 
14
14
  // src/clients/internal/nado/withdrawalStatus.ts
15
15
  import {
@@ -16200,7 +16200,7 @@
16200
16200
  flex: 0 0 auto;
16201
16201
  }
16202
16202
 
16203
- /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VYy27sNgzd369QcTcZoAo8D-dOHaAouu-u-4KWOLY6smTI8jxa5N8LP2NZnsS6bTcJTPGQR9IhqeT5j235lz3s9lvy9xdCCrjRHEWW24TEu7i8vfbGq-A2T8g2ii7XxtZ_H-Ko8Xn78jzGSXKonr5WujYMKctBZUhLyHDjJTh2CXxwiaasqDWgqhOaDv0j8by0vBdgzmjpDMC0sqhsQEarz6hmGdejZbOuhMqoUBctWPCGTwIs5WhByFAo0-okTAFWaBWOLUqJNpjuVdicG7iCpP9BiJPU17ANK2SW4q0T1_clLTRv2YcKpbpCWSKn4mSgWFKl60ClBi5U5meIvQy7zkeoodj2x6grQPd7AtmHQw7hkLiFlMCbnVDT8Y9eJzaJp840Qb20qFQbjmbIFZEfRFFqY0FZx_k4ZyWUsALkhBcDyZ7a_kMo2UflbfM6v7SouuRu2FX95Pj9_SRqErq2n-IHLNb1mJCIq_tOSNAVvWhVOPj8Ssdp4upo1wtyprjBvHDlo86sLtsg1AAXdZWQC5gnSs25NYiu7H_TqZC4mcHaLIG4VFurCzdj5K-7oRcchvJoVvQFTdMSE5ILzlG99qc4bNmtMggYt155QJAwH6DXi_BBgDWCewBdM_weYz-eXI9wAcNvRYgHw--DDX82_DxoGt7xeQsZlEhvUy2O1ntCoLa6sVXMaClTMDSrrUWTkMpCKtFd69PVqkK3-_MkoVdMz8LS0btlwEVVSriPmJHyS7eBFNg5M7pWnDIttZnUbftddYX76-i2-TQvtXldpNPZ9VFL2KxjYdFYAeb-O97sGgoG2Lmj8O82iJ9s8P-KnuSNSlbmqJBpxRdP5-Sq4CSxvfbmN-XCIGsKPyFMy7poxTlUQTNZ3CrIQkP5mh5F6ElaaYXz2nivmN6pK5YJpdx5V41vqKWnljNXZ2UaHuBnwsWl_7nYPx4904B8ZTmys64t5QKkzoa30RITJ4pParbsn_fQXZY6zmwidheZkC3Z-uc8Zd29-_uxO7SZ0BMULaodmKKTjS6BCXsn0fOuIggVUqGort3T-9ODgZQkeo5nEPdCdnHfrf2HwST22bvIHuWnO_Tp-lxLYX8pkAtorgRREVCcPE3mx7eXY3nrJs_7Xz_t5_z_AoS8TZ12vdPSLJpPoxl070MPuzl0tDjQwwI09qCLhNMFqEf48E747R9KAONWTxEAAA */
16203
+ /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VYy47rNgzd369QcTcToBo4r7m5HqAouu-u-4KWGFuNLBmynEeL-ffCz7EsZ2JNezcJTPOQlHTIo-T5z3Xxt91ttmvyzxdCcrjSDEWa2ZjsN_vi-toZL4LbLCbrKDpfalv3vNtHtc_bl-chTpxB-fS11JVhSFkGKkVaQIorL8GhTeCDCzRFSa0BVR7RtOifieel5S0Hc0JLJwCmlUVlAzJafUI1ybgcLev3SqiUCnXWggUv-CjAUo4WhAyFMq2OwuRghVafwJ7R2HBYXki0wau8CJtxAxeQ9H8IcZT6ErZWhcxSvLac_FzSXPOm-lB-lRcoCuRUHA3kc2R2HajUwIVK_Qx7L8Om9RGq79HtIWr71n0eQbbhkF04ZN9ACuD1Sqhp649eRzaJx9Y0Qr00qEQbjqbPFZGfRF5oY0FZx_kwrUooYQXIUV0MJHtqxhahZBsV19Xr9NCi8py5YReNocPnx1BUJ3Rt3_d3qlg2mkIiLh5XIUEXjLCQcA9G06JQ8Jgdg565lNx03J6QtzfPsGegrNVFE4Qa4KIqY3IG80SpOTUG0U6Q33UiJK4msCZLIC7R1urczRj5793QMw59p9Vv9BlNPV1jkgnOUb12u9gv2W1YCBB8r9MgiON30Mv5fCfAEu7egS6R3_vYj0XwHi5ARxeEuKOjHyz4kY560CRcPHgD6ZlIr2MuDtZbTKCyuraVzGgpEzA0raxFE5PSQiLRfdelq1SJrpDwOKYXTE7C0sG7qYCLspBwGzBDyS_tAhJgp9ToSnHKtNRm1LfNc9k27m-D2-phXmqzKk_GMvjRSFgtq8KisQLM7Q-82iUlGGCntoT_tkB8sMAfFT3OapYszFEi04rP7s7RZcFRYnPs9TflwiCrGz8mTMsqb8jZd0GtLG4XpKGhfE4PJPQorbTCaW-8d0zn1DbLqKTMuaIN17G5W5ujq5M2DQ_wC-Hi3H3Ozo97Nz4gX1mG7KQrS7kAqdP-mjVXiRPFL2ry2t_vfrrMTZyJIrYHGZM1Wfv7PK66_QnRyW4_ZkJ3UDSoRjBFSxtdABP2RqLnTUkQSqRCUV25u_eXBwMpSfS8n0DcA9nsu2ntXwxGsU_eQXYoP92uS9flmgv7a45cQH0kiIqA4uRppB_fXg7FtVWe9x9SzeP0nwlC3sZOm85pToumajSBbn3objOFDhYHupuB7j3obMHJDNQrePde8Nu_p8xgx9ERAAA */
16204
16204
  [data-rk] ._1pzt4231 {
16205
16205
  max-height: 525px;
16206
16206
  max-width: 100vw;
@@ -16225,6 +16225,9 @@
16225
16225
  [data-rk] ._1pzt4231:has(#confirmation-page) {
16226
16226
  max-height: 825px;
16227
16227
  }
16228
+ [data-rk] ._1pzt4231:has(#convert-page) {
16229
+ max-height: 825px;
16230
+ }
16228
16231
  [data-rk] ._1pzt4231:has(#complete-page) {
16229
16232
  max-height: 825px;
16230
16233
  }
@@ -16285,6 +16288,10 @@
16285
16288
  max-height: 80vh;
16286
16289
  max-height: 95svh;
16287
16290
  }
16291
+ [data-rk] ._1pzt4238:has(#convert-page) {
16292
+ max-height: 80vh;
16293
+ max-height: 95svh;
16294
+ }
16288
16295
  [data-rk] ._1pzt423a {
16289
16296
  min-width: initial;
16290
16297
  width: 100vw;
@@ -3,24 +3,24 @@ import {
3
3
  LIGHTER_API_KEY_BY_CHAIN_ID,
4
4
  useLighterAccountQuery,
5
5
  useLighterAccountsQuery
6
- } from "./chunk-R25GIAD5.js";
6
+ } from "./chunk-PZSKO3BJ.js";
7
7
  import {
8
8
  useFunkitConfig
9
- } from "./chunk-FOXMRDKD.js";
9
+ } from "./chunk-2BBOZQLZ.js";
10
10
  import {
11
11
  AsyncImage,
12
12
  Box,
13
13
  sanitizeUrl
14
- } from "./chunk-RQALGV5U.js";
14
+ } from "./chunk-N46CL4ZT.js";
15
15
  import {
16
16
  useFunkitTranslation
17
- } from "./chunk-L6JL2XJY.js";
17
+ } from "./chunk-TFIJZTGQ.js";
18
18
  import "./chunk-OODIKHYE.js";
19
19
  import "./chunk-2W2P3OS6.js";
20
- import "./chunk-YSAAJSWT.js";
20
+ import "./chunk-R5VAX6YA.js";
21
21
  import {
22
22
  logger
23
- } from "./chunk-AHYOV7AV.js";
23
+ } from "./chunk-GTPMJGCF.js";
24
24
 
25
25
  // src/clients/lighter.tsx
26
26
  import {
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Lighter RH (Lighter's Robinhood instance) deposits for Robinhood Chain tokens via VaultDepositooor.
3
+ *
4
+ * Mirrors the Mallard helper: a host attaches these calls to a destination
5
+ * candidate's `generateActionsParams`, Relay delivers the token on Robinhood
6
+ * Chain (4663), and the calls credit the Lighter RH account owned by the recipient:
7
+ * 1. approve(token, VAULT_DEPOSITOR, MAX)
8
+ * 2. VAULT_DEPOSITOR.depositWithTick(token, RH_ZKLIGHTER,
9
+ * deposit(recipient, assetIndex, routeType, AMOUNT_PLACEHOLDER), 0, tick, recipient)
10
+ */
11
+ import { LIGHTER_RH_STOCK_ASSETS, type LighterRhDepositAsset } from '@funkit/connect-core/clients/lighter';
12
+ import { type LighterRhRouteType } from '@funkit/fun-relay';
13
+ import { type Address } from 'viem';
14
+ import type { FunkitCheckoutActionParams } from '../providers/FunkitCheckoutContext/types';
15
+ export { LIGHTER_RH_STOCK_ASSETS };
16
+ export type { LighterRhDepositAsset, LighterRhRouteType };
17
+ export interface LighterRhDepositActionsConfig {
18
+ /** Owner of the Lighter RH account credited by the deposit (typically the connected wallet). */
19
+ recipientAddress: Address | undefined;
20
+ /** Robinhood Chain token deposited: USDG or one of {@link LIGHTER_RH_STOCK_ASSETS}. */
21
+ tokenAddress: Address;
22
+ /** Balance credited. Defaults to perps for USDG (collateral) and spot for stocks. */
23
+ routeType?: LighterRhRouteType;
24
+ }
25
+ /**
26
+ * Builds the `generateActionsParams` callback for a Lighter RH deposit of a
27
+ * Robinhood Chain token.
28
+ *
29
+ * Usage:
30
+ * ```ts
31
+ * generateActionsParams: createLighterRhDepositActions({
32
+ * recipientAddress: address,
33
+ * tokenAddress: AAPL_ON_ROBINHOOD_CHAIN,
34
+ * })
35
+ * ```
36
+ *
37
+ * Build these candidates once a wallet is connected, and set the candidate's
38
+ * `customRecipient` to that wallet: the owner is captured here (the callback
39
+ * rejects when it is missing), and the recipient replaces any account index a
40
+ * previous Lighter route set.
41
+ *
42
+ * @throws if `tokenAddress` is not a Lighter RH deposit asset (a host config error).
43
+ */
44
+ export declare function createLighterRhDepositActions(config: LighterRhDepositActionsConfig): () => Promise<FunkitCheckoutActionParams[]>;
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import {
3
+ logger
4
+ } from "./chunk-GTPMJGCF.js";
5
+
6
+ // src/clients/lighterRh.ts
7
+ import {
8
+ LIGHTER_RH_STOCK_ASSETS,
9
+ getLighterRhDepositAsset
10
+ } from "@funkit/connect-core/clients/lighter";
11
+ import {
12
+ generateLighterRhDepositActions
13
+ } from "@funkit/fun-relay";
14
+ import { getAddress } from "viem";
15
+ function getDefaultRouteType(asset) {
16
+ return asset.symbol === "USDG" ? "perps" : "spot";
17
+ }
18
+ function createLighterRhDepositActions(config) {
19
+ const { recipientAddress, tokenAddress } = config;
20
+ const asset = getLighterRhDepositAsset(tokenAddress);
21
+ if (!asset) {
22
+ throw new Error(
23
+ `${tokenAddress} is not a Lighter Robinhood deposit asset on Robinhood Chain`
24
+ );
25
+ }
26
+ const routeType = config.routeType ?? getDefaultRouteType(asset);
27
+ return async () => {
28
+ if (!recipientAddress) {
29
+ throw new Error(
30
+ "Please connect your wallet before starting a Lighter Robinhood deposit"
31
+ );
32
+ }
33
+ logger.info("lighterRh:depositActions", {
34
+ symbol: asset.symbol,
35
+ assetIndex: asset.assetIndex,
36
+ routeType,
37
+ recipientAddress
38
+ });
39
+ return generateLighterRhDepositActions({
40
+ address: getAddress(recipientAddress),
41
+ assetIndex: asset.assetIndex,
42
+ tickSize: asset.tickSize,
43
+ token: asset.l1Address,
44
+ routeType
45
+ });
46
+ };
47
+ }
48
+ export {
49
+ LIGHTER_RH_STOCK_ASSETS,
50
+ createLighterRhDepositActions
51
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitTranslation
4
- } from "./chunk-L6JL2XJY.js";
4
+ } from "./chunk-TFIJZTGQ.js";
5
5
  import {
6
6
  getAccount,
7
7
  sendTransaction,
@@ -14,10 +14,10 @@ import {
14
14
  useAccount,
15
15
  useConfig
16
16
  } from "./chunk-2W2P3OS6.js";
17
- import "./chunk-YSAAJSWT.js";
17
+ import "./chunk-R5VAX6YA.js";
18
18
  import {
19
19
  logger
20
- } from "./chunk-AHYOV7AV.js";
20
+ } from "./chunk-GTPMJGCF.js";
21
21
 
22
22
  // src/clients/mallard.tsx
23
23
  import { ROBINHOOD_MAINNET_CHAIN_ID } from "@funkit/chains";
@@ -1,8 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "./chunk-G6A62MZO.js";
5
- import "./chunk-AELXD5XA.js";
4
+ } from "./chunk-TLFE74BL.js";
5
+ import "./chunk-TKEBGMVW.js";
6
+ import "./chunk-VFKEUHZT.js";
6
7
  import "./chunk-LICTGZXW.js";
7
8
  import "./chunk-OODIKHYE.js";
8
9
  import {
@@ -11,11 +12,10 @@ import {
11
12
  } from "./chunk-2W2P3OS6.js";
12
13
  import {
13
14
  i18n_default
14
- } from "./chunk-YSAAJSWT.js";
15
- import "./chunk-TKEBGMVW.js";
15
+ } from "./chunk-R5VAX6YA.js";
16
16
  import {
17
17
  logger
18
- } from "./chunk-AHYOV7AV.js";
18
+ } from "./chunk-GTPMJGCF.js";
19
19
 
20
20
  // src/clients/nado.tsx
21
21
  import { useMemo } from "react";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-IUVVGGP4.js";
5
+ } from "../chunk-Y7ONHWCW.js";
6
6
  import {
7
7
  POLYMARKET_PERPS_ROUTING_ID,
8
8
  POLYMARKET_PREDICTIONS_ROUTING_ID
9
- } from "../chunk-FLREOB24.js";
9
+ } from "../chunk-5NYKSTGH.js";
10
10
  import "../chunk-TKEBGMVW.js";
11
- import "../chunk-AHYOV7AV.js";
11
+ import "../chunk-GTPMJGCF.js";
12
12
  export {
13
13
  POLYMARKET_PERPS_ROUTING_ID,
14
14
  POLYMARKET_PREDICTIONS_ROUTING_ID,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-IUVVGGP4.js";
5
+ } from "../chunk-Y7ONHWCW.js";
6
6
  import {
7
7
  AMOUNT_PLACEHOLDER,
8
8
  COLLATERAL_ONRAMP_ABI,
@@ -15,9 +15,9 @@ import {
15
15
  VAULT_DEPOSITOR_POLYGON,
16
16
  createPerpsGenerateActionParams,
17
17
  createPolymarketWithdrawalConfig
18
- } from "../chunk-FLREOB24.js";
18
+ } from "../chunk-5NYKSTGH.js";
19
19
  import "../chunk-TKEBGMVW.js";
20
- import "../chunk-AHYOV7AV.js";
20
+ import "../chunk-GTPMJGCF.js";
21
21
  export {
22
22
  AMOUNT_PLACEHOLDER,
23
23
  COLLATERAL_ONRAMP_ABI,
@@ -9,9 +9,9 @@ import {
9
9
  VAULT_DEPOSITOR_POLYGON,
10
10
  createPerpsGenerateActionParams,
11
11
  createPolymarketWithdrawalConfig
12
- } from "../chunk-FLREOB24.js";
12
+ } from "../chunk-5NYKSTGH.js";
13
13
  import "../chunk-TKEBGMVW.js";
14
- import "../chunk-AHYOV7AV.js";
14
+ import "../chunk-GTPMJGCF.js";
15
15
  export {
16
16
  AMOUNT_PLACEHOLDER,
17
17
  COLLATERAL_ONRAMP_ABI,
@@ -0,0 +1 @@
1
+ export { buildSolanaTransfer, getSolanaTransferToken, SOLANA_USDC_MINT, } from '@funkit/connect-core/clients/solana-transfer';
@@ -0,0 +1,13 @@
1
+ "use client";
2
+
3
+ // src/clients/solana-transfer.ts
4
+ import {
5
+ buildSolanaTransfer,
6
+ getSolanaTransferToken,
7
+ SOLANA_USDC_MINT
8
+ } from "@funkit/connect-core/clients/solana-transfer";
9
+ export {
10
+ SOLANA_USDC_MINT,
11
+ buildSolanaTransfer,
12
+ getSolanaTransferToken
13
+ };
@@ -22,8 +22,10 @@ interface PaymentFeesSummaryProps {
22
22
  extraFeeItems?: FeeItem[];
23
23
  /** Overrides `confirmationScreen.showTransactionDigest` for screens that always want the collapsed preview */
24
24
  isFeePreviewEnabled?: boolean;
25
+ /** Overrides `confirmationScreen.showSelectedRoute` for screens that always name the route */
26
+ isSelectedRouteEnabled?: boolean;
25
27
  }
26
- export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, isWithdrawal, valuesNotAvailable, extraSourceChainGasUsd, step, extraFeeItems, isFeePreviewEnabled, }: PaymentFeesSummaryProps): React.JSX.Element;
28
+ export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, isWithdrawal, valuesNotAvailable, extraSourceChainGasUsd, step, extraFeeItems, isFeePreviewEnabled, isSelectedRouteEnabled, }: PaymentFeesSummaryProps): React.JSX.Element;
27
29
  export interface FeeItem {
28
30
  label: string;
29
31
  value: string;
@@ -5,7 +5,7 @@ export interface TokenSwapToken {
5
5
  chainId?: string | number;
6
6
  }
7
7
  export interface TokenSelectButtonProps {
8
- /** Omit when nothing is picked yet; the button then reads "Select token". */
8
+ /** Omit when nothing is picked yet; the button then reads "Select token" as a primary button. */
9
9
  token?: TokenSwapToken;
10
10
  /** Omit to render the token without the picker affordance. */
11
11
  onClick?: () => void;