@funkit/connect 12.19.0 → 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 (76) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/clients/{chunk-FOXMRDKD.js → chunk-2BBOZQLZ.js} +1 -1
  3. package/dist/clients/{chunk-R25GIAD5.js → chunk-PZSKO3BJ.js} +1 -0
  4. package/dist/clients/{chunk-YSAAJSWT.js → chunk-R5VAX6YA.js} +8 -0
  5. package/dist/clients/{chunk-L6JL2XJY.js → chunk-TFIJZTGQ.js} +1 -1
  6. package/dist/clients/{chunk-KH2HLTHP.js → chunk-TLFE74BL.js} +4 -4
  7. package/dist/clients/{chunk-AELXD5XA.js → chunk-VFKEUHZT.js} +1 -1
  8. package/dist/clients/fanatics.js +2 -2
  9. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  10. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  11. package/dist/clients/internal/nado/withdrawalForm.js +4 -4
  12. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  13. package/dist/clients/lighter.css +8 -1
  14. package/dist/clients/lighter.js +4 -4
  15. package/dist/clients/lighterRh.d.ts +44 -0
  16. package/dist/clients/lighterRh.js +51 -0
  17. package/dist/clients/mallard.js +2 -2
  18. package/dist/clients/nado.js +5 -5
  19. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
  20. package/dist/components/TokenSwapWidget/TokenSelectButton/TokenSelectButton.d.ts +1 -1
  21. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +14 -4
  22. package/dist/components/TokenSwapWidget/TokenSwapPercentOptions/TokenSwapPercentOptions.d.ts +9 -0
  23. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +4 -2
  24. package/dist/components/TokenSwapWidget/TokenSwapWidgetSkeleton/TokenSwapWidgetSkeleton.d.ts +3 -0
  25. package/dist/consts/customers.d.ts +5 -1
  26. package/dist/domains/convert/assets.d.ts +32 -0
  27. package/dist/domains/convert/inputAmount.d.ts +24 -21
  28. package/dist/domains/convert/reducer.d.ts +11 -6
  29. package/dist/domains/convert/screen.d.ts +6 -1
  30. package/dist/domains/convert/view.d.ts +4 -0
  31. package/dist/index.css +8 -1
  32. package/dist/index.js +1330 -1158
  33. package/dist/modals/CheckoutModal/Convert/ConvertAssetList.d.ts +1 -1
  34. package/dist/modals/CheckoutModal/Convert/ConvertAssetRow.d.ts +1 -19
  35. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +1 -1
  36. package/dist/modals/CheckoutModal/Convert/ConvertSelectSourceStep.d.ts +0 -12
  37. package/dist/providers/ConvertProvider.d.ts +2 -0
  38. package/dist/shadow-css.js +1 -1
  39. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  44. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/index.js +62 -62
  49. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  50. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  51. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  52. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  53. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  54. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  55. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  56. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  57. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  58. package/package.json +4 -4
  59. package/dist/wallets/walletConnectors/{chunk-OVDCDVFX.js → chunk-34B7OJNT.js} +3 -3
  60. package/dist/wallets/walletConnectors/{chunk-JJBLW4IU.js → chunk-4FHNLTR3.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-TM7UBV3Q.js → chunk-ALGPGI6V.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-MWB6LFSG.js → chunk-BBB2J3US.js} +3 -3
  63. package/dist/wallets/walletConnectors/{chunk-IWPW26AL.js → chunk-BBDNB5TQ.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-53MYTA42.js → chunk-CU5J53XR.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-USLZMUJ3.js → chunk-HOCKAU5H.js} +3 -3
  66. package/dist/wallets/walletConnectors/{chunk-RJF2YEZ5.js → chunk-IA5432IR.js} +3 -3
  67. package/dist/wallets/walletConnectors/{chunk-ASTCNVJC.js → chunk-IWOMSW64.js} +3 -3
  68. package/dist/wallets/walletConnectors/{chunk-KE4CWI3A.js → chunk-NXWG6FG2.js} +3 -3
  69. package/dist/wallets/walletConnectors/{chunk-RQYEGJKL.js → chunk-RFCZYLNR.js} +3 -3
  70. package/dist/wallets/walletConnectors/{chunk-ANODOMIN.js → chunk-RXRYHMRI.js} +3 -3
  71. package/dist/wallets/walletConnectors/{chunk-PPQ6L4K2.js → chunk-SR5CZR3L.js} +3 -3
  72. package/dist/wallets/walletConnectors/{chunk-TIHTQ3OB.js → chunk-TRZDAXCQ.js} +3 -3
  73. package/dist/wallets/walletConnectors/{chunk-F45CUFRR.js → chunk-U52QO5HF.js} +3 -3
  74. package/dist/wallets/walletConnectors/{chunk-A5POD5SV.js → chunk-XODA5ESL.js} +3 -3
  75. package/dist/wallets/walletConnectors/{chunk-FYPQ3HP4.js → chunk-YRMBR6NA.js} +3 -3
  76. package/dist/wallets/walletConnectors/{chunk-65ULY6OC.js → chunk-ZSSSLFQF.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
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
+
3
26
  ## 12.19.0
4
27
 
5
28
  ### Minor 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 {
@@ -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";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  isExpectedNadoWithdrawalFailure,
7
7
  toNadoWithdrawalErrorMessage
8
- } from "./chunk-AELXD5XA.js";
8
+ } from "./chunk-VFKEUHZT.js";
9
9
  import {
10
10
  toWithdrawalAmountBaseUnit
11
11
  } from "./chunk-LICTGZXW.js";
@@ -14,12 +14,12 @@ import {
14
14
  signTypedData,
15
15
  switchChain
16
16
  } from "./chunk-OODIKHYE.js";
17
+ import {
18
+ i18n_default
19
+ } from "./chunk-R5VAX6YA.js";
17
20
  import {
18
21
  logger
19
22
  } from "./chunk-GTPMJGCF.js";
20
- import {
21
- i18n_default
22
- } from "./chunk-YSAAJSWT.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,9 +10,9 @@ import {
10
10
  } from "./chunk-N46CL4ZT.js";
11
11
  import {
12
12
  useFunkitTranslation
13
- } from "./chunk-L6JL2XJY.js";
13
+ } from "./chunk-TFIJZTGQ.js";
14
+ import "./chunk-R5VAX6YA.js";
14
15
  import "./chunk-GTPMJGCF.js";
15
- import "./chunk-YSAAJSWT.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-KH2HLTHP.js";
4
+ } from "../../chunk-TLFE74BL.js";
5
5
  import "../../chunk-TKEBGMVW.js";
6
- import "../../chunk-AELXD5XA.js";
6
+ import "../../chunk-VFKEUHZT.js";
7
7
  import "../../chunk-LICTGZXW.js";
8
8
  import "../../chunk-OODIKHYE.js";
9
+ import "../../chunk-R5VAX6YA.js";
9
10
  import "../../chunk-GTPMJGCF.js";
10
- import "../../chunk-YSAAJSWT.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-R5VAX6YA.js";
17
18
  import {
18
19
  logger
19
20
  } from "../../chunk-GTPMJGCF.js";
20
- import "../../chunk-YSAAJSWT.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-R5VAX6YA.js";
9
10
  import {
10
11
  logger
11
12
  } from "../../chunk-GTPMJGCF.js";
12
- import "../../chunk-YSAAJSWT.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,10 +3,10 @@ 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,
@@ -14,13 +14,13 @@ import {
14
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-R5VAX6YA.js";
20
21
  import {
21
22
  logger
22
23
  } from "./chunk-GTPMJGCF.js";
23
- import "./chunk-YSAAJSWT.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-R5VAX6YA.js";
17
18
  import {
18
19
  logger
19
20
  } from "./chunk-GTPMJGCF.js";
20
- import "./chunk-YSAAJSWT.js";
21
21
 
22
22
  // src/clients/mallard.tsx
23
23
  import { ROBINHOOD_MAINNET_CHAIN_ID } from "@funkit/chains";
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "./chunk-KH2HLTHP.js";
4
+ } from "./chunk-TLFE74BL.js";
5
5
  import "./chunk-TKEBGMVW.js";
6
- import "./chunk-AELXD5XA.js";
6
+ import "./chunk-VFKEUHZT.js";
7
7
  import "./chunk-LICTGZXW.js";
8
8
  import "./chunk-OODIKHYE.js";
9
9
  import {
10
10
  useAccount,
11
11
  useConfig
12
12
  } from "./chunk-2W2P3OS6.js";
13
+ import {
14
+ i18n_default
15
+ } from "./chunk-R5VAX6YA.js";
13
16
  import {
14
17
  logger
15
18
  } from "./chunk-GTPMJGCF.js";
16
- import {
17
- i18n_default
18
- } from "./chunk-YSAAJSWT.js";
19
19
 
20
20
  // src/clients/nado.tsx
21
21
  import { useMemo } from "react";
@@ -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;
@@ -22,18 +22,28 @@ interface TokenSwapCardContentProps {
22
22
  convertedAmount: string;
23
23
  onToggleUnit?: () => void;
24
24
  balance?: string;
25
- /** Makes the balance a button, e.g. to fill in Max. */
26
- onBalanceClick?: () => void;
25
+ /** Shows the percentage presets beside the label; 100 is Max. */
26
+ onPercentSelect?: (percent: number) => void;
27
27
  isLoading?: boolean;
28
28
  /** Keeps the layout but makes every control inert. */
29
29
  isDisabled?: boolean;
30
30
  testId: string;
31
31
  }
32
32
  export type TokenSwapCardProps = TokenSwapCardContentProps & TokenSwapDepositState;
33
+ /** A swap card's shell: `from` is outlined, `to` filled. Shared with the skeleton so both line up. */
34
+ export declare function TokenSwapCardFrame({ variant, testId, children, }: {
35
+ variant: 'from' | 'to';
36
+ testId?: string;
37
+ children: React.ReactNode;
38
+ }): React.JSX.Element;
39
+ /** One row of a swap card: content at the start, content at the end. */
40
+ export declare function TokenSwapCardRow({ children }: {
41
+ children: React.ReactNode;
42
+ }): React.JSX.Element;
33
43
  /**
34
44
  * One card of the swap widget.
35
- * - `from`: outlined, unit toggle, highlighted balance; editable unless a deposit is required.
45
+ * - `from`: outlined, unit toggle, percentage presets; editable unless a deposit is required.
36
46
  * - `to`: filled background, read-only, amount comes from the quote.
37
47
  */
38
- export declare function TokenSwapCard({ variant, label, token, isDepositRequired, onDeposit, onTokenClick, amount, amountPrefix, onAmountChange, convertedAmount, onToggleUnit, balance, onBalanceClick, isLoading, isDisabled, testId, }: TokenSwapCardProps): React.JSX.Element;
48
+ export declare function TokenSwapCard({ variant, label, token, isDepositRequired, onDeposit, onTokenClick, amount, amountPrefix, onAmountChange, convertedAmount, onToggleUnit, balance, onPercentSelect, isLoading, isDisabled, testId, }: TokenSwapCardProps): React.JSX.Element;
39
49
  export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface TokenSwapPercentOptionsProps {
3
+ /** Fired with the chosen share of the balance (100 = Max). */
4
+ onSelect: (percent: number) => void;
5
+ isDisabled?: boolean;
6
+ testId: string;
7
+ }
8
+ /** The 25% / 50% / 75% / Max row on the source card. */
9
+ export declare function TokenSwapPercentOptions({ onSelect, isDisabled, testId, }: TokenSwapPercentOptionsProps): React.JSX.Element;
@@ -16,8 +16,8 @@ export type TokenSwapFrom = TokenSwapAmounts & TokenSwapDepositState & {
16
16
  /** What the user typed, in `unit`. */
17
17
  inputValue: string;
18
18
  onInputChange: (next: string) => void;
19
- /** Omit while Max is unknown; the balance then stays plain text. */
20
- onBalanceClick?: () => void;
19
+ /** Omit to hide the percentage presets (e.g. nothing to take a share of); 100 is Max. */
20
+ onPercentSelect?: (percent: number) => void;
21
21
  };
22
22
  export interface TokenSwapTo extends TokenSwapAmounts {
23
23
  /** Shows a skeleton in place of the amount while the quote loads. */
@@ -41,3 +41,5 @@ export interface TokenSwapWidgetProps {
41
41
  * caller owns amounts, quotes and token selection.
42
42
  */
43
43
  export declare function TokenSwapWidget({ from, to, unit, onToggleUnit, onSwapDirection, isSwapDirectionDisabled, isDisabled, }: TokenSwapWidgetProps): React.JSX.Element;
44
+ /** The swap icon as decoration only, for a widget that can't swap. */
45
+ export declare function SwapDirectionIcon(): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ /** The swap widget's layout while there's nothing to show in it yet. */
3
+ export declare function TokenSwapWidgetSkeleton(): React.JSX.Element;
@@ -24,7 +24,11 @@ export declare function isFanaticsCustomer(apiKey: string): apiKey is "lI7amueGK
24
24
  export declare function isAaveCustomer(apiKey: string): apiKey is "EWzSv8tWnQ7UcZ2IsDqFw1dYo3Df56FX6KBJ5ztS";
25
25
  export declare function isNadoCustomer(apiKey: string): apiKey is "iFwbI36PWs6egzqjemCVz8PRmDwaANr51WtaARhV";
26
26
  export declare function isMallardCustomer(apiKey: string): apiKey is "hxiC33LDFN9BekjyOXfYo597NQ6TdkBG9soUGyW2";
27
- /** Whether a wallet balance must be kept out of this customer's balance UI. */
27
+ /**
28
+ * Whether a wallet balance must be kept out of this customer's balance UI.
29
+ * Robinhood stock tokens show only where the customer's Relay key routes them:
30
+ * every stock for Lighter RH, Arcus's own eight for Mallard.
31
+ */
28
32
  export declare function isTokenHiddenForCustomer(apiKey: string, chainId: string, tokenAddress: string): boolean;
29
33
  /**
30
34
  * Gates the source-select "Native" fast-path: when the connected wallet
@@ -1,5 +1,6 @@
1
1
  import type { GetSupportedAssetsResponse, SupportedAssetInfo } from '@funkit/api-base';
2
2
  import type { Config } from '../../wagmi/hooks';
3
+ import { type ConvertBalanceState, type ConvertBalances } from './balances';
3
4
  import type { ConvertAsset, ConvertResolvedAsset } from './types';
4
5
  /** Where the host's asset list and balances stand: still loading, failed, or readable. */
5
6
  export type ConvertAssetListStatus = 'loading' | 'error' | 'ready';
@@ -28,3 +29,34 @@ export declare function resolveConvertAssets({ assets, supportedAssets, wagmiCon
28
29
  }): Promise<ConvertResolvedAsset[]>;
29
30
  /** The listed asset with this {@link convertAssetKey}, if any. */
30
31
  export declare function findConvertAsset(assets: ConvertResolvedAsset[] | undefined, assetKey: string | undefined): ConvertResolvedAsset | undefined;
32
+ /** One row on a Convert token screen. */
33
+ export interface ConvertAssetOption {
34
+ asset: ConvertResolvedAsset;
35
+ key: string;
36
+ /** `undefined` until the first balance read lands. */
37
+ balance: ConvertBalanceState | undefined;
38
+ /** The balance in USD; `undefined` when the balance is unknown. */
39
+ usdAmount: number | undefined;
40
+ isDisabled: boolean;
41
+ /** Worth less than the minimum Convert quotes, so it can't be a source. */
42
+ isBelowMinimum?: boolean;
43
+ }
44
+ /**
45
+ * Pickable rows first, then by USD value. An unknown value sorts last, and the
46
+ * stable sort keeps the host's order among equal values.
47
+ */
48
+ export declare function compareConvertAssetOptions(a: ConvertAssetOption, b: ConvertAssetOption): number;
49
+ /**
50
+ * The source screen's rows: held tokens by USD value, disabled ones last.
51
+ * - Under the $1 minimum is disabled ("Low Balance"): Relay won't quote it.
52
+ * - An unreadable balance stays listed but disabled, so funds never look gone.
53
+ */
54
+ export declare function getConvertSourceOptions({ assets, balances, }: {
55
+ assets: ConvertResolvedAsset[];
56
+ balances: ConvertBalances;
57
+ }): ConvertAssetOption[];
58
+ /**
59
+ * The source Convert opens on: the most valuable token the user can convert
60
+ * from, i.e. the source screen's top row. `undefined` when no row is pickable.
61
+ */
62
+ export declare function getConvertPreselectedSource(options: ConvertAssetOption[]): ConvertAssetOption | undefined;