@funkit/connect 0.1.12 → 0.1.14

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 (95) hide show
  1. package/dist/{chunk-UOUEGWLS.js → chunk-47OHV4T2.js} +2 -2
  2. package/dist/{chunk-Q73FKLU4.js → chunk-C2QHNJBG.js} +2 -2
  3. package/dist/{chunk-JC32QCLG.js → chunk-OYE6VAAG.js} +4291 -4194
  4. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +3 -2
  5. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +1 -1
  6. package/dist/components/FunKeyValue/FunKeyValue.d.ts +2 -1
  7. package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +2 -1
  8. package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +3 -1
  9. package/dist/components/FunOnramp/FunOnrampTokenPill.d.ts +7 -0
  10. package/dist/components/FunPayments/FunPaymentMethods.d.ts +5 -2
  11. package/dist/components/FunPayments/FunPayments.css.d.ts +1 -1
  12. package/dist/components/FunSelect/FunSelect.d.ts +3 -1
  13. package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +10 -1
  14. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +21 -5
  15. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +2 -0
  16. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +5 -0
  17. package/dist/components/FunkitProvider/ModalContext.d.ts +0 -4
  18. package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +7 -6
  19. package/dist/components/Icons/RedirectIcon.d.ts +2 -0
  20. package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +4 -1
  21. package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +1 -1
  22. package/dist/components/ProfileDetails/{FunWalletProfileDetails.d.ts → WalletProfileDetails.d.ts} +2 -2
  23. package/dist/components/index.css +202 -164
  24. package/dist/components/index.js +3 -3
  25. package/dist/index.css +174 -136
  26. package/dist/index.js +3 -3
  27. package/dist/themes/darkTheme.js +1 -1
  28. package/dist/themes/lightTheme.js +1 -1
  29. package/dist/utils/checkout.d.ts +7 -2
  30. package/dist/utils/mesh.d.ts +5 -4
  31. package/dist/utils/moonpay.d.ts +1 -1
  32. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/{chunk-K5J2FLUB.js → chunk-2XHTO74O.js} +4 -4
  36. package/dist/wallets/walletConnectors/{chunk-CJA6ERXY.js → chunk-4W6RLMME.js} +4 -4
  37. package/dist/wallets/walletConnectors/{chunk-BG2VHSGN.js → chunk-4WS4ZSRN.js} +1 -1
  38. package/dist/wallets/walletConnectors/{chunk-OJAMLRYU.js → chunk-6T5K52ZY.js} +1 -1
  39. package/dist/wallets/walletConnectors/{chunk-WSYSB5XX.js → chunk-7EOFWORX.js} +1 -1
  40. package/dist/wallets/walletConnectors/{chunk-YUE47K7K.js → chunk-APZ6YBCA.js} +1 -1
  41. package/dist/wallets/walletConnectors/{chunk-FEDNFTC5.js → chunk-BDKAIAQA.js} +1 -1
  42. package/dist/wallets/walletConnectors/{chunk-API5X5WH.js → chunk-DBMFZSXN.js} +4 -4
  43. package/dist/wallets/walletConnectors/{chunk-G62ST53R.js → chunk-EHO4MJZJ.js} +1 -1
  44. package/dist/wallets/walletConnectors/{chunk-BUX4O2MX.js → chunk-FTTYELWN.js} +4 -4
  45. package/dist/wallets/walletConnectors/{chunk-J3HOIBZW.js → chunk-JJICTRJY.js} +4 -4
  46. package/dist/wallets/walletConnectors/{chunk-BBVH7CPS.js → chunk-KUXG7P5Q.js} +1 -1
  47. package/dist/wallets/walletConnectors/{chunk-363R4ANA.js → chunk-LBSWP7R6.js} +1 -1
  48. package/dist/wallets/walletConnectors/{chunk-KQ3NBNAM.js → chunk-LVMQKSKW.js} +1 -1
  49. package/dist/wallets/walletConnectors/{chunk-YK74CZ2K.js → chunk-MDDT3PSR.js} +1 -1
  50. package/dist/wallets/walletConnectors/{chunk-GAP7NFIO.js → chunk-NZ4YUZKF.js} +4 -4
  51. package/dist/wallets/walletConnectors/{chunk-JEVYZEBJ.js → chunk-PTF3JKWO.js} +1 -1
  52. package/dist/wallets/walletConnectors/{chunk-RZE4WHVP.js → chunk-Q6N2YWW4.js} +1 -1
  53. package/dist/wallets/walletConnectors/{chunk-SMDKR4XA.js → chunk-RL5OHS6R.js} +4 -4
  54. package/dist/wallets/walletConnectors/{chunk-3DY3HAMM.js → chunk-T3RIVRAX.js} +1 -1
  55. package/dist/wallets/walletConnectors/{chunk-TOIRQMDJ.js → chunk-TG2HN6KW.js} +1 -1
  56. package/dist/wallets/walletConnectors/{chunk-SMEQQ574.js → chunk-TORM2ZGA.js} +1 -1
  57. package/dist/wallets/walletConnectors/{chunk-PX5UW3Z2.js → chunk-TZR3P22N.js} +1 -1
  58. package/dist/wallets/walletConnectors/{chunk-QOK4O2YL.js → chunk-VAR774R5.js} +4 -4
  59. package/dist/wallets/walletConnectors/{chunk-3AGSQ2RN.js → chunk-X6A7D2EA.js} +4 -4
  60. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  61. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  62. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  65. package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
  66. package/dist/wallets/walletConnectors/index.js +54 -54
  67. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  68. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  72. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  73. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  75. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  76. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  77. package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
  78. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
  79. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  80. package/package.json +3 -3
  81. package/dist/chunk-7BFJCGW2.js +0 -24994
  82. package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +0 -12
  83. package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +0 -15
  84. package/dist/wallets/walletConnectors/chunk-3EHPYNDW.js +0 -71
  85. package/dist/wallets/walletConnectors/chunk-5FDGJMHJ.js +0 -112
  86. package/dist/wallets/walletConnectors/chunk-AM2WFIQL.js +0 -110
  87. package/dist/wallets/walletConnectors/chunk-BBUYSZBE.js +0 -52
  88. package/dist/wallets/walletConnectors/chunk-EHO5SY4G.js +0 -226
  89. package/dist/wallets/walletConnectors/chunk-FCZN3LHW.js +0 -71
  90. package/dist/wallets/walletConnectors/chunk-JEPFSTAY.js +0 -71
  91. package/dist/wallets/walletConnectors/chunk-JZNHIWCA.js +0 -114
  92. package/dist/wallets/walletConnectors/chunk-QEJK5CFP.js +0 -102
  93. package/dist/wallets/walletConnectors/chunk-VSCNQC5L.js +0 -105
  94. package/dist/wallets/walletConnectors/chunk-WQ5A5VAG.js +0 -113
  95. package/dist/wallets/walletConnectors/chunk-ZXXXGTCN.js +0 -81
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export declare enum FunConfirmDialogMenuTypes {
3
- CONFIRM_LOGOUT = 0
4
- }
5
- export type FunConfirmDialogMenuItem = (typeof FunConfirmDialogMenuTypes)[keyof typeof FunConfirmDialogMenuTypes];
6
- export type FunConfirmDialogProps = {
7
- open: boolean;
8
- confirmType: FunConfirmDialogMenuTypes;
9
- onConfirm: () => void;
10
- onCancel: () => void;
11
- };
12
- export declare const FunConfirmDialogMenu: ({ open, confirmType, onConfirm, onCancel, }: FunConfirmDialogProps) => React.JSX.Element;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { useAccount, useBalance, useEnsAvatar, useEnsName } from 'wagmi';
3
- interface ProfileDetailsProps {
4
- address: ReturnType<typeof useAccount>['address'];
5
- balanceData: ReturnType<typeof useBalance>['data'];
6
- ensAvatar: ReturnType<typeof useEnsAvatar>['data'];
7
- ensName: ReturnType<typeof useEnsName>['data'];
8
- onClose: () => void;
9
- onDisconnect: () => void;
10
- }
11
- /**
12
- * Profile details for regular EOAs / Web3 Wallets
13
- */
14
- export declare function EoaProfileDetails({ address, balanceData, ensAvatar, ensName, onClose, onDisconnect, }: ProfileDetailsProps): React.JSX.Element | null;
15
- export {};
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getWalletConnectConnector,
7
- getWalletConnectUri
8
- } from "./chunk-OJAMLRYU.js";
9
-
10
- // src/wallets/walletConnectors/oktoWallet/oktoWallet.ts
11
- var oktoWallet = ({
12
- chains,
13
- projectId,
14
- walletConnectOptions,
15
- walletConnectVersion = "2"
16
- }) => ({
17
- id: "Okto",
18
- name: "Okto",
19
- iconUrl: async () => (await import("./oktoWallet-3LTNTBG3.js")).default,
20
- iconBackground: "#fff",
21
- downloadUrls: {
22
- android: "https://play.google.com/store/apps/details?id=im.okto.contractwalletclient",
23
- ios: "https://apps.apple.com/in/app/okto-wallet/id6450688229",
24
- mobile: "https://okto.tech/",
25
- qrCode: "https://okto.tech/"
26
- },
27
- createConnector: () => {
28
- const connector = getWalletConnectConnector({
29
- projectId,
30
- chains,
31
- version: walletConnectVersion,
32
- options: walletConnectOptions
33
- });
34
- return {
35
- connector,
36
- mobile: {
37
- getUri: async () => {
38
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
39
- return isAndroid() ? uri : `okto://wc?uri=${encodeURIComponent(uri)}`;
40
- }
41
- },
42
- qrCode: {
43
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
44
- instructions: {
45
- learnMoreUrl: "https://okto.tech/",
46
- steps: [
47
- {
48
- description: "wallet_connectors.okto.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.okto.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.okto.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.okto.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.okto.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.okto.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- }
65
- };
66
- }
67
- });
68
-
69
- export {
70
- oktoWallet
71
- };
@@ -1,112 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getWalletConnectConnector,
7
- getWalletConnectUri
8
- } from "./chunk-OJAMLRYU.js";
9
-
10
- // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var bitgetWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isBitKeepInjected = typeof window !== "undefined" && window.bitkeep !== void 0 && window.bitkeep.ethereum !== void 0 && window.bitkeep.ethereum.isBitKeep === true;
20
- const shouldUseWalletConnect = !isBitKeepInjected;
21
- return {
22
- id: "bitget",
23
- name: "Bitget Wallet",
24
- iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
25
- iconAccent: "#f6851a",
26
- iconBackground: "#fff",
27
- installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
28
- downloadUrls: {
29
- android: "https://web3.bitget.com/en/wallet-download?type=0",
30
- ios: "https://apps.apple.com/app/bitkeep/id1395301115",
31
- mobile: "https://web3.bitget.com/en/wallet-download?type=2",
32
- qrCode: "https://web3.bitget.com/en/wallet-download",
33
- chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
34
- browserExtension: "https://web3.bitget.com/en/wallet-download"
35
- },
36
- createConnector: () => {
37
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
38
- chains,
39
- options: walletConnectOptions,
40
- projectId,
41
- version: walletConnectVersion
42
- }) : new InjectedConnector({
43
- chains,
44
- options: {
45
- getProvider: () => window.bitkeep.ethereum,
46
- ...options
47
- }
48
- });
49
- const getUri = async () => {
50
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
51
- return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
52
- };
53
- return {
54
- connector,
55
- extension: {
56
- instructions: {
57
- learnMoreUrl: "https://web3.bitget.com/en/academy",
58
- steps: [
59
- {
60
- description: "wallet_connectors.bitget.extension.step1.description",
61
- step: "install",
62
- title: "wallet_connectors.bitget.extension.step1.title"
63
- },
64
- {
65
- description: "wallet_connectors.bitget.extension.step2.description",
66
- step: "create",
67
- title: "wallet_connectors.bitget.extension.step2.title"
68
- },
69
- {
70
- description: "wallet_connectors.bitget.extension.step3.description",
71
- step: "refresh",
72
- title: "wallet_connectors.bitget.extension.step3.description"
73
- }
74
- ]
75
- }
76
- },
77
- mobile: {
78
- getUri: shouldUseWalletConnect ? getUri : void 0
79
- },
80
- qrCode: shouldUseWalletConnect ? {
81
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
82
- instructions: {
83
- learnMoreUrl: "https://web3.bitget.com/en/academy",
84
- steps: [
85
- {
86
- description: "wallet_connectors.bitget.qr_code.step1.description",
87
- step: "install",
88
- title: "wallet_connectors.bitget.qr_code.step1.title"
89
- },
90
- {
91
- description: "wallet_connectors.bitget.qr_code.step2.description",
92
- step: "create",
93
- title: "wallet_connectors.bitget.qr_code.step2.title"
94
- },
95
- {
96
- description: "wallet_connectors.bitget.qr_code.step3.description",
97
- step: "scan",
98
- title: "wallet_connectors.bitget.qr_code.step3.title"
99
- }
100
- ]
101
- }
102
- } : void 0
103
- };
104
- }
105
- };
106
- };
107
- var bitKeepWallet = bitgetWallet;
108
-
109
- export {
110
- bitgetWallet,
111
- bitKeepWallet
112
- };
@@ -1,110 +0,0 @@
1
- "use client";
2
- import {
3
- isIOS
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getWalletConnectConnector,
7
- getWalletConnectUri
8
- } from "./chunk-OJAMLRYU.js";
9
-
10
- // src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
11
- import { InjectedConnector } from "wagmi/connectors/injected";
12
- var zerionWallet = ({
13
- chains,
14
- projectId,
15
- walletConnectOptions,
16
- walletConnectVersion = "2",
17
- ...options
18
- }) => {
19
- const isZerionInjected = typeof window !== "undefined" && (typeof window.ethereum !== "undefined" && window.ethereum.isZerion || typeof window.zerionWallet !== "undefined");
20
- const shouldUseWalletConnect = !isZerionInjected;
21
- return {
22
- id: "zerion",
23
- name: "Zerion",
24
- iconUrl: async () => (await import("./zerionWallet-35GMAYN4.js")).default,
25
- iconAccent: "#2962ef",
26
- iconBackground: "#2962ef",
27
- installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
28
- downloadUrls: {
29
- android: "https://play.google.com/store/apps/details?id=io.zerion.android",
30
- ios: "https://apps.apple.com/app/apple-store/id1456732565",
31
- mobile: "https://link.zerion.io/pt3gdRP0njb",
32
- qrCode: "https://link.zerion.io/pt3gdRP0njb",
33
- chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
34
- browserExtension: "https://zerion.io/extension"
35
- },
36
- createConnector: () => {
37
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
38
- projectId,
39
- chains,
40
- version: walletConnectVersion,
41
- options: walletConnectOptions
42
- }) : new InjectedConnector({
43
- chains,
44
- options: {
45
- getProvider: () => typeof window !== "undefined" ? window.zerionWallet || window.ethereum : void 0,
46
- ...options
47
- }
48
- });
49
- const getUri = async () => {
50
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
51
- return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
52
- };
53
- return {
54
- connector,
55
- mobile: {
56
- getUri: shouldUseWalletConnect ? getUri : void 0
57
- },
58
- qrCode: shouldUseWalletConnect ? {
59
- getUri,
60
- instructions: {
61
- learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
62
- steps: [
63
- {
64
- description: "wallet_connectors.zerion.qr_code.step1.description",
65
- step: "install",
66
- title: "wallet_connectors.zerion.qr_code.step1.title"
67
- },
68
- {
69
- description: "wallet_connectors.zerion.qr_code.step2.description",
70
- step: "create",
71
- title: "wallet_connectors.zerion.qr_code.step2.title"
72
- },
73
- {
74
- description: "wallet_connectors.zerion.qr_code.step3.description",
75
- step: "scan",
76
- title: "wallet_connectors.zerion.qr_code.step3.title"
77
- }
78
- ]
79
- }
80
- } : void 0,
81
- extension: {
82
- instructions: {
83
- learnMoreUrl: "https://help.zerion.io/en/",
84
- steps: [
85
- {
86
- description: "wallet_connectors.zerion.extension.step1.description",
87
- step: "install",
88
- title: "wallet_connectors.zerion.extension.step1.title"
89
- },
90
- {
91
- description: "wallet_connectors.zerion.extension.step2.description",
92
- step: "create",
93
- title: "wallet_connectors.zerion.extension.step2.title"
94
- },
95
- {
96
- description: "wallet_connectors.zerion.extension.step3.description",
97
- step: "refresh",
98
- title: "wallet_connectors.zerion.extension.step3.title"
99
- }
100
- ]
101
- }
102
- }
103
- };
104
- }
105
- };
106
- };
107
-
108
- export {
109
- zerionWallet
110
- };
@@ -1,52 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-OJAMLRYU.js";
6
- import {
7
- isIOS
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.ts
11
- var walletConnectWallet = ({
12
- chains,
13
- options,
14
- projectId,
15
- version = "2"
16
- }) => ({
17
- id: "walletConnect",
18
- name: "WalletConnect",
19
- iconUrl: async () => (await import("./walletConnectWallet-D6ZADJM7.js")).default,
20
- iconBackground: "#3b99fc",
21
- createConnector: () => {
22
- const ios = isIOS();
23
- const connector = version === "1" ? getWalletConnectConnector({
24
- version: "1",
25
- chains,
26
- options: {
27
- qrcode: ios,
28
- ...options
29
- }
30
- }) : getWalletConnectConnector({
31
- version: "2",
32
- chains,
33
- projectId,
34
- options: {
35
- showQrModal: ios,
36
- ...options
37
- }
38
- });
39
- const getUri = async () => getWalletConnectUri(connector, version);
40
- return {
41
- connector,
42
- ...ios ? {} : {
43
- mobile: { getUri },
44
- qrCode: { getUri }
45
- }
46
- };
47
- }
48
- });
49
-
50
- export {
51
- walletConnectWallet
52
- };
@@ -1,226 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-OJAMLRYU.js";
6
- import {
7
- isAndroid,
8
- isIOS
9
- } from "./chunk-ZOLACFTK.js";
10
-
11
- // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
12
- import { MetaMaskConnector } from "wagmi/connectors/metaMask";
13
- function isMetaMask(ethereum) {
14
- if (!ethereum?.isMetaMask) {
15
- return false;
16
- }
17
- if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
18
- return false;
19
- }
20
- if (ethereum.isApexWallet) {
21
- return false;
22
- }
23
- if (ethereum.isAvalanche) {
24
- return false;
25
- }
26
- if (ethereum.isBackpack) {
27
- return false;
28
- }
29
- if (ethereum.isBifrost) {
30
- return false;
31
- }
32
- if (ethereum.isBitKeep) {
33
- return false;
34
- }
35
- if (ethereum.isBitski) {
36
- return false;
37
- }
38
- if (ethereum.isBlockWallet) {
39
- return false;
40
- }
41
- if (ethereum.isCoinbaseWallet) {
42
- return false;
43
- }
44
- if (ethereum.isDawn) {
45
- return false;
46
- }
47
- if (ethereum.isEnkrypt) {
48
- return false;
49
- }
50
- if (ethereum.isExodus) {
51
- return false;
52
- }
53
- if (ethereum.isFrame) {
54
- return false;
55
- }
56
- if (ethereum.isFrontier) {
57
- return false;
58
- }
59
- if (ethereum.isGamestop) {
60
- return false;
61
- }
62
- if (ethereum.isHyperPay) {
63
- return false;
64
- }
65
- if (ethereum.isImToken) {
66
- return false;
67
- }
68
- if (ethereum.isKuCoinWallet) {
69
- return false;
70
- }
71
- if (ethereum.isMathWallet) {
72
- return false;
73
- }
74
- if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
75
- return false;
76
- }
77
- if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
78
- return false;
79
- }
80
- if (ethereum.isOpera) {
81
- return false;
82
- }
83
- if (ethereum.isPhantom) {
84
- return false;
85
- }
86
- if (ethereum.isPortal) {
87
- return false;
88
- }
89
- if (ethereum.isRabby) {
90
- return false;
91
- }
92
- if (ethereum.isRainbow) {
93
- return false;
94
- }
95
- if (ethereum.isStatus) {
96
- return false;
97
- }
98
- if (ethereum.isTalisman) {
99
- return false;
100
- }
101
- if (ethereum.isTally) {
102
- return false;
103
- }
104
- if (ethereum.isTokenPocket) {
105
- return false;
106
- }
107
- if (ethereum.isTokenary) {
108
- return false;
109
- }
110
- if (ethereum.isTrust || ethereum.isTrustWallet) {
111
- return false;
112
- }
113
- if (ethereum.isXDEFI) {
114
- return false;
115
- }
116
- if (ethereum.isZeal) {
117
- return false;
118
- }
119
- if (ethereum.isZerion) {
120
- return false;
121
- }
122
- return true;
123
- }
124
- var metaMaskWallet = ({
125
- chains,
126
- projectId,
127
- walletConnectOptions,
128
- walletConnectVersion = "2",
129
- ...options
130
- }) => {
131
- const providers = typeof window !== "undefined" && window.ethereum?.providers;
132
- const isMetaMaskInjected = typeof window !== "undefined" && typeof window.ethereum !== "undefined" && (window.ethereum.providers?.some(isMetaMask) || window.ethereum.isMetaMask);
133
- const shouldUseWalletConnect = !isMetaMaskInjected;
134
- return {
135
- id: "metaMask",
136
- name: "MetaMask",
137
- iconUrl: async () => (await import("./metaMaskWallet-ORHUNQRP.js")).default,
138
- iconAccent: "#f6851a",
139
- iconBackground: "#fff",
140
- installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
141
- downloadUrls: {
142
- android: "https://play.google.com/store/apps/details?id=io.metamask",
143
- ios: "https://apps.apple.com/us/app/metamask/id1438144202",
144
- mobile: "https://metamask.io/download",
145
- qrCode: "https://metamask.io/download",
146
- chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
147
- edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
148
- firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
149
- opera: "https://addons.opera.com/extensions/details/metamask-10",
150
- browserExtension: "https://metamask.io/download"
151
- },
152
- createConnector: () => {
153
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
154
- projectId,
155
- chains,
156
- version: walletConnectVersion,
157
- options: walletConnectOptions
158
- }) : new MetaMaskConnector({
159
- chains,
160
- options: {
161
- getProvider: () => providers ? providers.find(isMetaMask) : typeof window !== "undefined" ? window.ethereum : void 0,
162
- ...options
163
- }
164
- });
165
- const getUri = async () => {
166
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
167
- return isAndroid() ? uri : isIOS() ? `metamask://wc?uri=${encodeURIComponent(uri)}` : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
168
- };
169
- return {
170
- connector,
171
- mobile: {
172
- getUri: shouldUseWalletConnect ? getUri : void 0
173
- },
174
- qrCode: shouldUseWalletConnect ? {
175
- getUri,
176
- instructions: {
177
- learnMoreUrl: "https://metamask.io/faqs/",
178
- steps: [
179
- {
180
- description: "wallet_connectors.metamask.qr_code.step1.description",
181
- step: "install",
182
- title: "wallet_connectors.metamask.qr_code.step1.title"
183
- },
184
- {
185
- description: "wallet_connectors.metamask.qr_code.step2.description",
186
- step: "create",
187
- title: "wallet_connectors.metamask.qr_code.step2.title"
188
- },
189
- {
190
- description: "wallet_connectors.metamask.qr_code.step3.description",
191
- step: "refresh",
192
- title: "wallet_connectors.metamask.qr_code.step3.title"
193
- }
194
- ]
195
- }
196
- } : void 0,
197
- extension: {
198
- instructions: {
199
- learnMoreUrl: "https://metamask.io/faqs/",
200
- steps: [
201
- {
202
- description: "wallet_connectors.metamask.extension.step1.description",
203
- step: "install",
204
- title: "wallet_connectors.metamask.extension.step1.title"
205
- },
206
- {
207
- description: "wallet_connectors.metamask.extension.step2.description",
208
- step: "create",
209
- title: "wallet_connectors.metamask.extension.step2.title"
210
- },
211
- {
212
- description: "wallet_connectors.metamask.extension.step3.description",
213
- step: "refresh",
214
- title: "wallet_connectors.metamask.extension.step3.title"
215
- }
216
- ]
217
- }
218
- }
219
- };
220
- }
221
- };
222
- };
223
-
224
- export {
225
- metaMaskWallet
226
- };
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-OJAMLRYU.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
-
10
- // src/wallets/walletConnectors/argentWallet/argentWallet.ts
11
- var argentWallet = ({
12
- chains,
13
- projectId,
14
- walletConnectOptions,
15
- walletConnectVersion = "2"
16
- }) => ({
17
- id: "argent",
18
- name: "Argent",
19
- iconUrl: async () => (await import("./argentWallet-5OEFC7BD.js")).default,
20
- iconBackground: "#fff",
21
- downloadUrls: {
22
- android: "https://play.google.com/store/apps/details?id=im.argent.contractwalletclient",
23
- ios: "https://apps.apple.com/us/app/argent/id1358741926",
24
- mobile: "https://argent.xyz/download-argent",
25
- qrCode: "https://argent.link/app"
26
- },
27
- createConnector: () => {
28
- const connector = getWalletConnectConnector({
29
- projectId,
30
- chains,
31
- version: walletConnectVersion,
32
- options: walletConnectOptions
33
- });
34
- return {
35
- connector,
36
- mobile: {
37
- getUri: async () => {
38
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
39
- return isAndroid() ? uri : `argent://app/wc?uri=${encodeURIComponent(uri)}`;
40
- }
41
- },
42
- qrCode: {
43
- getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
44
- instructions: {
45
- learnMoreUrl: "https://argent.xyz/learn/what-is-a-crypto-wallet/",
46
- steps: [
47
- {
48
- description: "wallet_connectors.argent.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.argent.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.argent.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.argent.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.argent.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.argent.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- }
65
- };
66
- }
67
- });
68
-
69
- export {
70
- argentWallet
71
- };