@funkit/connect 12.19.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 +60 -0
- package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
- package/dist/clients/{chunk-AELXD5XA.js → chunk-6XJV626L.js} +1 -1
- package/dist/clients/chunk-B67ESBGC.js +108 -0
- package/dist/clients/{chunk-KH2HLTHP.js → chunk-DAMICUCH.js} +5 -5
- package/dist/clients/{chunk-FOXMRDKD.js → chunk-FIJU6HZM.js} +1 -1
- package/dist/clients/{chunk-L6JL2XJY.js → chunk-MTKOZB6U.js} +1 -1
- package/dist/clients/{chunk-R25GIAD5.js → chunk-PZSKO3BJ.js} +1 -0
- 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-YSAAJSWT.js → chunk-YSQX5Z3F.js} +49 -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 +5 -5
- package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
- package/dist/clients/lighter.css +8 -1
- package/dist/clients/lighter.js +6 -6
- package/dist/clients/lighterRh.d.ts +44 -0
- package/dist/clients/lighterRh.js +51 -0
- package/dist/clients/mallard.js +3 -3
- package/dist/clients/nado.js +6 -6
- 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/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
- 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/TokenSelectButton/TokenSelectButton.d.ts +1 -1
- package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +17 -4
- package/dist/components/TokenSwapWidget/TokenSwapPercentOptions/TokenSwapPercentOptions.d.ts +9 -0
- package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +6 -2
- package/dist/components/TokenSwapWidget/TokenSwapWidgetSkeleton/TokenSwapWidgetSkeleton.d.ts +3 -0
- package/dist/consts/checkout.d.ts +8 -8
- package/dist/consts/customers.d.ts +5 -1
- 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 +38 -0
- package/dist/domains/convert/inputAmount.d.ts +24 -21
- package/dist/domains/convert/reducer.d.ts +11 -6
- package/dist/domains/convert/screen.d.ts +10 -1
- package/dist/domains/convert/view.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.css +8 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2149 -1697
- package/dist/modals/CheckoutModal/Convert/ConvertAssetList.d.ts +1 -1
- package/dist/modals/CheckoutModal/Convert/ConvertAssetRow.d.ts +1 -19
- package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
- package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +7 -5
- package/dist/modals/CheckoutModal/Convert/ConvertSelectSourceStep.d.ts +0 -12
- 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/ConvertProvider.d.ts +2 -0
- 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/shadow-css.js +1 -1
- 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/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 +51 -51
- 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 +9 -9
- package/dist/clients/chunk-GTPMJGCF.js +0 -52
- package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
- package/dist/wallets/walletConnectors/{chunk-OVDCDVFX.js → chunk-34B7OJNT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JJBLW4IU.js → chunk-4FHNLTR3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TM7UBV3Q.js → chunk-ALGPGI6V.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MWB6LFSG.js → chunk-BBB2J3US.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IWPW26AL.js → chunk-BBDNB5TQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-53MYTA42.js → chunk-CU5J53XR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-USLZMUJ3.js → chunk-HOCKAU5H.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RJF2YEZ5.js → chunk-IA5432IR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ASTCNVJC.js → chunk-IWOMSW64.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KE4CWI3A.js → chunk-NXWG6FG2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RQYEGJKL.js → chunk-RFCZYLNR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ANODOMIN.js → chunk-RXRYHMRI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PPQ6L4K2.js → chunk-SR5CZR3L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TIHTQ3OB.js → chunk-TRZDAXCQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-F45CUFRR.js → chunk-U52QO5HF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-A5POD5SV.js → chunk-XODA5ESL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FYPQ3HP4.js → chunk-YRMBR6NA.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-65ULY6OC.js → chunk-ZSSSLFQF.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ConvertAssetListStatus } from '../../../domains/convert/assets';
|
|
3
|
-
import {
|
|
3
|
+
import type { ConvertAssetOption } from '../../../domains/convert/assets';
|
|
4
4
|
interface ConvertAssetListProps {
|
|
5
5
|
status: ConvertAssetListStatus;
|
|
6
6
|
options: ConvertAssetOption[];
|
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import type { ConvertResolvedAsset } from '../../../domains/convert/types';
|
|
4
|
-
/** One row on a Convert token screen. */
|
|
5
|
-
export interface ConvertAssetOption {
|
|
6
|
-
asset: ConvertResolvedAsset;
|
|
7
|
-
key: string;
|
|
8
|
-
/** `undefined` until the first balance read lands. */
|
|
9
|
-
balance: ConvertBalanceState | undefined;
|
|
10
|
-
/** The balance in USD; `undefined` when the balance is unknown. */
|
|
11
|
-
usdAmount: number | undefined;
|
|
12
|
-
isDisabled: boolean;
|
|
13
|
-
/** Worth less than the minimum Convert quotes, so it can't be a source. */
|
|
14
|
-
isBelowMinimum?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Pickable rows first, then by USD value. An unknown value sorts last, and the
|
|
18
|
-
* stable sort keeps the host's order among equal values.
|
|
19
|
-
*/
|
|
20
|
-
export declare function compareConvertAssetOptions(a: ConvertAssetOption, b: ConvertAssetOption): number;
|
|
2
|
+
import type { ConvertAssetOption } from '../../../domains/convert/assets';
|
|
21
3
|
/** A Convert asset, drawn as a row of the checkout's wallet asset list. */
|
|
22
4
|
export declare function ConvertAssetRow({ option, isSelected, onSelect, }: {
|
|
23
5
|
option: ConvertAssetOption;
|
|
@@ -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 {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type ConvertAssetOption } from '../../../domains/convert/assets';
|
|
1
2
|
import { type ConvertBalances } from '../../../domains/convert/balances';
|
|
2
3
|
import type { ConvertRecipientAddresses, ConvertResolvedAsset } from '../../../domains/convert/types';
|
|
3
4
|
import { FunCheckoutStep } from '../FunCheckoutStep';
|
|
4
5
|
import type { ModalStepInfo } from '../stepTransition';
|
|
5
6
|
import { type CheckoutModalCommonState } from '../stepTransition.shared';
|
|
6
|
-
import { type ConvertAssetOption } from './ConvertAssetRow';
|
|
7
7
|
export type ConvertSelectDestinationState = CheckoutModalCommonState;
|
|
8
8
|
export type ConvertSelectDestinationNext = Record<never, never>;
|
|
9
9
|
/** Destination chains in the host's order, without a chain whose only token is the source. */
|
|
@@ -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,18 +1,6 @@
|
|
|
1
|
-
import { type ConvertBalances } from '../../../domains/convert/balances';
|
|
2
|
-
import type { ConvertResolvedAsset } from '../../../domains/convert/types';
|
|
3
1
|
import { FunCheckoutStep } from '../FunCheckoutStep';
|
|
4
2
|
import type { ModalStepInfo } from '../stepTransition';
|
|
5
3
|
import { type CheckoutModalCommonState } from '../stepTransition.shared';
|
|
6
|
-
import { type ConvertAssetOption } from './ConvertAssetRow';
|
|
7
4
|
export type ConvertSelectSourceState = CheckoutModalCommonState;
|
|
8
5
|
export type ConvertSelectSourceNext = Record<never, never>;
|
|
9
|
-
/**
|
|
10
|
-
* The source screen's rows: held tokens by USD value, disabled ones last.
|
|
11
|
-
* - Under the $1 minimum is disabled ("Low Balance"): Relay won't quote it.
|
|
12
|
-
* - An unreadable balance stays listed but disabled, so funds never look gone.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getConvertSourceOptions({ assets, balances, }: {
|
|
15
|
-
assets: ConvertResolvedAsset[];
|
|
16
|
-
balances: ConvertBalances;
|
|
17
|
-
}): ConvertAssetOption[];
|
|
18
6
|
export declare const ConvertSelectSourceStepInfo: ModalStepInfo<FunCheckoutStep.CONVERT_SELECT_SOURCE>;
|
|
@@ -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[];
|
|
@@ -14,6 +14,8 @@ export interface ConvertContextValue {
|
|
|
14
14
|
/** Flips USD and token entry at the live price. */
|
|
15
15
|
toggleUnit: () => void;
|
|
16
16
|
setMax: (maxBaseUnits: bigint) => void;
|
|
17
|
+
/** Fills a share of the source balance; 100 is Max. */
|
|
18
|
+
selectPercent: (percent: number) => void;
|
|
17
19
|
/** Keys are `convertAssetKey`s. A different source drops the amount. */
|
|
18
20
|
pickSource: (sourceKey: string) => void;
|
|
19
21
|
pickDestination: (destinationKey: string) => void;
|
|
@@ -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>;
|