@funkit/connect 11.1.0 → 11.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 (110) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/clients/{chunk-YZSO4EMO.js → chunk-2576N7PQ.js} +1 -1
  3. package/dist/clients/{chunk-II5CZTBC.js → chunk-3P2C436B.js} +3 -1
  4. package/dist/clients/chunk-6QCAWEAT.js +53 -0
  5. package/dist/clients/{chunk-2QYQNTOI.js → chunk-C45VNQXY.js} +24 -16
  6. package/dist/clients/{chunk-SO756ELD.js → chunk-DGBIV3ZS.js} +1 -0
  7. package/dist/clients/{chunk-SYFHMTUO.js → chunk-FM7SFGAV.js} +2 -2
  8. package/dist/clients/{chunk-EJKHMZW3.js → chunk-IYCZWLAF.js} +2 -1
  9. package/dist/clients/{chunk-OJZNF6EM.js → chunk-JFDRLSYM.js} +1 -1
  10. package/dist/clients/{chunk-A6OXZWCN.js → chunk-QQEGNLGD.js} +1 -1
  11. package/dist/clients/{chunk-YMGRBJAS.js → chunk-SU3YSNMB.js} +11 -7
  12. package/dist/clients/{chunk-A44M6EAG.js → chunk-TZGKB6WY.js} +1 -1
  13. package/dist/clients/{chunk-C53FRCUM.js → chunk-UK64SY6N.js} +1 -1
  14. package/dist/clients/{chunk-WVM4ZJD2.js → chunk-VIAEAD75.js} +1 -1
  15. package/dist/clients/{chunk-QIMCURVA.js → chunk-XJTRLB7W.js} +3 -3
  16. package/dist/clients/{chunk-SH3MHRHX.js → chunk-Y7WLUPTX.js} +1 -1
  17. package/dist/clients/{chunk-FAYBQQNB.js → chunk-YUZ3B2Q3.js} +1 -1
  18. package/dist/clients/fanatics.js +2 -2
  19. package/dist/clients/internal/nado/consts.d.ts +6 -0
  20. package/dist/clients/internal/nado/consts.js +5 -3
  21. package/dist/clients/internal/nado/gateway.js +2 -2
  22. package/dist/clients/internal/nado/hooks.js +4 -4
  23. package/dist/clients/internal/nado/indexer.js +2 -2
  24. package/dist/clients/internal/nado/typedData.js +2 -2
  25. package/dist/clients/internal/nado/withdrawalCallback.js +7 -7
  26. package/dist/clients/internal/nado/withdrawalConfig.d.ts +4 -4
  27. package/dist/clients/internal/nado/withdrawalConfig.js +2 -2
  28. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  29. package/dist/clients/internal/nado/withdrawalForm.css +43 -35
  30. package/dist/clients/internal/nado/withdrawalForm.d.ts +3 -0
  31. package/dist/clients/internal/nado/withdrawalForm.js +17 -13
  32. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  33. package/dist/clients/lighter.css +43 -35
  34. package/dist/clients/lighter.js +5 -7
  35. package/dist/clients/mallard.js +2 -2
  36. package/dist/clients/nado.js +10 -10
  37. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +43 -35
  38. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +7 -7
  39. package/dist/clients/polymarket/createPolymarketDepositConfig.js +2 -2
  40. package/dist/clients/polymarket/index.css +43 -35
  41. package/dist/clients/polymarket/index.js +7 -7
  42. package/dist/clients/polymarket/polymarket.js +1 -1
  43. package/dist/components/Dialog/Dialog.d.ts +3 -1
  44. package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
  45. package/dist/components/FunCheckbox/FunCheckbox.d.ts +3 -1
  46. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -1
  47. package/dist/domains/nado.d.ts +11 -2
  48. package/dist/domains/quoteMode/types.d.ts +16 -0
  49. package/dist/domains/relay.d.ts +0 -3
  50. package/dist/hooks/track/analytics/events.d.ts +35 -7
  51. package/dist/hooks/track/analytics/mappers.d.ts +2 -0
  52. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +18 -1
  53. package/dist/hooks/track/useTrack.d.ts +1 -1
  54. package/dist/hooks/useFunkitTranslation.d.ts +5 -0
  55. package/dist/hooks/useTokenAndChainDropdown.d.ts +4 -1
  56. package/dist/index.css +43 -35
  57. package/dist/index.js +3343 -2941
  58. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +5 -1
  59. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +13 -0
  60. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +4 -3
  61. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +9 -1
  62. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +3 -1
  63. package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +4 -1
  64. package/dist/modals/CheckoutModal/SourceChange/useBottomBarCloseLabel.d.ts +7 -0
  65. package/dist/modals/WithdrawalModal/LockedReceiveDisplay.d.ts +22 -0
  66. package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +18 -1
  67. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +1 -1
  68. package/dist/providers/FunkitCheckoutContext/types.d.ts +4 -2
  69. package/dist/providers/FunkitStatsigProvider.d.ts +7 -0
  70. package/dist/utils/customer.d.ts +23 -230
  71. package/dist/utils/withdrawal.d.ts +11 -1
  72. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  73. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  75. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  76. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  77. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  78. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  79. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  80. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  81. package/dist/wallets/walletConnectors/index.js +54 -54
  82. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  83. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  84. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  85. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  86. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  87. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  88. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  89. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  90. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  91. package/package.json +4 -4
  92. package/dist/clients/chunk-NAVU6W7V.js +0 -89
  93. package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
  94. package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
  95. package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
  96. package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
  97. package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
  98. package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
  99. package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
  100. package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
  101. package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
  102. package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
  103. package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
  104. package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
  105. package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
  106. package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
  107. package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
  108. package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
  109. package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
  110. package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 11.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6187382: xStock withdrawals now pin the receive token and chain to the asset being withdrawn, replacing the receive dropdown with read-only fields.
8
+ - 5d71640: Withdrawal source tokens can now declare an `assetClass`, and the `AssetClass` type is exported.
9
+
10
+ ### Patch Changes
11
+
12
+ - f00698e: Update withdrawal amount toggle checkbox border styles
13
+ - 8ec8dfa: Base the checkout amount prefill on the spendable balance (gas reserved) for native-token EXACT_IN deposits, so they no longer open above the max.
14
+ - 0872c5f: refactor(connect): share relay fee extraction with `@funkit/connect-core` — no consumer-facing changes
15
+ - 2ed588e: Add withdrawal recipient safety checks: operator blacklist and Chainalysis risk screening.
16
+ - a7258d9: feat: shadow-compare geo lookups against Fun's first-party endpoint, promotable via the `enable-fun-geo-primary` gate
17
+ - e109908: Internal refactor only — no consumer-facing change.
18
+ - fba0b56: Add Lighter deposit support to `@funkit/connect-rn`: external user IDs are sent verbatim and the deposit recipient resolves to the user's Lighter L2 main-account index, never the L1 wallet address.
19
+ - a77665e: Extract the locked receive token/chain fields into a shared component. No visual or behavior change.
20
+ - 7b75bdd: Internal refactor only — no consumer-facing change.
21
+ - 3f84fe2: Meld checkout continuation now reports whether the flow advanced when no quote is selected.
22
+ - 29a4818: Nado withdrawals now explain the borrowing checkbox with a tooltip.
23
+ - 04905cd: Nado withdrawals now include the sequencer fee in the transaction breakdown's network cost.
24
+ - b1ccfed: fix(connect): add nado withdraw action type
25
+ - d74d0d4: Nado withdrawal pending copy now sets a time expectation: "You should receive it in a few minutes."
26
+ - 81ade44: Tighten Nado withdrawal success copy: shorter pending subheading, no subheading when complete, and "Amount" replaces "Withdrawing"
27
+ - 8c8fbed: Add internal groundwork for pinning the receive token on Nado xStock withdrawals. No behavior change.
28
+ - 749a31c: Keep displayed and tracked quick-option amounts formatted consistently.
29
+ - f89ead1: The source-change bottom bar falls back to the Close label when a customer configures an unknown label key.
30
+ - 72f2e8f: fix(connect): preserve amount-selection attribution across input navigation
31
+ - f4ad7b0: feat(connect): wire fc_deposit_amount_confirmed into the InputAmount continue flow
32
+ - 0cb4bed: Prepare amount-confirmation analytics with consistent source and target amount estimates.
33
+ - 939a022: fix(connect): preserve Meld service provider through checkout state
34
+ - af1c56e: Track deposit asset selections made from the primary asset picker.
35
+ - d9b84f3: Add a second Statsig client ("Fun WHN" project) exposed via `useFunWhnStatsigClient`.
36
+ - d4d9153: Fix a visible border around the modal while the Swapped iframe (deposit/withdrawal) is active.
37
+ - 6309198: Track deposit asset selections made from the transfer-token checkout flow.
38
+ - Updated dependencies [8eb9f08]
39
+ - Updated dependencies [195843e]
40
+ - Updated dependencies [0872c5f]
41
+ - Updated dependencies [18c2f00]
42
+ - Updated dependencies [2ed588e]
43
+ - Updated dependencies [2b9f1af]
44
+ - Updated dependencies [a7258d9]
45
+ - Updated dependencies [fba0b56]
46
+ - Updated dependencies [c4b476d]
47
+ - Updated dependencies [12d5574]
48
+ - Updated dependencies [7110ca9]
49
+ - Updated dependencies [c4b476d]
50
+ - Updated dependencies [5d71640]
51
+ - @funkit/api-base@7.0.0
52
+ - @funkit/connect-core@2.5.0
53
+ - @funkit/fun-relay@2.10.1
54
+
3
55
  ## 11.1.0
4
56
 
5
57
  ### Minor Changes
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  INK_CHAIN_ID,
4
4
  NADO_EIP712_VERIFYING_CONTRACT_ADDRESS
5
- } from "./chunk-II5CZTBC.js";
5
+ } from "./chunk-3P2C436B.js";
6
6
 
7
7
  // src/clients/internal/nado/typedData.ts
8
8
  var WITHDRAW_COLLATERAL_V2_TYPES = {
@@ -9,10 +9,12 @@ var NADO_INDEXER_URL = "https://archive.prod.nado.xyz/v1";
9
9
  var NADO_EIP712_VERIFYING_CONTRACT_ADDRESS = getAddress(
10
10
  "0x05ec92D78ED421f3D3Ada77FFdE167106565974E"
11
11
  );
12
+ var NADO_WITHDRAWAL_ACTION_TYPE = "NADO_WITHDRAWAL";
12
13
 
13
14
  export {
14
15
  INK_CHAIN_ID,
15
16
  NADO_GATEWAY_URL,
16
17
  NADO_INDEXER_URL,
17
- NADO_EIP712_VERIFYING_CONTRACT_ADDRESS
18
+ NADO_EIP712_VERIFYING_CONTRACT_ADDRESS,
19
+ NADO_WITHDRAWAL_ACTION_TYPE
18
20
  };
@@ -0,0 +1,53 @@
1
+ "use client";
2
+
3
+ // src/utils/customer.ts
4
+ import { useLighterAccountsQuery } from "@funkit/connect-core";
5
+ import { useQuery, useQueryClient } from "@tanstack/react-query";
6
+ import { useCallback } from "react";
7
+ import {
8
+ LIGHTER_TRADING_MODE,
9
+ getLighterAccountsByL1Address,
10
+ useLighterAccountsQuery as useLighterAccountsQuery2
11
+ } from "@funkit/connect-core";
12
+ async function getLighterAccount(lookup, activeOnly) {
13
+ const params = new URLSearchParams({
14
+ by: lookup.by,
15
+ value: String(lookup.value),
16
+ ...activeOnly !== void 0 && { active_only: String(activeOnly) }
17
+ });
18
+ const response = await fetch(
19
+ `https://mainnet.zklighter.elliot.ai/api/v1/account?${params}`
20
+ );
21
+ if (!response.ok) {
22
+ throw new Error(`Failed to fetch lighter account: ${response.statusText}`);
23
+ }
24
+ return response.json();
25
+ }
26
+ function useLighterAccountQuery(lookup, options) {
27
+ const enabled = lookup !== null && (lookup.by === "index" ? true : !!lookup.value && lookup.value !== "0x");
28
+ const query = useQuery({
29
+ queryKey: [
30
+ "lighterAccount",
31
+ lookup?.by,
32
+ lookup?.value,
33
+ options?.activeOnly
34
+ ],
35
+ // biome-ignore lint/style/noNonNullAssertion: already checked for null
36
+ queryFn: () => getLighterAccount(lookup, options?.activeOnly),
37
+ enabled,
38
+ // Refetch on every (re)mount so reopening the withdraw widget shows a fresh
39
+ // balance after a spot→perps transfer; 10s stale window keeps it current.
40
+ staleTime: 1e4,
41
+ refetchOnMount: "always",
42
+ retry: false
43
+ });
44
+ return {
45
+ ...query,
46
+ account: query.data?.accounts?.[0]
47
+ };
48
+ }
49
+
50
+ export {
51
+ useLighterAccountQuery,
52
+ useLighterAccountsQuery2 as useLighterAccountsQuery
53
+ };
@@ -414,14 +414,15 @@ var en_default = {
414
414
  lighterSecureAddressTooltip: "You can only withdraw to your connected wallet",
415
415
  lighterSecureTokenTooltip: "You can only receive the token you are choosing to withdraw",
416
416
  lighterSecureChainTooltip: "Secure withdrawals are only available on Ethereum",
417
+ lockedReceiveTooltip: "{{tokenSymbol}} can only be withdrawn on {{chainName}}",
417
418
  lighterFastTokenTooltip: "Fast withdrawals are only available for your USDC (Perps) balance",
418
419
  lighterWithdrawOnChain: "Withdraw on-chain",
419
420
  lighterL1FallbackNotice: "You've reached Lighter's secure withdrawal rate limit. You can withdraw directly on-chain instead.",
420
421
  enableBorrowing: "Enable borrowing",
422
+ enableBorrowingTooltip: "Enables you to borrow assets against your existing collateral. Borrowing increases your margin usage and account risk.",
421
423
  nado: {
422
424
  requestedTitle: "Withdrawal Requested",
423
- requestedDescription: "Your withdrawal has been requested and will be processed shortly.",
424
- withdrawing: "Withdrawing",
425
+ requestedDescription: "You should receive it in a few minutes.",
425
426
  trackOnNado: "Track on Nado",
426
427
  errorGeneric: "Withdrawal failed. Please try again.",
427
428
  errorNetwork: "Can't reach Nado right now. Please try again.",
@@ -1000,14 +1001,15 @@ var es_default = {
1000
1001
  lighterSecureAddressTooltip: "Solo puedes retirar a tu billetera conectada",
1001
1002
  lighterSecureTokenTooltip: "Solo puedes recibir el token que eliges retirar",
1002
1003
  lighterSecureChainTooltip: "Los retiros seguros solo est\xE1n disponibles en Ethereum",
1004
+ lockedReceiveTooltip: "{{tokenSymbol}} solo se puede retirar en {{chainName}}",
1003
1005
  lighterFastTokenTooltip: "Los retiros r\xE1pidos solo est\xE1n disponibles para tu saldo de USDC (Perps)",
1004
1006
  lighterWithdrawOnChain: "Retirar on-chain",
1005
1007
  lighterL1FallbackNotice: "Has alcanzado el l\xEDmite de retiros seguros de Lighter. Puedes retirar directamente on-chain.",
1006
1008
  enableBorrowing: "Habilitar pr\xE9stamo",
1009
+ enableBorrowingTooltip: "Te permite pedir prestados activos con tu colateral existente como garant\xEDa. Pedir prestado aumenta el uso de tu margen y el riesgo de tu cuenta.",
1007
1010
  nado: {
1008
1011
  requestedTitle: "Retiro solicitado",
1009
- requestedDescription: "Tu retiro ha sido solicitado y se procesar\xE1 en breve.",
1010
- withdrawing: "Retirando",
1012
+ requestedDescription: "Deber\xEDas recibirlo en unos minutos.",
1011
1013
  trackOnNado: "Seguir en Nado",
1012
1014
  errorGeneric: "El retiro fall\xF3. Int\xE9ntalo nuevamente.",
1013
1015
  errorNetwork: "No se puede conectar con Nado en este momento. Int\xE9ntalo nuevamente.",
@@ -1586,14 +1588,15 @@ var fr_default = {
1586
1588
  lighterSecureAddressTooltip: "Vous ne pouvez retirer que vers votre portefeuille connect\xE9",
1587
1589
  lighterSecureTokenTooltip: "Vous ne pouvez recevoir que le jeton que vous choisissez de retirer",
1588
1590
  lighterSecureChainTooltip: "Les retraits s\xE9curis\xE9s ne sont disponibles que sur Ethereum",
1591
+ lockedReceiveTooltip: "{{tokenSymbol}} ne peut \xEAtre retir\xE9 que sur {{chainName}}",
1589
1592
  lighterFastTokenTooltip: "Les retraits rapides ne sont disponibles que pour votre solde USDC (Perps)",
1590
1593
  lighterWithdrawOnChain: "Retirer on-chain",
1591
1594
  lighterL1FallbackNotice: "Vous avez atteint la limite de retraits s\xE9curis\xE9s de Lighter. Vous pouvez retirer directement on-chain.",
1592
1595
  enableBorrowing: "Activer l'emprunt",
1596
+ enableBorrowingTooltip: "Vous permet d'emprunter des actifs sur votre collat\xE9ral existant. L'emprunt augmente votre utilisation de marge et le risque de votre compte.",
1593
1597
  nado: {
1594
1598
  requestedTitle: "Retrait demand\xE9",
1595
- requestedDescription: "Votre retrait a \xE9t\xE9 demand\xE9 et sera trait\xE9 sous peu.",
1596
- withdrawing: "Retrait en cours",
1599
+ requestedDescription: "Vous devriez le recevoir dans quelques minutes.",
1597
1600
  trackOnNado: "Suivre sur Nado",
1598
1601
  errorGeneric: "Le retrait a \xE9chou\xE9. Veuillez r\xE9essayer.",
1599
1602
  errorNetwork: "Impossible de joindre Nado pour le moment. Veuillez r\xE9essayer.",
@@ -2172,14 +2175,15 @@ var ja_default = {
2172
2175
  lighterSecureAddressTooltip: "\u63A5\u7D9A\u4E2D\u306E\u30A6\u30A9\u30EC\u30C3\u30C8\u306B\u306E\u307F\u51FA\u91D1\u3067\u304D\u307E\u3059",
2173
2176
  lighterSecureTokenTooltip: "\u51FA\u91D1\u3059\u308B\u901A\u8CA8\u306E\u307F\u53D7\u3051\u53D6\u308C\u307E\u3059",
2174
2177
  lighterSecureChainTooltip: "\u30BB\u30AD\u30E5\u30A2\u51FA\u91D1\u306F\u30A4\u30FC\u30B5\u30EA\u30A2\u30E0\u3067\u306E\u307F\u5229\u7528\u3067\u304D\u307E\u3059",
2178
+ lockedReceiveTooltip: "{{tokenSymbol}} \u306F {{chainName}} \u3067\u306E\u307F\u51FA\u91D1\u3067\u304D\u307E\u3059",
2175
2179
  lighterFastTokenTooltip: "\u9AD8\u901F\u51FA\u91D1\u306FUSDC (Perps)\u6B8B\u9AD8\u3067\u306E\u307F\u5229\u7528\u3067\u304D\u307E\u3059",
2176
2180
  lighterWithdrawOnChain: "\u30AA\u30F3\u30C1\u30A7\u30FC\u30F3\u3067\u51FA\u91D1",
2177
2181
  lighterL1FallbackNotice: "Lighter\u306E\u30BB\u30AD\u30E5\u30A2\u51FA\u91D1\u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002\u4EE3\u308F\u308A\u306B\u30AA\u30F3\u30C1\u30A7\u30FC\u30F3\u3067\u76F4\u63A5\u51FA\u91D1\u3067\u304D\u307E\u3059\u3002",
2178
2182
  enableBorrowing: "\u501F\u5165\u3092\u6709\u52B9\u306B\u3059\u308B",
2183
+ enableBorrowingTooltip: "\u65E2\u5B58\u306E\u62C5\u4FDD\u3092\u4F7F\u3063\u3066\u8CC7\u7523\u3092\u501F\u308A\u5165\u308C\u3089\u308C\u307E\u3059\u3002\u501F\u5165\u306F\u30DE\u30FC\u30B8\u30F3\u4F7F\u7528\u7387\u3068\u53E3\u5EA7\u30EA\u30B9\u30AF\u3092\u9AD8\u3081\u307E\u3059\u3002",
2179
2184
  nado: {
2180
2185
  requestedTitle: "\u51FA\u91D1\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3057\u307E\u3057\u305F",
2181
- requestedDescription: "\u51FA\u91D1\u304C\u30EA\u30AF\u30A8\u30B9\u30C8\u3055\u308C\u307E\u3057\u305F\u3002\u307E\u3082\u306A\u304F\u51E6\u7406\u3055\u308C\u307E\u3059\u3002",
2182
- withdrawing: "\u51FA\u91D1\u4E2D",
2186
+ requestedDescription: "\u6570\u5206\u4EE5\u5185\u306B\u53D7\u3051\u53D6\u308C\u307E\u3059\u3002",
2183
2187
  trackOnNado: "Nado \u3067\u8FFD\u8DE1",
2184
2188
  errorGeneric: "\u51FA\u91D1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
2185
2189
  errorNetwork: "\u73FE\u5728 Nado \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
@@ -2758,14 +2762,15 @@ var ko_default = {
2758
2762
  lighterSecureAddressTooltip: "\uC5F0\uACB0\uB41C \uC9C0\uAC11\uC73C\uB85C\uB9CC \uCD9C\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
2759
2763
  lighterSecureTokenTooltip: "\uCD9C\uAE08\uD558\uB824\uB294 \uD1A0\uD070\uB9CC \uBC1B\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
2760
2764
  lighterSecureChainTooltip: "\uBCF4\uC548 \uCD9C\uAE08\uC740 \uC774\uB354\uB9AC\uC6C0\uC5D0\uC11C\uB9CC \uAC00\uB2A5\uD569\uB2C8\uB2E4",
2765
+ lockedReceiveTooltip: "{{tokenSymbol}}\uC740(\uB294) {{chainName}}\uC5D0\uC11C\uB9CC \uCD9C\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
2761
2766
  lighterFastTokenTooltip: "\uBE60\uB978 \uCD9C\uAE08\uC740 USDC (Perps) \uC794\uC561\uC5D0\uC11C\uB9CC \uC774\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",
2762
2767
  lighterWithdrawOnChain: "\uC628\uCCB4\uC778\uC73C\uB85C \uCD9C\uAE08",
2763
2768
  lighterL1FallbackNotice: "Lighter\uC758 \uBCF4\uC548 \uCD9C\uAE08 \uD55C\uB3C4\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. \uB300\uC2E0 \uC628\uCCB4\uC778\uC5D0\uC11C \uC9C1\uC811 \uCD9C\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
2764
2769
  enableBorrowing: "\uCC28\uC785 \uC0AC\uC6A9",
2770
+ enableBorrowingTooltip: "\uAE30\uC874 \uB2F4\uBCF4\uB97C \uC774\uC6A9\uD574 \uC790\uC0B0\uC744 \uCC28\uC785\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uCC28\uC785\uD558\uBA74 \uB9C8\uC9C4 \uC0AC\uC6A9\uB960\uACFC \uACC4\uC815 \uB9AC\uC2A4\uD06C\uAC00 \uB192\uC544\uC9D1\uB2C8\uB2E4.",
2765
2771
  nado: {
2766
2772
  requestedTitle: "\uCD9C\uAE08 \uC694\uCCAD\uB428",
2767
- requestedDescription: "\uCD9C\uAE08\uC774 \uC694\uCCAD\uB418\uC5C8\uC73C\uBA70 \uACE7 \uCC98\uB9AC\uB429\uB2C8\uB2E4.",
2768
- withdrawing: "\uCD9C\uAE08 \uC911",
2773
+ requestedDescription: "\uBA87 \uBD84 \uC548\uC5D0 \uBC1B\uC73C\uC2E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
2769
2774
  trackOnNado: "Nado\uC5D0\uC11C \uCD94\uC801",
2770
2775
  errorGeneric: "\uCD9C\uAE08\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
2771
2776
  errorNetwork: "\uD604\uC7AC Nado\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
@@ -3344,14 +3349,15 @@ var ru_default = {
3344
3349
  lighterSecureAddressTooltip: "\u0412\u044B\u0432\u043E\u0434 \u0432\u043E\u0437\u043C\u043E\u0436\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u0430 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
3345
3350
  lighterSecureTokenTooltip: "\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0442\u043E\u0442 \u0442\u043E\u043A\u0435\u043D, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0435",
3346
3351
  lighterSecureChainTooltip: "\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0439 \u0432\u044B\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0441\u0435\u0442\u0438 Ethereum",
3352
+ lockedReceiveTooltip: "{{tokenSymbol}} \u043C\u043E\u0436\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0441\u0435\u0442\u0438 {{chainName}}",
3347
3353
  lighterFastTokenTooltip: "\u0411\u044B\u0441\u0442\u0440\u044B\u0439 \u0432\u044B\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u0431\u0430\u043B\u0430\u043D\u0441\u0430 USDC (Perps)",
3348
3354
  lighterWithdrawOnChain: "\u0412\u044B\u0432\u0435\u0441\u0442\u0438 \u0432 \u0441\u0435\u0442\u0438",
3349
3355
  lighterL1FallbackNotice: "\u0412\u044B \u0434\u043E\u0441\u0442\u0438\u0433\u043B\u0438 \u043B\u0438\u043C\u0438\u0442\u0430 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0432\u044B\u0432\u043E\u0434\u043E\u0432 Lighter. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u0432 \u0441\u0435\u0442\u0438.",
3350
3356
  enableBorrowing: "\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0451\u043C",
3357
+ enableBorrowingTooltip: "\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0437\u0430\u043D\u0438\u043C\u0430\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u044B \u043F\u043E\u0434 \u0432\u0430\u0448\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0435 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0435\u043D\u0438\u0435. \u0417\u0430\u0451\u043C \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u0430\u0440\u0436\u0438 \u0438 \u0440\u0438\u0441\u043A \u043F\u043E \u0441\u0447\u0451\u0442\u0443.",
3351
3358
  nado: {
3352
3359
  requestedTitle: "\u0412\u044B\u0432\u043E\u0434 \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",
3353
- requestedDescription: "\u0412\u0430\u0448 \u0432\u044B\u0432\u043E\u0434 \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D \u0438 \u0431\u0443\u0434\u0435\u0442 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D \u0432 \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043C\u044F.",
3354
- withdrawing: "\u0412\u044B\u0432\u043E\u0434",
3360
+ requestedDescription: "\u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0438\u043D\u0443\u0442.",
3355
3361
  trackOnNado: "\u041E\u0442\u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0432 Nado",
3356
3362
  errorGeneric: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0432\u044B\u0432\u043E\u0434. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
3357
3363
  errorNetwork: "\u0421\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0442 \u0441\u0432\u044F\u0437\u0438 \u0441 Nado. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
@@ -3930,14 +3936,15 @@ var tr_default = {
3930
3936
  lighterSecureAddressTooltip: "Yaln\u0131zca ba\u011Fl\u0131 c\xFCzdan\u0131n\u0131za para \xE7ekebilirsiniz",
3931
3937
  lighterSecureTokenTooltip: "Yaln\u0131zca \xE7ekmeyi se\xE7ti\u011Finiz tokeni alabilirsiniz",
3932
3938
  lighterSecureChainTooltip: "G\xFCvenli \xE7ekimler yaln\u0131zca Ethereum'da kullan\u0131labilir",
3939
+ lockedReceiveTooltip: "{{tokenSymbol}} yaln\u0131zca {{chainName}} \xFCzerinden \xE7ekilebilir",
3933
3940
  lighterFastTokenTooltip: "H\u0131zl\u0131 \xE7ekimler yaln\u0131zca USDC (Perps) bakiyeniz i\xE7in kullan\u0131labilir",
3934
3941
  lighterWithdrawOnChain: "Zincir \xFCzerinde \xE7ek",
3935
3942
  lighterL1FallbackNotice: "Lighter'\u0131n g\xFCvenli \xE7ekim h\u0131z s\u0131n\u0131r\u0131na ula\u015Ft\u0131n\u0131z. Bunun yerine do\u011Frudan zincir \xFCzerinden \xE7ekebilirsiniz.",
3936
3943
  enableBorrowing: "Bor\xE7lanmay\u0131 etkinle\u015Ftir",
3944
+ enableBorrowingTooltip: "Mevcut teminat\u0131n\u0131z kar\u015F\u0131l\u0131\u011F\u0131nda varl\u0131k \xF6d\xFCn\xE7 alman\u0131z\u0131 sa\u011Flar. Bor\xE7lanmak, marj kullan\u0131m\u0131n\u0131z\u0131 ve hesap riskinizi art\u0131r\u0131r.",
3937
3945
  nado: {
3938
3946
  requestedTitle: "Para \xC7ekme Talep Edildi",
3939
- requestedDescription: "Para \xE7ekme i\u015Fleminiz talep edildi ve k\u0131sa s\xFCre i\xE7inde i\u015Flenecek.",
3940
- withdrawing: "\xC7ekiliyor",
3947
+ requestedDescription: "Birka\xE7 dakika i\xE7inde alman\u0131z gerekir.",
3941
3948
  trackOnNado: "Nado'da takip et",
3942
3949
  errorGeneric: "Para \xE7ekme ba\u015Far\u0131s\u0131z oldu. L\xFCtfen tekrar deneyin.",
3943
3950
  errorNetwork: "\u015Eu anda Nado'ya ula\u015F\u0131lam\u0131yor. L\xFCtfen tekrar deneyin.",
@@ -4516,14 +4523,15 @@ var zh_default = {
4516
4523
  lighterSecureAddressTooltip: "\u60A8\u53EA\u80FD\u63D0\u73B0\u5230\u5DF2\u8FDE\u63A5\u7684\u94B1\u5305",
4517
4524
  lighterSecureTokenTooltip: "\u60A8\u53EA\u80FD\u63A5\u6536\u6240\u9009\u62E9\u63D0\u73B0\u7684\u4EE3\u5E01",
4518
4525
  lighterSecureChainTooltip: "\u5B89\u5168\u63D0\u73B0\u4EC5\u652F\u6301\u4EE5\u592A\u574A",
4526
+ lockedReceiveTooltip: "{{tokenSymbol}} \u4EC5\u652F\u6301\u5728 {{chainName}} \u4E0A\u63D0\u73B0",
4519
4527
  lighterFastTokenTooltip: "\u5FEB\u901F\u63D0\u73B0\u4EC5\u652F\u6301\u60A8\u7684 USDC (Perps) \u4F59\u989D",
4520
4528
  lighterWithdrawOnChain: "\u94FE\u4E0A\u63D0\u73B0",
4521
4529
  lighterL1FallbackNotice: "\u60A8\u5DF2\u8FBE\u5230 Lighter \u7684\u5B89\u5168\u63D0\u73B0\u9891\u7387\u9650\u5236\u3002\u60A8\u53EF\u4EE5\u6539\u4E3A\u76F4\u63A5\u5728\u94FE\u4E0A\u63D0\u73B0\u3002",
4522
4530
  enableBorrowing: "\u542F\u7528\u501F\u5E01",
4531
+ enableBorrowingTooltip: "\u5141\u8BB8\u60A8\u4EE5\u73B0\u6709\u62B5\u62BC\u54C1\u501F\u5165\u8D44\u4EA7\u3002\u501F\u5E01\u4F1A\u63D0\u9AD8\u60A8\u7684\u4FDD\u8BC1\u91D1\u4F7F\u7528\u7387\u548C\u8D26\u6237\u98CE\u9669\u3002",
4523
4532
  nado: {
4524
4533
  requestedTitle: "\u63D0\u73B0\u5DF2\u8BF7\u6C42",
4525
- requestedDescription: "\u60A8\u7684\u63D0\u73B0\u5DF2\u63D0\u4EA4\uFF0C\u5C06\u5F88\u5FEB\u5904\u7406\u3002",
4526
- withdrawing: "\u63D0\u73B0\u4E2D",
4534
+ requestedDescription: "\u60A8\u5E94\u8BE5\u4F1A\u5728\u51E0\u5206\u949F\u5185\u6536\u5230\u3002",
4527
4535
  trackOnNado: "\u5728 Nado \u4E0A\u8FFD\u8E2A",
4528
4536
  errorGeneric: "\u63D0\u73B0\u5931\u8D25\u3002\u8BF7\u91CD\u8BD5\u3002",
4529
4537
  errorNetwork: "\u76EE\u524D\u65E0\u6CD5\u8FDE\u63A5 Nado\u3002\u8BF7\u91CD\u8BD5\u3002",
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  // src/utils/withdrawal.ts
4
+ import { chainMetadataById } from "@funkit/chains";
4
5
  import { isEVMAddressEquivalent, isTokenEquivalent } from "@funkit/utils";
5
6
  import * as dnum from "dnum";
6
7
  import { parseUnits } from "viem";
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  findSettlementForNonce,
4
4
  getNadoWithdrawalEvents
5
- } from "./chunk-OJZNF6EM.js";
5
+ } from "./chunk-JFDRLSYM.js";
6
6
  import {
7
7
  getNadoFeeRates,
8
8
  getNadoMaxWithdrawable
9
- } from "./chunk-A44M6EAG.js";
9
+ } from "./chunk-TZGKB6WY.js";
10
10
  import {
11
11
  NadoGatewayError
12
12
  } from "./chunk-Z7HTQFEO.js";
@@ -36,8 +36,9 @@ import {
36
36
  StatsigProvider,
37
37
  useClientAsyncInit
38
38
  } from "@statsig/react-bindings";
39
- import React, { useEffect } from "react";
39
+ import React, { createContext, useContext, useEffect } from "react";
40
40
  var STATSIG_CLIENT_KEY = "client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM";
41
+ var FunWhnStatsigContext = createContext(null);
41
42
 
42
43
  // src/utils/statsig/checkFeatureGate.ts
43
44
  function checkFeatureGate(name) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  NADO_INDEXER_URL
4
- } from "./chunk-II5CZTBC.js";
4
+ } from "./chunk-3P2C436B.js";
5
5
  import {
6
6
  nadoFetch
7
7
  } from "./chunk-WZRW6WUM.js";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  isCustomWithdrawalConfig
4
- } from "./chunk-SO756ELD.js";
4
+ } from "./chunk-DGBIV3ZS.js";
5
5
  import {
6
6
  buildNadoSubaccountId
7
7
  } from "./chunk-6T6URLBM.js";
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import {
3
3
  buildWithdrawCollateralV2TypedData
4
- } from "./chunk-YZSO4EMO.js";
4
+ } from "./chunk-2576N7PQ.js";
5
5
  import {
6
6
  isExpectedNadoWithdrawalFailure,
7
7
  toNadoWithdrawalErrorMessage
8
- } from "./chunk-WVM4ZJD2.js";
8
+ } from "./chunk-VIAEAD75.js";
9
9
  import {
10
10
  safeBigInt
11
11
  } from "./chunk-63XTVHO3.js";
12
12
  import {
13
13
  deductFlatFee,
14
14
  toWithdrawalAmountBaseUnit
15
- } from "./chunk-SO756ELD.js";
15
+ } from "./chunk-DGBIV3ZS.js";
16
16
  import {
17
17
  x18ToRawBaseUnit
18
18
  } from "./chunk-6T6URLBM.js";
@@ -20,10 +20,11 @@ import {
20
20
  executeNadoWithdrawCollateralV2,
21
21
  getNadoMaxWithdrawable,
22
22
  getNadoTxNonce
23
- } from "./chunk-A44M6EAG.js";
23
+ } from "./chunk-TZGKB6WY.js";
24
24
  import {
25
- INK_CHAIN_ID
26
- } from "./chunk-II5CZTBC.js";
25
+ INK_CHAIN_ID,
26
+ NADO_WITHDRAWAL_ACTION_TYPE
27
+ } from "./chunk-3P2C436B.js";
27
28
  import {
28
29
  NadoGatewayError,
29
30
  NadoWithdrawalUnconfirmedError
@@ -35,7 +36,7 @@ import {
35
36
  } from "./chunk-OODIKHYE.js";
36
37
  import {
37
38
  i18n_default
38
- } from "./chunk-2QYQNTOI.js";
39
+ } from "./chunk-C45VNQXY.js";
39
40
  import {
40
41
  generateClientMetadataForTokenTransfer
41
42
  } from "./chunk-PENJ5JGH.js";
@@ -132,6 +133,9 @@ function createNadoWithdrawalCallback({
132
133
  toChainId: targetChainId.toString(),
133
134
  toTokenAddress: targetAssetAddress,
134
135
  sourceOfFund: `balance|nado|${walletAddress}`,
136
+ // Attribution only — forces a separate UDA from Nado deposits so the
137
+ // direct executions off it are tagged as withdrawals.
138
+ actionType: NADO_WITHDRAWAL_ACTION_TYPE,
135
139
  logger,
136
140
  clientMetadata: {
137
141
  ...generateClientMetadataForTokenTransfer(),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  NADO_GATEWAY_URL
4
- } from "./chunk-II5CZTBC.js";
4
+ } from "./chunk-3P2C436B.js";
5
5
  import {
6
6
  nadoFetch
7
7
  } from "./chunk-WZRW6WUM.js";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitTranslation
4
- } from "./chunk-FAYBQQNB.js";
4
+ } from "./chunk-YUZ3B2Q3.js";
5
5
 
6
6
  // src/providers/FunkitConfigContext.tsx
7
7
  import {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-Z7HTQFEO.js";
8
8
  import {
9
9
  i18n_default
10
- } from "./chunk-2QYQNTOI.js";
10
+ } from "./chunk-C45VNQXY.js";
11
11
 
12
12
  // src/clients/internal/nado/withdrawalErrors.ts
13
13
  var EXPECTED_WITHDRAWAL_ERROR_CODES = /* @__PURE__ */ new Set([
@@ -11,15 +11,15 @@ import {
11
11
  } from "./chunk-LUHEVXPD.js";
12
12
  import {
13
13
  useFunkitTranslation
14
- } from "./chunk-FAYBQQNB.js";
14
+ } from "./chunk-YUZ3B2Q3.js";
15
15
  import {
16
16
  POLYMARKET_PERPS_ROUTING_ID,
17
17
  POLYMARKET_PREDICTIONS_ROUTING_ID
18
- } from "./chunk-SH3MHRHX.js";
18
+ } from "./chunk-Y7WLUPTX.js";
19
19
  import {
20
20
  POLYGON_USDCE,
21
21
  PUSD_TOKEN
22
- } from "./chunk-EJKHMZW3.js";
22
+ } from "./chunk-IYCZWLAF.js";
23
23
  import {
24
24
  logger
25
25
  } from "./chunk-AHYOV7AV.js";
@@ -8,7 +8,7 @@ import {
8
8
  VAULT_DEPOSITOR_ABI,
9
9
  VAULT_DEPOSITOR_POLYGON,
10
10
  createPerpsGenerateActionParams
11
- } from "./chunk-EJKHMZW3.js";
11
+ } from "./chunk-IYCZWLAF.js";
12
12
 
13
13
  // src/clients/polymarket/createPolymarketDepositConfig.ts
14
14
  import { encodeFunctionData, erc20Abi, getAddress, maxUint256 } from "viem";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-2QYQNTOI.js";
4
+ } from "./chunk-C45VNQXY.js";
5
5
 
6
6
  // src/hooks/useFunkitTranslation.ts
7
7
  import { useTranslation } from "react-i18next";
@@ -12,8 +12,8 @@ import {
12
12
  } from "./chunk-LUHEVXPD.js";
13
13
  import {
14
14
  useFunkitTranslation
15
- } from "./chunk-FAYBQQNB.js";
16
- import "./chunk-2QYQNTOI.js";
15
+ } from "./chunk-YUZ3B2Q3.js";
16
+ import "./chunk-C45VNQXY.js";
17
17
  import "./chunk-AHYOV7AV.js";
18
18
 
19
19
  // src/clients/fanatics.tsx
@@ -14,3 +14,9 @@ export declare const NADO_INDEXER_URL = "https://archive.prod.nado.xyz/v1";
14
14
  * signatures over (orders verify against the product address instead).
15
15
  */
16
16
  export declare const NADO_EIP712_VERIFYING_CONTRACT_ADDRESS: `0x${string}`;
17
+ /**
18
+ * Attribution-only action type — generates no on-chain action. It only splits
19
+ * the withdrawal UDA off from the deposit UDA so backend can tell them apart.
20
+ * Restricted to Nado customer keys by the api-server validator.
21
+ */
22
+ export declare const NADO_WITHDRAWAL_ACTION_TYPE = "NADO_WITHDRAWAL";
@@ -3,11 +3,13 @@ import {
3
3
  INK_CHAIN_ID,
4
4
  NADO_EIP712_VERIFYING_CONTRACT_ADDRESS,
5
5
  NADO_GATEWAY_URL,
6
- NADO_INDEXER_URL
7
- } from "../../chunk-II5CZTBC.js";
6
+ NADO_INDEXER_URL,
7
+ NADO_WITHDRAWAL_ACTION_TYPE
8
+ } from "../../chunk-3P2C436B.js";
8
9
  export {
9
10
  INK_CHAIN_ID,
10
11
  NADO_EIP712_VERIFYING_CONTRACT_ADDRESS,
11
12
  NADO_GATEWAY_URL,
12
- NADO_INDEXER_URL
13
+ NADO_INDEXER_URL,
14
+ NADO_WITHDRAWAL_ACTION_TYPE
13
15
  };
@@ -4,8 +4,8 @@ import {
4
4
  getNadoFeeRates,
5
5
  getNadoMaxWithdrawable,
6
6
  getNadoTxNonce
7
- } from "../../chunk-A44M6EAG.js";
8
- import "../../chunk-II5CZTBC.js";
7
+ } from "../../chunk-TZGKB6WY.js";
8
+ import "../../chunk-3P2C436B.js";
9
9
  import "../../chunk-WZRW6WUM.js";
10
10
  import "../../chunk-Z7HTQFEO.js";
11
11
  import "../../chunk-AHYOV7AV.js";
@@ -5,10 +5,10 @@ import {
5
5
  useNadoFeeRates,
6
6
  useNadoMaxWithdrawable,
7
7
  useNadoSettlementStatus
8
- } from "../../chunk-SYFHMTUO.js";
9
- import "../../chunk-OJZNF6EM.js";
10
- import "../../chunk-A44M6EAG.js";
11
- import "../../chunk-II5CZTBC.js";
8
+ } from "../../chunk-FM7SFGAV.js";
9
+ import "../../chunk-JFDRLSYM.js";
10
+ import "../../chunk-TZGKB6WY.js";
11
+ import "../../chunk-3P2C436B.js";
12
12
  import "../../chunk-WZRW6WUM.js";
13
13
  import "../../chunk-Z7HTQFEO.js";
14
14
  import "../../chunk-AHYOV7AV.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  findSettlementForNonce,
4
4
  getNadoWithdrawalEvents
5
- } from "../../chunk-OJZNF6EM.js";
6
- import "../../chunk-II5CZTBC.js";
5
+ } from "../../chunk-JFDRLSYM.js";
6
+ import "../../chunk-3P2C436B.js";
7
7
  import "../../chunk-WZRW6WUM.js";
8
8
  import "../../chunk-Z7HTQFEO.js";
9
9
  import "../../chunk-AHYOV7AV.js";
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  WITHDRAW_COLLATERAL_V2_TYPES,
4
4
  buildWithdrawCollateralV2TypedData
5
- } from "../../chunk-YZSO4EMO.js";
6
- import "../../chunk-II5CZTBC.js";
5
+ } from "../../chunk-2576N7PQ.js";
6
+ import "../../chunk-3P2C436B.js";
7
7
  export {
8
8
  WITHDRAW_COLLATERAL_V2_TYPES,
9
9
  buildWithdrawCollateralV2TypedData
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "../../chunk-YMGRBJAS.js";
5
- import "../../chunk-YZSO4EMO.js";
6
- import "../../chunk-WVM4ZJD2.js";
4
+ } from "../../chunk-SU3YSNMB.js";
5
+ import "../../chunk-2576N7PQ.js";
6
+ import "../../chunk-VIAEAD75.js";
7
7
  import "../../chunk-63XTVHO3.js";
8
- import "../../chunk-SO756ELD.js";
8
+ import "../../chunk-DGBIV3ZS.js";
9
9
  import "../../chunk-6T6URLBM.js";
10
- import "../../chunk-A44M6EAG.js";
11
- import "../../chunk-II5CZTBC.js";
10
+ import "../../chunk-TZGKB6WY.js";
11
+ import "../../chunk-3P2C436B.js";
12
12
  import "../../chunk-WZRW6WUM.js";
13
13
  import "../../chunk-Z7HTQFEO.js";
14
14
  import "../../chunk-OODIKHYE.js";
15
- import "../../chunk-2QYQNTOI.js";
15
+ import "../../chunk-C45VNQXY.js";
16
16
  import "../../chunk-PENJ5JGH.js";
17
17
  import "../../chunk-AHYOV7AV.js";
18
18
  export {
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Nado withdrawal config: its type, its guard, and the subaccount id the
3
- * config is built around. All SDK-private (the `clients/internal/*` exports map
4
- * blocks consumer imports) except the config type, which reaches integrators
5
- * via the `clients/nado` re-export.
2
+ * Nado withdrawal config: its type, its guard, and the subaccount id it's
3
+ * built around. All SDK-private (the `clients/internal/*` exports map blocks
4
+ * consumer imports) except the config type, which reaches integrators via the
5
+ * `clients/nado` re-export.
6
6
  */
7
7
  import type { Address, Hex } from 'viem';
8
8
  import type { CustomWithdrawalConfig, FunkitWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  isNadoWithdrawalConfig,
4
4
  resolveNadoSubaccount
5
- } from "../../chunk-A6OXZWCN.js";
6
- import "../../chunk-SO756ELD.js";
5
+ } from "../../chunk-QQEGNLGD.js";
6
+ import "../../chunk-DGBIV3ZS.js";
7
7
  import "../../chunk-6T6URLBM.js";
8
8
  import "../../chunk-AHYOV7AV.js";
9
9
  export {
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  isExpectedNadoWithdrawalFailure,
4
4
  toNadoWithdrawalErrorMessage
5
- } from "../../chunk-WVM4ZJD2.js";
5
+ } from "../../chunk-VIAEAD75.js";
6
6
  import "../../chunk-Z7HTQFEO.js";
7
- import "../../chunk-2QYQNTOI.js";
7
+ import "../../chunk-C45VNQXY.js";
8
8
  export {
9
9
  isExpectedNadoWithdrawalFailure,
10
10
  toNadoWithdrawalErrorMessage