@funkit/connect 11.7.0 → 12.1.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 (141) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/{chunk-67BKQQNG.js → chunk-2RND3WWH.js} +1 -1
  3. package/dist/{chunk-L67HP4HQ.js → chunk-53FF4ZHH.js} +1 -1
  4. package/dist/{chunk-4YEAUICE.js → chunk-DH3DS4FX.js} +1 -0
  5. package/dist/clients/{chunk-SG4ZS447.js → chunk-27VBRE7W.js} +79 -15
  6. package/dist/clients/{chunk-OASVWVSV.js → chunk-A5JW3UI6.js} +1 -1
  7. package/dist/clients/chunk-DNVDK7JQ.js +335 -0
  8. package/dist/clients/{chunk-FGUMPXTO.js → chunk-DYV3LRSE.js} +1 -1
  9. package/dist/clients/{chunk-44USAVWK.js → chunk-ECGTOMZQ.js} +2 -2
  10. package/dist/clients/{chunk-IYCZWLAF.js → chunk-IAIRECDV.js} +8 -37
  11. package/dist/clients/{chunk-I4B5AKZC.js → chunk-R6UAC2TB.js} +1 -1
  12. package/dist/clients/chunk-RQALGV5U.js +335 -0
  13. package/dist/clients/{chunk-Y7WLUPTX.js → chunk-VE6QD5IM.js} +67 -16
  14. package/dist/clients/fanatics.css +4686 -4659
  15. package/dist/clients/fanatics.js +7 -9
  16. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  17. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  18. package/dist/clients/internal/nado/withdrawalForm.css +4704 -4677
  19. package/dist/clients/internal/nado/withdrawalForm.js +38 -13
  20. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  21. package/dist/clients/lighter.css +4704 -4677
  22. package/dist/clients/lighter.js +50 -30
  23. package/dist/clients/mallard.js +4 -4
  24. package/dist/clients/nado.js +3 -3
  25. package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +28 -19
  26. package/dist/clients/polymarket/createPolymarketDepositConfig.js +5 -4
  27. package/dist/clients/polymarket/index.d.ts +0 -1
  28. package/dist/clients/polymarket/index.js +4 -17
  29. package/dist/clients/polymarket/polymarket.d.ts +12 -27
  30. package/dist/clients/polymarket/polymarket.js +1 -1
  31. package/dist/components/AsyncImage/useAsyncImage.d.ts +2 -0
  32. package/dist/components/Box/Box.d.ts +15 -15
  33. package/dist/components/Dialog/Dialog.d.ts +8 -1
  34. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +4 -1
  35. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +12 -0
  36. package/dist/components/ModalHeaderTabs/ModalHeaderTabs.d.ts +23 -0
  37. package/dist/consts/polymarket.d.ts +14 -0
  38. package/dist/css/sprinkles.css.d.ts +17 -15
  39. package/dist/domains/polymarketPerps.d.ts +14 -0
  40. package/dist/hooks/queries/useFops.d.ts +3 -1
  41. package/dist/hooks/queries/useWithdrawalQuote.d.ts +7 -0
  42. package/dist/hooks/statsig/index.d.ts +1 -0
  43. package/dist/hooks/statsig/useExperimentV2.d.ts +8 -0
  44. package/dist/hooks/track/CheckoutModalEvent.d.ts +1 -0
  45. package/dist/hooks/track/analytics/events.d.ts +67 -0
  46. package/dist/hooks/track/analytics/mappers.d.ts +4 -1
  47. package/dist/hooks/track/analytics/quote.d.ts +3 -1
  48. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +27 -3
  49. package/dist/hooks/track/useTrack.d.ts +1 -1
  50. package/dist/hooks/track/user.d.ts +8 -0
  51. package/dist/hooks/useCheckoutTransferInit.d.ts +3 -1
  52. package/dist/hooks/useFittedText.d.ts +19 -0
  53. package/dist/hooks/usePolymarketAccountBalances.d.ts +13 -25
  54. package/dist/hooks/useUpdateActiveFunkitCheckout.d.ts +10 -0
  55. package/dist/index.css +4704 -4677
  56. package/dist/index.js +5078 -3730
  57. package/dist/modals/CheckoutModal/CheckoutModalPrefetchedHooks.d.ts +2 -1
  58. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -1
  59. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +10 -0
  60. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -0
  61. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +6 -1
  62. package/dist/modals/PolymarketPerpsTransfer/DirectionSwapButton.d.ts +1 -11
  63. package/dist/modals/PolymarketPerpsTransfer/PerpsHeaderTabs.d.ts +29 -0
  64. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.css.d.ts +9 -0
  65. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.d.ts +15 -0
  66. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferBody.d.ts +12 -0
  67. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsPrefetch.d.ts +7 -0
  68. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +16 -2
  69. package/dist/modals/PolymarketPerpsTransfer/TransferAccountsCard.d.ts +12 -0
  70. package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +8 -1
  71. package/dist/modals/PolymarketPerpsTransfer/TransferPercentOptions.d.ts +13 -0
  72. package/dist/modals/PolymarketPerpsTransfer/usePerpsHeaderTabsState.d.ts +28 -0
  73. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +31 -5
  74. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +6 -0
  75. package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +0 -5
  76. package/dist/modals/WithdrawalModal/useTrackWithdrawalEvents.d.ts +8 -1
  77. package/dist/modals/WithdrawalModal/useTrackWithdrawalQuoteEvents.d.ts +16 -0
  78. package/dist/modals/WithdrawalModal/useWithdrawalChainPreference.d.ts +17 -0
  79. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +2 -1
  80. package/dist/providers/FunkitCheckoutContext/index.d.ts +13 -1
  81. package/dist/providers/FunkitCheckoutContext/types.d.ts +30 -3
  82. package/dist/providers/FunkitConfigContext.d.ts +1 -1
  83. package/dist/providers/FunkitStatsigProvider.d.ts +2 -7
  84. package/dist/providers/FunkitStatsigWhnProvider.d.ts +17 -0
  85. package/dist/providers/FunkitThemeProvider.d.ts +3 -0
  86. package/dist/providers/GeneralWalletProvider.d.ts +1 -0
  87. package/dist/shadow-css.js +1 -1
  88. package/dist/themes/baseTheme.js +1 -1
  89. package/dist/themes/darkTheme.js +2 -2
  90. package/dist/themes/lightTheme.js +2 -2
  91. package/dist/utils/statsig/client.d.ts +4 -0
  92. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  93. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  94. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  95. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  96. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  97. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  98. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  99. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  100. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  101. package/dist/wallets/walletConnectors/index.js +46 -46
  102. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  103. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  104. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  105. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  106. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  107. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  108. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  109. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  110. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  111. package/package.json +5 -5
  112. package/dist/clients/chunk-AXLGZ5XX.js +0 -1325
  113. package/dist/clients/chunk-DSZHYQPX.js +0 -31
  114. package/dist/clients/chunk-HZP4DXIZ.js +0 -231
  115. package/dist/clients/chunk-LUHEVXPD.js +0 -109
  116. package/dist/clients/chunk-NM2NAKI3.js +0 -1195
  117. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +0 -17545
  118. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +0 -30
  119. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +0 -20
  120. package/dist/clients/polymarket/index.css +0 -17545
  121. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferRows.d.ts +0 -10
  122. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.css.d.ts +0 -13
  123. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.d.ts +0 -27
  124. package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
  125. package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
  126. package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
  127. package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
  128. package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
  129. package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
  130. package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
  131. package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
  132. package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
  133. package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
  134. package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
  135. package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
  136. package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
  137. package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
  138. package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
  139. package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
  140. package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
  141. package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  /**
2
3
  * Centralized "fire-and-forget" prefetches that run at modal open so
3
4
  * downstream screens read from warm React Query cache. Hooks added here
4
5
  * must set a `staleTime` long enough to survive modal close/reopen, or
5
6
  * the prefetch is wasted on the next session.
6
7
  */
7
- export declare function CheckoutModalPrefetchedHooks(): null;
8
+ export declare function CheckoutModalPrefetchedHooks(): React.JSX.Element;
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import type { Hex } from 'viem';
4
4
  import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
5
5
  import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
6
- import type { AmountSelection } from './state';
6
+ import { type AmountSelection } from './state';
7
7
  export type InputAmountState = CheckoutModalCommonState & {
8
8
  paymentMethodInfo: PaymentMethodInfo;
9
9
  fiatAmount?: number;
@@ -144,6 +144,16 @@ export type AmountInputError = {
144
144
  /** Input is empty */
145
145
  type: 'noInput';
146
146
  };
147
+ /**
148
+ * Whether to fetch a gas price for the Max-button gas buffer.
149
+ *
150
+ * Only for a native EVM token: `useGasPrice` never resolves for a chain outside
151
+ * the wagmi config, which would leave the amount screen stuck loading.
152
+ */
153
+ export declare function shouldFetchGasBuffer({ isNativeToken, sourceChainId, }: {
154
+ isNativeToken: boolean;
155
+ sourceChainId: number | undefined;
156
+ }): boolean;
147
157
  /**
148
158
  * Calculate initial input amount for account balance deposits.
149
159
  * Return half the balance and round up to nearest 10, 100, 1000 etc
@@ -4,6 +4,7 @@ import type { FunInputChangeEvent } from '../../../components/FunInput/FunInput'
4
4
  import { type AmountInputDerivedState, type AmountInputInitOptions } from './state';
5
5
  import { type InputAmountSuggestion } from './utils';
6
6
  export interface UseAmountInputResult extends AmountInputDerivedState {
7
+ availableWidthRef: RefObject<HTMLElement | null>;
7
8
  fontSize: number;
8
9
  inputHeight: number;
9
10
  inputWidth: number | undefined;
@@ -9,6 +9,11 @@ interface CryptoCashToggleProps {
9
9
  marginBottom?: BoxProps['marginBottom'];
10
10
  style?: React.CSSProperties;
11
11
  tabs: PaymentMethodType[];
12
+ /**
13
+ * 'deposit' reads "Deposit Crypto / Deposit Cash" — for modals whose header
14
+ * no longer says "Deposit" (e.g. a custom header replaces the title).
15
+ */
16
+ labelVariant?: 'default' | 'deposit';
12
17
  }
13
- export declare const CryptoCashToggle: ({ activeTab, disabled, onTabChange, marginTop, marginBottom, style, tabs: tabTypes, }: CryptoCashToggleProps) => React.JSX.Element;
18
+ export declare const CryptoCashToggle: ({ activeTab, disabled, onTabChange, marginTop, marginBottom, style, tabs: tabTypes, labelVariant, }: CryptoCashToggleProps) => React.JSX.Element;
14
19
  export {};
@@ -3,15 +3,5 @@ export interface DirectionSwapButtonProps {
3
3
  onClick: () => void;
4
4
  testId?: string;
5
5
  }
6
- /**
7
- * The control sitting between the two account rows. Pressing it swaps which
8
- * account is the source: the top row is always the "From" account (the amount
9
- * you send), so a swap just changes the labels on each row. The icon is a
10
- * static downward arrow (matching the design) — it does not rotate on toggle.
11
- *
12
- * Styled per Figma as a 32px outlined circle: white surface with a 1px border
13
- * (gray/100 → gray/200 on hover) and a faint hover/pressed fill. The Figma
14
- * border vars map to the nearest funkit stroke tokens (mediumStroke ≈ #efefef,
15
- * heavyStroke ≈ #ddd); the surface uses the icon-button background defaults.
16
- */
6
+ /** Swaps which account is the source (the top row stays "From"). */
17
7
  export declare function DirectionSwapButton({ onClick, testId, }: DirectionSwapButtonProps): React.JSX.Element;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import type { CheckoutModalState } from '../../modals/CheckoutModal/stepTransition';
3
+ import type { FunkitCheckoutConfig } from '../../providers/FunkitCheckoutContext/types';
4
+ import { type PerpsHeaderTabId, type PerpsHeaderTabsState, usePerpsTitleMeta } from './usePerpsHeaderTabsState';
5
+ export { usePerpsTitleMeta, type PerpsHeaderTabId };
6
+ /**
7
+ * Whether the modal is in its perps header-tabs state: a perps-enabled
8
+ * Polymarket checkout on the deposit screen (incl. its loading skeleton) or
9
+ * the transfer step.
10
+ */
11
+ export declare function shouldShowPmPerpsHeaderTabs(config: FunkitCheckoutConfig | undefined, modalState: Pick<CheckoutModalState, 'step' | 'startingStep'>): boolean;
12
+ /**
13
+ * Whether the tabs sit on the offBackground band. Deposit steps get the band;
14
+ * the transfer step renders the tabs on the plain modal background with no
15
+ * band or meta.
16
+ */
17
+ export declare function shouldShowPmPerpsHeaderTabsBand(config: FunkitCheckoutConfig | undefined, modalState: Pick<CheckoutModalState, 'step' | 'startingStep'>): boolean;
18
+ export interface PerpsHeaderTabsProps {
19
+ modalState: CheckoutModalState;
20
+ onStepChange: (state: CheckoutModalState) => void;
21
+ }
22
+ export type PerpsHeaderTabsViewProps = PerpsHeaderTabsState;
23
+ export declare function PerpsHeaderTabsView({ activeTabId, onTabChange, meta, isTransferStep, access, }: PerpsHeaderTabsViewProps): React.JSX.Element;
24
+ /**
25
+ * Predictions | Perps | Transfer tabs in the title slot. Rendered by
26
+ * `FunCheckoutModal` when {@link shouldShowPmPerpsHeaderTabs} holds; the
27
+ * selection behavior lives in {@link usePerpsHeaderTabsState}.
28
+ */
29
+ export declare function PerpsHeaderTabs({ modalState, onStepChange, }: PerpsHeaderTabsProps): React.JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Borderless big-number input at the center of the transfer screen; the
3
+ * wrapper owns the (fitted) font size, so everything here inherits. `!important`
4
+ * beats host pages that style bare `input` selectors (same trick as the wallet
5
+ * flow's amount input). The family is the theme `body` font — the customer
6
+ * `header`/`inputAmount` font tokens can resolve to `inherit`, so they must
7
+ * not be used here.
8
+ */
9
+ export declare const transferAmountInput: string;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface PerpsTransferAmountInputProps {
3
+ /** Controlled amount string (raw user input; may contain separators). */
4
+ amount: string;
5
+ /** Validated setter from `usePerpsTransferForm` (ignores invalid input). */
6
+ onAmountChange: (next: string) => void;
7
+ testId?: string;
8
+ }
9
+ /**
10
+ * The big centered "$<amount>" input of the transfer screen — the same
11
+ * treatment as the wallet deposit flow's amount input:
12
+ * theme `inputAmount` size, shrink-to-fit via {@link useFittedText}, `$`
13
+ * prefix outside the field so the caret sits on the digits.
14
+ */
15
+ export declare function PerpsTransferAmountInput({ amount, onAmountChange, testId, }: PerpsTransferAmountInputProps): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { PerpsTransferForm } from './usePerpsTransferForm';
3
+ /**
4
+ * The body of the Perps ⇄ Predictions transfer screen:
5
+ * a wallet-flow-style centered amount input with percent quick options, and
6
+ * the From/To accounts card at the bottom. Natural height — no fill/min-height
7
+ * — so the step never scrolls. The Transfer button + notice live in
8
+ * `PerpsTransferBottomBar`.
9
+ */
10
+ export declare function PerpsTransferBody({ form }: {
11
+ form: PerpsTransferForm;
12
+ }): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * Warms the Deposit Cash cache for the Polymarket account the user is *not*
4
+ * on (Predictions ⇄ Perps) from modal open. Renders nothing for checkouts
5
+ * without perps transfer handles.
6
+ */
7
+ export declare function PolymarketPerpsPrefetch(): React.JSX.Element | null;
@@ -1,6 +1,12 @@
1
1
  import React from 'react';
2
+ import type { DepositAccess, PolymarketPerpsTransferPending } from '../../providers/FunkitCheckoutContext/types';
3
+ import { type PerpsTransferAmountSelection } from './usePerpsTransferForm';
2
4
  export type PerpsTransferDirection = 'toPerps' | 'toPredictions';
3
- export type PerpsTransferStatus = 'idle' | 'processing' | 'success' | 'error';
5
+ /**
6
+ * `pending` and `loading` can be derived by the form from transfer and balance
7
+ * state. Explicit host-provided statuses are honored as well.
8
+ */
9
+ export type PerpsTransferStatus = 'idle' | 'processing' | 'success' | 'error' | 'pending' | 'loading';
4
10
  export interface PolymarketPerpsTransferScreenProps {
5
11
  /** Whether the modal is open. Defaults to true (the screen owns its Dialog). */
6
12
  open?: boolean;
@@ -27,6 +33,11 @@ export interface PolymarketPerpsTransferScreenProps {
27
33
  * Transfer button simply reports clicks via {@link onTransfer}.
28
34
  */
29
35
  status?: PerpsTransferStatus;
36
+ /**
37
+ * In-flight transfers reported by the host. While a deposit or withdrawal
38
+ * is pending, Transfer is disabled and shows a pending state.
39
+ */
40
+ pendingTransfers?: PolymarketPerpsTransferPending;
30
41
  /**
31
42
  * Fired when the (enabled) Transfer button is pressed, with the entered
32
43
  * amount and direction — mirrors {@link usePerpsTransferForm}'s callback
@@ -35,9 +46,12 @@ export interface PolymarketPerpsTransferScreenProps {
35
46
  onTransfer: (params: {
36
47
  amountUsd: string;
37
48
  direction: PerpsTransferDirection;
49
+ amountSelection: PerpsTransferAmountSelection | null;
38
50
  }) => void;
39
51
  onClose?: () => void;
40
52
  onBack?: () => void;
53
+ /** Product destinations the current user is allowed to fund. */
54
+ access?: DepositAccess;
41
55
  }
42
56
  /**
43
57
  * Polymarket "Transfer" screen — moves a balance between the Predictions and
@@ -49,4 +63,4 @@ export interface PolymarketPerpsTransferScreenProps {
49
63
  * UI only: balances are props, and the Transfer button's processing/success
50
64
  * states are driven by the {@link status} prop rather than any real transfer.
51
65
  */
52
- export declare function PolymarketPerpsTransferScreen({ open, title, predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, onTransfer, onClose, onBack, }: PolymarketPerpsTransferScreenProps): React.JSX.Element;
66
+ export declare function PolymarketPerpsTransferScreen({ open, title, predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, pendingTransfers, onTransfer, onClose, onBack, access, }: PolymarketPerpsTransferScreenProps): React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { PerpsTransferAccount } from './usePerpsTransferForm';
3
+ export interface TransferAccountsCardProps {
4
+ source: PerpsTransferAccount;
5
+ destination: PerpsTransferAccount;
6
+ onSwapDirection?: () => void;
7
+ }
8
+ /**
9
+ * The From/To card of the transfer screen: source account on top, destination
10
+ * below, separated by a divider with the direction-swap button centered on it.
11
+ */
12
+ export declare function TransferAccountsCard({ source, destination, onSwapDirection, }: TransferAccountsCardProps): React.JSX.Element;
@@ -7,6 +7,10 @@ export interface TransferActionButtonProps {
7
7
  idleLabel: string;
8
8
  /** Label shown while processing (already translated). */
9
9
  processingLabel: string;
10
+ /** Label shown while a retained balance refreshes (translated). */
11
+ loadingLabel: string;
12
+ /** Label shown while a previous transfer is still settling (translated). */
13
+ pendingLabel: string;
10
14
  /** Label shown on success (already translated). */
11
15
  successLabel: string;
12
16
  /** Greys out / blocks the idle button until an amount is entered. */
@@ -19,6 +23,9 @@ export interface TransferActionButtonProps {
19
23
  *
20
24
  * - **idle**: primary (blue) "Transfer".
21
25
  * - **processing**: dimmed blue, spinner + "Processing", inert.
26
+ * - **loading**: dimmed blue, spinner + loading label, inert.
27
+ * - **pending**: dimmed blue, spinner + pending label, inert — a previous
28
+ * transfer reported by the integrator is still settling.
22
29
  * - **success**: secondary (grey) surface, green check + success label, inert.
23
30
  *
24
31
  * Two details keep the morph smooth:
@@ -31,4 +38,4 @@ export interface TransferActionButtonProps {
31
38
  * overlay whose opacity only ever fades *out* toward success. Nothing
32
39
  * brightens mid-transition, so there's no blue "flush" as it turns grey.
33
40
  */
34
- export declare function TransferActionButton({ status, idleLabel, processingLabel, successLabel, isDisabled, onClick, testId, }: TransferActionButtonProps): React.JSX.Element;
41
+ export declare function TransferActionButton({ status, idleLabel, processingLabel, loadingLabel, pendingLabel, successLabel, isDisabled, onClick, testId, }: TransferActionButtonProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface TransferPercentOptionsProps {
3
+ /** Fired with the chosen percentage of the source balance (100 = Max). */
4
+ onSelect: (percent: number) => void;
5
+ disabled?: boolean;
6
+ }
7
+ /**
8
+ * The 25% / 50% / 75% / Max chip row under the transfer amount input — the
9
+ * wallet flow's QuickOptions styling, minus its checkout-quote analytics
10
+ * plumbing (this screen has no quote; the transfer step logs the transfer
11
+ * itself).
12
+ */
13
+ export declare function TransferPercentOptions({ onSelect, disabled, }: TransferPercentOptionsProps): React.JSX.Element;
@@ -0,0 +1,28 @@
1
+ import type { CheckoutModalState } from '../../modals/CheckoutModal/stepTransition';
2
+ import type { DepositAccess, FunkitCheckoutConfig } from '../../providers/FunkitCheckoutContext/types';
3
+ export type PerpsHeaderTabId = 'predictions' | 'perps' | 'transfer';
4
+ /**
5
+ * Live "Predictions Balance: $X" / "Perps Balance: $X" line for the selected
6
+ * account of a perps-enabled checkout; `undefined` otherwise (or while the
7
+ * balance loads). Shown under the header tabs and as the title meta on deeper
8
+ * steps.
9
+ */
10
+ export declare function usePerpsTitleMeta(config: FunkitCheckoutConfig | undefined): string | undefined;
11
+ export interface PerpsHeaderTabsState {
12
+ activeTabId: PerpsHeaderTabId;
13
+ onTabChange: (tabId: PerpsHeaderTabId) => void;
14
+ /** Balance line under the tabs; absent on the transfer step. */
15
+ meta: string | undefined;
16
+ isTransferStep: boolean;
17
+ access: DepositAccess;
18
+ }
19
+ /**
20
+ * Tab state + selection behavior for the perps header tabs, off the active
21
+ * checkout's config: Predictions/Perps switch the deposit destination through
22
+ * the target-asset-candidate path, Transfer opens/leaves the transfer step.
23
+ * `null` when the checkout carries no perps transfer handles.
24
+ */
25
+ export declare function usePerpsHeaderTabsState({ modalState, onStepChange, }: {
26
+ modalState: CheckoutModalState;
27
+ onStepChange: (state: CheckoutModalState) => void;
28
+ }): PerpsHeaderTabsState | null;
@@ -1,3 +1,4 @@
1
+ import type { DepositAccess, PolymarketPerpsTransferPending } from '../../providers/FunkitCheckoutContext/types';
1
2
  import type { PerpsTransferDirection, PerpsTransferStatus } from './PolymarketPerpsTransferScreen';
2
3
  /**
3
4
  * pUSD has 6 on-chain decimals, so balances carry up to 6 decimal places. We
@@ -12,6 +13,11 @@ import type { PerpsTransferDirection, PerpsTransferStatus } from './PolymarketPe
12
13
  * re-parsable pUSD amount.
13
14
  */
14
15
  export declare function formatAmountValue(value: number): string;
16
+ /**
17
+ * How the confirmed amount was chosen — `manual` typing, a percent chip
18
+ * (`preset`), or the Max chip. `null` until the amount is first set.
19
+ */
20
+ export type PerpsTransferAmountSelection = 'manual' | 'preset' | 'max';
15
21
  export interface PerpsTransferFormProps {
16
22
  predictionsBalanceUsd: number;
17
23
  perpsBalanceUsd: number;
@@ -23,18 +29,27 @@ export interface PerpsTransferFormProps {
23
29
  /** Initial amount input string (pUSD). */
24
30
  initialAmountUsd?: string;
25
31
  status?: PerpsTransferStatus;
32
+ /** Whether a retained balance is waiting for a fresh authoritative value. */
33
+ isBalanceRefreshing?: boolean;
34
+ /**
35
+ * In-flight transfers reported by the integrator. While a deposit or
36
+ * withdrawal is pending the button is disabled in a `pending` state.
37
+ */
38
+ pendingTransfers?: PolymarketPerpsTransferPending;
26
39
  onTransfer: (params: {
27
40
  /** Exact string the user entered (validated numeric, ≤6 decimals). */
28
41
  amountUsd: string;
29
42
  direction: PerpsTransferDirection;
43
+ amountSelection: PerpsTransferAmountSelection | null;
30
44
  }) => void;
45
+ access?: DepositAccess;
31
46
  }
32
47
  export interface PerpsTransferAccount {
33
48
  /** Localized account name ("Predictions" / "Perps"). */
34
49
  label: string;
35
50
  balanceUsd: number;
36
51
  }
37
- /** Plain form state consumed by `PerpsTransferRows` and `PerpsTransferBottomBar`. */
52
+ /** Plain form state consumed by `PerpsTransferBody` and `PerpsTransferBottomBar`. */
38
53
  export interface PerpsTransferForm {
39
54
  /** Raw amount input string (may contain separators). */
40
55
  amount: string;
@@ -42,14 +57,25 @@ export interface PerpsTransferForm {
42
57
  setAmount: (next: string) => void;
43
58
  /** Fills the amount with the source balance at full 6-decimal precision. */
44
59
  fillMaxAmount: () => void;
60
+ /**
61
+ * Fills the amount with a percentage of the source balance (100 behaves as
62
+ * {@link fillMaxAmount}), floored at 6 decimals so the fill never exceeds
63
+ * the real balance.
64
+ */
65
+ fillPercentAmount: (percent: number) => void;
45
66
  swapDirection: () => void;
67
+ canSwapDirection: boolean;
46
68
  /** The editable "From" account. */
47
69
  source: PerpsTransferAccount;
48
70
  /** The read-only "To" account mirroring the source. */
49
71
  destination: PerpsTransferAccount;
50
72
  /** Validation/error notice line; `null` when nothing should be shown. */
51
73
  noticeText: string | null;
52
- /** Status for the action button (`error` is remapped to a retry-able idle). */
74
+ /**
75
+ * Status for the action button: `error` is remapped to a retry-able idle,
76
+ * an in-flight transfer maps idle to `pending`, and a retained balance maps
77
+ * idle to `loading` while its authoritative value is fetched.
78
+ */
53
79
  buttonStatus: PerpsTransferStatus;
54
80
  isTransferDisabled: boolean;
55
81
  /** Reports the entered amount + direction via the host's `onTransfer`. */
@@ -59,8 +85,8 @@ export interface PerpsTransferForm {
59
85
  * Owns the Perps ⇄ Predictions transfer form state — amount, direction, and
60
86
  * the derived validation/notice/button values — so both the standalone
61
87
  * {@link PolymarketPerpsTransferScreen} (Dialog) and the in-modal
62
- * `PerpsTransferStep` (renders rows inline + portals the bottom bar) share
63
- * identical behavior. Returns plain values; `PerpsTransferRows` and
88
+ * `PerpsTransferStep` (renders the body inline + portals the bottom bar) share
89
+ * identical behavior. Returns plain values; `PerpsTransferBody` and
64
90
  * `PerpsTransferBottomBar` render them.
65
91
  */
66
- export declare function usePerpsTransferForm({ predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, onTransfer, }: PerpsTransferFormProps): PerpsTransferForm;
92
+ export declare function usePerpsTransferForm({ predictionsBalanceUsd, perpsBalanceUsd, predictionsMinTransferUsd, perpsMinTransferUsd, initialDirection, initialAmountUsd, status, isBalanceRefreshing, pendingTransfers, onTransfer, access, }: PerpsTransferFormProps): PerpsTransferForm;
@@ -58,6 +58,12 @@ export declare function useLighterWithdrawalBalances({ accountIndex, }: {
58
58
  isLoading: boolean;
59
59
  };
60
60
  type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
61
+ /**
62
+ * Lighter Fast withdrawal: USDC Perps source, routed through Fun + Relay (the
63
+ * source chain is Lighter's relay chain; Secure uses mainnet). See
64
+ * buildLighterFastWalletWithdrawalConfig.
65
+ */
66
+ export declare function isLighterFastWithdrawal(apiKey: string, config: Pick<FunkitWithdrawalConfig, 'sourceChainId'>): boolean;
61
67
  /**
62
68
  * Detects Lighter Secure withdrawal (mainnet source chain), auto-fills the
63
69
  * recipient address with the connected wallet, and fetches the Lighter account
@@ -12,11 +12,6 @@ export declare function shouldShowUseConnectedWallet({ disableConnectedWallet, i
12
12
  isConnected: boolean;
13
13
  connectedWalletAddress: string | undefined;
14
14
  }): boolean;
15
- export declare function getFittedRecipientAddressFontSize({ availableWidth, textWidthAtMaxFontSize, maxFontSize, }: {
16
- availableWidth: number;
17
- textWidthAtMaxFontSize: number;
18
- maxFontSize: number;
19
- }): number;
20
15
  export declare function WithdrawRecipientAddress({ config, recipientAddress, setRecipientAddress: setRecipientAddressProp, selectedChainId, selectedToken, isValidAddress, isRiskyAddress, onAddressAutofilled, onAddressChanged, }: {
21
16
  config: FunkitWithdrawalConfig;
22
17
  recipientAddress: string;
@@ -1 +1,8 @@
1
- export declare function useTrackWithdrawalEvents(): void;
1
+ import type { WithdrawalModalStep } from './types';
2
+ interface UseTrackWithdrawalEventsArgs {
3
+ isBackNavigation: boolean;
4
+ open: boolean;
5
+ step: WithdrawalModalStep;
6
+ }
7
+ export declare function useTrackWithdrawalEvents({ isBackNavigation, open, step, }: UseTrackWithdrawalEventsArgs): void;
8
+ export {};
@@ -0,0 +1,16 @@
1
+ import { type AssetDescriptorArgs, type TrackWithdrawalQuoteSnapshotArgs } from '../../hooks/track/analytics/useWithdrawalAnalytics';
2
+ import type { FunkitCheckoutQuoteResult } from '../../providers/FunkitHistoryContext';
3
+ type UseTrackWithdrawalQuoteEventsArgs = Omit<TrackWithdrawalQuoteSnapshotArgs, 'numQuoteRefreshes' | 'quote' | 'target'> & {
4
+ isQuoteLoading: boolean;
5
+ quote: FunkitCheckoutQuoteResult | null;
6
+ target: AssetDescriptorArgs | null;
7
+ };
8
+ /**
9
+ * Fires `fc_withdrawal_quote_displayed` once per distinct quote id.
10
+ * `trackQuoteConfirmed` fires `fc_withdrawal_quote_confirmed` for the CTA path
11
+ * that calls it.
12
+ */
13
+ export declare function useTrackWithdrawalQuoteEvents({ isQuoteLoading, quote, target, ...args }: UseTrackWithdrawalQuoteEventsArgs): {
14
+ trackQuoteConfirmed: () => void;
15
+ };
16
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { TransferTokenDefault } from '../../hooks/useTokenAndChainDropdown';
2
+ import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
+ /** Last successfully used destination chain for this source chain + account. */
4
+ export declare function readWithdrawalLastChain(sourceChainId: string, accountAddress: string): number | undefined;
5
+ /** Persist a successful destination without affecting the flow. */
6
+ export declare function writeWithdrawalLastChain(sourceChainId: string, accountAddress: string, chainId: number): void;
7
+ type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
8
+ type WithdrawalChainPreferenceConfig = Pick<FunkitWithdrawalConfig, 'sourceChainId' | 'defaultReceiveToken' | 'sourceTokenSymbol'>;
9
+ /**
10
+ * Restores the destination chain the user last withdrew to, behind
11
+ * `remember-withdrawal-chain` (targeted per customer in Statsig).
12
+ */
13
+ export declare function useWithdrawalChainPreference(config: WithdrawalChainPreferenceConfig): {
14
+ selectionOverride: TransferTokenDefault | undefined;
15
+ rememberSuccessfulChain: (chainId: number) => void;
16
+ };
17
+ export {};
@@ -1,6 +1,7 @@
1
+ import { type TransferTokenDefault } from '../../hooks/useTokenAndChainDropdown';
1
2
  import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
2
3
  type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
3
- export declare function useWithdrawalAssets(config: FunkitWithdrawalConfig): {
4
+ export declare function useWithdrawalAssets(config: FunkitWithdrawalConfig, selectionOverride?: TransferTokenDefault): {
4
5
  assets: import("../CheckoutModal/TransferToken/TransferToken").TokenTransferSourceChainsAndAssets;
5
6
  selectedChainId: number | undefined;
6
7
  handleChainChange: (chainId?: number, autoUpdate?: boolean) => string | undefined;
@@ -6,7 +6,7 @@ import { type PaymentMethodInfo } from '../../domains/paymentMethods';
6
6
  import type { AssetHoldingsItem } from '../../utils/assets';
7
7
  import type { WithdrawalClient, WithdrawalTransaction } from '../../wallets/Wallet';
8
8
  import { type FunkitCheckoutQuoteResult } from '../FunkitHistoryContext';
9
- import type { CustomWithdrawalConfig, DynamicTargetAssetCandidate, FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, FunkitWithdrawalConfig, UseFunkitCheckoutProps, UseFunkitCheckoutPropsWithFullConfig, WalletWithdrawalConfig } from './types';
9
+ import type { CustomWithdrawalConfig, DynamicTargetAssetCandidate, FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, FunkitWithdrawalConfig, PolymarketPerpsTransferPending, UseFunkitCheckoutProps, UseFunkitCheckoutPropsWithFullConfig, WalletWithdrawalConfig } from './types';
10
10
  export * from './types';
11
11
  interface FunkitCheckoutContextInterface {
12
12
  checkoutItem: FunkitActiveCheckoutItem | null;
@@ -14,6 +14,7 @@ interface FunkitCheckoutContextInterface {
14
14
  setCheckoutProgress(checkoutId: string, progress: CheckoutProgress): void;
15
15
  initNewCheckout(initSettings: UseFunkitCheckoutPropsWithFullConfig): string;
16
16
  updateModalTitleMeta(newMeta: string): void;
17
+ updatePolymarketPerpsTransferPending(pending: PolymarketPerpsTransferPending): void;
17
18
  updateSourceAsset(selectedSource: Omit<AssetHoldingsItem, 'amount' | 'usdAmount' | 'chainSymbolKey'>): void;
18
19
  updateTargetAssetAmount(newTargetAssetAmount: number, fiatAmount?: number, tokenAmountBaseUnits?: bigint): void;
19
20
  updateTargetAsset(asset: {
@@ -85,6 +86,17 @@ export declare function FunkitCheckoutProvider({ children }: {
85
86
  children: ReactNode;
86
87
  }): React.JSX.Element;
87
88
  export declare function useCheckoutContext(): FunkitCheckoutContextInterface;
89
+ /**
90
+ * Re-provides the checkout context with the active checkout's config swapped
91
+ * for `config`. Lets a subtree run the regular checkout hooks (deposit address,
92
+ * fops, …) against a destination the user has not selected yet — e.g. warming
93
+ * the cache for the inactive Polymarket account — without threading an
94
+ * override through every hook. Renders nothing without an active checkout.
95
+ */
96
+ export declare function CheckoutConfigOverride({ config, children, }: {
97
+ config: FunkitCheckoutConfig;
98
+ children: ReactNode;
99
+ }): React.JSX.Element | null;
88
100
  /**
89
101
  * External hook for user to kickstart a checkout in their app
90
102
  */
@@ -64,6 +64,16 @@ export type PolymarketTopupToken = 'pUSD';
64
64
  export interface PolymarketTransferResult {
65
65
  id: string;
66
66
  }
67
+ /**
68
+ * Geo eligibility per Polymarket product. Only location restrictions belong
69
+ * here: an unavailable destination is shown with "Unavailable in your
70
+ * location", so gating on entitlement or session state would mislabel the
71
+ * cause.
72
+ */
73
+ export interface DepositAccess {
74
+ perps: boolean;
75
+ predictions: boolean;
76
+ }
67
77
  /**
68
78
  * A Polymarket account in the transfer step. Both accounts share the same shape
69
79
  * so each direction is symmetrical and integrator-owned.
@@ -90,16 +100,33 @@ export interface PolymarketTransferAccount {
90
100
  amountUsd: string;
91
101
  }) => Promise<void | PolymarketTransferResult>;
92
102
  /**
93
- * Fetches this account's live balance (USD). The transfer step polls this so
94
- * the displayed balances reconcile with the real on-chain / perps-API state
95
- * after a transfer (optimistic updates alone go stale). Integrator-owned.
103
+ * Fetches this account's live balance (USD). The transfer step polls this and
104
+ * displays the result as-is — it never adjusts balances client-side — and
105
+ * refetches right after a transfer. Integrator-owned.
96
106
  */
97
107
  getBalanceUsd: () => Promise<number>;
98
108
  }
109
+ /**
110
+ * Integrator-reported in-flight perps transfers. While either flag is set the
111
+ * transfer step disables Transfer and shows a pending state: both balances are
112
+ * about to move, so a new transfer would be sized against numbers that are
113
+ * about to change. Supplied initially through `createPolymarketDepositConfig`
114
+ * (`pendingTransfers`) and updated live through
115
+ * `useUpdateActiveFunkitCheckout().updatePolymarketPerpsTransferPending`.
116
+ */
117
+ export interface PolymarketPerpsTransferPending {
118
+ /** A predictions → perps deposit was submitted and is not yet credited. */
119
+ isPerpsDepositPending: boolean;
120
+ /** A perps → predictions withdrawal was submitted and has not yet landed. */
121
+ isPerpsWithdrawalPending: boolean;
122
+ }
99
123
  /** The two accounts the perps transfer step moves funds between. */
100
124
  export interface PolymarketPerpsTransferHandles {
101
125
  predictions: PolymarketTransferAccount;
102
126
  perps: PolymarketTransferAccount;
127
+ /** Integrator-reported in-flight transfers; absent means none pending. */
128
+ pending?: PolymarketPerpsTransferPending;
129
+ access?: DepositAccess;
103
130
  }
104
131
  export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'generateActionsParams' | 'customRecipient' | 'modalTitle' | 'iconSrc' | 'modalTitleMeta'> {
105
132
  /** List of contract action params **/
@@ -267,7 +267,7 @@ export type FunkitConfig = {
267
267
  textCustomizations?: Partial<FunkitTextCustomizationsConfig>;
268
268
  /** UI customizations across all widgets **/
269
269
  uiCustomizations?: FunkitUiCustomizationsConfig;
270
- /** used to link funkit users to your own user system */
270
+ /** Links Funkit users to your own user system. Not required when a wagmi wallet connection is present — the connected address is used as the identifier instead. Only needed for guest/no-wallet flows. */
271
271
  externalUserId?: string;
272
272
  /** Email prefilled into the Swapped fiat onramp/offramp iframe. Set once at provider init. */
273
273
  prefillFiatEmail?: string;
@@ -1,13 +1,8 @@
1
- import { type StatsigClient } from '@statsig/react-bindings';
1
+ import { type StatsigOptions } from '@statsig/react-bindings';
2
2
  import React from 'react';
3
3
  import type { ReactNode } from 'react';
4
4
  export declare const STATSIG_CLIENT_KEY: "client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM";
5
- export declare const STATSIG_CLIENT_KEY_FUNWHN: "client-UrueDVSY9et85npGccWMFidPs00V5jzTYyzsDKlLAjr";
6
- /**
7
- * THIS IS THE TEMPORARY CLIENT FOR V2 ANALYTICS. IT DOES NOT CONTAIN ANY CONFIGS.
8
- * DO NOT USE THIS CONTEXT DIRECTLY. USE useTrackV2 INSTEAD.
9
- */
10
- export declare function useFunWhnStatsigClient(): StatsigClient | null;
5
+ export declare function getStatsigOptions(isDevelopment: boolean): StatsigOptions;
11
6
  interface FunkitStatsigProviderProps {
12
7
  children: ReactNode;
13
8
  isDevelopment?: boolean;
@@ -0,0 +1,17 @@
1
+ import { type StatsigClient } from '@statsig/react-bindings';
2
+ import React from 'react';
3
+ import type { ReactNode } from 'react';
4
+ type FunWhnStatsigContextValue = {
5
+ client: StatsigClient | null;
6
+ /** Client is ready and has correct userId and apiKey vs current connected user */
7
+ isFullyReady: boolean;
8
+ isLoading: boolean;
9
+ /** Forces re-rendering when updated configs are available so components can pick them up */
10
+ renderVersion: number;
11
+ };
12
+ export declare function useFunWhnStatsigContext(): FunWhnStatsigContextValue;
13
+ export declare function FunkitStatsigWhnProvider({ children, isDevelopment, }: {
14
+ children: ReactNode;
15
+ isDevelopment?: boolean;
16
+ }): React.JSX.Element;
17
+ export {};
@@ -493,6 +493,7 @@ export declare const useActiveTheme: () => {
493
493
  cryptoCashToggleContainerPadding: string;
494
494
  cryptoCashToggleMarginBottom: string;
495
495
  cryptoCashToggleMarginTop: string;
496
+ cryptoCashToggleMarginTopWithHeaderTabs: string;
496
497
  cryptoCashToggleTabPaddingY: string;
497
498
  dropdownItemIconGap: string;
498
499
  dropdownItemPaddingX: string;
@@ -1027,6 +1028,7 @@ export declare const useActiveTheme: () => {
1027
1028
  cryptoCashToggleContainerPadding: string;
1028
1029
  cryptoCashToggleMarginBottom: string;
1029
1030
  cryptoCashToggleMarginTop: string;
1031
+ cryptoCashToggleMarginTopWithHeaderTabs: string;
1030
1032
  cryptoCashToggleTabPaddingY: string;
1031
1033
  dropdownItemIconGap: string;
1032
1034
  dropdownItemPaddingX: string;
@@ -1559,6 +1561,7 @@ export declare const useActiveTheme: () => {
1559
1561
  cryptoCashToggleContainerPadding: string;
1560
1562
  cryptoCashToggleMarginBottom: string;
1561
1563
  cryptoCashToggleMarginTop: string;
1564
+ cryptoCashToggleMarginTopWithHeaderTabs: string;
1562
1565
  cryptoCashToggleTabPaddingY: string;
1563
1566
  dropdownItemIconGap: string;
1564
1567
  dropdownItemPaddingX: string;
@@ -17,6 +17,7 @@ export interface GeneralWalletContextProps {
17
17
  loginType: LoginType;
18
18
  connectorId: string | undefined;
19
19
  userInfo: FunkitUserInfo;
20
+ l2Address: string | undefined;
20
21
  handleLogout: () => void;
21
22
  logoutSymbol: symbol | undefined;
22
23
  }