@funkit/connect 5.5.18 → 5.5.20
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 +44 -0
- package/dist/{chunk-VBAZNW44.js → chunk-ES634CAR.js} +1 -1
- package/dist/{chunk-H5N35KZJ.js → chunk-K4APSFTL.js} +1 -1
- package/dist/{chunk-5XBODEZO.js → chunk-OV3P5HQK.js} +1 -1
- package/dist/components/Box/Box.d.ts +21 -21
- package/dist/components/Dropdown/ChainDropdown.d.ts +2 -1
- package/dist/components/FunBottomBar/FunBottomBar.css.d.ts +1 -1
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -0
- package/dist/components/FunTooltip/FunTooltip.d.ts +5 -1
- package/dist/css/sprinkles.css.d.ts +21 -21
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +1 -1
- package/dist/hooks/useTokenChain.d.ts +1 -0
- package/dist/index.css +2688 -2643
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4679 -3911
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.d.ts +1 -0
- package/dist/modals/CheckoutModal/ConfirmationStep/ConfirmationStepLoading.d.ts +3 -0
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +4 -2
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -2
- package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +15 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/address.d.ts +7 -0
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +28 -0
- 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-KR6JBW5E.js → chunk-2GJQ4XZQ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-G73C6P5P.js → chunk-2HYNUNAS.js} +112 -40
- package/dist/wallets/walletConnectors/{chunk-2UCNRD7H.js → chunk-2KUBG3S6.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-FRGSRLTS.js → chunk-2L43XSW3.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-6ONTSPEY.js → chunk-2STUC6QL.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZSVTX6EK.js → chunk-362NXNTM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-MOOBCMMB.js → chunk-3CICVJUN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-A5APNTGL.js → chunk-5W7VDOCL.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-LMZMXEXL.js → chunk-7QONTUXT.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-W6N74MS3.js → chunk-A5N6B5UW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-3U3BMEH5.js → chunk-AFXHGWBH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-BVX4XGNP.js → chunk-BBOM42DL.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-NO7XMBB5.js → chunk-BOU4WKRZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-PB254NQ4.js → chunk-BPZ2XJO2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-PIUNLQJG.js → chunk-BYXPFMI7.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-GSOYKKIS.js → chunk-CJGUM55H.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-XYBEMO3C.js → chunk-CNPKISHN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SLOIIJGP.js → chunk-D6AOOO5F.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-WRA2DVJ7.js → chunk-DNSG5Q7V.js} +23 -9
- package/dist/wallets/walletConnectors/{chunk-ABFSXBE6.js → chunk-DRO6WYMM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-MSFKSQBY.js → chunk-EC6CHBSZ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-3NC26XLM.js → chunk-FKJJQNKX.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-P74YPRF6.js → chunk-HS3C7OQV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-LN7OD5EC.js → chunk-HWPKCIBE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZMYVTWDF.js → chunk-IFON7E6U.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-IDKVN5CF.js → chunk-J3LI3FYZ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-JXP2QPW7.js → chunk-JCHN6A47.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4UM4GTKZ.js → chunk-JWFF4AAL.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-DTRYS3MO.js → chunk-KIDC67XJ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-W5O4YSZN.js → chunk-LNEC5RNX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-LEXSM5KI.js → chunk-M3NZ6R2E.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-6LPM6LUQ.js → chunk-NT2HYJKW.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-63YLN6R5.js → chunk-NWIQNBJU.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-KFFJPS5R.js → chunk-OBOVHCEI.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-V57WLZEE.js → chunk-OL5ZO7E4.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-SJTXS4ZW.js → chunk-OLOIXTYS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-CTU6JCOK.js → chunk-OPAZMNA7.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ETTNDQQG.js → chunk-Q3H3TRBS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-25VW5TZP.js → chunk-QLVVUKYB.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-IPOC2VJX.js → chunk-RKPCWHXL.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-JROWU5BP.js → chunk-RNBEDQHF.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-R6RWZRFF.js → chunk-RZIO5TFF.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4AD7VI2P.js → chunk-SHBUZ7U7.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-AXWP3GD4.js → chunk-SULRQO27.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-3S2U24BJ.js → chunk-TCAGNB4B.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7GSNBOD3.js → chunk-TDAVGY5F.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-4WEHDI4Y.js → chunk-TDIEHTMB.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-545L7Y4M.js → chunk-UIASLGLV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-N2NIIUW6.js → chunk-UYGJO62F.js} +112 -40
- package/dist/wallets/walletConnectors/{chunk-HBA36GW3.js → chunk-VR4TBQ6S.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HKV7EMYZ.js → chunk-VWCLFMWJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ISIBREBO.js → chunk-VYBAYMP3.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VCVVV2K7.js → chunk-XWUJE7MW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-AD2KIJB6.js → chunk-ZSI5N4VV.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-6P2EMPZI.js → chunk-ZZZRUXZE.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 +78 -78
- 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 +9 -8
|
@@ -18,5 +18,6 @@ export type ConfirmationStepNext = {
|
|
|
18
18
|
isSendingToQr: boolean;
|
|
19
19
|
};
|
|
20
20
|
export declare const ConfirmationStepInfo: ModalStepInfo<FunCheckoutStep.CONFIRMATION>;
|
|
21
|
+
export declare const DEFAULT_CONTINUE_TEXT = "Confirm Order";
|
|
21
22
|
export declare function ConfirmationStep({ modalState, onNext, setModalState, }: ModalStepComponentProps<FunCheckoutStep.CONFIRMATION>): React.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { FunCheckoutStartingStep } from '~/providers/FunkitCheckoutContext';
|
|
2
3
|
import { type ConnectablePaymentMethodInfo, PaymentMethod, type PaymentMethodAccountInfo, type PaymentMethodBrokerageInfo, type PaymentMethodVirtualBankInfo } from '../../domains/paymentMethods';
|
|
3
4
|
import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
|
|
4
5
|
export type LoadingAccountState = CheckoutModalCommonState;
|
|
5
|
-
type
|
|
6
|
+
type UserEntryContext<T> = T & {
|
|
6
7
|
newUser?: boolean;
|
|
8
|
+
startingStep?: FunCheckoutStartingStep;
|
|
7
9
|
};
|
|
8
|
-
export type LoadingAccountNext =
|
|
10
|
+
export type LoadingAccountNext = UserEntryContext<{
|
|
9
11
|
chosenPaymentMethod: PaymentMethod.ACCOUNT_BALANCE;
|
|
10
12
|
paymentMethodInfo: PaymentMethodAccountInfo;
|
|
11
13
|
} | {
|
|
@@ -3,7 +3,7 @@ import { type BridgeCustomerNext, type BridgeCustomerState } from '~/modals/Chec
|
|
|
3
3
|
import { type BridgeKycNext, type BridgeKycState } from '~/modals/CheckoutModal/VirtualFiatAccount/BridgeKyc';
|
|
4
4
|
import { type ErrorScreenState } from '~/modals/CheckoutModal/VirtualFiatAccount/ErrorScreen';
|
|
5
5
|
import { type VirtualFiatAccountNext, type VirtualFiatAccountState } from '~/modals/CheckoutModal/VirtualFiatAccount/VirtualFiatAccount';
|
|
6
|
-
import type { FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
6
|
+
import type { FunCheckoutStartingStep, FunkitActiveCheckoutItem } from '../../providers/FunkitCheckoutContext';
|
|
7
7
|
import { type FunkitTextCustomizationsConfig } from '../../providers/FunkitConfigContext';
|
|
8
8
|
import { type CheckoutCompleteNext, type CheckoutCompleteState } from './CheckoutComplete/CheckoutComplete';
|
|
9
9
|
import { type CheckoutHelpState } from './CheckoutHelp/CheckoutHelp';
|
|
@@ -68,12 +68,13 @@ interface ModalStepInput<S extends FunCheckoutStep> {
|
|
|
68
68
|
state: CheckoutModalState<S>;
|
|
69
69
|
apiKey: string;
|
|
70
70
|
isDefiMode?: boolean;
|
|
71
|
+
isSourceNavWidgetEnabled: boolean;
|
|
71
72
|
}
|
|
72
73
|
export type ModalStepInfo<S extends FunCheckoutStep> = {
|
|
73
74
|
Component: ComponentType<ModalStepComponentProps<S>>;
|
|
74
75
|
disableBack?: (info: ModalStepInput<S>) => boolean;
|
|
75
76
|
/** Hides the close button in the Dialog Title element */
|
|
76
|
-
hideClose?: boolean;
|
|
77
|
+
hideClose?: (startingStep?: FunCheckoutStartingStep) => boolean;
|
|
77
78
|
onBack?(state: CheckoutModalState<S>, prevState: CheckoutModalState): CheckoutModalState;
|
|
78
79
|
onNext(state: CheckoutModalState<S>, payload: NextPayload<S>): CheckoutModalState;
|
|
79
80
|
showFullHeight?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { Hex } from 'viem';
|
|
3
3
|
import type { FunkitActiveWithdrawalItem, FunkitWithdrawalConfig } from '~/providers/FunkitCheckoutContext';
|
|
4
4
|
import { type WithdrawalFormData } from './useWithdrawal';
|
|
5
5
|
interface WithdrawContentProps {
|
|
@@ -16,6 +16,10 @@ export interface DynamicTargetAssetCandidate {
|
|
|
16
16
|
badgeText?: string;
|
|
17
17
|
targetAssetMinAmount?: number;
|
|
18
18
|
}
|
|
19
|
+
export declare enum FunCheckoutStartingStep {
|
|
20
|
+
SOURCE_CHANGE = "source_change",
|
|
21
|
+
CONFIRMATION = "confirmation"
|
|
22
|
+
}
|
|
19
23
|
export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'generateActionsParams' | 'customRecipient' | 'modalTitle' | 'iconSrc' | 'modalTitleMeta' | 'externalCheckoutUserId'> {
|
|
20
24
|
/** List of contract action params **/
|
|
21
25
|
generateActionsParams?: (targetAssetAmount: number, config?: {
|
|
@@ -41,6 +45,14 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
41
45
|
withdrawalSourceTokenBalance?: () => number;
|
|
42
46
|
/** Whether checkout should be started in Defi mode, which has various flow implications (most importantly targetAssetAmount must be set and is not editable throughout the checkout) */
|
|
43
47
|
isDefiMode?: boolean;
|
|
48
|
+
/** The step at which the checkout process should start */
|
|
49
|
+
startingStep?: FunCheckoutStartingStep;
|
|
50
|
+
/** Symbol of the source token. Required if startingStep is set to FunCheckoutStartingStep.CONFIRMATION. */
|
|
51
|
+
sourceTokenSymbol?: string;
|
|
52
|
+
/** ID of the source chain. Required if startingStep is set to FunCheckoutStartingStep.CONFIRMATION. */
|
|
53
|
+
sourceChain?: string;
|
|
54
|
+
/** Address of the source token on the source chain. Required if startingStep is set to FunCheckoutStartingStep.CONFIRMATION. */
|
|
55
|
+
sourceTokenAddress?: Address;
|
|
44
56
|
/** *****************************
|
|
45
57
|
* Miscellaneous configurations *
|
|
46
58
|
********************************/
|
|
@@ -50,6 +62,9 @@ export interface FunkitCheckoutConfig extends Omit<ApiFunkitCheckoutConfig, 'gen
|
|
|
50
62
|
dynamicTargetAssetCandidates?: DynamicTargetAssetCandidate[];
|
|
51
63
|
/** minimal toAmount needed to proceed checkout. Checked after quote */
|
|
52
64
|
targetAssetMinAmount?: number;
|
|
65
|
+
/** For Checkout with Custom Action, QRCode needs special action type
|
|
66
|
+
* to specify the onchain action to execute after deposit */
|
|
67
|
+
qrcodeActionType?: string;
|
|
53
68
|
}
|
|
54
69
|
export interface FunkitWithdrawalConfig {
|
|
55
70
|
/** Title to show in the checkout modal. Defaults to "Checkout" **/
|
package/dist/themes/baseTheme.js
CHANGED
package/dist/themes/darkTheme.js
CHANGED
package/dist/utils/address.d.ts
CHANGED
|
@@ -6,3 +6,10 @@ export declare const getWalletLabel: (textCustomizations: FunkitTextCustomizatio
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function verifyIsBech32(address: string): Error | undefined;
|
|
8
8
|
export declare function isDydxAddress(address: string): boolean;
|
|
9
|
+
export declare function isAddressSupported(address: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Check if the recipient address is compatible with selected chain
|
|
12
|
+
* Will need to update this as we enable additional chains in the future.
|
|
13
|
+
* This currently works as we only support evm and solana chains for withdrawal.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isAddressCompatibleWithChain(address: string, chainId: number): boolean;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { type Address, type Hex } from 'viem';
|
|
|
5
5
|
import type { UseConfigReturnType } from 'wagmi';
|
|
6
6
|
import type { ServerCheckoutConfig } from '~/domains/clientMetadata';
|
|
7
7
|
import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
8
|
-
import type
|
|
8
|
+
import { type FunkitCheckoutActionParams, type FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
9
9
|
export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
|
|
10
10
|
export declare const MESH_TIME_ESTIMATE_MS = 300000;
|
|
11
11
|
export declare const BANK_TIME_ESTIMATE_MS = 0;
|
|
@@ -265,6 +265,14 @@ export declare const flagConfig: {
|
|
|
265
265
|
pct: number;
|
|
266
266
|
}[];
|
|
267
267
|
value: true;
|
|
268
|
+
} | {
|
|
269
|
+
if_any: {
|
|
270
|
+
key: "apiKey";
|
|
271
|
+
type: "isAnyOf";
|
|
272
|
+
values: string[];
|
|
273
|
+
}[];
|
|
274
|
+
value: true;
|
|
275
|
+
if_all?: undefined;
|
|
268
276
|
} | {
|
|
269
277
|
if_any: {
|
|
270
278
|
key: "apiKey";
|
|
@@ -299,4 +307,24 @@ export declare const flagConfig: {
|
|
|
299
307
|
type: "string";
|
|
300
308
|
default_value: string;
|
|
301
309
|
};
|
|
310
|
+
enable_source_navigation_widget: {
|
|
311
|
+
type: "boolean";
|
|
312
|
+
default_value: false;
|
|
313
|
+
};
|
|
314
|
+
token_transfer_default_tokens: {
|
|
315
|
+
type: "string";
|
|
316
|
+
default_value: string;
|
|
317
|
+
overrides: {
|
|
318
|
+
if_any: {
|
|
319
|
+
key: "apiKey";
|
|
320
|
+
type: "isAnyOf";
|
|
321
|
+
values: string[];
|
|
322
|
+
}[];
|
|
323
|
+
value: string;
|
|
324
|
+
}[];
|
|
325
|
+
};
|
|
326
|
+
chain_id_sort_order: {
|
|
327
|
+
type: "string";
|
|
328
|
+
default_value: string;
|
|
329
|
+
};
|
|
302
330
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/clvWallet/clvWallet.ts
|
|
11
11
|
var clvWallet = ({
|
|
@@ -5,50 +5,122 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
getInjectedConnector,
|
|
7
7
|
hasInjectedProvider
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
11
|
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
12
|
function isMetaMask(ethereum) {
|
|
13
|
-
if (!ethereum?.isMetaMask)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (ethereum.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (ethereum.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (ethereum.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (ethereum.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (ethereum.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (ethereum.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (ethereum.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
if (ethereum.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (ethereum.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (ethereum.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (ethereum.
|
|
50
|
-
|
|
51
|
-
|
|
13
|
+
if (!ethereum?.isMetaMask) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (ethereum.isApexWallet) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (ethereum.isAvalanche) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (ethereum.isBackpack) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (ethereum.isBifrost) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (ethereum.isBitKeep) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (ethereum.isBitski) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
if (ethereum.isBlockWallet) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
if (ethereum.isCoinbaseWallet) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (ethereum.isDawn) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (ethereum.isEnkrypt) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
if (ethereum.isExodus) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
if (ethereum.isFrame) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
if (ethereum.isFrontier) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
if (ethereum.isGamestop) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
if (ethereum.isHyperPay) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (ethereum.isImToken) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
if (ethereum.isKuCoinWallet) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
if (ethereum.isMathWallet) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
if (ethereum.isNestWallet) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (ethereum.isOpera) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
if (ethereum.isPhantom) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
if (ethereum.isPortal) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (ethereum.isRabby) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (ethereum.isRainbow) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
if (ethereum.isStatus) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
if (ethereum.isTalisman) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
if (ethereum.isTally) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (ethereum.isTokenPocket) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
if (ethereum.isTokenary) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
if (ethereum.isXDEFI) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
if (ethereum.isZeal) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
if (ethereum.isZerion) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
52
124
|
return true;
|
|
53
125
|
}
|
|
54
126
|
var metaMaskWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
2
|
import {
|
|
7
3
|
getWalletConnectConnector
|
|
8
4
|
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
11
|
import { isMobile } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector
|
|
4
|
-
} from "./chunk-23WIEY36.js";
|
|
5
2
|
import {
|
|
6
3
|
getInjectedConnector,
|
|
7
4
|
hasInjectedProvider
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DNSG5Q7V.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-23WIEY36.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
11
11
|
import { isAndroid } from "@funkit/utils";
|