@funkit/connect 9.6.1 → 9.7.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 +28 -0
- package/dist/__generated__/default_configs.d.ts +6 -0
- package/dist/__generated__/default_feature_gates.d.ts +3 -1
- package/dist/{chunk-VLAOBEJN.js → chunk-76E6MOLR.js} +1 -0
- package/dist/{chunk-S65TG73G.js → chunk-AVVB5AIE.js} +1 -0
- package/dist/clients/fanatics.css +3381 -3318
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/polymarket.d.ts +0 -1
- package/dist/clients/polymarket.js +0 -2
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/SwappedIframeSkeleton.d.ts +7 -0
- package/dist/css/sprinkles.css.d.ts +23 -21
- package/dist/domains/quoteMode/gasEstimate.d.ts +2 -8
- package/dist/domains/quoteMode/index.d.ts +1 -1
- package/dist/hooks/queries/useFops.d.ts +4 -0
- package/dist/hooks/queries/useHasSavedFops.d.ts +2 -0
- package/dist/hooks/useSwappedIframeLifecycle.d.ts +12 -0
- package/dist/index.css +3381 -3318
- package/dist/index.js +5107 -4809
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -1
- package/dist/modals/CheckoutModal/SwappedIframe/{SwappedIframeContainer.d.ts → SwappedIframeController.d.ts} +1 -1
- package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -1
- package/dist/modals/CheckoutModal/TransferToken/DirectExecutionNotification.d.ts +10 -0
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/providers/SwappedProvider.d.ts +0 -11
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/customer.d.ts +213 -0
- package/dist/utils/directExecution.d.ts +9 -1
- package/dist/utils/flags/config.d.ts +1 -1
- package/dist/utils/safeBigInt.d.ts +5 -0
- package/dist/utils/swapped.d.ts +2 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +53 -53
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +5 -5
- package/dist/wallets/walletConnectors/{chunk-VMMROPXK.js → chunk-34HACM5U.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3ZJN3PXP.js → chunk-5TN5Z2WY.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OD6B2ISG.js → chunk-6DRCY52E.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IRHK6SOW.js → chunk-7V33VJAL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZJJWGKB6.js → chunk-APHCF4DT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-7IEUTLHY.js → chunk-DEFRRPXB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OSOB6QYX.js → chunk-FG2LDVXL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZL6XCMV5.js → chunk-HRDPUW3V.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UYW6MV74.js → chunk-HXWUH73P.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UFYNHHDU.js → chunk-KWX2SYU2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AZYMJ4C6.js → chunk-LCIPVVH5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FWM4KTOV.js → chunk-T4ROGPMF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-J3PJOMO7.js → chunk-UDTBQV4Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-55VS2NKG.js → chunk-V6UOWTEZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LEAZMT5Y.js → chunk-VJZWNQOF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RZQ4B4Z7.js → chunk-XVBSJCW5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IMNI4AGV.js → chunk-YIEASHLS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YGMU5VWD.js → chunk-ZPSPK6LH.js} +3 -3
|
@@ -34,6 +34,8 @@ export interface AmountInputInitOptions {
|
|
|
34
34
|
isNativeToken: boolean;
|
|
35
35
|
/** Current gas price in wei (for native token gas buffer calculation) */
|
|
36
36
|
gasPriceWei: bigint | null;
|
|
37
|
+
/** Gas-unit buffer reserved for the checkout tx (from Statsig dynamic config) */
|
|
38
|
+
gasUnits: bigint;
|
|
37
39
|
}
|
|
38
40
|
export interface AmountInputState {
|
|
39
41
|
/** Current amount, in target asset. Undefined if input is empty */
|
|
@@ -137,6 +139,6 @@ export type AmountInputError = {
|
|
|
137
139
|
* Return half the balance and round up to nearest 10, 100, 1000 etc
|
|
138
140
|
*/
|
|
139
141
|
export declare function calcInitialFiatAmount(balance: number): number;
|
|
140
|
-
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, quoteBuilder, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, meldEnabled, defaultAssetAmount, defaultIsInputInFiat, isNativeToken, gasPriceWei, }: AmountInputInitOptions): AmountInputState;
|
|
142
|
+
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, quoteBuilder, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, meldEnabled, defaultAssetAmount, defaultIsInputInFiat, isNativeToken, gasPriceWei, gasUnits, }: AmountInputInitOptions): AmountInputState;
|
|
141
143
|
export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
|
|
142
144
|
export declare function getDerivedState(state: AmountInputState, targetAssetTicker: string): AmountInputDerivedState;
|
|
@@ -14,4 +14,4 @@ export type SwappedIframeNext = {
|
|
|
14
14
|
success?: boolean;
|
|
15
15
|
};
|
|
16
16
|
export declare const SwappedIframeInfo: ModalStepInfo<FunCheckoutStep.SWAPPED_IFRAME>;
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function SwappedIframeController({ modalState, onBack, onClose, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SwappedIframeController, SwappedIframeInfo, type SwappedIframeNext, type SwappedIframeState, } from './SwappedIframeController';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import type { Address } from 'viem';
|
|
3
4
|
import type { MergedMultiStepDirectExecution } from '../../../hooks/queries/useRecentDeposits';
|
|
@@ -6,5 +7,14 @@ interface DirectExecutionNotificationProps {
|
|
|
6
7
|
onClose: (id: string) => void;
|
|
7
8
|
onHelp: (depositAddress: Address) => void;
|
|
8
9
|
}
|
|
10
|
+
export declare const getNotificationProcessingConfig: ({ t, isFasterNotificationsEnabled, isLighter, isSyntheticDE, }: {
|
|
11
|
+
t: TFunction;
|
|
12
|
+
isFasterNotificationsEnabled: boolean;
|
|
13
|
+
isLighter: boolean;
|
|
14
|
+
isSyntheticDE: boolean;
|
|
15
|
+
}) => {
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
9
19
|
export declare const DirectExecutionNotification: ({ directExecution, onClose, onHelp, }: DirectExecutionNotificationProps) => React.JSX.Element;
|
|
10
20
|
export {};
|
|
@@ -46,6 +46,7 @@ export declare const useActiveTheme: () => {
|
|
|
46
46
|
mediumStroke: string;
|
|
47
47
|
heavyStroke: string;
|
|
48
48
|
strokeColor: string;
|
|
49
|
+
secondaryBackground: string;
|
|
49
50
|
modalTopbarIcon: string;
|
|
50
51
|
modalTopbarIconBackground: string;
|
|
51
52
|
modalTopbarIconBackgroundHover: string;
|
|
@@ -570,6 +571,7 @@ export declare const useActiveTheme: () => {
|
|
|
570
571
|
mediumStroke: string;
|
|
571
572
|
heavyStroke: string;
|
|
572
573
|
strokeColor: string;
|
|
574
|
+
secondaryBackground: string;
|
|
573
575
|
modalTopbarIcon: string;
|
|
574
576
|
modalTopbarIconBackground: string;
|
|
575
577
|
modalTopbarIconBackgroundHover: string;
|
|
@@ -1092,6 +1094,7 @@ export declare const useActiveTheme: () => {
|
|
|
1092
1094
|
mediumStroke: string;
|
|
1093
1095
|
heavyStroke: string;
|
|
1094
1096
|
strokeColor: string;
|
|
1097
|
+
secondaryBackground: string;
|
|
1095
1098
|
modalTopbarIcon: string;
|
|
1096
1099
|
modalTopbarIconBackground: string;
|
|
1097
1100
|
modalTopbarIconBackgroundHover: string;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { type FormOfPaymentType } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type SwappedTheme } from '../utils/swapped';
|
|
4
|
-
export interface SwappedIframeCallbacks {
|
|
5
|
-
onBack: () => void;
|
|
6
|
-
onExit: () => void;
|
|
7
|
-
onNewDeposit: () => void;
|
|
8
|
-
onError: (data: Record<string, unknown>) => void;
|
|
9
|
-
onNavigation: (step: string) => void;
|
|
10
|
-
onOrderData: (data: Record<string, unknown>) => void;
|
|
11
|
-
onSuccess: (data: Record<string, unknown>) => void;
|
|
12
|
-
onLogout: () => void;
|
|
13
|
-
}
|
|
14
4
|
interface SwappedContextValue {
|
|
15
5
|
iframeUrl: string | null;
|
|
16
6
|
isSwappedReady: boolean;
|
|
@@ -20,7 +10,6 @@ interface SwappedContextValue {
|
|
|
20
10
|
deactivateIframe: () => void;
|
|
21
11
|
resetIframe: () => void;
|
|
22
12
|
setIframeRef: (el: HTMLIFrameElement | null) => void;
|
|
23
|
-
setActiveCallbacks: (cb: SwappedIframeCallbacks | null) => void;
|
|
24
13
|
focusAmountInput: () => void;
|
|
25
14
|
swappedTheme: SwappedTheme;
|
|
26
15
|
}
|
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/customer.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LighterAccountIndex } from '@funkit/api-base';
|
|
1
2
|
import type { Address } from 'viem';
|
|
2
3
|
export type LighterSubAccount = {
|
|
3
4
|
code: number;
|
|
@@ -18,6 +19,218 @@ export type LighterAccountsByL1AddressResponse = {
|
|
|
18
19
|
sub_accounts: LighterSubAccount[];
|
|
19
20
|
};
|
|
20
21
|
export declare function getLighterAccountsByL1Address(address: Address): Promise<LighterAccountsByL1AddressResponse>;
|
|
22
|
+
export type LighterAsset = {
|
|
23
|
+
symbol: string;
|
|
24
|
+
asset_id: number;
|
|
25
|
+
balance: string;
|
|
26
|
+
locked_balance: string;
|
|
27
|
+
};
|
|
28
|
+
export type LighterAccount = {
|
|
29
|
+
code: number;
|
|
30
|
+
account_type: number;
|
|
31
|
+
index: number;
|
|
32
|
+
l1_address: Address;
|
|
33
|
+
cancel_all_time: number;
|
|
34
|
+
total_order_count: number;
|
|
35
|
+
total_isolated_order_count: number;
|
|
36
|
+
pending_order_count: number;
|
|
37
|
+
available_balance: string;
|
|
38
|
+
status: number;
|
|
39
|
+
collateral: string;
|
|
40
|
+
transaction_time: number;
|
|
41
|
+
account_trading_mode: number;
|
|
42
|
+
account_index: number;
|
|
43
|
+
name: string;
|
|
44
|
+
description: string;
|
|
45
|
+
can_invite: boolean;
|
|
46
|
+
referral_points_percentage: string;
|
|
47
|
+
can_rfq: boolean;
|
|
48
|
+
created_at: number;
|
|
49
|
+
positions: unknown[];
|
|
50
|
+
assets: LighterAsset[];
|
|
51
|
+
total_asset_value: string;
|
|
52
|
+
cross_asset_value: string;
|
|
53
|
+
shares: unknown[];
|
|
54
|
+
pending_unlocks: unknown[];
|
|
55
|
+
};
|
|
56
|
+
export type LighterAccountResponse = {
|
|
57
|
+
code: number;
|
|
58
|
+
total: number;
|
|
59
|
+
accounts: LighterAccount[];
|
|
60
|
+
};
|
|
61
|
+
export type LighterAccountLookup = {
|
|
62
|
+
by: 'index';
|
|
63
|
+
value: LighterAccountIndex;
|
|
64
|
+
} | {
|
|
65
|
+
by: 'l1_address';
|
|
66
|
+
value: Address;
|
|
67
|
+
};
|
|
68
|
+
export declare function getLighterAccount(lookup: LighterAccountLookup, activeOnly?: boolean): Promise<LighterAccountResponse>;
|
|
69
|
+
export declare function useLighterAccount(lookup: LighterAccountLookup | null, options?: {
|
|
70
|
+
activeOnly?: boolean;
|
|
71
|
+
}): {
|
|
72
|
+
account: LighterAccount | undefined;
|
|
73
|
+
data: LighterAccountResponse;
|
|
74
|
+
error: Error;
|
|
75
|
+
isError: true;
|
|
76
|
+
isPending: false;
|
|
77
|
+
isLoading: false;
|
|
78
|
+
isLoadingError: false;
|
|
79
|
+
isRefetchError: true;
|
|
80
|
+
isSuccess: false;
|
|
81
|
+
isPlaceholderData: false;
|
|
82
|
+
status: "error";
|
|
83
|
+
dataUpdatedAt: number;
|
|
84
|
+
errorUpdatedAt: number;
|
|
85
|
+
failureCount: number;
|
|
86
|
+
failureReason: Error | null;
|
|
87
|
+
errorUpdateCount: number;
|
|
88
|
+
isFetched: boolean;
|
|
89
|
+
isFetchedAfterMount: boolean;
|
|
90
|
+
isFetching: boolean;
|
|
91
|
+
isInitialLoading: boolean;
|
|
92
|
+
isPaused: boolean;
|
|
93
|
+
isRefetching: boolean;
|
|
94
|
+
isStale: boolean;
|
|
95
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountResponse, Error>>;
|
|
96
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
97
|
+
promise: Promise<LighterAccountResponse>;
|
|
98
|
+
} | {
|
|
99
|
+
account: LighterAccount | undefined;
|
|
100
|
+
data: LighterAccountResponse;
|
|
101
|
+
error: null;
|
|
102
|
+
isError: false;
|
|
103
|
+
isPending: false;
|
|
104
|
+
isLoading: false;
|
|
105
|
+
isLoadingError: false;
|
|
106
|
+
isRefetchError: false;
|
|
107
|
+
isSuccess: true;
|
|
108
|
+
isPlaceholderData: false;
|
|
109
|
+
status: "success";
|
|
110
|
+
dataUpdatedAt: number;
|
|
111
|
+
errorUpdatedAt: number;
|
|
112
|
+
failureCount: number;
|
|
113
|
+
failureReason: Error | null;
|
|
114
|
+
errorUpdateCount: number;
|
|
115
|
+
isFetched: boolean;
|
|
116
|
+
isFetchedAfterMount: boolean;
|
|
117
|
+
isFetching: boolean;
|
|
118
|
+
isInitialLoading: boolean;
|
|
119
|
+
isPaused: boolean;
|
|
120
|
+
isRefetching: boolean;
|
|
121
|
+
isStale: boolean;
|
|
122
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountResponse, Error>>;
|
|
123
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
124
|
+
promise: Promise<LighterAccountResponse>;
|
|
125
|
+
} | {
|
|
126
|
+
account: LighterAccount | undefined;
|
|
127
|
+
data: undefined;
|
|
128
|
+
error: Error;
|
|
129
|
+
isError: true;
|
|
130
|
+
isPending: false;
|
|
131
|
+
isLoading: false;
|
|
132
|
+
isLoadingError: true;
|
|
133
|
+
isRefetchError: false;
|
|
134
|
+
isSuccess: false;
|
|
135
|
+
isPlaceholderData: false;
|
|
136
|
+
status: "error";
|
|
137
|
+
dataUpdatedAt: number;
|
|
138
|
+
errorUpdatedAt: number;
|
|
139
|
+
failureCount: number;
|
|
140
|
+
failureReason: Error | null;
|
|
141
|
+
errorUpdateCount: number;
|
|
142
|
+
isFetched: boolean;
|
|
143
|
+
isFetchedAfterMount: boolean;
|
|
144
|
+
isFetching: boolean;
|
|
145
|
+
isInitialLoading: boolean;
|
|
146
|
+
isPaused: boolean;
|
|
147
|
+
isRefetching: boolean;
|
|
148
|
+
isStale: boolean;
|
|
149
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountResponse, Error>>;
|
|
150
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
151
|
+
promise: Promise<LighterAccountResponse>;
|
|
152
|
+
} | {
|
|
153
|
+
account: LighterAccount | undefined;
|
|
154
|
+
data: undefined;
|
|
155
|
+
error: null;
|
|
156
|
+
isError: false;
|
|
157
|
+
isPending: true;
|
|
158
|
+
isLoading: true;
|
|
159
|
+
isLoadingError: false;
|
|
160
|
+
isRefetchError: false;
|
|
161
|
+
isSuccess: false;
|
|
162
|
+
isPlaceholderData: false;
|
|
163
|
+
status: "pending";
|
|
164
|
+
dataUpdatedAt: number;
|
|
165
|
+
errorUpdatedAt: number;
|
|
166
|
+
failureCount: number;
|
|
167
|
+
failureReason: Error | null;
|
|
168
|
+
errorUpdateCount: number;
|
|
169
|
+
isFetched: boolean;
|
|
170
|
+
isFetchedAfterMount: boolean;
|
|
171
|
+
isFetching: boolean;
|
|
172
|
+
isInitialLoading: boolean;
|
|
173
|
+
isPaused: boolean;
|
|
174
|
+
isRefetching: boolean;
|
|
175
|
+
isStale: boolean;
|
|
176
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountResponse, Error>>;
|
|
177
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
178
|
+
promise: Promise<LighterAccountResponse>;
|
|
179
|
+
} | {
|
|
180
|
+
account: LighterAccount | undefined;
|
|
181
|
+
data: undefined;
|
|
182
|
+
error: null;
|
|
183
|
+
isError: false;
|
|
184
|
+
isPending: true;
|
|
185
|
+
isLoadingError: false;
|
|
186
|
+
isRefetchError: false;
|
|
187
|
+
isSuccess: false;
|
|
188
|
+
isPlaceholderData: false;
|
|
189
|
+
status: "pending";
|
|
190
|
+
dataUpdatedAt: number;
|
|
191
|
+
errorUpdatedAt: number;
|
|
192
|
+
failureCount: number;
|
|
193
|
+
failureReason: Error | null;
|
|
194
|
+
errorUpdateCount: number;
|
|
195
|
+
isFetched: boolean;
|
|
196
|
+
isFetchedAfterMount: boolean;
|
|
197
|
+
isFetching: boolean;
|
|
198
|
+
isLoading: boolean;
|
|
199
|
+
isInitialLoading: boolean;
|
|
200
|
+
isPaused: boolean;
|
|
201
|
+
isRefetching: boolean;
|
|
202
|
+
isStale: boolean;
|
|
203
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountResponse, Error>>;
|
|
204
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
205
|
+
promise: Promise<LighterAccountResponse>;
|
|
206
|
+
} | {
|
|
207
|
+
account: LighterAccount | undefined;
|
|
208
|
+
data: LighterAccountResponse;
|
|
209
|
+
isError: false;
|
|
210
|
+
error: null;
|
|
211
|
+
isPending: false;
|
|
212
|
+
isLoading: false;
|
|
213
|
+
isLoadingError: false;
|
|
214
|
+
isRefetchError: false;
|
|
215
|
+
isSuccess: true;
|
|
216
|
+
isPlaceholderData: true;
|
|
217
|
+
status: "success";
|
|
218
|
+
dataUpdatedAt: number;
|
|
219
|
+
errorUpdatedAt: number;
|
|
220
|
+
failureCount: number;
|
|
221
|
+
failureReason: Error | null;
|
|
222
|
+
errorUpdateCount: number;
|
|
223
|
+
isFetched: boolean;
|
|
224
|
+
isFetchedAfterMount: boolean;
|
|
225
|
+
isFetching: boolean;
|
|
226
|
+
isInitialLoading: boolean;
|
|
227
|
+
isPaused: boolean;
|
|
228
|
+
isRefetching: boolean;
|
|
229
|
+
isStale: boolean;
|
|
230
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountResponse, Error>>;
|
|
231
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
232
|
+
promise: Promise<LighterAccountResponse>;
|
|
233
|
+
};
|
|
21
234
|
export declare function useLighterAccounts({ address, }: {
|
|
22
235
|
address: Address | '' | undefined;
|
|
23
236
|
}): {
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import type { DirectExecution } from '@funkit/api-base';
|
|
2
2
|
import type { WalletClient } from 'viem';
|
|
3
|
+
import type { MergedMultiStepDirectExecution } from '../hooks/queries/useRecentDeposits';
|
|
3
4
|
export declare function getDirectExecutionCreatedTimeMs(directExecution: DirectExecution): number;
|
|
4
5
|
export declare function getDirectExecutionUpdatedTimeMs(directExecution: DirectExecution): number;
|
|
6
|
+
/**
|
|
7
|
+
* Unique key for a DE notification record, stable between synthetic and real record.
|
|
8
|
+
*
|
|
9
|
+
* When a synthetic deposit-detection DE is replaced by the real DE, the txHash
|
|
10
|
+
* changes but triggeringTxHash stays the same. Preferring triggeringTxHash keeps
|
|
11
|
+
* the identity stable across that swap, avoiding a flash/remount of the notification.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getDirectExecutionNotificationKey(item: MergedMultiStepDirectExecution): string;
|
|
5
14
|
export declare function getDirectExecutionRunTimeSeconds(directExecution: DirectExecution): number;
|
|
6
15
|
/**
|
|
7
16
|
* Resolves the completion transaction chain, hash, and explorer URL for a direct execution.
|
|
@@ -19,7 +28,6 @@ export declare function getCompletionTxInfo(directExecution: DirectExecution): {
|
|
|
19
28
|
txHash: string | undefined;
|
|
20
29
|
customRedirectUrl: string | undefined;
|
|
21
30
|
};
|
|
22
|
-
export declare function supportsAtomicBatch(wallet: WalletClient, chainId: number): Promise<boolean>;
|
|
23
31
|
/**
|
|
24
32
|
* Returns a proxied wallet with getCapabilities patched to disable atomic batch support.
|
|
25
33
|
* This forces Relay to use sequential transactions instead of batched ones.
|
|
@@ -252,7 +252,7 @@ export declare const flagConfig: {
|
|
|
252
252
|
readonly if_any: [{
|
|
253
253
|
readonly key: "apiKey";
|
|
254
254
|
readonly type: "isAnyOf";
|
|
255
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "
|
|
255
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SLFrOWqgUK3XO8kVN11Is8QBXX9VnNjh3kKsCwy6", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "USyZhcp7kB2mMsbRsaHDs3i52cE6srZw8KD8jZd0", "vte0gvTFGH7hPyPED46oV8TyJlyE8p6D7Q73TSx0", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "TY2G63jFfd7H29aHiJIzg5RqdXNdog2Q5jgb8tr7", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
256
256
|
}];
|
|
257
257
|
readonly value: true;
|
|
258
258
|
}, {
|
package/dist/utils/swapped.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export interface SwappedTheme {
|
|
|
27
27
|
boxPaddingY?: string;
|
|
28
28
|
boxPaddingX?: string;
|
|
29
29
|
paymentMethodLightLogos?: boolean;
|
|
30
|
+
topbarPaddingX?: string;
|
|
31
|
+
topbarPaddingY?: string;
|
|
30
32
|
}
|
|
31
33
|
export declare const SWAPPED_CARD_BRANDS: Record<string, {
|
|
32
34
|
displayName: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bifrostWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-6DRCY52E.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.js";
|
|
8
8
|
export {
|
|
9
9
|
bifrostWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bitgetWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-YIEASHLS.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.js";
|
|
8
8
|
export {
|
|
9
9
|
bitgetWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
bybitWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-DEFRRPXB.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.js";
|
|
8
8
|
export {
|
|
9
9
|
bybitWallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
coin98Wallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-XVBSJCW5.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.js";
|
|
8
8
|
export {
|
|
9
9
|
coin98Wallet
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
frontierWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-FMVNQKZL.js";
|
|
4
|
+
} from "../chunk-UDTBQV4Q.js";
|
|
6
5
|
import "../chunk-YYYRPQHB.js";
|
|
6
|
+
import "../chunk-FMVNQKZL.js";
|
|
7
7
|
import "../chunk-3K2MFXCO.js";
|
|
8
8
|
export {
|
|
9
9
|
frontierWallet
|