@funkit/connect 12.20.0 → 12.21.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.
- package/CHANGELOG.md +37 -0
- package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
- package/dist/clients/{chunk-VFKEUHZT.js → chunk-6XJV626L.js} +1 -1
- package/dist/clients/chunk-B67ESBGC.js +108 -0
- package/dist/clients/{chunk-TLFE74BL.js → chunk-DAMICUCH.js} +3 -3
- package/dist/clients/{chunk-2BBOZQLZ.js → chunk-FIJU6HZM.js} +1 -1
- package/dist/clients/{chunk-TFIJZTGQ.js → chunk-MTKOZB6U.js} +1 -1
- package/dist/clients/{chunk-5NYKSTGH.js → chunk-S4SMCBQ4.js} +1 -1
- package/dist/clients/{chunk-Y7ONHWCW.js → chunk-T4Q43DNC.js} +2 -2
- package/dist/clients/{chunk-R5VAX6YA.js → chunk-YSQX5Z3F.js} +41 -25
- package/dist/clients/fanatics.d.ts +5 -7
- package/dist/clients/fanatics.js +4 -4
- package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +4 -4
- package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
- package/dist/clients/lighter.js +5 -5
- package/dist/clients/lighterRh.js +1 -1
- package/dist/clients/mallard.js +3 -3
- package/dist/clients/nado.js +4 -4
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/clients/polymarket/polymarket.d.ts +22 -22
- package/dist/clients/polymarket/polymarket.js +2 -2
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +35 -35
- package/dist/components/Box/Box.d.ts +63 -63
- package/dist/components/ConnectButton/ConnectButton.d.ts +16 -15
- package/dist/components/Dialog/Dialog.d.ts +12 -4
- package/dist/components/Dialog/hooks.d.ts +3 -3
- package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +2 -2
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +3 -1
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
- package/dist/components/FunInput/FunInput.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
- package/dist/components/HighPriceImpactAlert/HighPriceImpactAlert.d.ts +7 -0
- package/dist/components/Icons/GreenRoundCheckmark.d.ts +2 -1
- package/dist/components/Icons/StatusIcons.css.d.ts +2 -2
- package/dist/components/Icons/StatusIcons.d.ts +2 -2
- package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
- package/dist/components/ModalSelection/ModalSelection.d.ts +4 -4
- package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +5 -2
- package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +2 -0
- package/dist/consts/checkout.d.ts +8 -8
- package/dist/consts/polymarket.d.ts +2 -2
- package/dist/consts/quote.d.ts +25 -15
- package/dist/css/cssObjectFromTheme.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +78 -78
- package/dist/domains/bridge.d.ts +1 -1
- package/dist/domains/convert/assets.d.ts +6 -0
- package/dist/domains/convert/screen.d.ts +4 -0
- package/dist/domains/priceImpact.d.ts +14 -0
- package/dist/hooks/queries/useMeldLimits.d.ts +45 -45
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +62 -62
- package/dist/hooks/track/useTrack.d.ts +1 -1
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +3 -3
- package/dist/hooks/useConvertBalances.d.ts +1 -1
- package/dist/hooks/useConvertQuote.d.ts +1 -1
- package/dist/hooks/useDynamicRoutes.d.ts +1 -1
- package/dist/hooks/useFrogAccount.d.ts +77 -77
- package/dist/hooks/useIsomorphicEffect.d.ts +2 -2
- package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/usePolymarketAccountBalances.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1437 -1157
- package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
- package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +6 -4
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +13 -2
- package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +6 -1
- package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +6 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -1
- package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +3 -0
- package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
- package/dist/providers/GeneralWalletProvider.d.ts +21 -21
- package/dist/providers/ModalSizeContext.d.ts +4 -4
- package/dist/themes/baseTheme.d.ts +1 -1
- package/dist/themes/darkTheme.d.ts +6 -4
- package/dist/themes/lightTheme.d.ts +6 -4
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/customer.d.ts +96 -96
- package/dist/utils/datadogBrowserLogsTransport.d.ts +11 -5
- package/dist/utils/datadogPageExit.d.ts +5 -0
- package/dist/utils/funError.d.ts +26 -0
- package/dist/utils/funLogger.d.ts +2 -1
- package/dist/utils/shakeElement.d.ts +7 -0
- package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +34 -34
- package/package.json +9 -9
- package/dist/clients/chunk-GTPMJGCF.js +0 -52
- package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ConvertChainRailProps {
|
|
3
|
+
chainIds: string[];
|
|
4
|
+
/** `undefined` highlights no chain, as during a search. */
|
|
5
|
+
activeChainId: string | undefined;
|
|
6
|
+
onChange: (chainId: string) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The destination screen's chain picker: a column of chain icons beside the
|
|
10
|
+
* token list, each named in a tooltip.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ConvertChainRail({ chainIds, activeChainId, onChange, }: ConvertChainRailProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -20,13 +20,15 @@ export declare function getInitialDestinationChainId({ chainIds, destinationAsse
|
|
|
20
20
|
destinationAsset: ConvertResolvedAsset | undefined;
|
|
21
21
|
}): string | undefined;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* The destination rows without the source, on one chain, or on every chain
|
|
24
|
+
* when `chainId` is left out, narrowed by `query`. Held tokens come first by
|
|
25
|
+
* USD value, then the rest in the host's order.
|
|
25
26
|
*/
|
|
26
|
-
export declare function getConvertDestinationOptions({ assets, balances, chainId, sourceKey, recipientAddresses, }: {
|
|
27
|
+
export declare function getConvertDestinationOptions({ assets, balances, chainId, query, sourceKey, recipientAddresses, }: {
|
|
27
28
|
assets: ConvertResolvedAsset[];
|
|
28
29
|
balances: ConvertBalances | undefined;
|
|
29
|
-
chainId
|
|
30
|
+
chainId?: string;
|
|
31
|
+
query?: string;
|
|
30
32
|
sourceKey: string | undefined;
|
|
31
33
|
recipientAddresses: ConvertRecipientAddresses;
|
|
32
34
|
}): ConvertAssetOption[];
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type SwappedMode } from '../../../providers/SwappedProvider';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A single Swapped iframe for one flow (`mode`) that lives outside the
|
|
5
|
+
* HeightAnimationWrapper. Uses absolute positioning so it never affects layout
|
|
6
|
+
* measurements. When active and loaded, it overlays the dialog content area.
|
|
7
|
+
* Deposit and withdrawal each render their own instance.
|
|
8
|
+
*
|
|
9
|
+
* Wrapped in React.memo to prevent re-renders from parent state changes
|
|
10
|
+
* (e.g., modal step transitions, tab toggles). Only re-renders when the
|
|
11
|
+
* SwappedContext value changes.
|
|
12
|
+
*/
|
|
13
|
+
declare const SwappedIframe: ({ mode }: {
|
|
4
14
|
mode: SwappedMode;
|
|
5
|
-
}) => React.JSX.Element | null
|
|
15
|
+
}) => React.JSX.Element | null;
|
|
16
|
+
declare const _default: React.MemoExoticComponent<typeof SwappedIframe>;
|
|
6
17
|
export default _default;
|
|
@@ -33,6 +33,11 @@ export interface PolymarketPerpsTransferScreenProps {
|
|
|
33
33
|
* Transfer button simply reports clicks via {@link onTransfer}.
|
|
34
34
|
*/
|
|
35
35
|
status?: PerpsTransferStatus;
|
|
36
|
+
/**
|
|
37
|
+
* Message for the `error` frame. Replaces the generic error notice; omit it
|
|
38
|
+
* to keep the generic notice.
|
|
39
|
+
*/
|
|
40
|
+
errorMessage?: string;
|
|
36
41
|
/**
|
|
37
42
|
* In-flight transfers reported by the host. While a deposit or withdrawal
|
|
38
43
|
* is pending, Transfer is disabled and shows a pending state.
|
|
@@ -63,4 +68,4 @@ export interface PolymarketPerpsTransferScreenProps {
|
|
|
63
68
|
* UI only: balances are props, and the Transfer button's processing/success
|
|
64
69
|
* states are driven by the {@link status} prop rather than any real transfer.
|
|
65
70
|
*/
|
|
66
|
-
export declare function PolymarketPerpsTransferScreen({ open, title, predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, pendingTransfers, onTransfer, onClose, onBack, access, }: PolymarketPerpsTransferScreenProps): React.JSX.Element;
|
|
71
|
+
export declare function PolymarketPerpsTransferScreen({ open, title, predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, errorMessage, pendingTransfers, onTransfer, onClose, onBack, access, }: PolymarketPerpsTransferScreenProps): React.JSX.Element;
|
|
@@ -25,6 +25,11 @@ export interface PerpsTransferFormProps {
|
|
|
25
25
|
/** Initial amount (plain USD string, up to 2 decimals). Omit for an empty field. */
|
|
26
26
|
initialAmountUsd?: string;
|
|
27
27
|
status?: PerpsTransferStatus;
|
|
28
|
+
/**
|
|
29
|
+
* Integrator-supplied failure message. Shown in place of the generic notice
|
|
30
|
+
* while `status` is `error`.
|
|
31
|
+
*/
|
|
32
|
+
errorMessage?: string | null;
|
|
28
33
|
/** Whether a retained balance is waiting for a fresh authoritative value. */
|
|
29
34
|
isBalanceRefreshing?: boolean;
|
|
30
35
|
/**
|
|
@@ -94,4 +99,4 @@ export interface PerpsTransferForm {
|
|
|
94
99
|
* identical behavior. Returns plain values; `PerpsTransferBody` and
|
|
95
100
|
* `PerpsTransferBottomBar` render them.
|
|
96
101
|
*/
|
|
97
|
-
export declare function usePerpsTransferForm({ predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, isBalanceRefreshing, pendingTransfers, onTransfer, access, }: PerpsTransferFormProps): PerpsTransferForm;
|
|
102
|
+
export declare function usePerpsTransferForm({ predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, errorMessage, isBalanceRefreshing, pendingTransfers, onTransfer, access, }: PerpsTransferFormProps): PerpsTransferForm;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const baseStyles: string;
|
|
2
|
-
export declare const homeCheckoutDisplayRowStyle: Record<"
|
|
2
|
+
export declare const homeCheckoutDisplayRowStyle: Record<"defaultBackground" | "defaultBorder" | "hoverBackground", string>;
|
|
@@ -101,7 +101,7 @@ export declare function useLighterWithdrawal(config: FunkitWithdrawalConfig, set
|
|
|
101
101
|
routeType: LighterRouteType;
|
|
102
102
|
} | undefined;
|
|
103
103
|
lighterSourceCustomData: {
|
|
104
|
-
type:
|
|
104
|
+
type: 'lighter';
|
|
105
105
|
routeType: LighterRouteType;
|
|
106
106
|
} | undefined;
|
|
107
107
|
lighterSourceAsset: TokenInfo | undefined;
|
|
@@ -27,9 +27,9 @@ export declare function useMultiSourceWithdrawal({ config, withdrawalItem, onCon
|
|
|
27
27
|
sourceId: string;
|
|
28
28
|
config: SingleWithdrawalConfig;
|
|
29
29
|
withdrawalItem: {
|
|
30
|
-
withdrawalSourceTokenBalance: ((params: import("../../providers/FunkitCheckoutContext").WithdrawalSourceTokenBalanceParams) => string | number) | undefined;
|
|
31
30
|
id: string;
|
|
32
31
|
initSettings: Partial<import("../../providers/FunkitCheckoutContext").UseFunkitCheckoutPropsWithFullConfig>;
|
|
32
|
+
withdrawalSourceTokenBalance: ((params: import("../../providers/FunkitCheckoutContext").WithdrawalSourceTokenBalanceParams) => string | number) | undefined;
|
|
33
33
|
} | null;
|
|
34
34
|
sourceSwitcher: {
|
|
35
35
|
options: SourceDropdownOption[];
|
|
@@ -95,6 +95,9 @@ export interface PolymarketTransferAccount {
|
|
|
95
95
|
* rail's own id becomes the tracking record's key, which is the only thing
|
|
96
96
|
* that can later join a Fun record to the venue's side of the same transfer.
|
|
97
97
|
* Returning nothing still records the transfer under a locally minted id.
|
|
98
|
+
*
|
|
99
|
+
* To show a specific message on failure, throw a `FunError` (exported from
|
|
100
|
+
* `@funkit/connect`). Any other rejection shows the generic error notice.
|
|
98
101
|
*/
|
|
99
102
|
transfer: (params: {
|
|
100
103
|
toAddress: Address;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type StatsigOptions } from '@statsig/react-bindings';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
|
-
export declare const STATSIG_CLIENT_KEY:
|
|
4
|
+
export declare const STATSIG_CLIENT_KEY: 'client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM';
|
|
5
5
|
export declare function getStatsigOptions(isDevelopment: boolean): StatsigOptions;
|
|
6
6
|
interface FunkitStatsigProviderProps {
|
|
7
7
|
children: ReactNode;
|
|
@@ -61,22 +61,6 @@ export declare const useIdentity: IdentityProvider['useIdentity'];
|
|
|
61
61
|
* Replacement for wagmi's `useAccount`
|
|
62
62
|
*/
|
|
63
63
|
export declare const useFunkitAccount: () => {
|
|
64
|
-
account: "" | `0x${string}`;
|
|
65
|
-
isConnected: boolean;
|
|
66
|
-
loginType: LoginType;
|
|
67
|
-
address: undefined;
|
|
68
|
-
addresses: undefined;
|
|
69
|
-
chain: undefined;
|
|
70
|
-
chainId: undefined;
|
|
71
|
-
connector: undefined;
|
|
72
|
-
isReconnecting: false;
|
|
73
|
-
isConnecting: false;
|
|
74
|
-
isDisconnected: true;
|
|
75
|
-
status: "disconnected";
|
|
76
|
-
} | {
|
|
77
|
-
account: "" | `0x${string}`;
|
|
78
|
-
isConnected: boolean;
|
|
79
|
-
loginType: LoginType;
|
|
80
64
|
address: Address;
|
|
81
65
|
addresses: readonly [Address, ...Address[]];
|
|
82
66
|
chain: import("viem").Chain | undefined;
|
|
@@ -85,11 +69,11 @@ export declare const useFunkitAccount: () => {
|
|
|
85
69
|
isConnecting: false;
|
|
86
70
|
isDisconnected: false;
|
|
87
71
|
isReconnecting: false;
|
|
88
|
-
status:
|
|
89
|
-
} | {
|
|
72
|
+
status: 'connected';
|
|
90
73
|
account: "" | `0x${string}`;
|
|
91
74
|
isConnected: boolean;
|
|
92
75
|
loginType: LoginType;
|
|
76
|
+
} | {
|
|
93
77
|
address: Address | undefined;
|
|
94
78
|
addresses: readonly Address[] | undefined;
|
|
95
79
|
chain: import("viem").Chain | undefined;
|
|
@@ -98,11 +82,11 @@ export declare const useFunkitAccount: () => {
|
|
|
98
82
|
isConnecting: false;
|
|
99
83
|
isDisconnected: false;
|
|
100
84
|
isReconnecting: true;
|
|
101
|
-
status:
|
|
102
|
-
} | {
|
|
85
|
+
status: 'reconnecting';
|
|
103
86
|
account: "" | `0x${string}`;
|
|
104
87
|
isConnected: boolean;
|
|
105
88
|
loginType: LoginType;
|
|
89
|
+
} | {
|
|
106
90
|
address: Address | undefined;
|
|
107
91
|
addresses: readonly Address[] | undefined;
|
|
108
92
|
chain: import("viem").Chain | undefined;
|
|
@@ -111,7 +95,23 @@ export declare const useFunkitAccount: () => {
|
|
|
111
95
|
isReconnecting: false;
|
|
112
96
|
isConnecting: true;
|
|
113
97
|
isDisconnected: false;
|
|
114
|
-
status:
|
|
98
|
+
status: 'connecting';
|
|
99
|
+
account: "" | `0x${string}`;
|
|
100
|
+
isConnected: boolean;
|
|
101
|
+
loginType: LoginType;
|
|
102
|
+
} | {
|
|
103
|
+
address: undefined;
|
|
104
|
+
addresses: undefined;
|
|
105
|
+
chain: undefined;
|
|
106
|
+
chainId: undefined;
|
|
107
|
+
connector: undefined;
|
|
108
|
+
isReconnecting: false;
|
|
109
|
+
isConnecting: false;
|
|
110
|
+
isDisconnected: true;
|
|
111
|
+
status: 'disconnected';
|
|
112
|
+
account: "" | `0x${string}`;
|
|
113
|
+
isConnected: boolean;
|
|
114
|
+
loginType: LoginType;
|
|
115
115
|
};
|
|
116
116
|
export declare const useFunkitUserInfo: () => FunkitUserInfo;
|
|
117
117
|
export type FunkitDisconnectReturnType = UseDisconnectReturnType & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
export declare const ModalSizeOptions: {
|
|
3
|
-
readonly COMPACT:
|
|
4
|
-
readonly MEDIUM:
|
|
5
|
-
readonly WIDE:
|
|
6
|
-
readonly EXTRA_WIDE:
|
|
3
|
+
readonly COMPACT: 'compact';
|
|
4
|
+
readonly MEDIUM: 'medium';
|
|
5
|
+
readonly WIDE: 'wide';
|
|
6
|
+
readonly EXTRA_WIDE: 'extraWide';
|
|
7
7
|
};
|
|
8
8
|
export type ModalSizes = (typeof ModalSizeOptions)[keyof typeof ModalSizeOptions];
|
|
9
9
|
export declare const ModalSizeContext: React.Context<ModalSizes>;
|
|
@@ -27,7 +27,7 @@ interface BaseThemeOptions {
|
|
|
27
27
|
/** Custom z-index for the modal overlay */
|
|
28
28
|
modalZIndex?: number;
|
|
29
29
|
}
|
|
30
|
-
export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, customFontSizings, customBorderWidths, customBorderRadiuses, customDimensions, customOpacities, customSpacings, customTextTransforms, overlayBlur, modalZIndex, }: BaseThemeOptions) => Pick<ThemeVars,
|
|
30
|
+
export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, customFontSizings, customBorderWidths, customBorderRadiuses, customDimensions, customOpacities, customSpacings, customTextTransforms, overlayBlur, modalZIndex, }: BaseThemeOptions) => Pick<ThemeVars, 'radii' | 'dimensions' | 'fonts' | 'fontWeight' | 'fontSize' | 'blurs' | 'spacing' | 'borderWidths' | 'textTransforms' | 'modalZIndex' | 'opacities'>;
|
|
31
31
|
export interface AccentColor {
|
|
32
32
|
accentColor: string;
|
|
33
33
|
accentColorForeground: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ThemeVars } from '../css/sprinkles.css';
|
|
2
2
|
import { type AccentColor, type AccentColorPreset, type ThemeOptions } from './baseTheme';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
declare const accentColors: Record<AccentColorPreset, AccentColor>;
|
|
4
|
+
export declare function darkTheme({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions): ThemeVars;
|
|
5
|
+
export declare namespace darkTheme {
|
|
6
|
+
export { accentColors };
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ThemeVars } from '../css/sprinkles.css';
|
|
2
2
|
import { type AccentColor, type AccentColorPreset, type ThemeOptions } from './baseTheme';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
declare const accentColors: Record<AccentColorPreset, AccentColor>;
|
|
4
|
+
export declare function lightTheme({ accentColor, accentColorForeground, customColors, customShadows, ...baseThemeOptions }?: ThemeOptions): ThemeVars;
|
|
5
|
+
export declare namespace lightTheme {
|
|
6
|
+
export { accentColors };
|
|
7
|
+
}
|
|
8
|
+
export {};
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
|
|
|
11
11
|
export declare const BROKERAGE_TIME_ESTIMATE_MS = 0;
|
|
12
12
|
export declare const BANK_TIME_ESTIMATE_MS = 0;
|
|
13
13
|
export declare const DUMMY_TRANSFER_PARAMS: {
|
|
14
|
-
toAddress:
|
|
14
|
+
toAddress: '0x000000000000000000000000000000000000dEaD';
|
|
15
15
|
tokenAmount: number;
|
|
16
16
|
};
|
|
17
17
|
type ValidateCheckoutConfigReturn = Promise<{
|
package/dist/utils/customer.d.ts
CHANGED
|
@@ -41,44 +41,6 @@ export declare function adaptLighterTargetAssetsForUnifiedAccount(candidates: Dy
|
|
|
41
41
|
export declare function useLighterAccount(lookup: LighterAccountSelector | null, options?: {
|
|
42
42
|
activeOnly?: boolean;
|
|
43
43
|
}): {
|
|
44
|
-
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
45
|
-
data: import("@funkit/connect-core").LighterAccountResponse;
|
|
46
|
-
error: Error;
|
|
47
|
-
isError: true;
|
|
48
|
-
isPending: false;
|
|
49
|
-
isLoading: false;
|
|
50
|
-
isLoadingError: false;
|
|
51
|
-
isRefetchError: true;
|
|
52
|
-
isSuccess: false;
|
|
53
|
-
isPlaceholderData: false;
|
|
54
|
-
status: "error";
|
|
55
|
-
dataUpdatedAt: number;
|
|
56
|
-
errorUpdatedAt: number;
|
|
57
|
-
failureCount: number;
|
|
58
|
-
failureReason: Error | null;
|
|
59
|
-
errorUpdateCount: number;
|
|
60
|
-
isFetched: boolean;
|
|
61
|
-
isFetchedAfterMount: boolean;
|
|
62
|
-
isFetching: boolean;
|
|
63
|
-
isInitialLoading: boolean;
|
|
64
|
-
isPaused: boolean;
|
|
65
|
-
isRefetching: boolean;
|
|
66
|
-
isStale: boolean;
|
|
67
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountResponse, Error>>;
|
|
68
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
69
|
-
promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
|
|
70
|
-
} | {
|
|
71
|
-
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
72
|
-
data: import("@funkit/connect-core").LighterAccountResponse;
|
|
73
|
-
error: null;
|
|
74
|
-
isError: false;
|
|
75
|
-
isPending: false;
|
|
76
|
-
isLoading: false;
|
|
77
|
-
isLoadingError: false;
|
|
78
|
-
isRefetchError: false;
|
|
79
|
-
isSuccess: true;
|
|
80
|
-
isPlaceholderData: false;
|
|
81
|
-
status: "success";
|
|
82
44
|
dataUpdatedAt: number;
|
|
83
45
|
errorUpdatedAt: number;
|
|
84
46
|
failureCount: number;
|
|
@@ -94,8 +56,6 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
94
56
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountResponse, Error>>;
|
|
95
57
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
96
58
|
promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
|
|
97
|
-
} | {
|
|
98
|
-
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
99
59
|
data: undefined;
|
|
100
60
|
error: Error;
|
|
101
61
|
isError: true;
|
|
@@ -105,7 +65,9 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
105
65
|
isRefetchError: false;
|
|
106
66
|
isSuccess: false;
|
|
107
67
|
isPlaceholderData: false;
|
|
108
|
-
status:
|
|
68
|
+
status: 'error';
|
|
69
|
+
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
70
|
+
} | {
|
|
109
71
|
dataUpdatedAt: number;
|
|
110
72
|
errorUpdatedAt: number;
|
|
111
73
|
failureCount: number;
|
|
@@ -121,8 +83,6 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
121
83
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountResponse, Error>>;
|
|
122
84
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
123
85
|
promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
|
|
124
|
-
} | {
|
|
125
|
-
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
126
86
|
data: undefined;
|
|
127
87
|
error: null;
|
|
128
88
|
isError: false;
|
|
@@ -132,7 +92,9 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
132
92
|
isRefetchError: false;
|
|
133
93
|
isSuccess: false;
|
|
134
94
|
isPlaceholderData: false;
|
|
135
|
-
status:
|
|
95
|
+
status: 'pending';
|
|
96
|
+
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
97
|
+
} | {
|
|
136
98
|
dataUpdatedAt: number;
|
|
137
99
|
errorUpdatedAt: number;
|
|
138
100
|
failureCount: number;
|
|
@@ -141,6 +103,7 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
141
103
|
isFetched: boolean;
|
|
142
104
|
isFetchedAfterMount: boolean;
|
|
143
105
|
isFetching: boolean;
|
|
106
|
+
isLoading: boolean;
|
|
144
107
|
isInitialLoading: boolean;
|
|
145
108
|
isPaused: boolean;
|
|
146
109
|
isRefetching: boolean;
|
|
@@ -148,8 +111,6 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
148
111
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountResponse, Error>>;
|
|
149
112
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
150
113
|
promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
|
|
151
|
-
} | {
|
|
152
|
-
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
153
114
|
data: undefined;
|
|
154
115
|
error: null;
|
|
155
116
|
isError: false;
|
|
@@ -158,7 +119,9 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
158
119
|
isRefetchError: false;
|
|
159
120
|
isSuccess: false;
|
|
160
121
|
isPlaceholderData: false;
|
|
161
|
-
status:
|
|
122
|
+
status: 'pending';
|
|
123
|
+
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
124
|
+
} | {
|
|
162
125
|
dataUpdatedAt: number;
|
|
163
126
|
errorUpdatedAt: number;
|
|
164
127
|
failureCount: number;
|
|
@@ -167,7 +130,6 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
167
130
|
isFetched: boolean;
|
|
168
131
|
isFetchedAfterMount: boolean;
|
|
169
132
|
isFetching: boolean;
|
|
170
|
-
isLoading: boolean;
|
|
171
133
|
isInitialLoading: boolean;
|
|
172
134
|
isPaused: boolean;
|
|
173
135
|
isRefetching: boolean;
|
|
@@ -175,8 +137,6 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
175
137
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountResponse, Error>>;
|
|
176
138
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
177
139
|
promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
|
|
178
|
-
} | {
|
|
179
|
-
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
180
140
|
data: import("@funkit/connect-core").LighterAccountResponse;
|
|
181
141
|
isError: false;
|
|
182
142
|
error: null;
|
|
@@ -186,7 +146,9 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
186
146
|
isRefetchError: false;
|
|
187
147
|
isSuccess: true;
|
|
188
148
|
isPlaceholderData: true;
|
|
189
|
-
status:
|
|
149
|
+
status: 'success';
|
|
150
|
+
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
151
|
+
} | {
|
|
190
152
|
dataUpdatedAt: number;
|
|
191
153
|
errorUpdatedAt: number;
|
|
192
154
|
failureCount: number;
|
|
@@ -202,21 +164,7 @@ export declare function useLighterAccount(lookup: LighterAccountSelector | null,
|
|
|
202
164
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountResponse, Error>>;
|
|
203
165
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
204
166
|
promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
|
|
205
|
-
|
|
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, }: {
|
|
213
|
-
address: Address | '' | undefined;
|
|
214
|
-
chainId: LighterChainId | undefined;
|
|
215
|
-
}): {
|
|
216
|
-
mainAccountIndex: string | undefined;
|
|
217
|
-
isUnifiedTradingMode: boolean;
|
|
218
|
-
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
219
|
-
data: import("@funkit/connect-core").LighterAccountsByL1AddressResponse;
|
|
167
|
+
data: import("@funkit/connect-core").LighterAccountResponse;
|
|
220
168
|
error: Error;
|
|
221
169
|
isError: true;
|
|
222
170
|
isPending: false;
|
|
@@ -225,7 +173,9 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
225
173
|
isRefetchError: true;
|
|
226
174
|
isSuccess: false;
|
|
227
175
|
isPlaceholderData: false;
|
|
228
|
-
status:
|
|
176
|
+
status: 'error';
|
|
177
|
+
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
178
|
+
} | {
|
|
229
179
|
dataUpdatedAt: number;
|
|
230
180
|
errorUpdatedAt: number;
|
|
231
181
|
failureCount: number;
|
|
@@ -238,14 +188,10 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
238
188
|
isPaused: boolean;
|
|
239
189
|
isRefetching: boolean;
|
|
240
190
|
isStale: boolean;
|
|
241
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").
|
|
191
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountResponse, Error>>;
|
|
242
192
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
243
|
-
promise: Promise<import("@funkit/connect-core").
|
|
244
|
-
|
|
245
|
-
mainAccountIndex: string | undefined;
|
|
246
|
-
isUnifiedTradingMode: boolean;
|
|
247
|
-
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
248
|
-
data: import("@funkit/connect-core").LighterAccountsByL1AddressResponse;
|
|
193
|
+
promise: Promise<import("@funkit/connect-core").LighterAccountResponse>;
|
|
194
|
+
data: import("@funkit/connect-core").LighterAccountResponse;
|
|
249
195
|
error: null;
|
|
250
196
|
isError: false;
|
|
251
197
|
isPending: false;
|
|
@@ -254,7 +200,19 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
254
200
|
isRefetchError: false;
|
|
255
201
|
isSuccess: true;
|
|
256
202
|
isPlaceholderData: false;
|
|
257
|
-
status:
|
|
203
|
+
status: 'success';
|
|
204
|
+
account: import("@funkit/connect-core").LighterAccount | undefined;
|
|
205
|
+
};
|
|
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, }: {
|
|
213
|
+
address: Address | '' | undefined;
|
|
214
|
+
chainId: LighterChainId | undefined;
|
|
215
|
+
}): {
|
|
258
216
|
dataUpdatedAt: number;
|
|
259
217
|
errorUpdatedAt: number;
|
|
260
218
|
failureCount: number;
|
|
@@ -270,10 +228,6 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
270
228
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountsByL1AddressResponse, Error>>;
|
|
271
229
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
272
230
|
promise: Promise<import("@funkit/connect-core").LighterAccountsByL1AddressResponse>;
|
|
273
|
-
} | {
|
|
274
|
-
mainAccountIndex: string | undefined;
|
|
275
|
-
isUnifiedTradingMode: boolean;
|
|
276
|
-
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
277
231
|
data: undefined;
|
|
278
232
|
error: Error;
|
|
279
233
|
isError: true;
|
|
@@ -283,7 +237,11 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
283
237
|
isRefetchError: false;
|
|
284
238
|
isSuccess: false;
|
|
285
239
|
isPlaceholderData: false;
|
|
286
|
-
status:
|
|
240
|
+
status: 'error';
|
|
241
|
+
mainAccountIndex: string | undefined;
|
|
242
|
+
isUnifiedTradingMode: boolean;
|
|
243
|
+
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
244
|
+
} | {
|
|
287
245
|
dataUpdatedAt: number;
|
|
288
246
|
errorUpdatedAt: number;
|
|
289
247
|
failureCount: number;
|
|
@@ -299,10 +257,6 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
299
257
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountsByL1AddressResponse, Error>>;
|
|
300
258
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
301
259
|
promise: Promise<import("@funkit/connect-core").LighterAccountsByL1AddressResponse>;
|
|
302
|
-
} | {
|
|
303
|
-
mainAccountIndex: string | undefined;
|
|
304
|
-
isUnifiedTradingMode: boolean;
|
|
305
|
-
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
306
260
|
data: undefined;
|
|
307
261
|
error: null;
|
|
308
262
|
isError: false;
|
|
@@ -312,7 +266,11 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
312
266
|
isRefetchError: false;
|
|
313
267
|
isSuccess: false;
|
|
314
268
|
isPlaceholderData: false;
|
|
315
|
-
status:
|
|
269
|
+
status: 'pending';
|
|
270
|
+
mainAccountIndex: string | undefined;
|
|
271
|
+
isUnifiedTradingMode: boolean;
|
|
272
|
+
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
273
|
+
} | {
|
|
316
274
|
dataUpdatedAt: number;
|
|
317
275
|
errorUpdatedAt: number;
|
|
318
276
|
failureCount: number;
|
|
@@ -321,6 +279,7 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
321
279
|
isFetched: boolean;
|
|
322
280
|
isFetchedAfterMount: boolean;
|
|
323
281
|
isFetching: boolean;
|
|
282
|
+
isLoading: boolean;
|
|
324
283
|
isInitialLoading: boolean;
|
|
325
284
|
isPaused: boolean;
|
|
326
285
|
isRefetching: boolean;
|
|
@@ -328,10 +287,6 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
328
287
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountsByL1AddressResponse, Error>>;
|
|
329
288
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
330
289
|
promise: Promise<import("@funkit/connect-core").LighterAccountsByL1AddressResponse>;
|
|
331
|
-
} | {
|
|
332
|
-
mainAccountIndex: string | undefined;
|
|
333
|
-
isUnifiedTradingMode: boolean;
|
|
334
|
-
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
335
290
|
data: undefined;
|
|
336
291
|
error: null;
|
|
337
292
|
isError: false;
|
|
@@ -340,7 +295,11 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
340
295
|
isRefetchError: false;
|
|
341
296
|
isSuccess: false;
|
|
342
297
|
isPlaceholderData: false;
|
|
343
|
-
status:
|
|
298
|
+
status: 'pending';
|
|
299
|
+
mainAccountIndex: string | undefined;
|
|
300
|
+
isUnifiedTradingMode: boolean;
|
|
301
|
+
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
302
|
+
} | {
|
|
344
303
|
dataUpdatedAt: number;
|
|
345
304
|
errorUpdatedAt: number;
|
|
346
305
|
failureCount: number;
|
|
@@ -349,7 +308,6 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
349
308
|
isFetched: boolean;
|
|
350
309
|
isFetchedAfterMount: boolean;
|
|
351
310
|
isFetching: boolean;
|
|
352
|
-
isLoading: boolean;
|
|
353
311
|
isInitialLoading: boolean;
|
|
354
312
|
isPaused: boolean;
|
|
355
313
|
isRefetching: boolean;
|
|
@@ -357,10 +315,6 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
357
315
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountsByL1AddressResponse, Error>>;
|
|
358
316
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
359
317
|
promise: Promise<import("@funkit/connect-core").LighterAccountsByL1AddressResponse>;
|
|
360
|
-
} | {
|
|
361
|
-
mainAccountIndex: string | undefined;
|
|
362
|
-
isUnifiedTradingMode: boolean;
|
|
363
|
-
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
364
318
|
data: import("@funkit/connect-core").LighterAccountsByL1AddressResponse;
|
|
365
319
|
isError: false;
|
|
366
320
|
error: null;
|
|
@@ -370,7 +324,40 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
370
324
|
isRefetchError: false;
|
|
371
325
|
isSuccess: true;
|
|
372
326
|
isPlaceholderData: true;
|
|
373
|
-
status:
|
|
327
|
+
status: 'success';
|
|
328
|
+
mainAccountIndex: string | undefined;
|
|
329
|
+
isUnifiedTradingMode: boolean;
|
|
330
|
+
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
331
|
+
} | {
|
|
332
|
+
dataUpdatedAt: number;
|
|
333
|
+
errorUpdatedAt: number;
|
|
334
|
+
failureCount: number;
|
|
335
|
+
failureReason: Error | null;
|
|
336
|
+
errorUpdateCount: number;
|
|
337
|
+
isFetched: boolean;
|
|
338
|
+
isFetchedAfterMount: boolean;
|
|
339
|
+
isFetching: boolean;
|
|
340
|
+
isInitialLoading: boolean;
|
|
341
|
+
isPaused: boolean;
|
|
342
|
+
isRefetching: boolean;
|
|
343
|
+
isStale: boolean;
|
|
344
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountsByL1AddressResponse, Error>>;
|
|
345
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
346
|
+
promise: Promise<import("@funkit/connect-core").LighterAccountsByL1AddressResponse>;
|
|
347
|
+
data: import("@funkit/connect-core").LighterAccountsByL1AddressResponse;
|
|
348
|
+
error: Error;
|
|
349
|
+
isError: true;
|
|
350
|
+
isPending: false;
|
|
351
|
+
isLoading: false;
|
|
352
|
+
isLoadingError: false;
|
|
353
|
+
isRefetchError: true;
|
|
354
|
+
isSuccess: false;
|
|
355
|
+
isPlaceholderData: false;
|
|
356
|
+
status: 'error';
|
|
357
|
+
mainAccountIndex: string | undefined;
|
|
358
|
+
isUnifiedTradingMode: boolean;
|
|
359
|
+
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
360
|
+
} | {
|
|
374
361
|
dataUpdatedAt: number;
|
|
375
362
|
errorUpdatedAt: number;
|
|
376
363
|
failureCount: number;
|
|
@@ -386,4 +373,17 @@ export declare function useLighterAccounts({ address, chainId, }: {
|
|
|
386
373
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@funkit/connect-core").LighterAccountsByL1AddressResponse, Error>>;
|
|
387
374
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
388
375
|
promise: Promise<import("@funkit/connect-core").LighterAccountsByL1AddressResponse>;
|
|
376
|
+
data: import("@funkit/connect-core").LighterAccountsByL1AddressResponse;
|
|
377
|
+
error: null;
|
|
378
|
+
isError: false;
|
|
379
|
+
isPending: false;
|
|
380
|
+
isLoading: false;
|
|
381
|
+
isLoadingError: false;
|
|
382
|
+
isRefetchError: false;
|
|
383
|
+
isSuccess: true;
|
|
384
|
+
isPlaceholderData: false;
|
|
385
|
+
status: 'success';
|
|
386
|
+
mainAccountIndex: string | undefined;
|
|
387
|
+
isUnifiedTradingMode: boolean;
|
|
388
|
+
subAccounts: import("@funkit/connect-core").LighterSubAccount[] | undefined;
|
|
389
389
|
};
|