@funkit/connect 12.16.0 → 12.18.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 (97) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/clients/axiom.d.ts +1 -5
  3. package/dist/clients/{chunk-BKK2BFIP.js → chunk-AELXD5XA.js} +1 -1
  4. package/dist/clients/{chunk-6IH7AWFA.js → chunk-FOXMRDKD.js} +1 -1
  5. package/dist/clients/{chunk-UZ3NA7HN.js → chunk-G6A62MZO.js} +3 -3
  6. package/dist/clients/{chunk-OB5GKTP2.js → chunk-L6JL2XJY.js} +1 -1
  7. package/dist/clients/{chunk-I5VRAFH6.js → chunk-LCYJLY4X.js} +1 -1
  8. package/dist/clients/chunk-R25GIAD5.js +59 -0
  9. package/dist/clients/{chunk-7JYLS7IF.js → chunk-YSAAJSWT.js} +272 -48
  10. package/dist/clients/fanatics.js +2 -2
  11. package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
  12. package/dist/clients/internal/nado/withdrawalConfig.js +2 -2
  13. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  14. package/dist/clients/internal/nado/withdrawalForm.js +6 -6
  15. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  16. package/dist/clients/lighter.css +8 -8
  17. package/dist/clients/lighter.d.ts +29 -16
  18. package/dist/clients/lighter.js +149 -68
  19. package/dist/clients/mallard.js +2 -2
  20. package/dist/clients/nado.js +4 -4
  21. package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
  22. package/dist/components/TokenSwapWidget/TokenSelectButton/TokenSelectButton.d.ts +5 -2
  23. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +7 -3
  24. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +7 -2
  25. package/dist/consts/customers.d.ts +12 -1
  26. package/dist/domains/convert/assets.d.ts +30 -0
  27. package/dist/domains/convert/balances.d.ts +44 -24
  28. package/dist/domains/convert/errors.d.ts +38 -0
  29. package/dist/domains/convert/execution.d.ts +39 -0
  30. package/dist/domains/convert/hostTimeout.d.ts +8 -0
  31. package/dist/domains/convert/inputAmount.d.ts +53 -0
  32. package/dist/domains/convert/quote.d.ts +33 -0
  33. package/dist/domains/convert/recipient.d.ts +2 -1
  34. package/dist/domains/convert/reducer.d.ts +112 -0
  35. package/dist/domains/convert/screen.d.ts +169 -0
  36. package/dist/domains/convert/settlement.d.ts +52 -0
  37. package/dist/domains/convert/sourceWallet.d.ts +5 -4
  38. package/dist/domains/convert/submit.d.ts +67 -0
  39. package/dist/domains/convert/types.d.ts +52 -27
  40. package/dist/domains/convert/view.d.ts +111 -0
  41. package/dist/domains/nativeFeeReserve.d.ts +29 -0
  42. package/dist/domains/quote.d.ts +14 -1
  43. package/dist/hooks/queries/useWithdrawFops.d.ts +6 -0
  44. package/dist/hooks/queries/useWithdrawalQuote.d.ts +4 -1
  45. package/dist/hooks/track/CheckoutModalEvent.d.ts +2 -0
  46. package/dist/hooks/track/WithdrawModalEvent.d.ts +1 -0
  47. package/dist/hooks/track/analytics/events.d.ts +59 -1
  48. package/dist/hooks/track/analytics/mappers.d.ts +5 -4
  49. package/dist/hooks/track/analytics/resolveIframeStepNavigation.d.ts +18 -0
  50. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +2 -2
  51. package/dist/hooks/track/analytics/useTrackSwappedIframeEvents.d.ts +5 -0
  52. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +2 -2
  53. package/dist/hooks/track/useQuoteAttemptCounter.d.ts +2 -0
  54. package/dist/hooks/useConvertAssetList.d.ts +23 -0
  55. package/dist/hooks/useConvertAssets.d.ts +11 -0
  56. package/dist/hooks/useConvertBalances.d.ts +50 -0
  57. package/dist/hooks/useConvertExecute.d.ts +33 -0
  58. package/dist/hooks/useConvertQuote.d.ts +53 -0
  59. package/dist/hooks/useConvertSelectionWallets.d.ts +34 -0
  60. package/dist/hooks/useConvertTransactionStatus.d.ts +17 -0
  61. package/dist/hooks/useMaxSpendableAmount.d.ts +19 -0
  62. package/dist/hooks/useStepQueryReadiness.d.ts +45 -15
  63. package/dist/index.css +8 -8
  64. package/dist/index.d.ts +3 -2
  65. package/dist/index.js +8169 -3491
  66. package/dist/modals/CheckoutModal/Convert/ConvertAssetList.d.ts +16 -0
  67. package/dist/modals/CheckoutModal/Convert/ConvertAssetRow.d.ts +21 -0
  68. package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +14 -0
  69. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +30 -0
  70. package/dist/modals/CheckoutModal/Convert/ConvertSelectSourceStep.d.ts +18 -0
  71. package/dist/modals/CheckoutModal/Convert/ConvertStep.d.ts +4 -2
  72. package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -0
  73. package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +5 -3
  74. package/dist/modals/CheckoutModal/SwappedIframe/swappedIframeReady.track.d.ts +8 -0
  75. package/dist/modals/CheckoutModal/Withdrawal/WithdrawalComplete.d.ts +5 -2
  76. package/dist/modals/CheckoutModal/Withdrawal/WithdrawalEnterAmount.d.ts +4 -2
  77. package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -2
  78. package/dist/modals/CheckoutModal/stepTransition.shared.d.ts +0 -1
  79. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +48 -15
  80. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +17 -4
  81. package/dist/modals/WithdrawalModal/WithdrawalContent.d.ts +10 -7
  82. package/dist/modals/WithdrawalModal/useMaxWithdrawableAmount.d.ts +10 -0
  83. package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +41 -0
  84. package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +28 -8
  85. package/dist/providers/ConvertProvider.d.ts +40 -0
  86. package/dist/providers/FunkitCheckoutContext/index.d.ts +2 -2
  87. package/dist/providers/FunkitCheckoutContext/types.d.ts +36 -2
  88. package/dist/providers/FunkitQuoteContext.track.d.ts +23 -3
  89. package/dist/providers/SwappedProvider.d.ts +7 -0
  90. package/dist/shadow-css.js +1 -1
  91. package/dist/utils/customer.d.ts +34 -4
  92. package/dist/utils/withdrawal.d.ts +28 -1
  93. package/dist/wallets/multiSourceWithdrawal.d.ts +36 -0
  94. package/dist/wallets/walletConnectors/index.js +42 -42
  95. package/package.json +6 -6
  96. package/dist/clients/chunk-6EU6CXNH.js +0 -20
  97. /package/dist/clients/{chunk-4DBUYTEE.js → chunk-LICTGZXW.js} +0 -0
@@ -1,7 +1,30 @@
1
- import type { DynamicTargetAssetCandidate, LighterAccountLookup } from '@funkit/connect-core';
1
+ import type { DynamicTargetAssetCandidate, LighterAccountSelector } from '@funkit/connect-core';
2
+ import { type LighterChainId } from '@funkit/chains';
2
3
  import type { Address } from 'viem';
3
4
  export { LIGHTER_TRADING_MODE, getLighterAccount, getLighterAccountsByL1Address, useInvalidateLighterAccount, useLighterAccountQuery, useLighterAccountsQuery, } from '@funkit/connect-core';
4
- export type { LighterAccount, LighterAccountLookup, LighterAccountResponse, LighterAccountsByL1AddressResponse, LighterAsset, LighterPoolInfo, LighterShare, LighterSubAccount, } from '@funkit/connect-core';
5
+ export type { LighterAccount, LighterAccountLookup, LighterAccountResponse, LighterAccountSelector, LighterAccountsByL1AddressResponse, LighterAsset, LighterPoolInfo, LighterShare, LighterSubAccount, } from '@funkit/connect-core';
6
+ /** RH routes: every `LIGHTER_RH_*` routing id, new-user ones included. */
7
+ export declare function isLighterRhRoutingId(dynamicRoutingId: string | undefined): boolean;
8
+ /**
9
+ * The Lighter instance to look the wallet's account up on: an RH route is
10
+ * always RH, so its recipient index never comes from the config's free-form
11
+ * target chain. Otherwise a Lighter target chain names it; mainnet new-user
12
+ * routes target an L1, so their `LIGHTER_*` routing id names mainnet.
13
+ * Anything else has no instance and no lookup.
14
+ */
15
+ export declare function resolveLighterLookupChainId({ dynamicRoutingId, targetChain, }: {
16
+ dynamicRoutingId: string | undefined;
17
+ targetChain: string | number | undefined;
18
+ }): LighterChainId | undefined;
19
+ /**
20
+ * A wallet checkout on the RH route waits while the RH account lookup is in
21
+ * flight: quoting before it resolves would save no RH recipient. A lookup that
22
+ * never runs (no resolvable wallet) doesn't hold the checkout.
23
+ */
24
+ export declare function isLighterRhAccountPending({ dynamicRoutingId, isLookupLoading, }: {
25
+ dynamicRoutingId: string | undefined;
26
+ isLookupLoading: boolean;
27
+ }): boolean;
5
28
  /**
6
29
  * Strips the ` (Perps)` variant suffix off a Lighter ticker (e.g.
7
30
  * `USDC (Perps)` → `USDC`). Non-perps tickers pass through unchanged.
@@ -15,7 +38,7 @@ export declare function stripLighterPerpsSuffix(symbol: string | undefined): str
15
38
  * routes (`LIGHTER_USDC_PERPS*`), only the presentation differs.
16
39
  */
17
40
  export declare function adaptLighterTargetAssetsForUnifiedAccount(candidates: DynamicTargetAssetCandidate[]): DynamicTargetAssetCandidate[];
18
- export declare function useLighterAccount(lookup: LighterAccountLookup | null, options?: {
41
+ export declare function useLighterAccount(lookup: LighterAccountSelector | null, options?: {
19
42
  activeOnly?: boolean;
20
43
  }): {
21
44
  account: import("@funkit/connect-core").LighterAccount | undefined;
@@ -180,8 +203,15 @@ export declare function useLighterAccount(lookup: LighterAccountLookup | null, o
180
203
  fetchStatus: import("@tanstack/react-query").FetchStatus;
181
204
  promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
182
205
  };
183
- export declare function useLighterAccounts({ address, }: {
206
+ /**
207
+ * `chainId` names the Lighter instance the caller is about to use; undefined
208
+ * skips the lookup. Only the key's own instance is looked up: a mismatch skips
209
+ * the lookup rather than redirecting it, so no caller can pair one instance's
210
+ * account index with the other's route.
211
+ */
212
+ export declare function useLighterAccounts({ address, chainId, }: {
184
213
  address: Address | '' | undefined;
214
+ chainId: LighterChainId | undefined;
185
215
  }): {
186
216
  mainAccountIndex: string | undefined;
187
217
  isUnifiedTradingMode: boolean;
@@ -1,4 +1,4 @@
1
- import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, MultiMethodWithdrawalConfig, SourceTokenOption, WalletWithdrawalConfig } from '../providers/FunkitCheckoutContext';
1
+ import type { CustomWithdrawalConfig, FunkitWithdrawalConfig, MultiMethodWithdrawalConfig, MultiSourceWithdrawalConfig, SingleWithdrawalConfig, SourceTokenOption, WalletWithdrawalConfig, WithdrawalSourceOption } from '../providers/FunkitCheckoutContext';
2
2
  /**
3
3
  * Type guard to check if withdrawal config uses wallet-based flow
4
4
  */
@@ -34,6 +34,33 @@ export declare function isCustomWithdrawalConfig(config: FunkitWithdrawalConfig)
34
34
  * must pick between (e.g. "Fast" vs "Secure").
35
35
  */
36
36
  export declare function isMultiMethodWithdrawalConfig(config: FunkitWithdrawalConfig): config is MultiMethodWithdrawalConfig;
37
+ /**
38
+ * Type guard for a config whose source is picked from the amount screen's
39
+ * dropdown, each source carrying its own chain, token and wallet.
40
+ */
41
+ export declare function isMultiSourceWithdrawalConfig(config: FunkitWithdrawalConfig): config is MultiSourceWithdrawalConfig;
42
+ /**
43
+ * The source `sourceId` names, falling back to the default (then the first)
44
+ * when it names none. Its config carries the container's header and
45
+ * `disableConnectedWallet`, so it can drive the flow on its own. `undefined`
46
+ * only for an empty container.
47
+ */
48
+ export declare function resolveWithdrawalSource(config: MultiSourceWithdrawalConfig, sourceId?: string): {
49
+ source: WithdrawalSourceOption;
50
+ config: SingleWithdrawalConfig;
51
+ } | undefined;
52
+ /**
53
+ * The single config a flow starts on before the user picks anything: the
54
+ * first method, the default source, or the config itself. `undefined` for an
55
+ * empty container.
56
+ */
57
+ export declare function getDefaultWithdrawalConfig(config: FunkitWithdrawalConfig): SingleWithdrawalConfig | undefined;
58
+ /**
59
+ * The config a withdrawal item is seeded from. A multi-source config leaves out
60
+ * its default source's balance callback: the item's callback is the fallback
61
+ * for sources without their own, and the default source's reads another wallet.
62
+ */
63
+ export declare function getWithdrawalItemSeedConfig(config: FunkitWithdrawalConfig): SingleWithdrawalConfig | undefined;
37
64
  /**
38
65
  * Converts a human-readable token amount to base units using string arithmetic
39
66
  * to avoid floating-point precision loss.
@@ -0,0 +1,36 @@
1
+ import type { MultiSourceWithdrawalConfig, SingleWithdrawalConfig, WithdrawalSourceOption } from '../providers/FunkitCheckoutContext/types';
2
+ export interface MultiSourceWithdrawalOptions {
3
+ modalTitle?: string;
4
+ modalTitleMeta?: string;
5
+ disableConnectedWallet?: boolean;
6
+ /**
7
+ * Sources in dropdown order. A source whose `config` is `null` (its wallet
8
+ * isn't connected yet) is left out, so per-VM hooks can be passed as-is.
9
+ */
10
+ sources: ReadonlyArray<Omit<WithdrawalSourceOption, 'config'> & {
11
+ config: SingleWithdrawalConfig | null | undefined;
12
+ }>;
13
+ /** Initially selected source. Defaults to the first available. */
14
+ defaultSourceId?: string;
15
+ }
16
+ /**
17
+ * Composes per-source configs (Solana, HyperCore, one per EVM chain, ...) into
18
+ * one withdrawal whose source is picked from the amount screen's dropdown.
19
+ * Each source keeps its own wallet, balance and limits.
20
+ *
21
+ * `null` when no source has a config yet — keep the withdraw entry point
22
+ * disabled until it resolves. Pure, so memoize the result on the inputs.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const sol = useSolanaWithdrawalConfig(solanaParams)
27
+ * const config = useMemo(() => createMultiSourceWithdrawalConfig({
28
+ * modalTitle: 'Withdraw',
29
+ * sources: [
30
+ * { id: 'SOL', config: sol },
31
+ * { id: 'ETH_BASE', label: 'ETH', config: ethOnBase },
32
+ * ],
33
+ * }), [sol, ethOnBase])
34
+ * ```
35
+ */
36
+ export declare function createMultiSourceWithdrawalConfig(options: MultiSourceWithdrawalOptions): MultiSourceWithdrawalConfig | null;
@@ -2,15 +2,12 @@
2
2
  import {
3
3
  xdefiWallet
4
4
  } from "./chunk-HXX4PRE2.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-GLX5FULK.js";
8
5
  import {
9
6
  zerionWallet
10
7
  } from "./chunk-34B7OJNT.js";
11
8
  import {
12
- tahoWallet
13
- } from "./chunk-U74RFZOL.js";
9
+ zealWallet
10
+ } from "./chunk-GLX5FULK.js";
14
11
  import {
15
12
  subWallet
16
13
  } from "./chunk-XODA5ESL.js";
@@ -21,20 +18,23 @@ import {
21
18
  tokenPocketWallet
22
19
  } from "./chunk-NXWG6FG2.js";
23
20
  import {
24
- trustWallet
25
- } from "./chunk-SR5CZR3L.js";
21
+ tahoWallet
22
+ } from "./chunk-U74RFZOL.js";
26
23
  import {
27
24
  tokenaryWallet
28
25
  } from "./chunk-TPM5PUJD.js";
29
26
  import {
30
27
  uniswapWallet
31
28
  } from "./chunk-UNDWHCDH.js";
29
+ import {
30
+ trustWallet
31
+ } from "./chunk-SR5CZR3L.js";
32
32
  import {
33
33
  walletConnectWallet
34
34
  } from "./chunk-DUX4XCDV.js";
35
35
  import {
36
- oneInchWallet
37
- } from "./chunk-GFS2AVAH.js";
36
+ phantomWallet
37
+ } from "./chunk-Q27YVDDH.js";
38
38
  import {
39
39
  rabbyWallet
40
40
  } from "./chunk-RQ2GXOJL.js";
@@ -47,6 +47,9 @@ import {
47
47
  import {
48
48
  ramperWallet
49
49
  } from "./chunk-GPXIBTWN.js";
50
+ import {
51
+ safepalWallet
52
+ } from "./chunk-BBB2J3US.js";
50
53
  import {
51
54
  safeWallet
52
55
  } from "./chunk-IR3PJMVM.js";
@@ -54,32 +57,29 @@ import {
54
57
  safeheronWallet
55
58
  } from "./chunk-UN3ONVNC.js";
56
59
  import {
57
- safepalWallet
58
- } from "./chunk-BBB2J3US.js";
59
- import {
60
- metaMaskWallet
61
- } from "./chunk-RXRYHMRI.js";
60
+ mewWallet
61
+ } from "./chunk-DSPQXAB2.js";
62
62
  import {
63
63
  ledgerWallet
64
64
  } from "./chunk-BL4OC2EJ.js";
65
65
  import {
66
- mewWallet
67
- } from "./chunk-DSPQXAB2.js";
66
+ metaMaskWallet
67
+ } from "./chunk-RXRYHMRI.js";
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-V4M3SNPS.js";
71
+ import {
72
+ omniWallet
73
+ } from "./chunk-2TAUCVX7.js";
71
74
  import {
72
75
  okxWallet
73
76
  } from "./chunk-CU5J53XR.js";
74
77
  import {
75
- omniWallet
76
- } from "./chunk-2TAUCVX7.js";
78
+ oneInchWallet
79
+ } from "./chunk-GFS2AVAH.js";
77
80
  import {
78
81
  oneKeyWallet
79
82
  } from "./chunk-KN32ITJ7.js";
80
- import {
81
- phantomWallet
82
- } from "./chunk-Q27YVDDH.js";
83
83
  import {
84
84
  enkryptWallet
85
85
  } from "./chunk-Z6LDN2AN.js";
@@ -89,12 +89,12 @@ import {
89
89
  import {
90
90
  frameWallet
91
91
  } from "./chunk-B572YIAQ.js";
92
- import {
93
- frontierWallet
94
- } from "./chunk-IWOMSW64.js";
95
92
  import {
96
93
  gateWallet
97
94
  } from "./chunk-YRMBR6NA.js";
95
+ import {
96
+ frontierWallet
97
+ } from "./chunk-IWOMSW64.js";
98
98
  import {
99
99
  imTokenWallet
100
100
  } from "./chunk-YY2JA23M.js";
@@ -105,51 +105,51 @@ import {
105
105
  kresusWallet
106
106
  } from "./chunk-V77ATGZT.js";
107
107
  import {
108
- bybitWallet
109
- } from "./chunk-BBDNB5TQ.js";
108
+ clvWallet
109
+ } from "./chunk-4FHNLTR3.js";
110
110
  import {
111
111
  coin98Wallet
112
112
  } from "./chunk-RFCZYLNR.js";
113
+ import {
114
+ coreWallet
115
+ } from "./chunk-TRZDAXCQ.js";
113
116
  import {
114
117
  coinbaseWallet
115
118
  } from "./chunk-SM2A3OSG.js";
116
119
  import {
117
- clvWallet
118
- } from "./chunk-4FHNLTR3.js";
119
- import {
120
- coreWallet
121
- } from "./chunk-TRZDAXCQ.js";
120
+ dawnWallet
121
+ } from "./chunk-LV6YV3DE.js";
122
122
  import {
123
123
  customWallet
124
124
  } from "./chunk-VKM5M5UK.js";
125
125
  import {
126
- dawnWallet
127
- } from "./chunk-LV6YV3DE.js";
126
+ bitverseWallet
127
+ } from "./chunk-5AEWIKRA.js";
128
128
  import {
129
129
  desigWallet
130
130
  } from "./chunk-DFHP75HV.js";
131
+ import {
132
+ bifrostWallet
133
+ } from "./chunk-ALGPGI6V.js";
131
134
  import {
132
135
  bitgetWallet
133
136
  } from "./chunk-HOCKAU5H.js";
134
- import {
135
- argentWallet
136
- } from "./chunk-XSDTNMQY.js";
137
137
  import {
138
138
  bitskiWallet
139
139
  } from "./chunk-NPITCCJE.js";
140
140
  import {
141
- bitverseWallet
142
- } from "./chunk-5AEWIKRA.js";
143
- import {
144
- bifrostWallet
145
- } from "./chunk-ALGPGI6V.js";
141
+ argentWallet
142
+ } from "./chunk-XSDTNMQY.js";
146
143
  import {
147
144
  bloomWallet
148
145
  } from "./chunk-PNHDOC77.js";
149
- import "./chunk-AALSJCUR.js";
150
146
  import {
151
147
  braveWallet
152
148
  } from "./chunk-U2XXV45G.js";
149
+ import {
150
+ bybitWallet
151
+ } from "./chunk-BBDNB5TQ.js";
152
+ import "./chunk-AALSJCUR.js";
153
153
  import "./chunk-EYWGX5LT.js";
154
154
  import "./chunk-B454LLKJ.js";
155
155
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "12.16.0",
3
+ "version": "12.18.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -119,11 +119,11 @@
119
119
  "ua-parser-js": "^1.0.37",
120
120
  "use-debounce": "^10.0.5",
121
121
  "uuid": "^11.1.1",
122
- "@funkit/api-base": "9.0.1",
123
- "@funkit/fun-relay": "3.1.3",
124
- "@funkit/connect-core": "9.4.0",
125
- "@funkit/utils": "5.0.2",
126
- "@funkit/chains": "2.5.0"
122
+ "@funkit/api-base": "9.1.0",
123
+ "@funkit/chains": "2.6.0",
124
+ "@funkit/connect-core": "10.0.0",
125
+ "@funkit/fun-relay": "3.2.0",
126
+ "@funkit/utils": "5.1.0"
127
127
  },
128
128
  "repository": {
129
129
  "type": "git",
@@ -1,20 +0,0 @@
1
- "use client";
2
-
3
- // src/utils/customer.ts
4
- import {
5
- useLighterAccountQuery,
6
- useLighterAccountsQuery
7
- } from "@funkit/connect-core";
8
- import {
9
- LIGHTER_TRADING_MODE,
10
- getLighterAccount,
11
- getLighterAccountsByL1Address,
12
- useInvalidateLighterAccount,
13
- useLighterAccountQuery as useLighterAccountQuery2,
14
- useLighterAccountsQuery as useLighterAccountsQuery2
15
- } from "@funkit/connect-core";
16
-
17
- export {
18
- useLighterAccountQuery2 as useLighterAccountQuery,
19
- useLighterAccountsQuery2 as useLighterAccountsQuery
20
- };