@funkit/connect 9.7.1 → 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 (82) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/chunk-64NZSUGQ.js +368 -0
  3. package/dist/chunk-B2B6HDIE.js +238 -0
  4. package/dist/chunk-OQNN7EMQ.js +238 -0
  5. package/dist/chunk-S65TG73G.js +247 -0
  6. package/dist/chunk-VLAOBEJN.js +247 -0
  7. package/dist/clients/chunk-SBQ2UUPK.js +214 -0
  8. package/dist/clients/fanatics.css +1 -1
  9. package/dist/clients/lighter.d.ts +138 -0
  10. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
  11. package/dist/hooks/queries/useRecentDeposits.d.ts +2 -0
  12. package/dist/hooks/track/CheckoutTrackingContext.d.ts +60 -0
  13. package/dist/hooks/useTokenChain.d.ts +21 -0
  14. package/dist/index.css +10 -10
  15. package/dist/index.js +7 -7
  16. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +17 -0
  17. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.d.ts +6 -0
  18. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +76 -0
  19. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +27 -0
  20. package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +16 -0
  21. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
  22. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +11 -0
  23. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +9 -0
  24. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +15 -0
  25. package/dist/modals/WithdrwalModal/types.d.ts +5 -0
  26. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +24 -0
  27. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/chunk-34HACM5U.js +110 -0
  31. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +93 -0
  32. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +66 -0
  33. package/dist/wallets/walletConnectors/chunk-5TN5Z2WY.js +87 -0
  34. package/dist/wallets/walletConnectors/chunk-6DRCY52E.js +69 -0
  35. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +98 -0
  36. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +96 -0
  37. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +92 -0
  38. package/dist/wallets/walletConnectors/chunk-7V33VJAL.js +218 -0
  39. package/dist/wallets/walletConnectors/chunk-APHCF4DT.js +103 -0
  40. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +96 -0
  41. package/dist/wallets/walletConnectors/chunk-DEFRRPXB.js +98 -0
  42. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +69 -0
  43. package/dist/wallets/walletConnectors/chunk-FG2LDVXL.js +92 -0
  44. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +95 -0
  45. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +70 -0
  46. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +87 -0
  47. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +218 -0
  48. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +99 -0
  49. package/dist/wallets/walletConnectors/chunk-HRDPUW3V.js +94 -0
  50. package/dist/wallets/walletConnectors/chunk-HXWUH73P.js +93 -0
  51. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +110 -0
  52. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +106 -0
  53. package/dist/wallets/walletConnectors/chunk-KWX2SYU2.js +100 -0
  54. package/dist/wallets/walletConnectors/chunk-LCIPVVH5.js +70 -0
  55. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +94 -0
  56. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +92 -0
  57. package/dist/wallets/walletConnectors/chunk-T4ROGPMF.js +106 -0
  58. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +100 -0
  59. package/dist/wallets/walletConnectors/chunk-UDTBQV4Q.js +96 -0
  60. package/dist/wallets/walletConnectors/chunk-V6UOWTEZ.js +95 -0
  61. package/dist/wallets/walletConnectors/chunk-VJZWNQOF.js +92 -0
  62. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +103 -0
  63. package/dist/wallets/walletConnectors/chunk-XVBSJCW5.js +96 -0
  64. package/dist/wallets/walletConnectors/chunk-YIEASHLS.js +99 -0
  65. package/dist/wallets/walletConnectors/chunk-ZPSPK6LH.js +66 -0
  66. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  68. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  72. package/dist/wallets/walletConnectors/index.js +40 -40
  73. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  75. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  76. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  77. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  78. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  79. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  80. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  81. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  82. package/package.json +3 -3
@@ -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 {};
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-OD6B2ISG.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-6DRCY52E.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  bifrostWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-IMNI4AGV.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-YIEASHLS.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-7IEUTLHY.js";
5
- import "../chunk-FMVNQKZL.js";
4
+ } from "../chunk-DEFRRPXB.js";
6
5
  import "../chunk-YYYRPQHB.js";
6
+ import "../chunk-FMVNQKZL.js";
7
7
  import "../chunk-3K2MFXCO.js";
8
8
  export {
9
9
  bybitWallet
@@ -0,0 +1,110 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
+
10
+ // src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
11
+ var safepalWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isSafePalWalletInjected = hasInjectedProvider({
16
+ namespace: "safepalProvider",
17
+ flag: "isSafePal"
18
+ });
19
+ const shouldUseWalletConnect = !isSafePalWalletInjected;
20
+ const getUriMobile = (uri) => {
21
+ return `safepalwallet://wc?uri=${encodeURIComponent(uri)}`;
22
+ };
23
+ const getUriQR = async (uri) => {
24
+ return uri;
25
+ };
26
+ const mobileConnector = {
27
+ getUri: shouldUseWalletConnect ? getUriMobile : void 0
28
+ };
29
+ let qrConnector = void 0;
30
+ if (shouldUseWalletConnect) {
31
+ qrConnector = {
32
+ getUri: getUriQR,
33
+ instructions: {
34
+ learnMoreUrl: "https://safepal.com/",
35
+ steps: [
36
+ {
37
+ description: "wallet_connectors.safepal.qr_code.step1.description",
38
+ step: "install",
39
+ title: "wallet_connectors.safepal.qr_code.step1.title"
40
+ },
41
+ {
42
+ description: "wallet_connectors.safepal.qr_code.step2.description",
43
+ step: "create",
44
+ title: "wallet_connectors.safepal.qr_code.step2.title"
45
+ },
46
+ {
47
+ description: "wallet_connectors.safepal.qr_code.step3.description",
48
+ step: "scan",
49
+ title: "wallet_connectors.safepal.qr_code.step3.title"
50
+ }
51
+ ]
52
+ }
53
+ };
54
+ }
55
+ const extensionConnector = {
56
+ instructions: {
57
+ learnMoreUrl: "https://www.safepal.com/download?product=2",
58
+ steps: [
59
+ {
60
+ description: "wallet_connectors.safepal.extension.step1.description",
61
+ step: "install",
62
+ title: "wallet_connectors.safepal.extension.step1.title"
63
+ },
64
+ {
65
+ description: "wallet_connectors.safepal.extension.step2.description",
66
+ step: "create",
67
+ title: "wallet_connectors.safepal.extension.step2.title"
68
+ },
69
+ {
70
+ description: "wallet_connectors.safepal.extension.step3.description",
71
+ step: "refresh",
72
+ title: "wallet_connectors.safepal.extension.step3.title"
73
+ }
74
+ ]
75
+ }
76
+ };
77
+ return {
78
+ id: "safepal",
79
+ name: "SafePal Wallet",
80
+ iconUrl: async () => (await import("./safepalWallet-7YULGM2L.js")).default,
81
+ // Note that we never resolve `installed` to `false` because the
82
+ // SafePal Wallet provider falls back to other connection methods if
83
+ // the injected connector isn't available
84
+ installed: isSafePalWalletInjected,
85
+ iconAccent: "#3375BB",
86
+ iconBackground: "#fff",
87
+ downloadUrls: {
88
+ android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
89
+ ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
90
+ mobile: "https://www.safepal.com/en/download",
91
+ qrCode: "https://www.safepal.com/en/download",
92
+ chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
93
+ browserExtension: "https://www.safepal.com/download?product=2"
94
+ },
95
+ mobile: mobileConnector,
96
+ ...qrConnector ? qrConnector : {},
97
+ extension: extensionConnector,
98
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
99
+ projectId,
100
+ walletConnectParameters
101
+ }) : getInjectedConnector({
102
+ namespace: "safepalProvider",
103
+ flag: "isSafePal"
104
+ })
105
+ };
106
+ };
107
+
108
+ export {
109
+ safepalWallet
110
+ };
@@ -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,87 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.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,69 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.js";
9
+
10
+ // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var bifrostWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
17
+ const shouldUseWalletConnect = !isBifrostInjected;
18
+ const getUri = (uri) => {
19
+ return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
20
+ };
21
+ return {
22
+ id: "bifrostWallet",
23
+ name: "Bifrost Wallet",
24
+ iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
25
+ iconBackground: "#fff",
26
+ installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
27
+ downloadUrls: {
28
+ android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
29
+ ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
30
+ qrCode: "https://bifrostwallet.com/#download-app"
31
+ },
32
+ mobile: {
33
+ getUri: shouldUseWalletConnect ? getUri : void 0
34
+ },
35
+ qrCode: shouldUseWalletConnect ? {
36
+ getUri: (uri) => uri,
37
+ instructions: {
38
+ learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
39
+ steps: [
40
+ {
41
+ description: "wallet_connectors.bifrost.qr_code.step1.description",
42
+ step: "install",
43
+ title: "wallet_connectors.bifrost.qr_code.step1.title"
44
+ },
45
+ {
46
+ description: "wallet_connectors.bifrost.qr_code.step2.description",
47
+ step: "create",
48
+ title: "wallet_connectors.bifrost.qr_code.step2.title"
49
+ },
50
+ {
51
+ description: "wallet_connectors.bifrost.qr_code.step3.description",
52
+ step: "scan",
53
+ title: "wallet_connectors.bifrost.qr_code.step3.title"
54
+ }
55
+ ]
56
+ }
57
+ } : void 0,
58
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
59
+ projectId,
60
+ walletConnectParameters
61
+ }) : getInjectedConnector({
62
+ flag: "isBifrost"
63
+ })
64
+ };
65
+ };
66
+
67
+ export {
68
+ bifrostWallet
69
+ };