@funkit/connect 9.7.0 → 9.7.2-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/__generated__/default_configs.d.ts +3 -5
  3. package/dist/__generated__/default_feature_gates.d.ts +3 -0
  4. package/dist/chunk-64NZSUGQ.js +368 -0
  5. package/dist/chunk-B2B6HDIE.js +238 -0
  6. package/dist/chunk-OQNN7EMQ.js +238 -0
  7. package/dist/chunk-S65TG73G.js +247 -0
  8. package/dist/chunk-VLAOBEJN.js +247 -0
  9. package/dist/clients/chunk-SBQ2UUPK.js +214 -0
  10. package/dist/clients/fanatics.css +1 -1
  11. package/dist/clients/lighter.d.ts +138 -0
  12. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
  13. package/dist/components/FunPayments/FunPaymentMethods.d.ts +8 -4
  14. package/dist/hooks/queries/useRecentDeposits.d.ts +2 -0
  15. package/dist/hooks/track/CheckoutModalEvent.d.ts +3 -1
  16. package/dist/hooks/track/CheckoutTrackingContext.d.ts +60 -0
  17. package/dist/hooks/useIsUserUnderComplianceReview.d.ts +1 -0
  18. package/dist/hooks/useTokenChain.d.ts +21 -0
  19. package/dist/index.css +10 -10
  20. package/dist/index.js +745 -656
  21. package/dist/modals/CheckoutModal/SourceChange/ComplianceReviewBanner.d.ts +6 -0
  22. package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +2 -1
  23. package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +2 -1
  24. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +17 -0
  25. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.d.ts +6 -0
  26. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +76 -0
  27. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +27 -0
  28. package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +16 -0
  29. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
  30. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +11 -0
  31. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +9 -0
  32. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +15 -0
  33. package/dist/modals/WithdrwalModal/types.d.ts +5 -0
  34. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +24 -0
  35. package/dist/utils/flags/config.d.ts +7 -0
  36. package/dist/wallets/walletConnectors/chunk-3ZJN3PXP.js +87 -0
  37. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +93 -0
  38. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +66 -0
  39. package/dist/wallets/walletConnectors/chunk-55VS2NKG.js +95 -0
  40. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +98 -0
  41. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +96 -0
  42. package/dist/wallets/walletConnectors/chunk-7IEUTLHY.js +98 -0
  43. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +92 -0
  44. package/dist/wallets/walletConnectors/chunk-AZYMJ4C6.js +70 -0
  45. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +96 -0
  46. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +69 -0
  47. package/dist/wallets/walletConnectors/chunk-FWM4KTOV.js +106 -0
  48. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +95 -0
  49. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +70 -0
  50. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +87 -0
  51. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +218 -0
  52. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +99 -0
  53. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +110 -0
  54. package/dist/wallets/walletConnectors/chunk-IMNI4AGV.js +99 -0
  55. package/dist/wallets/walletConnectors/chunk-IRHK6SOW.js +218 -0
  56. package/dist/wallets/walletConnectors/chunk-J3PJOMO7.js +96 -0
  57. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +106 -0
  58. package/dist/wallets/walletConnectors/chunk-LEAZMT5Y.js +92 -0
  59. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +94 -0
  60. package/dist/wallets/walletConnectors/chunk-OD6B2ISG.js +69 -0
  61. package/dist/wallets/walletConnectors/chunk-OSOB6QYX.js +92 -0
  62. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +92 -0
  63. package/dist/wallets/walletConnectors/chunk-RZQ4B4Z7.js +96 -0
  64. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +100 -0
  65. package/dist/wallets/walletConnectors/chunk-UFYNHHDU.js +100 -0
  66. package/dist/wallets/walletConnectors/chunk-UYW6MV74.js +93 -0
  67. package/dist/wallets/walletConnectors/chunk-VMMROPXK.js +110 -0
  68. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +103 -0
  69. package/dist/wallets/walletConnectors/chunk-YGMU5VWD.js +66 -0
  70. package/dist/wallets/walletConnectors/chunk-ZJJWGKB6.js +103 -0
  71. package/dist/wallets/walletConnectors/chunk-ZL6XCMV5.js +94 -0
  72. package/dist/wallets/walletConnectors/index.js +44 -44
  73. package/package.json +4 -4
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ComplianceReviewBannerProps {
3
+ checkoutId: string;
4
+ }
5
+ export declare function ComplianceReviewBanner({ checkoutId, }: ComplianceReviewBannerProps): React.JSX.Element;
6
+ export {};
@@ -6,6 +6,7 @@ interface ConnectedSourceProps {
6
6
  selectedPaymentInfo: ConnectablePaymentMethodInfo | null;
7
7
  showSelectedCheckmark?: boolean;
8
8
  onSelect: () => void;
9
+ isDisabled?: boolean;
9
10
  }
10
- export declare const ConnectedSource: ({ paymentInfo, targetChainId, selectedPaymentInfo, showSelectedCheckmark, onSelect, }: ConnectedSourceProps) => React.JSX.Element | null;
11
+ export declare const ConnectedSource: ({ paymentInfo, targetChainId, selectedPaymentInfo, showSelectedCheckmark, onSelect, isDisabled, }: ConnectedSourceProps) => React.JSX.Element | null;
11
12
  export {};
@@ -7,6 +7,7 @@ interface FormOfPaymentsListProps {
7
7
  onFopSelect: (fop: SwappedFormOfPayment) => void;
8
8
  exchangeRatesData?: ExchangeRates;
9
9
  enableSourceGroupLabels: boolean;
10
+ isDisabled?: boolean;
10
11
  }
11
12
  interface FormOfPaymentSection {
12
13
  items: SwappedFormOfPayment[];
@@ -16,5 +17,5 @@ export declare function getFormOfPaymentSections(fopsData: GetFopsResponse, fopP
16
17
  primary: FormOfPaymentSection;
17
18
  secondary: FormOfPaymentSection;
18
19
  };
19
- export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, onFopSelect, exchangeRatesData, enableSourceGroupLabels, }: FormOfPaymentsListProps): React.JSX.Element;
20
+ export declare function FormOfPaymentsList({ fopsData, isLoading, selectedFop, onFopSelect, exchangeRatesData, enableSourceGroupLabels, isDisabled, }: FormOfPaymentsListProps): React.JSX.Element;
20
21
  export {};
@@ -0,0 +1,17 @@
1
+ import type { SwappedFormOfPayment } from '@funkit/api-base';
2
+ import React from 'react';
3
+ import type { PaymentMethodType } from '../../../hooks/usePaymentSources';
4
+ import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from '../../../modals/CheckoutModal/stepTransition';
5
+ export type SwappedIframeState = CheckoutModalCommonState & {
6
+ /** The selected payment option from the fops API */
7
+ selectedPaymentOption: SwappedFormOfPayment;
8
+ /** Payment method type filter to restore when returning to SOURCE_CHANGE */
9
+ paymentMethodTypeFilter?: PaymentMethodType;
10
+ /** Set to true when an error occurs (iframe error or load timeout) */
11
+ error?: boolean;
12
+ };
13
+ export type SwappedIframeNext = {
14
+ success?: boolean;
15
+ };
16
+ export declare const SwappedIframeInfo: ModalStepInfo<FunCheckoutStep.SWAPPED_IFRAME>;
17
+ export declare function SwappedIframeContainer({ modalState, onBack, onClose, setModalState, }: ModalStepComponentProps<FunCheckoutStep.SWAPPED_IFRAME>): React.JSX.Element;
@@ -1,3 +1,9 @@
1
+ import type { DirectExecution } from '@funkit/api-base';
1
2
  import React from 'react';
3
+ import { type MergedMultiStepDirectExecution } from '../../../hooks/queries/useRecentDeposits';
2
4
  import type { CheckoutNotificationsProps } from './types';
3
5
  export declare const CheckoutNotifications: ({ onHelp, isVisible, variant, }: CheckoutNotificationsProps) => React.JSX.Element | null;
6
+ /**
7
+ * @returns checkouts that are either not present in the initial checkouts or the data changed somehow
8
+ */
9
+ export declare const getUpdatedDirectExecutions: (directExecutions: MergedMultiStepDirectExecution[], initialDirectExecutions?: DirectExecution[]) => MergedMultiStepDirectExecution[];
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Lighter-specific withdrawal helpers, hooks, and display components.
3
+ *
4
+ * Extracted from WithdrawalContent.tsx to keep Lighter-specific logic isolated.
5
+ */
6
+ import React from 'react';
7
+ import type { CustomWithdrawalConfig, WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
8
+ import type { SourceTokenOption } from './WithdrawAmountInput';
9
+ type FunkitWithdrawalConfig = WalletWithdrawalConfig | CustomWithdrawalConfig;
10
+ /**
11
+ * Resolves the Lighter `asset_id` for a selected source token symbol. Returns
12
+ * `undefined` when the token isn't in the fetched assets list (e.g. timing
13
+ * race before balances load, or an invalid selection) — callers should treat
14
+ * that as "not ready to submit" rather than falling back to `0`, which would
15
+ * silently target the wrong Lighter asset.
16
+ */
17
+ export declare function resolveLighterAssetIndex(lighterAssets: {
18
+ symbol: string;
19
+ asset_id: number;
20
+ }[], selectedSourceToken: string): number | undefined;
21
+ /**
22
+ * Builds the source-token options list for the Lighter compound input dropdown.
23
+ *
24
+ * - Fast path: only USDC (Perps).
25
+ * - Secure path: USDC (from total_asset_value) + every asset on the account.
26
+ */
27
+ export declare function buildLighterSourceTokenOptions(config: FunkitWithdrawalConfig, lighterAssets: {
28
+ symbol: string;
29
+ }[]): SourceTokenOption[];
30
+ /**
31
+ * Detects Lighter Secure withdrawal (mainnet source chain), auto-fills the
32
+ * recipient address with the connected wallet, and fetches the Lighter account
33
+ * so per-asset balances are available to the withdrawal form.
34
+ */
35
+ export declare function useLighterWithdrawal(config: FunkitWithdrawalConfig, setRecipientAddress: (addr: string) => void): {
36
+ isLighterSecure: boolean;
37
+ connectedAddress: `0x${string}` | undefined;
38
+ lighterBalances: Record<string, string>;
39
+ lighterAssets: import("../../utils/customer").LighterAsset[];
40
+ };
41
+ /**
42
+ * Resolves the source-token dropdown options for a Lighter customer.
43
+ * Returns `undefined` for non-Lighter customers (no dropdown needed).
44
+ */
45
+ export declare function useLighterSourceTokenOptions(config: FunkitWithdrawalConfig, apiKey: string, lighterAssets: {
46
+ symbol: string;
47
+ }[]): SourceTokenOption[] | undefined;
48
+ /**
49
+ * Lighter Secure: read-only recipient address display.
50
+ * The address is locked to the connected wallet.
51
+ */
52
+ export declare function LighterSecureAddressDisplay({ address }: {
53
+ address: string;
54
+ }): React.JSX.Element;
55
+ /**
56
+ * Lighter Secure: display-only receive token + chain. Both are locked —
57
+ * token matches the source asset, chain is always Ethereum mainnet.
58
+ */
59
+ export declare function LighterSecureReceiveDisplay({ sourceTokenSymbol, }: {
60
+ sourceTokenSymbol: string;
61
+ }): React.JSX.Element;
62
+ /**
63
+ * Lighter Secure: receive amount value (1:1 — same token, no swap).
64
+ */
65
+ export declare function LighterSecureReceiveAmountValue({ amount, tokenSymbol, }: {
66
+ amount: string;
67
+ tokenSymbol: string;
68
+ }): React.JSX.Element;
69
+ export declare function LighterSecureWithdrawalSuccess({ onClose, onNewWithdrawal, amount, tokenSymbol, txHash, }: {
70
+ onClose: () => void;
71
+ onNewWithdrawal: () => void;
72
+ amount: string;
73
+ tokenSymbol: string;
74
+ txHash: string;
75
+ }): React.JSX.Element;
76
+ export {};
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import type { FunkitWithdrawalConfig, MultiMethodWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
+ export interface SourceTokenOption {
4
+ symbol: string;
5
+ /** Display label (may differ from symbol, e.g. "USDC (Perps)") */
6
+ label: string;
7
+ iconSrc?: string;
8
+ }
9
+ export declare function WithdrawAmountInput({ withdrawalUSD, setWithdrawalUSD, sourceTokenBalance, isWithdrawAmountTooLow, isWithdrawAmountValid, minWithdrawalUsd, config, sourceTokenOptions, onSourceTokenChange, selectedSourceToken, sourceTokenUsdPrice, }: {
10
+ config: Exclude<FunkitWithdrawalConfig, MultiMethodWithdrawalConfig>;
11
+ sourceTokenBalance: string;
12
+ withdrawalUSD: string;
13
+ setWithdrawalUSD: (s: string) => void;
14
+ isWithdrawAmountTooLow: boolean;
15
+ isWithdrawAmountValid: boolean;
16
+ minWithdrawalUsd: number;
17
+ sourceTokenOptions?: SourceTokenOption[];
18
+ onSourceTokenChange?: (opt: SourceTokenOption) => void;
19
+ /** Currently selected source token symbol (drives chip label + icon). */
20
+ selectedSourceToken?: string;
21
+ /**
22
+ * USD price per unit of the source token (e.g. ~1620 for ETH).
23
+ * When omitted, the USD equivalent is rendered as "-" rather than
24
+ * assuming a 1:1 stablecoin rate.
25
+ */
26
+ sourceTokenUsdPrice?: number;
27
+ }): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { WithdrawalMethodOption } from '../../providers/FunkitCheckoutContext/types';
3
+ interface WithdrawalTypeSelectProps {
4
+ /** Section label shown above the list (e.g. "Crypto"). */
5
+ sectionTitle?: string;
6
+ methods: WithdrawalMethodOption[];
7
+ onMethodSelect: (method: WithdrawalMethodOption) => void;
8
+ }
9
+ /**
10
+ * Selection screen shown before the standard withdrawal flow for
11
+ * multi-method withdrawal configs (e.g. Lighter Fast vs. Secure).
12
+ *
13
+ * Each option renders as a large bordered card with icon, title, and subtitle.
14
+ */
15
+ export declare function WithdrawalTypeSelect({ sectionTitle, methods, onMethodSelect, }: WithdrawalTypeSelectProps): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
+ interface WithdrawalCallbackSuccessProps {
4
+ bottomBarId: string;
5
+ onClose: () => void;
6
+ onNewWithdrawal: () => void;
7
+ quote: FunkitCheckoutQuoteResult | undefined;
8
+ }
9
+ export declare const WithdrawalCallbackSuccess: ({ bottomBarId, onClose, onNewWithdrawal, quote, }: WithdrawalCallbackSuccessProps) => React.JSX.Element;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { Hex } from 'viem';
3
+ import type { FunkitActiveWithdrawalItem, FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
4
+ import { type WithdrawalFormData } from './useWithdrawal';
5
+ interface WithdrawContentProps {
6
+ onContinue: (withdrawal: WithdrawalFormData, txHash: Hex) => void;
7
+ config: FunkitWithdrawalConfig;
8
+ withdrawalItem: FunkitActiveWithdrawalItem | null;
9
+ }
10
+ export declare const WithdrawContent: ({ onContinue, config, withdrawalItem, }: WithdrawContentProps) => React.JSX.Element;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
+ export declare const WITHDRAWAL_MODAL_CONTENT_ID = "withdrawal-modal-content";
4
+ export interface WithdrawalModalProps {
5
+ open: boolean;
6
+ onClose: () => void;
7
+ config: FunkitWithdrawalConfig;
8
+ }
9
+ export declare function WithdrawalModal({ onClose, open, config, }: WithdrawalModalProps): React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { Address } from 'viem';
3
+ interface WithdrawSuccessProps {
4
+ depositAddress: Address;
5
+ amount: number;
6
+ token: string;
7
+ tokenIconSrc: string;
8
+ chainId: string;
9
+ txHash: string;
10
+ bottomBarId: string;
11
+ onNewWithdrawal: () => void;
12
+ onClose: () => void;
13
+ }
14
+ export declare const WithdrawSuccess: ({ depositAddress, bottomBarId, onNewWithdrawal, onClose, }: WithdrawSuccessProps) => React.JSX.Element;
15
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare enum WithdrawalModalStep {
2
+ ENTER_AMOUNT = "ENTER_AMOUNT",
3
+ SUCCESS = "SUCCESS",
4
+ PENDING_CALLBACK = "PENDING_CALLBACK"
5
+ }
@@ -0,0 +1,24 @@
1
+ import type { Address, Hex } from 'viem';
2
+ import type { FunkitCheckoutQuoteResult } from '../../domains/quote';
3
+ import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
4
+ import { type CheckoutConfirmationError } from '../CheckoutModal/ConfirmationStep/useCheckoutConfirmation';
5
+ interface UseWithdrawalResult {
6
+ handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<void>;
7
+ isWithdrawing: boolean;
8
+ withdrawalError: CheckoutConfirmationError | null;
9
+ stepMessage: string | null;
10
+ }
11
+ export type WithdrawalFormData = {
12
+ destinationAddress: Address;
13
+ withdrawalUSD: string;
14
+ tokenSymbol: string;
15
+ tokenAddress: Address;
16
+ chainId: number;
17
+ quote: FunkitCheckoutQuoteResult;
18
+ };
19
+ export declare function useWithdrawal({ config, withdrawalItem, onSuccess, }: {
20
+ config: FunkitWithdrawalConfig;
21
+ withdrawalItem: FunkitActiveWithdrawalItem | null;
22
+ onSuccess: (withdrawal: WithdrawalFormData, txHash: Hex) => void;
23
+ }): UseWithdrawalResult;
24
+ export {};
@@ -111,6 +111,13 @@ export declare const flagConfig: {
111
111
  readonly values: ["5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
112
112
  }];
113
113
  readonly value: string;
114
+ }, {
115
+ readonly if_any: [{
116
+ readonly key: "apiKey";
117
+ readonly type: "isAnyOf";
118
+ readonly values: ["57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
119
+ }];
120
+ readonly value: string;
114
121
  }];
115
122
  };
116
123
  readonly withdrawal_chains_and_assets: {
@@ -0,0 +1,87 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.js";
9
+
10
+ // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
+ var clvWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
16
+ const shouldUseWalletConnect = !isCLVInjected;
17
+ return {
18
+ id: "clv",
19
+ name: "CLV",
20
+ iconUrl: async () => (await import("./clvWallet-VVMLP7BK.js")).default,
21
+ iconBackground: "#fff",
22
+ iconAccent: "#BDFDE2",
23
+ installed: isCLVInjected,
24
+ downloadUrls: {
25
+ chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
26
+ ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
27
+ mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
28
+ qrCode: "https://clv.org/"
29
+ },
30
+ extension: {
31
+ instructions: {
32
+ learnMoreUrl: "https://clv.org/",
33
+ steps: [
34
+ {
35
+ description: "wallet_connectors.clv.extension.step1.description",
36
+ step: "install",
37
+ title: "wallet_connectors.clv.extension.step1.title"
38
+ },
39
+ {
40
+ description: "wallet_connectors.clv.extension.step2.description",
41
+ step: "create",
42
+ title: "wallet_connectors.clv.extension.step2.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.clv.extension.step3.description",
46
+ step: "refresh",
47
+ title: "wallet_connectors.clv.extension.step3.title"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ mobile: {
53
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
54
+ },
55
+ qrCode: shouldUseWalletConnect ? {
56
+ getUri: (uri) => uri,
57
+ instructions: {
58
+ learnMoreUrl: "https://clv.org/",
59
+ steps: [
60
+ {
61
+ description: "wallet_connectors.clv.qr_code.step1.description",
62
+ step: "install",
63
+ title: "wallet_connectors.clv.qr_code.step1.title"
64
+ },
65
+ {
66
+ description: "wallet_connectors.clv.qr_code.step2.description",
67
+ step: "create",
68
+ title: "wallet_connectors.clv.qr_code.step2.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.clv.qr_code.step3.description",
72
+ step: "scan",
73
+ title: "wallet_connectors.clv.qr_code.step3.title"
74
+ }
75
+ ]
76
+ }
77
+ } : void 0,
78
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
79
+ projectId,
80
+ walletConnectParameters
81
+ }) : getInjectedConnector({ namespace: "clover" })
82
+ };
83
+ };
84
+
85
+ export {
86
+ clvWallet
87
+ };
@@ -0,0 +1,93 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-MAPXJUOO.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-BAVE62IL.js";
9
+
10
+ // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
11
+ import { isMobile } from "@funkit/utils";
12
+ var tokenPocketWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
17
+ const shouldUseWalletConnect = !isTokenPocketInjected;
18
+ const getUri = (uri) => {
19
+ return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
20
+ };
21
+ return {
22
+ id: "tokenPocket",
23
+ name: "TokenPocket",
24
+ rdns: "pro.tokenpocket",
25
+ iconUrl: async () => (await import("./tokenPocketWallet-FLFG3JUQ.js")).default,
26
+ iconBackground: "#2980FE",
27
+ installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
28
+ downloadUrls: {
29
+ chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
30
+ browserExtension: "https://extension.tokenpocket.pro/",
31
+ android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
32
+ ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
33
+ qrCode: "https://tokenpocket.pro/en/download/app",
34
+ mobile: "https://tokenpocket.pro/en/download/app"
35
+ },
36
+ mobile: {
37
+ getUri: shouldUseWalletConnect ? getUri : void 0
38
+ },
39
+ qrCode: shouldUseWalletConnect ? {
40
+ getUri,
41
+ instructions: {
42
+ learnMoreUrl: "https://help.tokenpocket.pro/en/",
43
+ steps: [
44
+ {
45
+ description: "wallet_connectors.token_pocket.qr_code.step1.description",
46
+ step: "install",
47
+ title: "wallet_connectors.token_pocket.qr_code.step1.title"
48
+ },
49
+ {
50
+ description: "wallet_connectors.token_pocket.qr_code.step2.description",
51
+ step: "create",
52
+ title: "wallet_connectors.token_pocket.qr_code.step2.title"
53
+ },
54
+ {
55
+ description: "wallet_connectors.token_pocket.qr_code.step3.description",
56
+ step: "scan",
57
+ title: "wallet_connectors.token_pocket.qr_code.step3.title"
58
+ }
59
+ ]
60
+ }
61
+ } : void 0,
62
+ extension: {
63
+ instructions: {
64
+ learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
65
+ steps: [
66
+ {
67
+ description: "wallet_connectors.token_pocket.extension.step1.description",
68
+ step: "install",
69
+ title: "wallet_connectors.token_pocket.extension.step1.title"
70
+ },
71
+ {
72
+ description: "wallet_connectors.token_pocket.extension.step2.description",
73
+ step: "create",
74
+ title: "wallet_connectors.token_pocket.extension.step2.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.token_pocket.extension.step3.description",
78
+ step: "refresh",
79
+ title: "wallet_connectors.token_pocket.extension.step3.title"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
+ projectId,
86
+ walletConnectParameters
87
+ }) : getInjectedConnector({ flag: "isTokenPocket" })
88
+ };
89
+ };
90
+
91
+ export {
92
+ tokenPocketWallet
93
+ };
@@ -0,0 +1,66 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-MAPXJUOO.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-BAVE62IL.js";
9
+
10
+ // src/wallets/walletConnectors/foxWallet/foxWallet.ts
11
+ var foxWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isFoxInjected = hasInjectedProvider({
16
+ namespace: "foxwallet.ethereum"
17
+ });
18
+ const shouldUseWalletConnect = !isFoxInjected;
19
+ return {
20
+ id: "foxwallet",
21
+ name: "FoxWallet",
22
+ iconUrl: async () => (await import("./foxWallet-I7D5KIW4.js")).default,
23
+ iconBackground: "#fff",
24
+ downloadUrls: {
25
+ android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
26
+ ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
27
+ qrCode: "https://foxwallet.com/download"
28
+ },
29
+ mobile: {
30
+ getUri: shouldUseWalletConnect ? (uri) => {
31
+ return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
32
+ } : void 0
33
+ },
34
+ qrCode: shouldUseWalletConnect ? {
35
+ getUri: (uri) => uri,
36
+ instructions: {
37
+ learnMoreUrl: "https://foxwallet.com",
38
+ steps: [
39
+ {
40
+ description: "wallet_connectors.fox.qr_code.step1.description",
41
+ step: "install",
42
+ title: "wallet_connectors.fox.qr_code.step1.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.fox.qr_code.step2.description",
46
+ step: "create",
47
+ title: "wallet_connectors.fox.qr_code.step2.title"
48
+ },
49
+ {
50
+ description: "wallet_connectors.fox.qr_code.step3.description",
51
+ step: "scan",
52
+ title: "wallet_connectors.fox.qr_code.step3.title"
53
+ }
54
+ ]
55
+ }
56
+ } : void 0,
57
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
58
+ projectId,
59
+ walletConnectParameters
60
+ }) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
61
+ };
62
+ };
63
+
64
+ export {
65
+ foxWallet
66
+ };
@@ -0,0 +1,95 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-FMVNQKZL.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-YYYRPQHB.js";
9
+
10
+ // src/wallets/walletConnectors/coreWallet/coreWallet.ts
11
+ var coreWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCoreInjected = hasInjectedProvider({
16
+ namespace: "avalanche",
17
+ flag: "isAvalanche"
18
+ });
19
+ const shouldUseWalletConnect = !isCoreInjected;
20
+ return {
21
+ id: "core",
22
+ name: "Core",
23
+ rdns: "app.core.extension",
24
+ iconUrl: async () => (await import("./coreWallet-RFVUHOVE.js")).default,
25
+ iconBackground: "#1A1A1C",
26
+ installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
27
+ downloadUrls: {
28
+ android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
29
+ ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
30
+ mobile: "https://core.app/?downloadCoreMobile=1",
31
+ qrCode: "https://core.app/?downloadCoreMobile=1",
32
+ chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
33
+ browserExtension: "https://extension.core.app/"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
37
+ },
38
+ qrCode: shouldUseWalletConnect ? {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.core.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.core.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.core.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.core.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.core.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.core.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ } : void 0,
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://extension.core.app/",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.core.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.core.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.core.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.core.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.core.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.core.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ }) : getInjectedConnector({
87
+ namespace: "avalanche",
88
+ flag: "isAvalanche"
89
+ })
90
+ };
91
+ };
92
+
93
+ export {
94
+ coreWallet
95
+ };