@funkit/connect 6.14.23-next.2 → 6.15.2
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 +55 -20
- package/dist/__generated__/default_configs.d.ts +7 -0
- package/dist/{chunk-3SMGLDNF.js → chunk-KG5Q63KL.js} +4 -0
- package/dist/{chunk-XH2UUILF.js → chunk-L3BEU75V.js} +4 -0
- package/dist/components/Box/Box.d.ts +7 -7
- package/dist/components/Dialog/Dialog.d.ts +1 -2
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
- package/dist/components/FunAsset/FunAssetItem.d.ts +2 -1
- package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +2 -1
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +13 -12
- package/dist/components/YouPayYouReceive/YouPayYouReceive.d.ts +2 -1
- package/dist/consts/customers.d.ts +2 -0
- package/dist/css/sprinkles.css.d.ts +15 -7
- package/dist/domains/clientMetadata.d.ts +9 -14
- package/dist/domains/quote.d.ts +2 -3
- package/dist/hooks/useBluvo.d.ts +107 -13
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
- package/dist/index.css +850 -765
- package/dist/index.js +2493 -2696
- package/dist/modals/CheckoutModal/ConfirmationStep/useAccountBalanceTransfer.d.ts +1 -1
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +0 -5
- package/dist/providers/FunkitCheckoutContext/index.d.ts +57 -0
- package/dist/providers/{FunkitCheckoutContext.track.d.ts → FunkitCheckoutContext/track.d.ts} +1 -1
- package/dist/providers/{FunkitCheckoutContext.d.ts → FunkitCheckoutContext/types.d.ts} +4 -56
- package/dist/providers/FunkitQuoteContext.d.ts +1 -1
- package/dist/providers/FunkitThemeProvider.d.ts +12 -0
- package/dist/providers/GeneralWalletProvider.d.ts +3 -7
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +3 -7
- 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 +35 -35
- 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 -10
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +0 -32
- package/dist/wallets/walletConnectors/{chunk-M3NZ6R2E.js → chunk-2GJQ4XZQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2KUBG3S6.js → chunk-3CICVJUN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TDAVGY5F.js → chunk-5W7VDOCL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TDIEHTMB.js → chunk-AFXHGWBH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FKJJQNKX.js → chunk-CJGUM55H.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-7QONTUXT.js → chunk-CNPKISHN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NT2HYJKW.js → chunk-EC6CHBSZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2L43XSW3.js → chunk-J3LI3FYZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VR4TBQ6S.js → chunk-JCHN6A47.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OBOVHCEI.js → chunk-KIDC67XJ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2STUC6QL.js → chunk-LNEC5RNX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SULRQO27.js → chunk-Q3H3TRBS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NWIQNBJU.js → chunk-QLVVUKYB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VYBAYMP3.js → chunk-RKPCWHXL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-A5N6B5UW.js → chunk-UIASLGLV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2HYNUNAS.js → chunk-UYGJO62F.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TCAGNB4B.js → chunk-VWCLFMWJ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JWFF4AAL.js → chunk-ZSI5N4VV.js} +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
|
-
export declare function useAccountBalancePostCheckout(setPostCheckoutStepMessage: (s: string) => void
|
|
2
|
+
export declare function useAccountBalancePostCheckout(setPostCheckoutStepMessage: (s: string) => void): (depositAddress: Address) => Promise<void>;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import type { Operation } from '@funkit/core';
|
|
2
1
|
import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
3
2
|
import { type CheckoutQuoteResult } from '~/providers/FunkitQuoteContext';
|
|
4
3
|
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
5
|
-
import { LoginType } from '../../providers/GeneralWalletProvider';
|
|
6
4
|
export interface SourceAssetConfirmed {
|
|
7
5
|
isQuoteSuccess: boolean;
|
|
8
6
|
maxTargetAssetAmount: number | undefined;
|
|
9
7
|
}
|
|
10
8
|
export declare function preparePaymentMethodInfo(selectedPaymentMethodInfo: PaymentMethodInfo | null): PaymentMethodInfo;
|
|
11
|
-
export declare function fetchSponsorInitialTransferGasLimit(selectedPaymentMethodInfo: PaymentMethodInfo | null, loginType: LoginType, generateCheckoutTransferOpItems: (toAddress: string, tokenAmount: number | string) => Promise<{
|
|
12
|
-
transferOp: Operation | null;
|
|
13
|
-
}>): Promise<number>;
|
|
14
9
|
/**
|
|
15
10
|
*
|
|
16
11
|
* Note: this hook is EXTREMELY confusing in what is doing
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
import { type PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
4
|
+
import type { AssetHoldingsItem } from '../../utils/assets';
|
|
5
|
+
import type { WithdrawalClient } from '../../wallets/Wallet';
|
|
6
|
+
import { type FunkitCheckoutQuoteResult } from '../FunkitHistoryContext';
|
|
7
|
+
import type { FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem, FunkitCheckoutConfig, FunkitWithdrawalConfig, UseFunkitCheckoutProps, UseFunkitCheckoutPropsWithFullConfig } from './types';
|
|
8
|
+
export * from './types';
|
|
9
|
+
interface FunkitCheckoutContextInterface {
|
|
10
|
+
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
11
|
+
getCheckoutProgress(checkoutId: string): CheckoutProgress | undefined;
|
|
12
|
+
setCheckoutProgress(checkoutId: string, progress: CheckoutProgress): void;
|
|
13
|
+
initNewCheckout(initSettings: UseFunkitCheckoutPropsWithFullConfig): string;
|
|
14
|
+
updateModalTitleMeta(newMeta: string): void;
|
|
15
|
+
updateSourceAsset(selectedSource: Omit<AssetHoldingsItem, 'amount' | 'usdAmount' | 'chainSymbolKey'>): void;
|
|
16
|
+
updateTargetAssetAmount(newTargetAssetAmount: number): void;
|
|
17
|
+
updateTargetAsset(asset: {
|
|
18
|
+
targetAsset: Address;
|
|
19
|
+
targetChain: string;
|
|
20
|
+
targetAssetTicker: string;
|
|
21
|
+
targetAssetMinAmount: number | undefined;
|
|
22
|
+
iconSrc: string | undefined;
|
|
23
|
+
}): void;
|
|
24
|
+
updateSelectedPaymentMethodInfo(newPaymentMethodInfo: PaymentMethodInfo): void;
|
|
25
|
+
updateCustomRecipient: (recipient: Address) => void;
|
|
26
|
+
confirmCheckout(quote: FunkitCheckoutQuoteResult, stepMessageSetter: (m: string) => void, withdrawalClient?: WithdrawalClient): Promise<Address>;
|
|
27
|
+
cancelCheckout(depositAddress: Address): Promise<boolean>;
|
|
28
|
+
/** @deprecated to be removed after quote migration is finished (historically named setCheckoutQuote) */
|
|
29
|
+
setCheckout: (checkout: FunkitActiveCheckoutItem) => void;
|
|
30
|
+
setCompletedTimestamp(timestampMs: number): void;
|
|
31
|
+
withdrawalItem: FunkitActiveWithdrawalItem | null;
|
|
32
|
+
initNewWithdrawal(initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>, config: UseFunkitCheckoutPropsWithFullConfig): string;
|
|
33
|
+
updateWithdrawalSourceAssetAmount(newSourceAmount: number): void;
|
|
34
|
+
}
|
|
35
|
+
export type CheckoutProgressStep = 1 | 2;
|
|
36
|
+
export type CheckoutProgress = {
|
|
37
|
+
step: CheckoutProgressStep;
|
|
38
|
+
};
|
|
39
|
+
export declare function FunkitCheckoutProvider({ children }: {
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
}): React.JSX.Element;
|
|
42
|
+
export declare function useCheckoutContext(): FunkitCheckoutContextInterface;
|
|
43
|
+
/**
|
|
44
|
+
* External hook for user to kickstart a checkout in their app
|
|
45
|
+
*/
|
|
46
|
+
export declare function useFunkitCheckout(props: UseFunkitCheckoutPropsWithFullConfig): {
|
|
47
|
+
beginCheckout: (config?: Partial<FunkitCheckoutConfig>) => Promise<{
|
|
48
|
+
isActivated: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
beginWithdrawal: (config: FunkitWithdrawalConfig) => void;
|
|
51
|
+
};
|
|
52
|
+
export declare function useFunkitCheckout(props: UseFunkitCheckoutProps): {
|
|
53
|
+
beginCheckout: (config: FunkitCheckoutConfig) => Promise<{
|
|
54
|
+
isActivated: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
beginWithdrawal: (config: FunkitWithdrawalConfig) => void;
|
|
57
|
+
};
|
package/dist/providers/{FunkitCheckoutContext.track.d.ts → FunkitCheckoutContext/track.d.ts}
RENAMED
|
@@ -3,7 +3,7 @@ import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
|
3
3
|
import { CheckoutModalEvent } from '~/hooks/track/CheckoutModalEvent';
|
|
4
4
|
import type { WithdrawModalEvent } from '~/hooks/track/WithdrawModalEvent';
|
|
5
5
|
import type { TrackEventData } from '~/hooks/track/useTrack';
|
|
6
|
-
import type { FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem } from './
|
|
6
|
+
import type { FunkitActiveCheckoutItem, FunkitActiveWithdrawalItem } from './index';
|
|
7
7
|
export declare const trackEventFromActiveItem: (activeItem: FunkitActiveCheckoutItem | FunkitActiveWithdrawalItem, eventName: CheckoutModalEvent | WithdrawModalEvent) => TrackEventData;
|
|
8
8
|
export declare const trackEventFromDirectExecutionConfirmed: ({ txHash, checkoutItem, latestQuote, }: {
|
|
9
9
|
txHash: RelayTxHash<RelayVmType>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FunAddress } from '@funkit/api-base';
|
|
2
2
|
import type { ApiCheckoutClientMetadata, ApiFunkitCheckoutActionParams, ApiFunkitCheckoutConfig } from '@funkit/utils';
|
|
3
|
-
import React, { type ReactNode } from 'react';
|
|
4
3
|
import type { Address } from 'viem';
|
|
5
|
-
import {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import { type FunkitCheckoutQuoteResult } from './FunkitHistoryContext';
|
|
4
|
+
import type { PaymentMethodInfo } from '../../domains/paymentMethods';
|
|
5
|
+
import type { WithdrawalClient } from '../../wallets/Wallet';
|
|
6
|
+
import type { FunkitCheckoutQuoteResult } from '../FunkitHistoryContext';
|
|
9
7
|
export type FunkitCheckoutActionParams = ApiFunkitCheckoutActionParams;
|
|
10
8
|
export interface TokenInfo {
|
|
11
9
|
tokenAddress: Address;
|
|
@@ -184,53 +182,3 @@ export interface FunkitActiveWithdrawalItem {
|
|
|
184
182
|
initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>;
|
|
185
183
|
withdrawalSourceTokenBalance: () => number;
|
|
186
184
|
}
|
|
187
|
-
interface FunkitCheckoutContextInterface {
|
|
188
|
-
checkoutItem: FunkitActiveCheckoutItem | null;
|
|
189
|
-
getCheckoutProgress(checkoutId: string): CheckoutProgress | undefined;
|
|
190
|
-
setCheckoutProgress(checkoutId: string, progress: CheckoutProgress): void;
|
|
191
|
-
initNewCheckout(initSettings: UseFunkitCheckoutPropsWithFullConfig): string;
|
|
192
|
-
updateModalTitleMeta(newMeta: string): void;
|
|
193
|
-
updateSourceAsset(selectedSource: Omit<AssetHoldingsItem, 'amount' | 'usdAmount' | 'chainSymbolKey'>): void;
|
|
194
|
-
updateTargetAssetAmount(newTargetAssetAmount: number): void;
|
|
195
|
-
updateTargetAsset(asset: {
|
|
196
|
-
targetAsset: Address;
|
|
197
|
-
targetChain: string;
|
|
198
|
-
targetAssetTicker: string;
|
|
199
|
-
targetAssetMinAmount: number | undefined;
|
|
200
|
-
iconSrc: string | undefined;
|
|
201
|
-
}): void;
|
|
202
|
-
updateSelectedPaymentMethodInfo(newPaymentMethodInfo: PaymentMethodInfo): void;
|
|
203
|
-
updateCustomRecipient: (recipient: Address) => void;
|
|
204
|
-
confirmCheckout(shouldBatchOpBypassInit: boolean, quote: FunkitCheckoutQuoteResult, stepMessageSetter: (m: string) => void, withdrawalClient?: WithdrawalClient): Promise<Address>;
|
|
205
|
-
cancelCheckout(depositAddress: Address): Promise<boolean>;
|
|
206
|
-
/** @deprecated to be removed after quote migration is finished (historically named setCheckoutQuote) */
|
|
207
|
-
setCheckout: (checkout: FunkitActiveCheckoutItem) => void;
|
|
208
|
-
setCompletedTimestamp(timestampMs: number): void;
|
|
209
|
-
withdrawalItem: FunkitActiveWithdrawalItem | null;
|
|
210
|
-
initNewWithdrawal(initSettings: Partial<UseFunkitCheckoutPropsWithFullConfig>, config: UseFunkitCheckoutPropsWithFullConfig): string;
|
|
211
|
-
updateWithdrawalSourceAssetAmount(newSourceAmount: number): void;
|
|
212
|
-
}
|
|
213
|
-
export type CheckoutProgressStep = 1 | 2;
|
|
214
|
-
export type CheckoutProgress = {
|
|
215
|
-
step: CheckoutProgressStep;
|
|
216
|
-
};
|
|
217
|
-
export declare function FunkitCheckoutProvider({ children }: {
|
|
218
|
-
children: ReactNode;
|
|
219
|
-
}): React.JSX.Element;
|
|
220
|
-
export declare function useCheckoutContext(): FunkitCheckoutContextInterface;
|
|
221
|
-
/**
|
|
222
|
-
* External hook for user to kickstart a checkout in their app
|
|
223
|
-
*/
|
|
224
|
-
export declare function useFunkitCheckout(props: UseFunkitCheckoutPropsWithFullConfig): {
|
|
225
|
-
beginCheckout: (config?: Partial<FunkitCheckoutConfig>) => Promise<{
|
|
226
|
-
isActivated: boolean;
|
|
227
|
-
}>;
|
|
228
|
-
beginWithdrawal: (config: FunkitWithdrawalConfig) => void;
|
|
229
|
-
};
|
|
230
|
-
export declare function useFunkitCheckout(props: UseFunkitCheckoutProps): {
|
|
231
|
-
beginCheckout: (config: FunkitCheckoutConfig) => Promise<{
|
|
232
|
-
isActivated: boolean;
|
|
233
|
-
}>;
|
|
234
|
-
beginWithdrawal: (config: FunkitWithdrawalConfig) => void;
|
|
235
|
-
};
|
|
236
|
-
export {};
|
|
@@ -37,7 +37,7 @@ interface CheckoutQuoteState {
|
|
|
37
37
|
}
|
|
38
38
|
interface FunkitQuoteContextInterface extends CheckoutQuoteState {
|
|
39
39
|
clearCheckoutQuoteMessages: () => void;
|
|
40
|
-
getCheckoutQuote: (
|
|
40
|
+
getCheckoutQuote: (newPaymentMethodInfo: PaymentMethodInfo, disableInformationStreaming?: boolean) => Promise<GetCheckoutQuoteResponse>;
|
|
41
41
|
setCheckoutQuote: Dispatch<React.SetStateAction<FunkitCheckoutQuoteResult | null>>;
|
|
42
42
|
setQuoteProgress: (state: Omit<CheckoutQuoteState, 'latestQuote'>) => void;
|
|
43
43
|
}
|
|
@@ -238,6 +238,10 @@ export declare const useActiveTheme: () => {
|
|
|
238
238
|
buttonFocusedShadowTertiary: string;
|
|
239
239
|
buttonHoverShadowTertiary: string;
|
|
240
240
|
buttonDisabledShadow: string;
|
|
241
|
+
buttonInnerShadow: string;
|
|
242
|
+
buttonFocusedInnerShadow: string;
|
|
243
|
+
buttonHoverInnerShadow: string;
|
|
244
|
+
buttonDisabledInnerShadow: string;
|
|
241
245
|
selectedDropdownItem: string;
|
|
242
246
|
};
|
|
243
247
|
spacing: {
|
|
@@ -472,6 +476,10 @@ export declare const useActiveTheme: () => {
|
|
|
472
476
|
buttonFocusedShadowTertiary: string;
|
|
473
477
|
buttonHoverShadowTertiary: string;
|
|
474
478
|
buttonDisabledShadow: string;
|
|
479
|
+
buttonInnerShadow: string;
|
|
480
|
+
buttonFocusedInnerShadow: string;
|
|
481
|
+
buttonHoverInnerShadow: string;
|
|
482
|
+
buttonDisabledInnerShadow: string;
|
|
475
483
|
selectedDropdownItem: string;
|
|
476
484
|
};
|
|
477
485
|
spacing: {
|
|
@@ -704,6 +712,10 @@ export declare const useActiveTheme: () => {
|
|
|
704
712
|
buttonFocusedShadowTertiary: string;
|
|
705
713
|
buttonHoverShadowTertiary: string;
|
|
706
714
|
buttonDisabledShadow: string;
|
|
715
|
+
buttonInnerShadow: string;
|
|
716
|
+
buttonFocusedInnerShadow: string;
|
|
717
|
+
buttonHoverInnerShadow: string;
|
|
718
|
+
buttonDisabledInnerShadow: string;
|
|
707
719
|
selectedDropdownItem: string;
|
|
708
720
|
};
|
|
709
721
|
spacing: {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { AssetBalanceInfo } from '@funkit/api-base';
|
|
2
|
-
import type { Auth, FunWallet } from '@funkit/core';
|
|
3
2
|
import React, { type ReactNode } from 'react';
|
|
4
3
|
import type { Address } from 'viem';
|
|
5
|
-
import { type
|
|
6
|
-
import type { SwitchChainVariables } from 'wagmi/query';
|
|
4
|
+
import { type UseDisconnectReturnType, type UseReconnectReturnType } from 'wagmi';
|
|
7
5
|
import { type FunkitUserInfo } from '../consts/funkit';
|
|
8
6
|
/** AssetBalanceInfo with known price and totalUsdValue */
|
|
9
7
|
export interface KnownAssetBalanceInfo extends AssetBalanceInfo {
|
|
@@ -20,8 +18,6 @@ export interface GeneralWalletContextProps {
|
|
|
20
18
|
isUserLoggedIn: boolean;
|
|
21
19
|
loginType: LoginType;
|
|
22
20
|
userInfo: FunkitUserInfo;
|
|
23
|
-
funWallet: FunWallet | null;
|
|
24
|
-
funWalletAuth: Auth | null;
|
|
25
21
|
handleLogout: () => void;
|
|
26
22
|
logoutSymbol: symbol | undefined;
|
|
27
23
|
}
|
|
@@ -104,7 +100,7 @@ export declare const useFunkitReconnect: () => UseReconnectReturnType;
|
|
|
104
100
|
export declare const useFunkitSwitchChains: ({ onSettled, }: {
|
|
105
101
|
onSettled?: () => void;
|
|
106
102
|
}) => {
|
|
107
|
-
switchChain: (
|
|
108
|
-
switchChainAsync: (
|
|
103
|
+
switchChain: import("wagmi/query").SwitchChainMutate<import("wagmi").Config, void>;
|
|
104
|
+
switchChainAsync: import("wagmi/query").SwitchChainMutateAsync<import("wagmi").Config, void>;
|
|
109
105
|
pendingChainId: number | null;
|
|
110
106
|
};
|
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ export declare function getQuoteExchangeRate(config: FunkitCheckoutConfig, baseQ
|
|
|
129
129
|
*/
|
|
130
130
|
export declare function getMaxTargetAssetAmountEstimate(sourceAssetBalance: number, config: FunkitCheckoutConfig, quoteResult: FunkitCheckoutQuoteResult): number;
|
|
131
131
|
export declare function getTokenDecimals(wagmiConfig: Config, chainId: string, tokenAddress: Address): Promise<number>;
|
|
132
|
-
export declare function evaluateCheckoutGenerateActionsParams(config: FunkitCheckoutConfig
|
|
132
|
+
export declare function evaluateCheckoutGenerateActionsParams(config: FunkitCheckoutConfig): Promise<FunkitCheckoutActionParams[]>;
|
|
133
133
|
export declare function isCheckoutCrFlow(config: FunkitCheckoutConfig): boolean;
|
|
134
134
|
/**
|
|
135
135
|
* @param config can be either be a config from live checkoutItem OR from checkout history's clientMetadata
|
|
@@ -49,7 +49,7 @@ export declare const flagConfig: {
|
|
|
49
49
|
readonly if_any: [{
|
|
50
50
|
readonly key: "apiKey";
|
|
51
51
|
readonly type: "isAnyOf";
|
|
52
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc"];
|
|
52
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4", "BPVeP8zThG467vVIYzuiu5aVWAkS9KiR6tT1TdTP", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz"];
|
|
53
53
|
}];
|
|
54
54
|
readonly value: true;
|
|
55
55
|
}];
|
|
@@ -97,10 +97,6 @@ export declare const flagConfig: {
|
|
|
97
97
|
readonly value: string;
|
|
98
98
|
}];
|
|
99
99
|
};
|
|
100
|
-
readonly enable_frog_proxy_server: {
|
|
101
|
-
readonly type: "boolean";
|
|
102
|
-
readonly default_value: true;
|
|
103
|
-
};
|
|
104
100
|
readonly checkout_time_estimate_overrides: {
|
|
105
101
|
readonly type: "string";
|
|
106
102
|
readonly default_value: "";
|
|
@@ -219,13 +215,13 @@ export declare const flagConfig: {
|
|
|
219
215
|
readonly value: true;
|
|
220
216
|
}, Override<boolean>, {
|
|
221
217
|
readonly if_all: [{
|
|
222
|
-
readonly pct:
|
|
218
|
+
readonly pct: 30;
|
|
223
219
|
readonly type: "pctRollout";
|
|
224
220
|
readonly key: "userId";
|
|
225
221
|
}, {
|
|
226
222
|
readonly key: "apiKey";
|
|
227
223
|
readonly type: "isAnyOf";
|
|
228
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
224
|
+
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
|
|
229
225
|
}];
|
|
230
226
|
readonly if_any: [{
|
|
231
227
|
readonly pct: 2;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
xdefiWallet
|
|
4
|
-
} from "./chunk-BOU4WKRZ.js";
|
|
5
2
|
import {
|
|
6
3
|
zealWallet
|
|
7
4
|
} from "./chunk-RNBEDQHF.js";
|
|
8
5
|
import {
|
|
9
6
|
zerionWallet
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q3H3TRBS.js";
|
|
8
|
+
import {
|
|
9
|
+
walletConnectWallet
|
|
10
|
+
} from "./chunk-NP5QGWNL.js";
|
|
11
11
|
import {
|
|
12
12
|
subWallet
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZSI5N4VV.js";
|
|
14
14
|
import {
|
|
15
15
|
tahoWallet
|
|
16
16
|
} from "./chunk-ZZZRUXZE.js";
|
|
17
|
-
import {
|
|
18
|
-
tokenPocketWallet
|
|
19
|
-
} from "./chunk-2L43XSW3.js";
|
|
20
17
|
import {
|
|
21
18
|
talismanWallet
|
|
22
19
|
} from "./chunk-DRO6WYMM.js";
|
|
20
|
+
import {
|
|
21
|
+
tokenPocketWallet
|
|
22
|
+
} from "./chunk-J3LI3FYZ.js";
|
|
23
23
|
import {
|
|
24
24
|
tokenaryWallet
|
|
25
25
|
} from "./chunk-D6AOOO5F.js";
|
|
26
26
|
import {
|
|
27
27
|
trustWallet
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RKPCWHXL.js";
|
|
29
29
|
import {
|
|
30
30
|
uniswapWallet
|
|
31
31
|
} from "./chunk-LH7BMNFZ.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
xdefiWallet
|
|
34
|
+
} from "./chunk-BOU4WKRZ.js";
|
|
35
35
|
import {
|
|
36
36
|
phantomWallet
|
|
37
37
|
} from "./chunk-362NXNTM.js";
|
|
@@ -40,13 +40,13 @@ import {
|
|
|
40
40
|
} from "./chunk-BBOM42DL.js";
|
|
41
41
|
import {
|
|
42
42
|
rainbowWallet
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3CICVJUN.js";
|
|
44
44
|
import {
|
|
45
45
|
ramperWallet
|
|
46
46
|
} from "./chunk-BYXPFMI7.js";
|
|
47
47
|
import {
|
|
48
48
|
roninWallet
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-QLVVUKYB.js";
|
|
50
50
|
import {
|
|
51
51
|
safeWallet
|
|
52
52
|
} from "./chunk-BQQQL6UD.js";
|
|
@@ -55,13 +55,13 @@ import {
|
|
|
55
55
|
} from "./chunk-RZIO5TFF.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-EC6CHBSZ.js";
|
|
59
59
|
import {
|
|
60
60
|
ledgerWallet
|
|
61
61
|
} from "./chunk-BRBKM4PW.js";
|
|
62
62
|
import {
|
|
63
63
|
metaMaskWallet
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-UYGJO62F.js";
|
|
65
65
|
import {
|
|
66
66
|
mewWallet
|
|
67
67
|
} from "./chunk-OL5ZO7E4.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
} from "./chunk-ADIXAKUL.js";
|
|
71
71
|
import {
|
|
72
72
|
okxWallet
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AFXHGWBH.js";
|
|
74
74
|
import {
|
|
75
75
|
omniWallet
|
|
76
76
|
} from "./chunk-7CUY5G6R.js";
|
|
@@ -82,16 +82,16 @@ import {
|
|
|
82
82
|
} from "./chunk-SHBUZ7U7.js";
|
|
83
83
|
import {
|
|
84
84
|
foxWallet
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CNPKISHN.js";
|
|
86
|
+
import {
|
|
87
|
+
frontierWallet
|
|
88
|
+
} from "./chunk-VWCLFMWJ.js";
|
|
86
89
|
import {
|
|
87
90
|
frameWallet
|
|
88
91
|
} from "./chunk-IFON7E6U.js";
|
|
89
|
-
import {
|
|
90
|
-
frontierWallet
|
|
91
|
-
} from "./chunk-TCAGNB4B.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-CJGUM55H.js";
|
|
95
95
|
import {
|
|
96
96
|
imTokenWallet
|
|
97
97
|
} from "./chunk-COZ7MIQS.js";
|
|
@@ -101,21 +101,21 @@ import {
|
|
|
101
101
|
import {
|
|
102
102
|
kresusWallet
|
|
103
103
|
} from "./chunk-MJXPRJZT.js";
|
|
104
|
+
import {
|
|
105
|
+
bybitWallet
|
|
106
|
+
} from "./chunk-LNEC5RNX.js";
|
|
104
107
|
import {
|
|
105
108
|
clvWallet
|
|
106
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-2GJQ4XZQ.js";
|
|
107
110
|
import {
|
|
108
111
|
coin98Wallet
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import {
|
|
111
|
-
bybitWallet
|
|
112
|
-
} from "./chunk-2STUC6QL.js";
|
|
112
|
+
} from "./chunk-KIDC67XJ.js";
|
|
113
113
|
import {
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-H4IRCEZN.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-JCHN6A47.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-HWPKCIBE.js";
|
|
@@ -125,29 +125,29 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-OLOIXTYS.js";
|
|
128
|
+
import {
|
|
129
|
+
bifrostWallet
|
|
130
|
+
} from "./chunk-UIASLGLV.js";
|
|
128
131
|
import {
|
|
129
132
|
argentWallet
|
|
130
133
|
} from "./chunk-WSQ2YJO2.js";
|
|
131
|
-
import {
|
|
132
|
-
bifrostWallet
|
|
133
|
-
} from "./chunk-A5N6B5UW.js";
|
|
134
134
|
import {
|
|
135
135
|
bitgetWallet
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-5W7VDOCL.js";
|
|
137
137
|
import {
|
|
138
138
|
bitskiWallet
|
|
139
139
|
} from "./chunk-HS3C7OQV.js";
|
|
140
140
|
import {
|
|
141
141
|
bitverseWallet
|
|
142
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
143
|
-
import {
|
|
144
|
-
bloomWallet
|
|
145
|
-
} from "./chunk-S27IADFU.js";
|
|
146
|
-
import "./chunk-23WIEY36.js";
|
|
147
143
|
import {
|
|
148
144
|
braveWallet
|
|
149
145
|
} from "./chunk-BPZ2XJO2.js";
|
|
150
146
|
import "./chunk-DNSG5Q7V.js";
|
|
147
|
+
import {
|
|
148
|
+
bloomWallet
|
|
149
|
+
} from "./chunk-S27IADFU.js";
|
|
150
|
+
import "./chunk-23WIEY36.js";
|
|
151
151
|
export {
|
|
152
152
|
argentWallet,
|
|
153
153
|
bifrostWallet,
|