@funkit/connect 7.0.3-next.0 → 7.1.0-next.10
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 +132 -0
- package/dist/__generated__/default_configs.d.ts +229 -3
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +1 -1
- package/dist/components/Dialog/Dialog.css.d.ts +1 -0
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
- package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +1 -1
- package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +3 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -6
- package/dist/components/FunTooltip/FunTooltip.d.ts +1 -0
- package/dist/components/FunTransactionSummary/PaymentAmountSummary.d.ts +1 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +2 -2
- package/dist/consts/customers.d.ts +1 -0
- package/dist/domains/asset.d.ts +2 -6
- package/dist/domains/quote.d.ts +1 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +1 -2
- package/dist/hooks/statsig/useDynamicConfig.d.ts +1 -1
- package/dist/hooks/track/CheckoutModalEvent.d.ts +8 -1
- package/dist/hooks/track/WithdrawModalEvent.d.ts +1 -0
- package/dist/hooks/track/useTrack.d.ts +5 -1
- package/dist/hooks/useBluvo.d.ts +0 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +0 -1
- package/dist/hooks/useCheckoutTransferInit.d.ts +4 -2
- package/dist/hooks/useDynamicRoutes.d.ts +4 -0
- package/dist/hooks/useIsBlacklistedWithdrawalAddress.d.ts +4 -0
- package/dist/hooks/useIsDynamicRoutingEnabled.d.ts +4 -0
- package/dist/hooks/useUDAParams.d.ts +11 -0
- package/dist/{modals/CheckoutModal → hooks}/useWalletAssetHoldings.d.ts +1 -1
- package/dist/index.css +33 -26
- package/dist/index.d.ts +2 -2
- package/dist/index.js +31916 -30859
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +0 -7
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +4 -2
- package/dist/modals/CheckoutModal/ConfirmationStep/usePostCheckout.d.ts +0 -6
- package/dist/modals/CheckoutModal/{useSourceAssetConfirm.d.ts → ConfirmationStep/useSourceAssetConfirm.d.ts} +0 -2
- package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +1 -0
- package/dist/modals/CheckoutModal/stepTransition.track.d.ts +2 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +7 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +18 -1
- package/dist/providers/FunkitConfigContext.d.ts +9 -1
- package/dist/providers/FunkitMoonpayProvider.d.ts +1 -0
- package/dist/providers/FunkitQuoteContext.d.ts +1 -2
- package/dist/providers/FunkitQuoteContext.track.d.ts +1 -0
- package/dist/providers/FunkitThemeProvider.d.ts +0 -7
- package/dist/providers/ModalContext.d.ts +7 -0
- package/dist/utils/assets.d.ts +2 -1
- package/dist/utils/checkout.d.ts +0 -1
- package/dist/utils/customer.d.ts +192 -0
- package/dist/utils/flags/config.d.ts +23 -42
- package/dist/utils/funLogger.d.ts +3 -1
- package/dist/utils/funkitProvider.d.ts +2 -0
- package/dist/utils/lighter.d.ts +11 -3
- package/dist/utils/tokenIconUrl.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/bitskiWallet/bitskiWallet.js +2 -2
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-JWFF4AAL.js → chunk-2E4PDCEJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SHBUZ7U7.js → chunk-35Q4HKAM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-362NXNTM.js → chunk-3IYE623P.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2L43XSW3.js → chunk-47QF6EET.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BPZ2XJO2.js → chunk-4ZXII3UA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2STUC6QL.js → chunk-5EAOMOTO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2KUBG3S6.js → chunk-77UTBHGP.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OLOIXTYS.js → chunk-ABQKUIUD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-IFON7E6U.js → chunk-AI55G5DD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DNSG5Q7V.js → chunk-ARYAYQ7Z.js} +3 -0
- package/dist/wallets/walletConnectors/{chunk-OL5ZO7E4.js → chunk-CF5HOLH2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SULRQO27.js → chunk-CZYUE3AR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HWPKCIBE.js → chunk-EMBU4RXK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TDAVGY5F.js → chunk-FA5DTT5R.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BYXPFMI7.js → chunk-FCG5Q6JX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-M3NZ6R2E.js → chunk-HPHADOYD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VYBAYMP3.js → chunk-JFHP4YJG.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DRO6WYMM.js → chunk-JTLLKY2O.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BBOM42DL.js → chunk-LW6S43RE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-D6AOOO5F.js → chunk-M2HGGTFE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-XWUJE7MW.js → chunk-MQSCN4BO.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-FKJJQNKX.js → chunk-MRRZOQGZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OPAZMNA7.js → chunk-QHC4I2FM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RZIO5TFF.js → chunk-QS2XIZEH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-A5N6B5UW.js → chunk-R6Y36CMA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2HYNUNAS.js → chunk-RA7MCWF4.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OBOVHCEI.js → chunk-RLRQYUYC.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TCAGNB4B.js → chunk-T5KHVUFR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BOU4WKRZ.js → chunk-TMFH6GXS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZZZRUXZE.js → chunk-TNZJRXUQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TDIEHTMB.js → chunk-U5QP7MI5.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NWIQNBJU.js → chunk-UOTQQJJD.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RNBEDQHF.js → chunk-VU2RNIQG.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VR4TBQ6S.js → chunk-VYNVAGSV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NT2HYJKW.js → chunk-W7Y6I22Y.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7QONTUXT.js → chunk-YLJDPTYF.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HS3C7OQV.js → chunk-YMUSFW44.js} +1 -1
- 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/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +2 -2
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.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 +41 -41
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +2 -2
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +2 -2
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.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/tahoWallet/tahoWallet.js +2 -2
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +5 -5
- package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +0 -7
|
@@ -2,20 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
3
|
import { type PaymentMethodInfo } from '~/domains/paymentMethods';
|
|
4
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition';
|
|
5
|
-
interface MoonpayDepositData {
|
|
6
|
-
depositToken: string;
|
|
7
|
-
depositTokenAmount: number;
|
|
8
|
-
depositTokenChainId: string;
|
|
9
|
-
}
|
|
10
5
|
export type ConfirmationStepState = CheckoutModalCommonState & {
|
|
11
6
|
paymentMethodInfo: PaymentMethodInfo;
|
|
12
7
|
};
|
|
13
8
|
export type ConfirmationStepNext = {
|
|
14
9
|
depositAddress: Address;
|
|
15
|
-
moonpayData?: MoonpayDepositData;
|
|
16
10
|
paymentMethodInfo: PaymentMethodInfo;
|
|
17
11
|
redirectBackToSourceChange?: boolean;
|
|
18
12
|
};
|
|
19
13
|
export declare const ConfirmationStepInfo: ModalStepInfo<FunCheckoutStep.CONFIRMATION>;
|
|
20
14
|
export declare function ConfirmationStep({ modalState, onNext, setModalState, }: ModalStepComponentProps<FunCheckoutStep.CONFIRMATION>): React.JSX.Element;
|
|
21
|
-
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
2
|
import type { Address } from 'viem';
|
|
3
|
+
import { type Config } from 'wagmi';
|
|
3
4
|
import type { ErrorNotification } from '~/components/FunNotification/FunNotification';
|
|
4
5
|
export interface CheckoutConfirmationError extends ErrorNotification {
|
|
5
6
|
durationMs?: number;
|
|
@@ -11,7 +12,8 @@ export declare enum ConfirmationErrorCode {
|
|
|
11
12
|
RISK_ERROR = "RISK_ERROR",
|
|
12
13
|
SIGNATURE_DENIED = "SIGNATURE_DENIED",
|
|
13
14
|
SWITCH_CHAIN_ERROR = "SWITCH_CHAIN_ERROR",
|
|
14
|
-
WALLET_CLIENT_UNDEFINED = "WALLET_CLIENT_UNDEFINED"
|
|
15
|
+
WALLET_CLIENT_UNDEFINED = "WALLET_CLIENT_UNDEFINED",
|
|
16
|
+
INSUFFICIENT_GAS = "INSUFFICIENT_GAS"
|
|
15
17
|
}
|
|
16
18
|
interface UseCheckoutConfirmationOptions {
|
|
17
19
|
onError(error: CheckoutConfirmationError): void;
|
|
@@ -23,6 +25,6 @@ interface UseCheckoutConfirmationResult {
|
|
|
23
25
|
handleCheckoutConfirmation(): Promise<void>;
|
|
24
26
|
isConfirming: boolean;
|
|
25
27
|
}
|
|
26
|
-
export declare function toCheckoutConfirmationError(t: TFunction, error: unknown): CheckoutConfirmationError
|
|
28
|
+
export declare function toCheckoutConfirmationError(t: TFunction, error: unknown, wagmiConfig: Config): Promise<CheckoutConfirmationError>;
|
|
27
29
|
export declare function useCheckoutConfirmation({ onError, onSuccess, }: UseCheckoutConfirmationOptions): UseCheckoutConfirmationResult;
|
|
28
30
|
export {};
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
2
|
import type { ErrorNotification } from '~/components/FunNotification/FunNotification';
|
|
3
3
|
import { type PaymentMethodInfo } from '~/domains/paymentMethods';
|
|
4
|
-
export interface MoonpayDepositData {
|
|
5
|
-
depositToken: string;
|
|
6
|
-
depositTokenAmount: number;
|
|
7
|
-
depositTokenChainId: string;
|
|
8
|
-
}
|
|
9
4
|
export interface PostCheckoutError extends ErrorNotification {
|
|
10
5
|
disableContinue: boolean;
|
|
11
6
|
durationMs?: number;
|
|
12
7
|
}
|
|
13
8
|
export interface PostCheckoutSuccessData {
|
|
14
9
|
depositAddress: Address;
|
|
15
|
-
moonpayData: MoonpayDepositData;
|
|
16
10
|
paymentMethodInfo: PaymentMethodInfo;
|
|
17
11
|
}
|
|
18
12
|
interface UsePostCheckoutOptions {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
2
2
|
import { type CheckoutQuoteResult } from '~/providers/FunkitQuoteContext';
|
|
3
|
-
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
3
|
export interface SourceAssetConfirmed {
|
|
5
4
|
isQuoteSuccess: boolean;
|
|
6
5
|
maxTargetAssetAmount: number | undefined;
|
|
7
6
|
}
|
|
8
|
-
export declare function preparePaymentMethodInfo(selectedPaymentMethodInfo: PaymentMethodInfo | null): PaymentMethodInfo;
|
|
9
7
|
/**
|
|
10
8
|
*
|
|
11
9
|
* Note: this hook is EXTREMELY confusing in what is doing
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
interface FunCheckoutModalProps {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
|
+
/** External soft-hidden state from ModalContext */
|
|
6
|
+
isSoftHidden?: boolean;
|
|
5
7
|
}
|
|
6
|
-
export declare function FunCheckoutModal({ onClose, open }: FunCheckoutModalProps): React.JSX.Element | null;
|
|
8
|
+
export declare function FunCheckoutModal({ onClose, open, isSoftHidden, }: FunCheckoutModalProps): React.JSX.Element | null;
|
|
7
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExchangeRates } from '@funkit/api-base';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type
|
|
3
|
+
import { type FunkitTextCustomizationsConfig } from '~/providers/FunkitConfigContext';
|
|
4
4
|
import type { AssetHoldingsItem } from '~/utils/assets';
|
|
5
5
|
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
|
|
6
6
|
import { FunCheckoutStep, type ModalStepComponentProps } from '../stepTransition';
|
|
@@ -23,6 +23,7 @@ export interface AmountInputInitOptions {
|
|
|
23
23
|
fiatCurrencyExchangeRate: number | undefined;
|
|
24
24
|
/** Whether meld is enabled */
|
|
25
25
|
meldEnabled: boolean;
|
|
26
|
+
apiKey: string;
|
|
26
27
|
}
|
|
27
28
|
export interface AmountInputState {
|
|
28
29
|
/** Current amount, in target asset. Undefined if input is empty */
|
|
@@ -105,6 +106,6 @@ export type AmountInputError = {
|
|
|
105
106
|
* Return half the balance and round up to nearest 10, 100, 1000 etc
|
|
106
107
|
*/
|
|
107
108
|
export declare function calcInitialFiatAmount(balance: number): number;
|
|
108
|
-
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, fiatCurrencyExchangeRate, meldEnabled, }: AmountInputInitOptions): AmountInputState;
|
|
109
|
+
export declare function initializeState({ checkoutConfig, defaultAmount, fiatCurrency, locale, maxUsd, minUsd, paymentMethodInfo, quickOptions, sourceHolding, unitPrice: realUnitPrice, fiatCurrencyExchangeRate, meldEnabled, apiKey, }: AmountInputInitOptions): AmountInputState;
|
|
109
110
|
export declare function reduceState(state: AmountInputState, action: AmountInputAction): AmountInputState;
|
|
110
111
|
export declare function getDerivedState(state: AmountInputState, targetAssetTicker: string): AmountInputDerivedState;
|
|
@@ -95,6 +95,7 @@ export type CheckoutModalState<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
|
95
95
|
[FunCheckoutStep.BROKERAGE_SUCCESS]: BrokerageSuccessState;
|
|
96
96
|
}[T] & {
|
|
97
97
|
step: T;
|
|
98
|
+
previousStep?: FunCheckoutStep | null;
|
|
98
99
|
};
|
|
99
100
|
}[S];
|
|
100
101
|
export type NextPayload<S extends FunCheckoutStep = FunCheckoutStep> = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
|
|
1
2
|
import type { TrackEventData } from '~/hooks/track/useTrack';
|
|
2
3
|
import { FunCheckoutStep } from './FunCheckoutStep';
|
|
3
4
|
import type { CheckoutModalState } from './stepTransition';
|
|
5
|
+
export declare const CHECKOUT_STEP_TO_READY_EVENT: Partial<Record<FunCheckoutStep, CheckoutModalEvent>>;
|
|
4
6
|
export declare const trackEventFromNextState: (nextState: CheckoutModalState<FunCheckoutStep>) => TrackEventData;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DynamicRoutePath } from '@funkit/fun-relay';
|
|
1
2
|
import React, { type ReactNode } from 'react';
|
|
2
3
|
import type { Address } from 'viem';
|
|
3
4
|
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
@@ -20,6 +21,7 @@ interface FunkitCheckoutContextInterface {
|
|
|
20
21
|
targetAssetTicker: string;
|
|
21
22
|
targetAssetMinAmount: number | undefined;
|
|
22
23
|
iconSrc: string | undefined;
|
|
24
|
+
generateActionsParams?: FunkitCheckoutConfig['generateActionsParams'];
|
|
23
25
|
}): void;
|
|
24
26
|
updateSelectedPaymentMethodInfo(newPaymentMethodInfo: PaymentMethodInfo): void;
|
|
25
27
|
updateCustomRecipient: (recipient: Address) => void;
|
|
@@ -31,6 +33,11 @@ interface FunkitCheckoutContextInterface {
|
|
|
31
33
|
withdrawalItem: FunkitActiveWithdrawalItem | null;
|
|
32
34
|
initNewWithdrawal(initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>, config: UseFunkitCheckoutPropsWithFullConfig): string;
|
|
33
35
|
updateWithdrawalSourceAssetAmount(newSourceAmount: number): void;
|
|
36
|
+
applyDynamicRouting(path: Omit<DynamicRoutePath, 'getCustomRecipient' | 'generateActionsParams'> & {
|
|
37
|
+
customRecipient?: FunkitCheckoutConfig['customRecipient'];
|
|
38
|
+
generateActionsParams?: FunkitCheckoutConfig['generateActionsParams'];
|
|
39
|
+
}): void;
|
|
40
|
+
updateDynamicRoutingId(dynamicRoutingId: string): void;
|
|
34
41
|
}
|
|
35
42
|
export type CheckoutProgressStep = 1 | 2;
|
|
36
43
|
export type CheckoutProgress = {
|
|
@@ -41,7 +41,7 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
41
41
|
* Checkout ModalUI-related configurations *
|
|
42
42
|
*******************************************/
|
|
43
43
|
/** Title to show in the checkout modal. Defaults to "Checkout" **/
|
|
44
|
-
modalTitle?: string;
|
|
44
|
+
modalTitle?: string | ((asset: TokenInfo) => string);
|
|
45
45
|
/** Additional information to show in the title of the checkout modal. Blank by default **/
|
|
46
46
|
modalTitleMeta?: string;
|
|
47
47
|
/** Icon to show in the checkout modal (50px x 50px). If not specified, no icon will be shown. **/
|
|
@@ -74,6 +74,10 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
74
74
|
qrcodeActionType?: string;
|
|
75
75
|
/** set this if you want enable vault like deposit*/
|
|
76
76
|
stakingToken?: DynamicTargetAssetCandidate;
|
|
77
|
+
/**
|
|
78
|
+
* For dynamic routing, the id of the dynamic route to use
|
|
79
|
+
*/
|
|
80
|
+
dynamicRoutingId?: string;
|
|
77
81
|
}
|
|
78
82
|
export interface WithdrawalConfigBase {
|
|
79
83
|
/** Title to show in the checkout modal. Defaults to "Checkout" **/
|
|
@@ -113,6 +117,19 @@ export interface FunkitCheckoutValidationResult {
|
|
|
113
117
|
}
|
|
114
118
|
export interface FunkitCheckoutOnCloseResult {
|
|
115
119
|
isNewDeposit: boolean;
|
|
120
|
+
/** True if the modal was soft-hidden (state preserved) instead of hard-closed */
|
|
121
|
+
isSoftHidden?: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Conflict resolution options when beginCheckout is called while a soft-hidden checkout exists
|
|
125
|
+
*/
|
|
126
|
+
export interface CheckoutConflictResolution {
|
|
127
|
+
/** The ID of the hidden checkout */
|
|
128
|
+
hiddenCheckoutId: string;
|
|
129
|
+
/** Resume the hidden checkout (reshow the modal without starting new checkout) */
|
|
130
|
+
resume: () => void;
|
|
131
|
+
/** Replace the hidden checkout with a new one (discard hidden state, proceed with new checkout) */
|
|
132
|
+
replace: () => void;
|
|
116
133
|
}
|
|
117
134
|
export type FunkitCheckoutResult = {
|
|
118
135
|
type: 'error' | 'success';
|
|
@@ -52,19 +52,27 @@ export interface FunkitUiCustomizationsConfig {
|
|
|
52
52
|
allowTokenAmountInput?: boolean;
|
|
53
53
|
};
|
|
54
54
|
selectAssetScreen?: {
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Whether to show target asset selection menu if dynamicTargetAssetCandidates exist - defaults to false
|
|
57
|
+
* @deprecated use sourceChangeScreen.showTargetAssetSelection instead
|
|
58
|
+
*/
|
|
56
59
|
showTargetAssetSelection?: boolean;
|
|
57
60
|
};
|
|
58
61
|
transferCryptoScreen?: {
|
|
59
62
|
/** Whether to show the "You Send -> You Receive" block in the transfer crypto screen - defaults to false */
|
|
60
63
|
showYouSendYouReceive?: boolean;
|
|
61
64
|
};
|
|
65
|
+
sourceChangeScreen?: {
|
|
66
|
+
/** Whether to show target asset selection menu if dynamicTargetAssetCandidates exist - defaults to false */
|
|
67
|
+
showTargetAssetSelection?: boolean;
|
|
68
|
+
};
|
|
62
69
|
}
|
|
63
70
|
export type FunkitUiCustomizationsConfigInternal = Required<FunkitUiCustomizationsConfig> & {
|
|
64
71
|
confirmationScreen: FunkitUiCustomizationsConfig['confirmationScreen'] & Required<Omit<FunkitUiCustomizationsConfig['confirmationScreen'] & {}, 'destinationConfig'>>;
|
|
65
72
|
inputAmountScreen: Required<FunkitUiCustomizationsConfig['inputAmountScreen'] & {}>;
|
|
66
73
|
selectAssetScreen: Required<FunkitUiCustomizationsConfig['selectAssetScreen'] & {}>;
|
|
67
74
|
transferCryptoScreen: Required<FunkitUiCustomizationsConfig['transferCryptoScreen'] & {}>;
|
|
75
|
+
sourceChangeScreen: Required<FunkitUiCustomizationsConfig['sourceChangeScreen'] & {}>;
|
|
68
76
|
};
|
|
69
77
|
export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
|
|
70
78
|
export declare const DEFAULT_UI_CUSTOMIZATIONS: FunkitUiCustomizationsConfigInternal;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { type Dispatch, type ReactNode } from 'react';
|
|
2
|
-
import { type PaymentMethodInfo } from '../domains/paymentMethods';
|
|
3
2
|
import type { FunkitCheckoutQuoteResult } from '../domains/quote';
|
|
4
3
|
import { type FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
|
|
5
4
|
export type CheckoutQuoteError = {
|
|
@@ -37,7 +36,7 @@ interface CheckoutQuoteState {
|
|
|
37
36
|
}
|
|
38
37
|
interface FunkitQuoteContextInterface extends CheckoutQuoteState {
|
|
39
38
|
clearCheckoutQuoteMessages: () => void;
|
|
40
|
-
getCheckoutQuote: (
|
|
39
|
+
getCheckoutQuote: (disableInformationStreaming?: boolean) => Promise<GetCheckoutQuoteResponse>;
|
|
41
40
|
setCheckoutQuote: Dispatch<React.SetStateAction<FunkitCheckoutQuoteResult | null>>;
|
|
42
41
|
setQuoteProgress: (state: Omit<CheckoutQuoteState, 'latestQuote'>) => void;
|
|
43
42
|
}
|
|
@@ -3,4 +3,5 @@ import type { WithdrawModalEvent } from '~/hooks/track/WithdrawModalEvent';
|
|
|
3
3
|
import type { TrackEventData } from '~/hooks/track/useTrack';
|
|
4
4
|
import type { FunkitActiveCheckoutItem } from './FunkitCheckoutContext';
|
|
5
5
|
import type { FunkitCheckoutQuoteResult } from './FunkitHistoryContext';
|
|
6
|
+
export declare const trackEventFromBaseQuote: (checkoutItem: FunkitActiveCheckoutItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
|
|
6
7
|
export declare const trackEventFromFinalQuote: (finalEstimation: FunkitCheckoutQuoteResult, checkoutItem: FunkitActiveCheckoutItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
|
|
@@ -13,13 +13,6 @@ export interface FunkitThemeProps {
|
|
|
13
13
|
theme?: Theme;
|
|
14
14
|
}
|
|
15
15
|
export declare const ThemeIdContext: React.Context<string | undefined>;
|
|
16
|
-
export declare const createThemeRootProps: (id: string | undefined) => {
|
|
17
|
-
"data-rk": string;
|
|
18
|
-
};
|
|
19
|
-
export declare const createThemeRootSelector: (id: string | undefined) => string;
|
|
20
|
-
export declare const useThemeRootProps: () => {
|
|
21
|
-
"data-rk": string;
|
|
22
|
-
};
|
|
23
16
|
export declare const useActiveTheme: () => {
|
|
24
17
|
activeTheme: {
|
|
25
18
|
colors: {
|
|
@@ -35,4 +35,11 @@ export declare function useWithdrawalModal(): {
|
|
|
35
35
|
withdrawalId: string;
|
|
36
36
|
}) => void) | undefined;
|
|
37
37
|
};
|
|
38
|
+
export declare function useSoftHiddenCheckout(): {
|
|
39
|
+
hasSoftHiddenCheckout: boolean;
|
|
40
|
+
softHiddenCheckoutId: string | null;
|
|
41
|
+
softHide: () => void;
|
|
42
|
+
resume: () => void;
|
|
43
|
+
discard: () => void;
|
|
44
|
+
};
|
|
38
45
|
export {};
|
package/dist/utils/assets.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
1
|
+
import type { DynamicTargetAssetCandidate, FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
2
2
|
export type { AssetHoldingsItem, AssetHoldingsMap, KnownAssetHoldingsItem, } from '~/domains/wallet';
|
|
3
3
|
export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number | string, decimals: number) => number;
|
|
4
4
|
/**
|
|
@@ -8,3 +8,4 @@ export declare const getNormalizedTokenBalance: (tokenBalance: bigint | number |
|
|
|
8
8
|
* @returns targetChain either from the provided config or Base chainId for non-evm chains processed with evm tech
|
|
9
9
|
*/
|
|
10
10
|
export declare const getMockedTargetChainId: ({ targetChain }: FunkitCheckoutConfig, mockedChains?: string[]) => string;
|
|
11
|
+
export declare const getDefaultDynamicTargetAsset: (checkoutConfig: FunkitCheckoutConfig | undefined) => DynamicTargetAssetCandidate;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -95,7 +95,6 @@ export declare function getQuoteExchangeRate(config: FunkitCheckoutConfig, baseQ
|
|
|
95
95
|
*/
|
|
96
96
|
export declare function getMaxTargetAssetAmountEstimate(sourceAssetBalance: number, config: FunkitCheckoutConfig, quoteResult: FunkitCheckoutQuoteResult): number;
|
|
97
97
|
export declare function getTokenDecimals(wagmiConfig: Config, chainId: string, tokenAddress: Address): Promise<number>;
|
|
98
|
-
export declare function getLighterTickSize(wagmiConfig: Config, chainId: string, assetIndex: number): Promise<bigint>;
|
|
99
98
|
export declare function evaluateCheckoutGenerateActionsParams(config: FunkitCheckoutConfig): Promise<FunkitCheckoutActionParams[]>;
|
|
100
99
|
export declare function isCheckoutCrFlow(config: FunkitCheckoutConfig): boolean;
|
|
101
100
|
/**
|
package/dist/utils/customer.d.ts
CHANGED
|
@@ -1,6 +1,198 @@
|
|
|
1
|
+
import type { Address } from 'viem';
|
|
1
2
|
import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
|
|
2
3
|
import type { FunkitCheckoutConfig } from '~/providers/FunkitCheckoutContext';
|
|
3
4
|
export declare function isKatanaEarnFlow({ apiKey, checkoutConfig, }: {
|
|
4
5
|
apiKey: string;
|
|
5
6
|
checkoutConfig: FunkitCheckoutConfig | ServerCheckoutConfig | undefined;
|
|
6
7
|
}): boolean;
|
|
8
|
+
export type LighterSubAccount = {
|
|
9
|
+
code: number;
|
|
10
|
+
account_type: number;
|
|
11
|
+
index: number;
|
|
12
|
+
l1_address: Address;
|
|
13
|
+
cancel_all_time: number;
|
|
14
|
+
total_order_count: number;
|
|
15
|
+
total_isolated_order_count: number;
|
|
16
|
+
pending_order_count: number;
|
|
17
|
+
available_balance: string;
|
|
18
|
+
status: number;
|
|
19
|
+
collateral: string;
|
|
20
|
+
};
|
|
21
|
+
export type LighterAccountsByL1AddressResponse = {
|
|
22
|
+
code: number;
|
|
23
|
+
l1_address: Address;
|
|
24
|
+
sub_accounts: LighterSubAccount[];
|
|
25
|
+
};
|
|
26
|
+
export declare function getLighterAccountsByL1Address(address: Address): Promise<LighterAccountsByL1AddressResponse>;
|
|
27
|
+
export declare function useLighterAccounts({ address, isEnabled, }: {
|
|
28
|
+
address: Address | undefined;
|
|
29
|
+
isEnabled?: boolean;
|
|
30
|
+
}): {
|
|
31
|
+
mainAccountIndex: string | undefined;
|
|
32
|
+
subAccounts: LighterSubAccount[] | undefined;
|
|
33
|
+
data: LighterAccountsByL1AddressResponse;
|
|
34
|
+
error: Error;
|
|
35
|
+
isError: true;
|
|
36
|
+
isPending: false;
|
|
37
|
+
isLoading: false;
|
|
38
|
+
isLoadingError: false;
|
|
39
|
+
isRefetchError: true;
|
|
40
|
+
isSuccess: false;
|
|
41
|
+
isPlaceholderData: false;
|
|
42
|
+
status: "error";
|
|
43
|
+
dataUpdatedAt: number;
|
|
44
|
+
errorUpdatedAt: number;
|
|
45
|
+
failureCount: number;
|
|
46
|
+
failureReason: Error | null;
|
|
47
|
+
errorUpdateCount: number;
|
|
48
|
+
isFetched: boolean;
|
|
49
|
+
isFetchedAfterMount: boolean;
|
|
50
|
+
isFetching: boolean;
|
|
51
|
+
isInitialLoading: boolean;
|
|
52
|
+
isPaused: boolean;
|
|
53
|
+
isRefetching: boolean;
|
|
54
|
+
isStale: boolean;
|
|
55
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountsByL1AddressResponse, Error>>;
|
|
56
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
57
|
+
promise: Promise<LighterAccountsByL1AddressResponse>;
|
|
58
|
+
} | {
|
|
59
|
+
mainAccountIndex: string | undefined;
|
|
60
|
+
subAccounts: LighterSubAccount[] | undefined;
|
|
61
|
+
data: LighterAccountsByL1AddressResponse;
|
|
62
|
+
error: null;
|
|
63
|
+
isError: false;
|
|
64
|
+
isPending: false;
|
|
65
|
+
isLoading: false;
|
|
66
|
+
isLoadingError: false;
|
|
67
|
+
isRefetchError: false;
|
|
68
|
+
isSuccess: true;
|
|
69
|
+
isPlaceholderData: false;
|
|
70
|
+
status: "success";
|
|
71
|
+
dataUpdatedAt: number;
|
|
72
|
+
errorUpdatedAt: number;
|
|
73
|
+
failureCount: number;
|
|
74
|
+
failureReason: Error | null;
|
|
75
|
+
errorUpdateCount: number;
|
|
76
|
+
isFetched: boolean;
|
|
77
|
+
isFetchedAfterMount: boolean;
|
|
78
|
+
isFetching: boolean;
|
|
79
|
+
isInitialLoading: boolean;
|
|
80
|
+
isPaused: boolean;
|
|
81
|
+
isRefetching: boolean;
|
|
82
|
+
isStale: boolean;
|
|
83
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountsByL1AddressResponse, Error>>;
|
|
84
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
85
|
+
promise: Promise<LighterAccountsByL1AddressResponse>;
|
|
86
|
+
} | {
|
|
87
|
+
mainAccountIndex: string | undefined;
|
|
88
|
+
subAccounts: LighterSubAccount[] | undefined;
|
|
89
|
+
data: undefined;
|
|
90
|
+
error: Error;
|
|
91
|
+
isError: true;
|
|
92
|
+
isPending: false;
|
|
93
|
+
isLoading: false;
|
|
94
|
+
isLoadingError: true;
|
|
95
|
+
isRefetchError: false;
|
|
96
|
+
isSuccess: false;
|
|
97
|
+
isPlaceholderData: false;
|
|
98
|
+
status: "error";
|
|
99
|
+
dataUpdatedAt: number;
|
|
100
|
+
errorUpdatedAt: number;
|
|
101
|
+
failureCount: number;
|
|
102
|
+
failureReason: Error | null;
|
|
103
|
+
errorUpdateCount: number;
|
|
104
|
+
isFetched: boolean;
|
|
105
|
+
isFetchedAfterMount: boolean;
|
|
106
|
+
isFetching: boolean;
|
|
107
|
+
isInitialLoading: boolean;
|
|
108
|
+
isPaused: boolean;
|
|
109
|
+
isRefetching: boolean;
|
|
110
|
+
isStale: boolean;
|
|
111
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountsByL1AddressResponse, Error>>;
|
|
112
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
113
|
+
promise: Promise<LighterAccountsByL1AddressResponse>;
|
|
114
|
+
} | {
|
|
115
|
+
mainAccountIndex: string | undefined;
|
|
116
|
+
subAccounts: LighterSubAccount[] | undefined;
|
|
117
|
+
data: undefined;
|
|
118
|
+
error: null;
|
|
119
|
+
isError: false;
|
|
120
|
+
isPending: true;
|
|
121
|
+
isLoading: true;
|
|
122
|
+
isLoadingError: false;
|
|
123
|
+
isRefetchError: false;
|
|
124
|
+
isSuccess: false;
|
|
125
|
+
isPlaceholderData: false;
|
|
126
|
+
status: "pending";
|
|
127
|
+
dataUpdatedAt: number;
|
|
128
|
+
errorUpdatedAt: number;
|
|
129
|
+
failureCount: number;
|
|
130
|
+
failureReason: Error | null;
|
|
131
|
+
errorUpdateCount: number;
|
|
132
|
+
isFetched: boolean;
|
|
133
|
+
isFetchedAfterMount: boolean;
|
|
134
|
+
isFetching: boolean;
|
|
135
|
+
isInitialLoading: boolean;
|
|
136
|
+
isPaused: boolean;
|
|
137
|
+
isRefetching: boolean;
|
|
138
|
+
isStale: boolean;
|
|
139
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountsByL1AddressResponse, Error>>;
|
|
140
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
141
|
+
promise: Promise<LighterAccountsByL1AddressResponse>;
|
|
142
|
+
} | {
|
|
143
|
+
mainAccountIndex: string | undefined;
|
|
144
|
+
subAccounts: LighterSubAccount[] | undefined;
|
|
145
|
+
data: undefined;
|
|
146
|
+
error: null;
|
|
147
|
+
isError: false;
|
|
148
|
+
isPending: true;
|
|
149
|
+
isLoadingError: false;
|
|
150
|
+
isRefetchError: false;
|
|
151
|
+
isSuccess: false;
|
|
152
|
+
isPlaceholderData: false;
|
|
153
|
+
status: "pending";
|
|
154
|
+
dataUpdatedAt: number;
|
|
155
|
+
errorUpdatedAt: number;
|
|
156
|
+
failureCount: number;
|
|
157
|
+
failureReason: Error | null;
|
|
158
|
+
errorUpdateCount: number;
|
|
159
|
+
isFetched: boolean;
|
|
160
|
+
isFetchedAfterMount: boolean;
|
|
161
|
+
isFetching: boolean;
|
|
162
|
+
isLoading: boolean;
|
|
163
|
+
isInitialLoading: boolean;
|
|
164
|
+
isPaused: boolean;
|
|
165
|
+
isRefetching: boolean;
|
|
166
|
+
isStale: boolean;
|
|
167
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountsByL1AddressResponse, Error>>;
|
|
168
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
169
|
+
promise: Promise<LighterAccountsByL1AddressResponse>;
|
|
170
|
+
} | {
|
|
171
|
+
mainAccountIndex: string | undefined;
|
|
172
|
+
subAccounts: LighterSubAccount[] | undefined;
|
|
173
|
+
data: LighterAccountsByL1AddressResponse;
|
|
174
|
+
isError: false;
|
|
175
|
+
error: null;
|
|
176
|
+
isPending: false;
|
|
177
|
+
isLoading: false;
|
|
178
|
+
isLoadingError: false;
|
|
179
|
+
isRefetchError: false;
|
|
180
|
+
isSuccess: true;
|
|
181
|
+
isPlaceholderData: true;
|
|
182
|
+
status: "success";
|
|
183
|
+
dataUpdatedAt: number;
|
|
184
|
+
errorUpdatedAt: number;
|
|
185
|
+
failureCount: number;
|
|
186
|
+
failureReason: Error | null;
|
|
187
|
+
errorUpdateCount: number;
|
|
188
|
+
isFetched: boolean;
|
|
189
|
+
isFetchedAfterMount: boolean;
|
|
190
|
+
isFetching: boolean;
|
|
191
|
+
isInitialLoading: boolean;
|
|
192
|
+
isPaused: boolean;
|
|
193
|
+
isRefetching: boolean;
|
|
194
|
+
isStale: boolean;
|
|
195
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<LighterAccountsByL1AddressResponse, Error>>;
|
|
196
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
197
|
+
promise: Promise<LighterAccountsByL1AddressResponse>;
|
|
198
|
+
};
|
|
@@ -30,7 +30,7 @@ export declare const flagConfig: {
|
|
|
30
30
|
};
|
|
31
31
|
readonly enable_token_transfer: {
|
|
32
32
|
readonly type: "boolean";
|
|
33
|
-
readonly default_value:
|
|
33
|
+
readonly default_value: true;
|
|
34
34
|
readonly overrides: [{
|
|
35
35
|
readonly if_any: [{
|
|
36
36
|
readonly key: "apiKey";
|
|
@@ -38,25 +38,11 @@ export declare const flagConfig: {
|
|
|
38
38
|
readonly values: ["di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe"];
|
|
39
39
|
}];
|
|
40
40
|
readonly value: true;
|
|
41
|
-
},
|
|
42
|
-
readonly if_any: [{
|
|
43
|
-
readonly key: "userId";
|
|
44
|
-
readonly type: "isAnyOf";
|
|
45
|
-
readonly values: string[];
|
|
46
|
-
}];
|
|
47
|
-
readonly value: true;
|
|
48
|
-
}, Override<boolean>, {
|
|
49
|
-
readonly if_any: [{
|
|
50
|
-
readonly key: "apiKey";
|
|
51
|
-
readonly type: "isAnyOf";
|
|
52
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "1QxzeJ4XKT78ba86whLct6sc7dW60Dl461UVWFdw", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "AiXTqs1RO13a47tS5vjqA1UdRggx0tzJ3xKrrNH6"];
|
|
53
|
-
}];
|
|
54
|
-
readonly value: true;
|
|
55
|
-
}];
|
|
41
|
+
}, Override<boolean>];
|
|
56
42
|
};
|
|
57
43
|
readonly enable_fiat_deposit: {
|
|
58
44
|
readonly type: "boolean";
|
|
59
|
-
readonly default_value:
|
|
45
|
+
readonly default_value: true;
|
|
60
46
|
readonly overrides: [{
|
|
61
47
|
readonly if_any: [{
|
|
62
48
|
readonly key: "apiKey";
|
|
@@ -64,14 +50,7 @@ export declare const flagConfig: {
|
|
|
64
50
|
readonly values: ["di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe"];
|
|
65
51
|
}];
|
|
66
52
|
readonly value: true;
|
|
67
|
-
}, Override<boolean
|
|
68
|
-
readonly if_any: [{
|
|
69
|
-
readonly key: "userId";
|
|
70
|
-
readonly type: "pctRollout";
|
|
71
|
-
readonly pct: 100;
|
|
72
|
-
}];
|
|
73
|
-
readonly value: true;
|
|
74
|
-
}];
|
|
53
|
+
}, Override<boolean>];
|
|
75
54
|
};
|
|
76
55
|
readonly token_transfer_source_chains_and_assets: {
|
|
77
56
|
readonly type: "string";
|
|
@@ -83,6 +62,13 @@ export declare const flagConfig: {
|
|
|
83
62
|
readonly values: ["M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
|
|
84
63
|
}];
|
|
85
64
|
readonly value: string;
|
|
65
|
+
}, {
|
|
66
|
+
readonly if_any: [{
|
|
67
|
+
readonly key: "apiKey";
|
|
68
|
+
readonly type: "isAnyOf";
|
|
69
|
+
readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
70
|
+
}];
|
|
71
|
+
readonly value: string;
|
|
86
72
|
}, {
|
|
87
73
|
readonly if_any: [{
|
|
88
74
|
readonly key: "apiKey";
|
|
@@ -94,7 +80,14 @@ export declare const flagConfig: {
|
|
|
94
80
|
readonly if_any: [{
|
|
95
81
|
readonly key: "apiKey";
|
|
96
82
|
readonly type: "isAnyOf";
|
|
97
|
-
readonly values: ["
|
|
83
|
+
readonly values: ["pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW"];
|
|
84
|
+
}];
|
|
85
|
+
readonly value: string;
|
|
86
|
+
}, {
|
|
87
|
+
readonly if_any: [{
|
|
88
|
+
readonly key: "apiKey";
|
|
89
|
+
readonly type: "isAnyOf";
|
|
90
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e"];
|
|
98
91
|
}];
|
|
99
92
|
readonly value: string;
|
|
100
93
|
}];
|
|
@@ -196,26 +189,14 @@ export declare const flagConfig: {
|
|
|
196
189
|
readonly type: "string";
|
|
197
190
|
readonly default_value: string;
|
|
198
191
|
};
|
|
199
|
-
readonly help_tutorial_url: {
|
|
200
|
-
readonly type: "string";
|
|
201
|
-
readonly default_value: "";
|
|
202
|
-
};
|
|
203
192
|
readonly enable_card: {
|
|
204
193
|
readonly type: "boolean";
|
|
205
|
-
readonly default_value:
|
|
206
|
-
readonly overrides: [
|
|
207
|
-
readonly if_any: [{
|
|
208
|
-
readonly key: "apiKey";
|
|
209
|
-
readonly type: "isAnyOf";
|
|
210
|
-
readonly values: ["OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4"];
|
|
211
|
-
}];
|
|
212
|
-
readonly value: false;
|
|
213
|
-
}];
|
|
194
|
+
readonly default_value: false;
|
|
195
|
+
readonly overrides: [];
|
|
214
196
|
};
|
|
215
197
|
readonly enable_brokerage: {
|
|
216
198
|
readonly type: "boolean";
|
|
217
199
|
readonly default_value: false;
|
|
218
|
-
readonly overrides: [Override<boolean>];
|
|
219
200
|
};
|
|
220
201
|
readonly enable_bluvo_brokerage: {
|
|
221
202
|
readonly type: "boolean";
|
|
@@ -231,7 +212,7 @@ export declare const flagConfig: {
|
|
|
231
212
|
readonly if_any: [{
|
|
232
213
|
readonly key: "apiKey";
|
|
233
214
|
readonly type: "isAnyOf";
|
|
234
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
215
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
235
216
|
}];
|
|
236
217
|
readonly value: true;
|
|
237
218
|
}];
|
|
@@ -250,7 +231,7 @@ export declare const flagConfig: {
|
|
|
250
231
|
readonly if_any: [{
|
|
251
232
|
readonly key: "apiKey";
|
|
252
233
|
readonly type: "isAnyOf";
|
|
253
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
234
|
+
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
254
235
|
}];
|
|
255
236
|
readonly value: true;
|
|
256
237
|
}, {
|