@talken/talkenkit 2.7.2 → 2.7.4

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 (44) hide show
  1. package/dist/index.js +6 -21
  2. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +1 -1
  3. package/dist/wallets/walletConnectors/abcWallet/api/index.js +3 -3
  4. package/dist/wallets/walletConnectors/abcWallet/index.js +3 -3
  5. package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
  6. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  7. package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.js +2 -2
  8. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  9. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/chunk-4K2V7RCL.js +96 -0
  11. package/dist/wallets/walletConnectors/chunk-76M232IF.js +101 -0
  12. package/dist/wallets/walletConnectors/chunk-CTAFZ5RQ.js +71 -0
  13. package/dist/wallets/walletConnectors/chunk-FE2BFYJB.js +73 -0
  14. package/dist/wallets/walletConnectors/chunk-GNF5CHDQ.js +102 -0
  15. package/dist/wallets/walletConnectors/chunk-GZPGNUNF.js +94 -0
  16. package/dist/wallets/walletConnectors/chunk-KNNHGFKJ.js +98 -0
  17. package/dist/wallets/walletConnectors/chunk-KQROIRBW.js +27 -0
  18. package/dist/wallets/walletConnectors/chunk-LKNK2KKU.js +76 -0
  19. package/dist/wallets/walletConnectors/chunk-NM7YUGLV.js +186 -0
  20. package/dist/wallets/walletConnectors/chunk-U5UPCM5V.js +66 -0
  21. package/dist/wallets/walletConnectors/chunk-WZMFQQ6R.js +108 -0
  22. package/dist/wallets/walletConnectors/chunk-XSJUQHR7.js +95 -0
  23. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  25. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/index.js +88 -88
  31. package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  44. package/package.json +1 -1
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.js";
6
+ import {
7
+ isAndroid
8
+ } from "./chunk-RETKWSKD.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-PODFK4OS.js";
12
+
13
+ // src/wallets/walletConnectors/gateWallet/gateWallet.ts
14
+ var gateWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
19
+ const shouldUseWalletConnect = !isGateInjected;
20
+ return {
21
+ id: "gate",
22
+ name: "Gate Wallet",
23
+ rdns: "io.gate.wallet",
24
+ iconUrl: async () => (await import("./gateWallet-ZVEZILRP.js")).default,
25
+ iconAccent: "#fff",
26
+ iconBackground: "#fff",
27
+ downloadUrls: {
28
+ android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
29
+ ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
30
+ mobile: "https://www.gate.io/mobileapp",
31
+ qrCode: "https://www.gate.io/web3",
32
+ chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
33
+ browserExtension: "https://www.gate.io/web3"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => {
37
+ return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
38
+ } : void 0
39
+ },
40
+ qrCode: shouldUseWalletConnect ? {
41
+ getUri: (uri) => uri,
42
+ instructions: {
43
+ learnMoreUrl: "https://www.gate.io/learn",
44
+ steps: [
45
+ {
46
+ description: "wallet_connectors.gate.qr_code.step1.description",
47
+ step: "install",
48
+ title: "wallet_connectors.gate.qr_code.step1.title"
49
+ },
50
+ {
51
+ description: "wallet_connectors.gate.qr_code.step2.description",
52
+ step: "create",
53
+ title: "wallet_connectors.gate.qr_code.step2.title"
54
+ },
55
+ {
56
+ description: "wallet_connectors.gate.qr_code.step3.description",
57
+ step: "scan",
58
+ title: "wallet_connectors.gate.qr_code.step3.title"
59
+ }
60
+ ]
61
+ }
62
+ } : void 0,
63
+ extension: {
64
+ instructions: {
65
+ learnMoreUrl: "https://www.gate.io/learn",
66
+ steps: [
67
+ {
68
+ description: "wallet_connectors.gate.extension.step1.description",
69
+ step: "install",
70
+ title: "wallet_connectors.gate.extension.step1.title"
71
+ },
72
+ {
73
+ description: "wallet_connectors.gate.extension.step2.description",
74
+ step: "create",
75
+ title: "wallet_connectors.gate.extension.step2.title"
76
+ },
77
+ {
78
+ description: "wallet_connectors.gate.extension.step3.description",
79
+ step: "refresh",
80
+ title: "wallet_connectors.gate.extension.step3.title"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
86
+ projectId,
87
+ walletConnectParameters
88
+ }) : getInjectedConnector({ namespace: "gatewallet" })
89
+ };
90
+ };
91
+
92
+ export {
93
+ gateWallet
94
+ };
@@ -0,0 +1,98 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.js";
6
+ import {
7
+ isAndroid
8
+ } from "./chunk-RETKWSKD.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-PODFK4OS.js";
12
+
13
+ // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
14
+ var frontierWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isFrontierInjected = hasInjectedProvider({
19
+ namespace: "frontier.ethereum",
20
+ flag: "isFrontier"
21
+ });
22
+ const shouldUseWalletConnect = !isFrontierInjected;
23
+ return {
24
+ id: "frontier",
25
+ name: "Frontier Wallet",
26
+ rdns: "xyz.frontier.wallet",
27
+ installed: isFrontierInjected,
28
+ iconUrl: async () => (await import("./frontierWallet-HNIG7QYQ.js")).default,
29
+ iconBackground: "#CC703C",
30
+ downloadUrls: {
31
+ android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
32
+ ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
33
+ qrCode: "https://www.frontier.xyz/download",
34
+ chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
35
+ browserExtension: "https://www.frontier.xyz/download"
36
+ },
37
+ mobile: {
38
+ getUri: shouldUseWalletConnect ? (uri) => {
39
+ return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
40
+ } : void 0
41
+ },
42
+ qrCode: shouldUseWalletConnect ? {
43
+ getUri: (uri) => {
44
+ return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
45
+ },
46
+ instructions: {
47
+ learnMoreUrl: "https://help.frontier.xyz/en/",
48
+ steps: [
49
+ {
50
+ description: "wallet_connectors.im_token.qr_code.step1.description",
51
+ step: "install",
52
+ title: "wallet_connectors.im_token.qr_code.step1.title"
53
+ },
54
+ {
55
+ description: "wallet_connectors.im_token.qr_code.step2.description",
56
+ step: "create",
57
+ title: "wallet_connectors.im_token.qr_code.step2.title"
58
+ },
59
+ {
60
+ description: "wallet_connectors.im_token.qr_code.step3.description",
61
+ step: "scan",
62
+ title: "wallet_connectors.im_token.qr_code.step3.title"
63
+ }
64
+ ]
65
+ }
66
+ } : void 0,
67
+ extension: {
68
+ instructions: {
69
+ learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
70
+ steps: [
71
+ {
72
+ description: "wallet_connectors.frontier.extension.step1.description",
73
+ step: "install",
74
+ title: "wallet_connectors.frontier.extension.step1.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.frontier.extension.step2.description",
78
+ step: "create",
79
+ title: "wallet_connectors.frontier.extension.step2.title"
80
+ },
81
+ {
82
+ description: "wallet_connectors.frontier.extension.step3.description",
83
+ step: "refresh",
84
+ title: "wallet_connectors.frontier.extension.step3.title"
85
+ }
86
+ ]
87
+ }
88
+ },
89
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
90
+ namespace: "frontier.ethereum",
91
+ flag: "isFrontier"
92
+ })
93
+ };
94
+ };
95
+
96
+ export {
97
+ frontierWallet
98
+ };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.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,76 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.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,186 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.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,66 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector
4
+ } from "./chunk-PONHGUSY.js";
5
+ import {
6
+ isAndroid
7
+ } from "./chunk-RETKWSKD.js";
8
+ import {
9
+ getWalletConnectConnector
10
+ } from "./chunk-PODFK4OS.js";
11
+
12
+ // src/wallets/walletConnectors/iopayWallet/iopayWallet.ts
13
+ function isIoPayMobile() {
14
+ return typeof navigator !== "undefined" && typeof navigator.userAgent !== "undefined" && (navigator?.userAgent.includes("IoPayAndroid") || navigator?.userAgent.includes("IoPayiOs"));
15
+ }
16
+ var iopayWallet = ({
17
+ projectId,
18
+ walletConnectParameters
19
+ }) => ({
20
+ id: "iopay",
21
+ name: "ioPay Wallet",
22
+ iconUrl: async () => (await import("./iopayWallet-IJHJ7NYT.js")).default,
23
+ iconBackground: "#fff",
24
+ downloadUrls: {
25
+ android: "https://play.google.com/store/apps/details?id=io.iotex.iopay.gp&pli=1",
26
+ ios: "https://apps.apple.com/us/app/iopay-multichain-crypto-wallet/id1478086371",
27
+ qrCode: "https://iopay.me/",
28
+ browserExtension: "https://iopay.me/"
29
+ },
30
+ mobile: {
31
+ getUri: (uri) => {
32
+ return isAndroid() ? uri : `iopay://wc?uri=${encodeURIComponent(uri)}`;
33
+ }
34
+ },
35
+ qrCode: {
36
+ getUri: (uri) => uri,
37
+ instructions: {
38
+ learnMoreUrl: "https://iopay.me/",
39
+ steps: [
40
+ {
41
+ description: "wallet_connectors.iopay.qr_code.step1.description",
42
+ step: "install",
43
+ title: "wallet_connectors.iopay.qr_code.step1.title"
44
+ },
45
+ {
46
+ description: "wallet_connectors.iopay.qr_code.step2.description",
47
+ step: "create",
48
+ title: "wallet_connectors.iopay.qr_code.step2.title"
49
+ },
50
+ {
51
+ description: "wallet_connectors.iopay.qr_code.step3.description",
52
+ step: "scan",
53
+ title: "wallet_connectors.iopay.qr_code.step3.title"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ createConnector: isIoPayMobile() ? getInjectedConnector({}) : getWalletConnectConnector({
59
+ projectId,
60
+ walletConnectParameters
61
+ })
62
+ });
63
+
64
+ export {
65
+ iopayWallet
66
+ };
@@ -0,0 +1,108 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.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
+ };