@talken/talkenkit 2.3.6 → 2.3.7

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 (115) hide show
  1. package/dist/components/ChainIndicator/ChainIndicator.css.d.ts +4 -0
  2. package/dist/components/ChainIndicator/ChainIndicator.d.ts +53 -0
  3. package/dist/components/ChainIndicator/index.d.ts +2 -0
  4. package/dist/components/ChainSelector/ChainSelector.css.d.ts +5 -0
  5. package/dist/components/ChainSelector/ChainSelector.d.ts +38 -0
  6. package/dist/components/ChainSelector/index.d.ts +2 -0
  7. package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +9 -0
  8. package/dist/components/ConnectOptions/DesktopOptions.d.ts +5 -1
  9. package/dist/components/ConnectOptions/MultiChainConnectOptions.d.ts +31 -0
  10. package/dist/components/ConnectOptions/index.d.ts +3 -0
  11. package/dist/components/ModalSelection/ModalSelection.d.ts +2 -1
  12. package/dist/components/ProfileDetails/ProfileDetails.d.ts +1 -2
  13. package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts +8 -1
  14. package/dist/components/SolanaWalletList/SolanaWalletList.css.d.ts +7 -0
  15. package/dist/components/SolanaWalletList/SolanaWalletList.d.ts +32 -0
  16. package/dist/components/SolanaWalletList/index.d.ts +2 -0
  17. package/dist/contexts/MultiChainContext.d.ts +68 -0
  18. package/dist/contexts/index.d.ts +7 -0
  19. package/dist/index.css +105 -0
  20. package/dist/index.d.ts +12 -0
  21. package/dist/index.js +1432 -834
  22. package/dist/solana/SolanaWalletProvider.d.ts +38 -0
  23. package/dist/solana/config.d.ts +57 -0
  24. package/dist/solana/index.d.ts +11 -0
  25. package/dist/solana/utils/detection.d.ts +27 -0
  26. package/dist/solana/wallets/backpackWallet.d.ts +19 -0
  27. package/dist/solana/wallets/index.d.ts +8 -0
  28. package/dist/solana/wallets/phantomSolanaWallet.d.ts +17 -0
  29. package/dist/solana/wallets/solflareWallet.d.ts +17 -0
  30. package/dist/types/solana.d.ts +97 -0
  31. package/dist/wallets/recentSolanaWalletIds.d.ts +16 -0
  32. package/dist/wallets/walletConnectors/abcWallet/api/index.js +4 -4
  33. package/dist/wallets/walletConnectors/abcWallet/index.js +2 -2
  34. package/dist/wallets/walletConnectors/chunk-3SVPZCA6.js +71 -0
  35. package/dist/wallets/walletConnectors/chunk-5QEUEPNY.js +94 -0
  36. package/dist/wallets/walletConnectors/chunk-B6JLYR3I.js +66 -0
  37. package/dist/wallets/walletConnectors/chunk-HKWBR5B7.js +102 -0
  38. package/dist/wallets/walletConnectors/chunk-K4APJ4PE.js +96 -0
  39. package/dist/wallets/walletConnectors/chunk-LJ2B47VF.js +108 -0
  40. package/dist/wallets/walletConnectors/chunk-LXINMUQC.js +186 -0
  41. package/dist/wallets/walletConnectors/chunk-MORUEOYX.js +76 -0
  42. package/dist/wallets/walletConnectors/chunk-MQTXA63X.js +27 -0
  43. package/dist/wallets/walletConnectors/chunk-PMZJGS7X.js +73 -0
  44. package/dist/wallets/walletConnectors/chunk-WZZVA3LW.js +101 -0
  45. package/dist/wallets/walletConnectors/chunk-XEIKWKH7.js +63 -0
  46. package/dist/wallets/walletConnectors/chunk-XOQNQKZE.js +98 -0
  47. package/dist/wallets/walletConnectors/chunk-ZAGAF6PO.js +63 -0
  48. package/dist/wallets/walletConnectors/chunk-ZJ6OFFD5.js +95 -0
  49. package/dist/wallets/walletConnectors/index.js +9 -9
  50. package/package.json +6 -1
  51. package/dist/wallets/walletConnectors/chunk-2J66VMY5.js +0 -152
  52. package/dist/wallets/walletConnectors/chunk-2J6LHJAF.js +0 -228
  53. package/dist/wallets/walletConnectors/chunk-2ZPGPZCP.js +0 -228
  54. package/dist/wallets/walletConnectors/chunk-3DPCIDW6.js +0 -1730
  55. package/dist/wallets/walletConnectors/chunk-4HKJ53H3.js +0 -1742
  56. package/dist/wallets/walletConnectors/chunk-5EARL7FN.js +0 -39
  57. package/dist/wallets/walletConnectors/chunk-6JKWIEGA.js +0 -228
  58. package/dist/wallets/walletConnectors/chunk-7L33BY4P.js +0 -44
  59. package/dist/wallets/walletConnectors/chunk-7SXCH5TL.js +0 -1752
  60. package/dist/wallets/walletConnectors/chunk-7UZBDZZZ.js +0 -599
  61. package/dist/wallets/walletConnectors/chunk-BRM4ZVXZ.js +0 -44
  62. package/dist/wallets/walletConnectors/chunk-BUDWZAL7.js +0 -44
  63. package/dist/wallets/walletConnectors/chunk-CSWWNAYR.js +0 -44
  64. package/dist/wallets/walletConnectors/chunk-E4N7SPPU.js +0 -39
  65. package/dist/wallets/walletConnectors/chunk-ENU7XLF5.js +0 -44
  66. package/dist/wallets/walletConnectors/chunk-ESRU5KCF.js +0 -151
  67. package/dist/wallets/walletConnectors/chunk-FF7ZIXKD.js +0 -39
  68. package/dist/wallets/walletConnectors/chunk-FJCL2YPU.js +0 -1737
  69. package/dist/wallets/walletConnectors/chunk-FSU3WBH3.js +0 -63
  70. package/dist/wallets/walletConnectors/chunk-G2IHR6PW.js +0 -63
  71. package/dist/wallets/walletConnectors/chunk-HD6YCICR.js +0 -228
  72. package/dist/wallets/walletConnectors/chunk-HDYBRMYW.js +0 -194
  73. package/dist/wallets/walletConnectors/chunk-HIZCIW5L.js +0 -228
  74. package/dist/wallets/walletConnectors/chunk-JRNBDHFL.js +0 -44
  75. package/dist/wallets/walletConnectors/chunk-KIQDE4N6.js +0 -39
  76. package/dist/wallets/walletConnectors/chunk-KOT7JYJR.js +0 -39
  77. package/dist/wallets/walletConnectors/chunk-KRAIITU7.js +0 -39
  78. package/dist/wallets/walletConnectors/chunk-KZOSE2PI.js +0 -228
  79. package/dist/wallets/walletConnectors/chunk-L7I5I4CZ.js +0 -44
  80. package/dist/wallets/walletConnectors/chunk-LNZJLKFB.js +0 -39
  81. package/dist/wallets/walletConnectors/chunk-LV765WZL.js +0 -1748
  82. package/dist/wallets/walletConnectors/chunk-MSI2BPP5.js +0 -1722
  83. package/dist/wallets/walletConnectors/chunk-MX2IY5CD.js +0 -44
  84. package/dist/wallets/walletConnectors/chunk-NLX2EV7O.js +0 -44
  85. package/dist/wallets/walletConnectors/chunk-NVAZ3B3V.js +0 -228
  86. package/dist/wallets/walletConnectors/chunk-OEWU3ZMN.js +0 -39
  87. package/dist/wallets/walletConnectors/chunk-P2MTINFI.js +0 -280
  88. package/dist/wallets/walletConnectors/chunk-PNMSIVVT.js +0 -44
  89. package/dist/wallets/walletConnectors/chunk-PZNYT2HC.js +0 -1722
  90. package/dist/wallets/walletConnectors/chunk-QPAE4SDS.js +0 -39
  91. package/dist/wallets/walletConnectors/chunk-QZRNNI3E.js +0 -39
  92. package/dist/wallets/walletConnectors/chunk-R4UYVU5X.js +0 -1721
  93. package/dist/wallets/walletConnectors/chunk-R6JCHV55.js +0 -39
  94. package/dist/wallets/walletConnectors/chunk-RLBGBBIO.js +0 -309
  95. package/dist/wallets/walletConnectors/chunk-RWIZ25FJ.js +0 -1684
  96. package/dist/wallets/walletConnectors/chunk-TUUNSVKZ.js +0 -345
  97. package/dist/wallets/walletConnectors/chunk-U2CUEL35.js +0 -240
  98. package/dist/wallets/walletConnectors/chunk-V6NRLREB.js +0 -44
  99. package/dist/wallets/walletConnectors/chunk-VM7AEC7H.js +0 -39
  100. package/dist/wallets/walletConnectors/chunk-VPNKJ7PB.js +0 -1674
  101. package/dist/wallets/walletConnectors/chunk-W2VDZD74.js +0 -478
  102. package/dist/wallets/walletConnectors/chunk-WAO3KL5U.js +0 -285
  103. package/dist/wallets/walletConnectors/chunk-WPHTIILX.js +0 -228
  104. package/dist/wallets/walletConnectors/chunk-WR7HSVMH.js +0 -228
  105. package/dist/wallets/walletConnectors/chunk-WSCJY2QD.js +0 -228
  106. package/dist/wallets/walletConnectors/chunk-X3JQB5QL.js +0 -44
  107. package/dist/wallets/walletConnectors/chunk-X4CDP7L7.js +0 -228
  108. package/dist/wallets/walletConnectors/chunk-XETOVXYM.js +0 -228
  109. package/dist/wallets/walletConnectors/chunk-XYPR4BAF.js +0 -436
  110. package/dist/wallets/walletConnectors/chunk-YZBFKVTX.js +0 -1675
  111. package/dist/wallets/walletConnectors/chunk-Z2ZRPTPX.js +0 -1726
  112. package/dist/wallets/walletConnectors/{chunk-47TQ23J4.js → chunk-6TLWAEJV.js} +8 -8
  113. package/dist/wallets/walletConnectors/{chunk-LTBQU2GW.js → chunk-74ALNZG4.js} +3 -3
  114. package/dist/wallets/walletConnectors/{chunk-66SCJ77O.js → chunk-CM5OGUJV.js} +6 -6
  115. package/dist/wallets/walletConnectors/{chunk-VCBVYFLJ.js → chunk-NLKL4KD2.js} +8 -8
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-MBBGZGXF.js";
6
+ import {
7
+ isIOS
8
+ } from "./chunk-RETKWSKD.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-PODFK4OS.js";
12
+
13
+ // src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
14
+ var zerionWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isZerionInjected = hasInjectedProvider({
19
+ namespace: "zerionWallet",
20
+ flag: "isZerion"
21
+ });
22
+ const shouldUseWalletConnect = !isZerionInjected;
23
+ const getUri = (uri) => {
24
+ return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
25
+ };
26
+ return {
27
+ id: "zerion",
28
+ name: "Zerion",
29
+ rdns: "io.zerion.wallet",
30
+ iconUrl: async () => (await import("./zerionWallet-CYFHB5PA.js")).default,
31
+ iconAccent: "#2962ef",
32
+ iconBackground: "#2962ef",
33
+ installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
34
+ downloadUrls: {
35
+ android: "https://play.google.com/store/apps/details?id=io.zerion.android",
36
+ ios: "https://apps.apple.com/app/apple-store/id1456732565",
37
+ mobile: "https://link.zerion.io/pt3gdRP0njb",
38
+ qrCode: "https://link.zerion.io/pt3gdRP0njb",
39
+ chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
40
+ browserExtension: "https://zerion.io/extension"
41
+ },
42
+ mobile: {
43
+ getUri: shouldUseWalletConnect ? getUri : void 0
44
+ },
45
+ qrCode: shouldUseWalletConnect ? {
46
+ getUri,
47
+ instructions: {
48
+ learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
49
+ steps: [
50
+ {
51
+ description: "wallet_connectors.zerion.qr_code.step1.description",
52
+ step: "install",
53
+ title: "wallet_connectors.zerion.qr_code.step1.title"
54
+ },
55
+ {
56
+ description: "wallet_connectors.zerion.qr_code.step2.description",
57
+ step: "create",
58
+ title: "wallet_connectors.zerion.qr_code.step2.title"
59
+ },
60
+ {
61
+ description: "wallet_connectors.zerion.qr_code.step3.description",
62
+ step: "scan",
63
+ title: "wallet_connectors.zerion.qr_code.step3.title"
64
+ }
65
+ ]
66
+ }
67
+ } : void 0,
68
+ extension: {
69
+ instructions: {
70
+ learnMoreUrl: "https://help.zerion.io/en/",
71
+ steps: [
72
+ {
73
+ description: "wallet_connectors.zerion.extension.step1.description",
74
+ step: "install",
75
+ title: "wallet_connectors.zerion.extension.step1.title"
76
+ },
77
+ {
78
+ description: "wallet_connectors.zerion.extension.step2.description",
79
+ step: "create",
80
+ title: "wallet_connectors.zerion.extension.step2.title"
81
+ },
82
+ {
83
+ description: "wallet_connectors.zerion.extension.step3.description",
84
+ step: "refresh",
85
+ title: "wallet_connectors.zerion.extension.step3.title"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
91
+ projectId,
92
+ walletConnectParameters
93
+ }) : getInjectedConnector({
94
+ namespace: "zerionWallet",
95
+ flag: "isZerion"
96
+ })
97
+ };
98
+ };
99
+
100
+ export {
101
+ zerionWallet
102
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-MBBGZGXF.js";
6
+ import {
7
+ isAndroid
8
+ } from "./chunk-RETKWSKD.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-PODFK4OS.js";
12
+
13
+ // src/wallets/walletConnectors/okxWallet/okxWallet.ts
14
+ var okxWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
19
+ const shouldUseWalletConnect = !isOKXInjected;
20
+ return {
21
+ id: "okx",
22
+ name: "OKX Wallet",
23
+ rdns: "com.okex.wallet",
24
+ iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
25
+ iconAccent: "#000",
26
+ iconBackground: "#000",
27
+ downloadUrls: {
28
+ android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
29
+ ios: "https://itunes.apple.com/app/id1327268470?mt=8",
30
+ mobile: "https://okx.com/download",
31
+ qrCode: "https://okx.com/download",
32
+ chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
33
+ edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
34
+ firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
35
+ browserExtension: "https://okx.com/download"
36
+ },
37
+ mobile: {
38
+ getUri: shouldUseWalletConnect ? (uri) => {
39
+ return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
40
+ } : void 0
41
+ },
42
+ qrCode: shouldUseWalletConnect ? {
43
+ getUri: (uri) => uri,
44
+ instructions: {
45
+ learnMoreUrl: "https://okx.com/web3/",
46
+ steps: [
47
+ {
48
+ description: "wallet_connectors.okx.qr_code.step1.description",
49
+ step: "install",
50
+ title: "wallet_connectors.okx.qr_code.step1.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.okx.qr_code.step2.description",
54
+ step: "create",
55
+ title: "wallet_connectors.okx.qr_code.step2.title"
56
+ },
57
+ {
58
+ description: "wallet_connectors.okx.qr_code.step3.description",
59
+ step: "scan",
60
+ title: "wallet_connectors.okx.qr_code.step3.title"
61
+ }
62
+ ]
63
+ }
64
+ } : void 0,
65
+ extension: {
66
+ instructions: {
67
+ learnMoreUrl: "https://okx.com/web3/",
68
+ steps: [
69
+ {
70
+ description: "wallet_connectors.okx.extension.step1.description",
71
+ step: "install",
72
+ title: "wallet_connectors.okx.extension.step1.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.okx.extension.step2.description",
76
+ step: "create",
77
+ title: "wallet_connectors.okx.extension.step2.title"
78
+ },
79
+ {
80
+ description: "wallet_connectors.okx.extension.step3.description",
81
+ step: "refresh",
82
+ title: "wallet_connectors.okx.extension.step3.title"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
+ projectId,
89
+ walletConnectParameters
90
+ }) : getInjectedConnector({ namespace: "okxwallet" })
91
+ };
92
+ };
93
+
94
+ export {
95
+ okxWallet
96
+ };
@@ -0,0 +1,108 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-MBBGZGXF.js";
6
+ import {
7
+ isMobile
8
+ } from "./chunk-RETKWSKD.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-PODFK4OS.js";
12
+
13
+ // src/wallets/walletConnectors/trustWallet/trustWallet.ts
14
+ var trustWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
19
+ const shouldUseWalletConnect = !isTrustWalletInjected;
20
+ const getUriMobile = (uri) => {
21
+ return `trust://wc?uri=${encodeURIComponent(uri)}`;
22
+ };
23
+ const getUriQR = (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://trustwallet.com/",
35
+ steps: [
36
+ {
37
+ description: "wallet_connectors.trust.qr_code.step1.description",
38
+ step: "install",
39
+ title: "wallet_connectors.trust.qr_code.step1.title"
40
+ },
41
+ {
42
+ description: "wallet_connectors.trust.qr_code.step2.description",
43
+ step: "create",
44
+ title: "wallet_connectors.trust.qr_code.step2.title"
45
+ },
46
+ {
47
+ description: "wallet_connectors.trust.qr_code.step3.description",
48
+ step: "scan",
49
+ title: "wallet_connectors.trust.qr_code.step3.title"
50
+ }
51
+ ]
52
+ }
53
+ };
54
+ }
55
+ const extensionConnector = {
56
+ instructions: {
57
+ learnMoreUrl: "https://trustwallet.com/browser-extension",
58
+ steps: [
59
+ {
60
+ description: "wallet_connectors.trust.extension.step1.description",
61
+ step: "install",
62
+ title: "wallet_connectors.trust.extension.step1.title"
63
+ },
64
+ {
65
+ description: "wallet_connectors.trust.extension.step2.description",
66
+ step: "create",
67
+ title: "wallet_connectors.trust.extension.step2.title"
68
+ },
69
+ {
70
+ description: "wallet_connectors.trust.extension.step3.description",
71
+ step: "refresh",
72
+ title: "wallet_connectors.trust.extension.step3.title"
73
+ }
74
+ ]
75
+ }
76
+ };
77
+ return {
78
+ id: "trust",
79
+ name: "Trust Wallet",
80
+ rdns: "com.trustwallet.app",
81
+ iconUrl: async () => (await import("./trustWallet-E2GVGE4U.js")).default,
82
+ // Note that we never resolve `installed` to `false` because the
83
+ // Trust Wallet provider falls back to other connection methods if
84
+ // the injected connector isn't available
85
+ installed: isTrustWalletInjected || void 0,
86
+ iconAccent: "#3375BB",
87
+ iconBackground: "#fff",
88
+ downloadUrls: {
89
+ android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
90
+ ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
91
+ mobile: "https://trustwallet.com/download",
92
+ qrCode: "https://trustwallet.com/download",
93
+ chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
94
+ browserExtension: "https://trustwallet.com/browser-extension"
95
+ },
96
+ mobile: mobileConnector,
97
+ qrCode: qrConnector,
98
+ extension: extensionConnector,
99
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
100
+ projectId,
101
+ walletConnectParameters
102
+ }) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
103
+ };
104
+ };
105
+
106
+ export {
107
+ trustWallet
108
+ };
@@ -0,0 +1,186 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-MBBGZGXF.js";
6
+ import {
7
+ isAndroid,
8
+ isIOS
9
+ } from "./chunk-RETKWSKD.js";
10
+ import {
11
+ getWalletConnectConnector
12
+ } from "./chunk-PODFK4OS.js";
13
+
14
+ // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
15
+ function isMetaMask(ethereum) {
16
+ if (!ethereum?.isMetaMask)
17
+ return false;
18
+ if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state)
19
+ return false;
20
+ if (ethereum.isApexWallet)
21
+ return false;
22
+ if (ethereum.isAvalanche)
23
+ return false;
24
+ if (ethereum.isBackpack)
25
+ return false;
26
+ if (ethereum.isBifrost)
27
+ return false;
28
+ if (ethereum.isBitKeep)
29
+ return false;
30
+ if (ethereum.isBitski)
31
+ return false;
32
+ if (ethereum.isBlockWallet)
33
+ return false;
34
+ if (ethereum.isCoinbaseWallet)
35
+ return false;
36
+ if (ethereum.isDawn)
37
+ return false;
38
+ if (ethereum.isEnkrypt)
39
+ return false;
40
+ if (ethereum.isExodus)
41
+ return false;
42
+ if (ethereum.isFrame)
43
+ return false;
44
+ if (ethereum.isFrontier)
45
+ return false;
46
+ if (ethereum.isGamestop)
47
+ return false;
48
+ if (ethereum.isHyperPay)
49
+ return false;
50
+ if (ethereum.isImToken)
51
+ return false;
52
+ if (ethereum.isKuCoinWallet)
53
+ return false;
54
+ if (ethereum.isMathWallet)
55
+ return false;
56
+ if (ethereum.isNestWallet)
57
+ return false;
58
+ if (ethereum.isOkxWallet || ethereum.isOKExWallet)
59
+ return false;
60
+ if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
61
+ return false;
62
+ if (ethereum.isOpera)
63
+ return false;
64
+ if (ethereum.isPhantom)
65
+ return false;
66
+ if (ethereum.isPortal)
67
+ return false;
68
+ if (ethereum.isRabby)
69
+ return false;
70
+ if (ethereum.isRainbow)
71
+ return false;
72
+ if (ethereum.isStatus)
73
+ return false;
74
+ if (ethereum.isTalisman)
75
+ return false;
76
+ if (ethereum.isTally)
77
+ return false;
78
+ if (ethereum.isTokenPocket)
79
+ return false;
80
+ if (ethereum.isTokenary)
81
+ return false;
82
+ if (ethereum.isTrust || ethereum.isTrustWallet)
83
+ return false;
84
+ if (ethereum.isXDEFI)
85
+ return false;
86
+ if (ethereum.isZeal)
87
+ return false;
88
+ if (ethereum.isZerion)
89
+ return false;
90
+ if (ethereum.__seif)
91
+ return false;
92
+ return true;
93
+ }
94
+ var metaMaskWallet = ({
95
+ projectId,
96
+ walletConnectParameters
97
+ }) => {
98
+ const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
99
+ const shouldUseWalletConnect = !isMetaMaskInjected;
100
+ const getUri = (uri) => {
101
+ return isAndroid() ? uri : isIOS() ? (
102
+ // currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
103
+ `metamask://wc?uri=${encodeURIComponent(uri)}`
104
+ ) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
105
+ };
106
+ return {
107
+ id: "metaMask",
108
+ name: "MetaMask",
109
+ rdns: "io.metamask",
110
+ iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
111
+ iconAccent: "#f6851a",
112
+ iconBackground: "#fff",
113
+ installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
114
+ downloadUrls: {
115
+ android: "https://play.google.com/store/apps/details?id=io.metamask",
116
+ ios: "https://apps.apple.com/us/app/metamask/id1438144202",
117
+ mobile: "https://metamask.io/download",
118
+ qrCode: "https://metamask.io/download",
119
+ chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
120
+ edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
121
+ firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
122
+ opera: "https://addons.opera.com/extensions/details/metamask-10",
123
+ browserExtension: "https://metamask.io/download"
124
+ },
125
+ mobile: {
126
+ getUri: shouldUseWalletConnect ? getUri : void 0
127
+ },
128
+ qrCode: shouldUseWalletConnect ? {
129
+ getUri,
130
+ instructions: {
131
+ learnMoreUrl: "https://metamask.io/faqs/",
132
+ steps: [
133
+ {
134
+ description: "wallet_connectors.metamask.qr_code.step1.description",
135
+ step: "install",
136
+ title: "wallet_connectors.metamask.qr_code.step1.title"
137
+ },
138
+ {
139
+ description: "wallet_connectors.metamask.qr_code.step2.description",
140
+ step: "create",
141
+ title: "wallet_connectors.metamask.qr_code.step2.title"
142
+ },
143
+ {
144
+ description: "wallet_connectors.metamask.qr_code.step3.description",
145
+ step: "refresh",
146
+ title: "wallet_connectors.metamask.qr_code.step3.title"
147
+ }
148
+ ]
149
+ }
150
+ } : void 0,
151
+ extension: {
152
+ instructions: {
153
+ learnMoreUrl: "https://metamask.io/faqs/",
154
+ steps: [
155
+ {
156
+ description: "wallet_connectors.metamask.extension.step1.description",
157
+ step: "install",
158
+ title: "wallet_connectors.metamask.extension.step1.title"
159
+ },
160
+ {
161
+ description: "wallet_connectors.metamask.extension.step2.description",
162
+ step: "create",
163
+ title: "wallet_connectors.metamask.extension.step2.title"
164
+ },
165
+ {
166
+ description: "wallet_connectors.metamask.extension.step3.description",
167
+ step: "refresh",
168
+ title: "wallet_connectors.metamask.extension.step3.title"
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
174
+ projectId,
175
+ walletConnectParameters
176
+ }) : getInjectedConnector({
177
+ target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
178
+ isMetaMask
179
+ ) ?? window.ethereum : void 0
180
+ })
181
+ };
182
+ };
183
+
184
+ export {
185
+ metaMaskWallet
186
+ };
@@ -0,0 +1,76 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-MBBGZGXF.js";
6
+ import {
7
+ isAndroid
8
+ } from "./chunk-RETKWSKD.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-PODFK4OS.js";
12
+
13
+ // src/wallets/walletConnectors/binanceWallet/binanceWallet.ts
14
+ var binanceWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isBinanceInjected = hasInjectedProvider({
19
+ flag: "isBinance"
20
+ });
21
+ const shouldUseWalletConnect = !isBinanceInjected;
22
+ return {
23
+ id: "binance",
24
+ name: "Binance Wallet",
25
+ rdns: "com.binance.wallet",
26
+ iconUrl: async () => (await import("./binanceWallet-BCWLBY3Q.js")).default,
27
+ iconBackground: "#000000",
28
+ installed: !shouldUseWalletConnect ? isBinanceInjected : void 0,
29
+ downloadUrls: {
30
+ android: "https://play.google.com/store/apps/details?id=com.binance.dev",
31
+ ios: "https://apps.apple.com/us/app/id1436799971",
32
+ mobile: "https://www.binance.com/en/download",
33
+ qrCode: "https://www.binance.com/en/web3wallet"
34
+ },
35
+ mobile: shouldUseWalletConnect ? {
36
+ getUri: (uri) => {
37
+ return isAndroid() ? uri : `bnc://app.binance.com/cedefi/wc?uri=${encodeURIComponent(
38
+ uri
39
+ )}`;
40
+ }
41
+ } : void 0,
42
+ qrCode: shouldUseWalletConnect ? {
43
+ getUri: (uri) => uri,
44
+ instructions: {
45
+ learnMoreUrl: "https://www.binance.com/en/web3wallet",
46
+ steps: [
47
+ {
48
+ description: "wallet_connectors.binance.qr_code.step1.description",
49
+ step: "install",
50
+ title: "wallet_connectors.binance.qr_code.step1.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.binance.qr_code.step2.description",
54
+ step: "create",
55
+ title: "wallet_connectors.binance.qr_code.step2.title"
56
+ },
57
+ {
58
+ description: "wallet_connectors.binance.qr_code.step3.description",
59
+ step: "scan",
60
+ title: "wallet_connectors.binance.qr_code.step3.title"
61
+ }
62
+ ]
63
+ }
64
+ } : void 0,
65
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
66
+ projectId,
67
+ walletConnectParameters
68
+ }) : getInjectedConnector({
69
+ flag: "isBinance"
70
+ })
71
+ };
72
+ };
73
+
74
+ export {
75
+ binanceWallet
76
+ };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-MBBGZGXF.js";
6
+ import {
7
+ isIOS
8
+ } from "./chunk-RETKWSKD.js";
9
+
10
+ // src/wallets/walletConnectors/dawnWallet/dawnWallet.ts
11
+ var dawnWallet = () => ({
12
+ id: "dawn",
13
+ name: "Dawn",
14
+ iconUrl: async () => (await import("./dawnWallet-ONVAA3S4.js")).default,
15
+ iconBackground: "#000000",
16
+ installed: hasInjectedProvider({ flag: "isDawn" }),
17
+ hidden: () => !isIOS(),
18
+ downloadUrls: {
19
+ ios: "https://apps.apple.com/us/app/dawn-ethereum-wallet/id1673143782",
20
+ mobile: "https://dawnwallet.xyz"
21
+ },
22
+ createConnector: getInjectedConnector({ flag: "isDawn" })
23
+ });
24
+
25
+ export {
26
+ dawnWallet
27
+ };
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-MBBGZGXF.js";
6
+ import {
7
+ isAndroid,
8
+ isIOS
9
+ } from "./chunk-RETKWSKD.js";
10
+ import {
11
+ getWalletConnectConnector
12
+ } from "./chunk-PODFK4OS.js";
13
+
14
+ // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
15
+ var rainbowWallet = ({
16
+ projectId,
17
+ walletConnectParameters
18
+ }) => {
19
+ const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
20
+ const shouldUseWalletConnect = !isRainbowInjected;
21
+ const getUri = (uri) => {
22
+ return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
23
+ uri
24
+ )}&connector=rainbowkit`;
25
+ };
26
+ return {
27
+ id: "rainbow",
28
+ name: "Rainbow",
29
+ rdns: "me.rainbow",
30
+ iconUrl: async () => (await import("./rainbowWallet-2SR6TVBF.js")).default,
31
+ iconBackground: "#0c2f78",
32
+ installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
33
+ downloadUrls: {
34
+ android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
35
+ ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
36
+ mobile: "https://rainbow.download?utm_source=rainbowkit",
37
+ qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
38
+ browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
39
+ },
40
+ mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
41
+ qrCode: shouldUseWalletConnect ? {
42
+ getUri,
43
+ instructions: {
44
+ learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
45
+ steps: [
46
+ {
47
+ description: "wallet_connectors.rainbow.qr_code.step1.description",
48
+ step: "install",
49
+ title: "wallet_connectors.rainbow.qr_code.step1.title"
50
+ },
51
+ {
52
+ description: "wallet_connectors.rainbow.qr_code.step2.description",
53
+ step: "create",
54
+ title: "wallet_connectors.rainbow.qr_code.step2.title"
55
+ },
56
+ {
57
+ description: "wallet_connectors.rainbow.qr_code.step3.description",
58
+ step: "scan",
59
+ title: "wallet_connectors.rainbow.qr_code.step3.title"
60
+ }
61
+ ]
62
+ }
63
+ } : void 0,
64
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
65
+ projectId,
66
+ walletConnectParameters
67
+ }) : getInjectedConnector({ flag: "isRainbow" })
68
+ };
69
+ };
70
+
71
+ export {
72
+ rainbowWallet
73
+ };