@talken/talkenkit 2.7.5-beta.1 → 2.7.5-beta.2

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 (111) hide show
  1. package/dist/abcWallet-HKEIJA6T.js +172 -0
  2. package/dist/chunk-CGSOMXYJ.js +5757 -0
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.js +874 -792
  5. package/dist/providers/SignConfirmationProvider/SuppressSignConfirmation.d.ts +11 -0
  6. package/dist/providers/SignConfirmationProvider/index.d.ts +1 -0
  7. package/dist/providers/TransactionResultProvider/SuppressTransactionResult.d.ts +11 -0
  8. package/dist/providers/TransactionResultProvider/index.d.ts +1 -0
  9. package/dist/providers/TransactionResultProvider/types.d.ts +1 -0
  10. package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +1 -1
  11. package/dist/wallets/walletConnectors/abcWallet/AbstractChainProvider.d.ts +9 -0
  12. package/dist/wallets/walletConnectors/abcWallet/AbstractChainProvider.js +2 -2
  13. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +2 -2
  14. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +3 -3
  15. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +13 -13
  16. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +7 -7
  17. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +9 -9
  18. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +3 -3
  19. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +14 -14
  20. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +6 -6
  21. package/dist/wallets/walletConnectors/abcWallet/api/index.js +6 -6
  22. package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.js +1 -1
  23. package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.d.ts +1 -1
  24. package/dist/wallets/walletConnectors/abcWallet/index.js +45 -45
  25. package/dist/wallets/walletConnectors/abcWallet/types/api.types.d.ts +10 -10
  26. package/dist/wallets/walletConnectors/abcWallet/types.js +1 -1
  27. package/dist/wallets/walletConnectors/abcWallet/utils.js +1 -1
  28. package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +4 -4
  29. package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/chunk-25VIZXJZ.js +341 -0
  35. package/dist/wallets/walletConnectors/chunk-26URNKLZ.js +341 -0
  36. package/dist/wallets/walletConnectors/chunk-2H2JI5BJ.js +108 -0
  37. package/dist/wallets/walletConnectors/chunk-3QC567QK.js +94 -0
  38. package/dist/wallets/walletConnectors/chunk-4K2V7RCL.js +96 -0
  39. package/dist/wallets/walletConnectors/chunk-4QNRNDMZ.js +378 -0
  40. package/dist/wallets/walletConnectors/chunk-4V3HRM2R.js +95 -0
  41. package/dist/wallets/walletConnectors/chunk-5QYCHHVB.js +98 -0
  42. package/dist/wallets/walletConnectors/chunk-6P3FYHAH.js +108 -0
  43. package/dist/wallets/walletConnectors/chunk-76M232IF.js +101 -0
  44. package/dist/wallets/walletConnectors/chunk-7IBMHOYD.js +102 -0
  45. package/dist/wallets/walletConnectors/chunk-ACGSFRMZ.js +73 -0
  46. package/dist/wallets/walletConnectors/chunk-BZPKBSWY.js +66 -0
  47. package/dist/wallets/walletConnectors/chunk-CHEPDEJ2.js +73 -0
  48. package/dist/wallets/walletConnectors/chunk-CMETID7A.js +1463 -0
  49. package/dist/wallets/walletConnectors/chunk-DDRPEB2X.js +366 -0
  50. package/dist/wallets/walletConnectors/chunk-DHWJ3552.js +93 -0
  51. package/dist/wallets/walletConnectors/chunk-DPVILLWF.js +492 -0
  52. package/dist/wallets/walletConnectors/chunk-EJALZNAR.js +101 -0
  53. package/dist/wallets/walletConnectors/chunk-FVA6H2VF.js +95 -0
  54. package/dist/wallets/walletConnectors/chunk-G7QF44XS.js +378 -0
  55. package/dist/wallets/walletConnectors/chunk-GCHYGJNO.js +131 -0
  56. package/dist/wallets/walletConnectors/chunk-GNF5CHDQ.js +102 -0
  57. package/dist/wallets/walletConnectors/chunk-GZPGNUNF.js +94 -0
  58. package/dist/wallets/walletConnectors/chunk-HALTGRQW.js +87 -0
  59. package/dist/wallets/walletConnectors/chunk-I2LB6GVH.js +341 -0
  60. package/dist/wallets/walletConnectors/chunk-JL3QLDZK.js +186 -0
  61. package/dist/wallets/walletConnectors/chunk-KLCVXROA.js +71 -0
  62. package/dist/wallets/walletConnectors/chunk-KNNHGFKJ.js +98 -0
  63. package/dist/wallets/walletConnectors/chunk-KQDFRZT4.js +65 -0
  64. package/dist/wallets/walletConnectors/chunk-LKNK2KKU.js +76 -0
  65. package/dist/wallets/walletConnectors/chunk-LLOSDVCH.js +58 -0
  66. package/dist/wallets/walletConnectors/chunk-MQ57XDYK.js +340 -0
  67. package/dist/wallets/walletConnectors/chunk-MUAOEA3O.js +103 -0
  68. package/dist/wallets/walletConnectors/chunk-MVZX47XV.js +366 -0
  69. package/dist/wallets/walletConnectors/chunk-MWHKTQPO.js +71 -0
  70. package/dist/wallets/walletConnectors/chunk-MYQPTETH.js +186 -0
  71. package/dist/wallets/walletConnectors/chunk-NP7RQXKC.js +94 -0
  72. package/dist/wallets/walletConnectors/chunk-OKTFRDOV.js +340 -0
  73. package/dist/wallets/walletConnectors/chunk-PXL5G2PM.js +96 -0
  74. package/dist/wallets/walletConnectors/chunk-QB3QLNSL.js +76 -0
  75. package/dist/wallets/walletConnectors/chunk-QCM7BJYI.js +366 -0
  76. package/dist/wallets/walletConnectors/chunk-QRU6XFHH.js +110 -0
  77. package/dist/wallets/walletConnectors/chunk-RIN5NUVA.js +1463 -0
  78. package/dist/wallets/walletConnectors/chunk-RM3S3BY3.js +58 -0
  79. package/dist/wallets/walletConnectors/chunk-S5XGT2XC.js +131 -0
  80. package/dist/wallets/walletConnectors/chunk-SJ7H7FJB.js +58 -0
  81. package/dist/wallets/walletConnectors/chunk-TA4DDCKN.js +96 -0
  82. package/dist/wallets/walletConnectors/chunk-TWVKSPTP.js +91 -0
  83. package/dist/wallets/walletConnectors/chunk-U5UPCM5V.js +66 -0
  84. package/dist/wallets/walletConnectors/chunk-UZAUWE5E.js +27 -0
  85. package/dist/wallets/walletConnectors/chunk-V2C47DTB.js +66 -0
  86. package/dist/wallets/walletConnectors/chunk-XFUNA24R.js +195 -0
  87. package/dist/wallets/walletConnectors/chunk-XS6GJRRA.js +98 -0
  88. package/dist/wallets/walletConnectors/chunk-XSJUQHR7.js +95 -0
  89. package/dist/wallets/walletConnectors/chunk-XSX5EECZ.js +96 -0
  90. package/dist/wallets/walletConnectors/chunk-YJ5RF7V4.js +492 -0
  91. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  92. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  93. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  94. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  95. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  96. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  97. package/dist/wallets/walletConnectors/index.js +87 -87
  98. package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
  99. package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
  100. package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
  101. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  102. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  103. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  104. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  105. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  106. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  107. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  108. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  109. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
  110. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  111. package/package.json +2 -2
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import {
3
+ abcConnector
4
+ } from "./chunk-26URNKLZ.js";
5
+ import {
6
+ resolveTalkenApiUrl
7
+ } from "./chunk-GFWUFYT2.js";
8
+ import {
9
+ createTalkenApiClient
10
+ } from "./chunk-QCM7BJYI.js";
11
+ import {
12
+ ABC_WALLET_METADATA,
13
+ loadTgAccessKey
14
+ } from "./chunk-6KRX73ED.js";
15
+
16
+ // src/wallets/walletConnectors/abcWallet/abcWallet.ts
17
+ import { setTalkenApiClient } from "@talken/talkenkit";
18
+ var abcWallet = (specificOptions) => ({ projectId }) => {
19
+ const talkenApiUrl = resolveTalkenApiUrl(specificOptions?.talkenApiUrl);
20
+ const talkenApi = createTalkenApiClient({
21
+ baseUrl: talkenApiUrl,
22
+ debug: specificOptions?.environment === "development"
23
+ });
24
+ setTalkenApiClient(talkenApi);
25
+ const accessKey = specificOptions?.accessKey || loadTgAccessKey() || null;
26
+ const config = {
27
+ talkenApiUrl,
28
+ apiKey: specificOptions?.apiKey,
29
+ plain: specificOptions?.plain || "",
30
+ // Deprecated - not used (secure.ts uses random generation)
31
+ environment: specificOptions?.environment || "development",
32
+ defaultChainId: specificOptions?.defaultChainId,
33
+ defaultSolanaNetwork: specificOptions?.defaultSolanaNetwork,
34
+ defaultBitcoinNetwork: specificOptions?.defaultBitcoinNetwork,
35
+ projectId,
36
+ ...accessKey && { accessKey }
37
+ };
38
+ return {
39
+ id: ABC_WALLET_METADATA.id,
40
+ name: ABC_WALLET_METADATA.name,
41
+ rdns: ABC_WALLET_METADATA.rdns,
42
+ iconUrl: async () => (await import("./abcWallet-4PXRQO5T.js")).default,
43
+ iconBackground: ABC_WALLET_METADATA.iconBackground,
44
+ // Embedded wallet - no installation required
45
+ installed: void 0,
46
+ // No download URLs for embedded wallet
47
+ downloadUrls: void 0,
48
+ // Create connector - wrapper function required by Wallet type
49
+ // If accessKey exists, abcConnector will use AbcAccessKeyProvider internally
50
+ createConnector: (_walletDetails) => abcConnector({ config }),
51
+ // Embedded wallet always available
52
+ hidden: () => false
53
+ };
54
+ };
55
+
56
+ export {
57
+ abcWallet
58
+ };
@@ -0,0 +1,131 @@
1
+ "use client";
2
+ import {
3
+ ProviderError,
4
+ ProviderErrorCode
5
+ } from "./chunk-GJ4CJL7F.js";
6
+ import {
7
+ getTalkenApiClient
8
+ } from "./chunk-R6ZE7JAZ.js";
9
+ import {
10
+ EventEmitter
11
+ } from "./chunk-CBKU2ERC.js";
12
+
13
+ // src/wallets/walletConnectors/abcWallet/AbstractChainProvider.ts
14
+ import {
15
+ getShowPendingTransaction,
16
+ getUpdateTransactionResult
17
+ } from "@talken/talkenkit";
18
+ var AbstractChainProvider = class extends EventEmitter {
19
+ constructor(talkenApi) {
20
+ super();
21
+ this.wallet = null;
22
+ this.connected = false;
23
+ this.talkenApi = talkenApi;
24
+ }
25
+ /**
26
+ * Set wallet and emit connection events.
27
+ * Subclasses can override to emit chain-specific events (e.g., chainChanged for EVM).
28
+ */
29
+ setWallet(wallet) {
30
+ const previousAddress = this.wallet?.address;
31
+ this.wallet = wallet;
32
+ this.connected = true;
33
+ if (previousAddress !== wallet.address) {
34
+ this.emit("accountsChanged", [wallet.address]);
35
+ }
36
+ this.onWalletSet(wallet);
37
+ }
38
+ /**
39
+ * Hook for subclasses to emit chain-specific events on wallet set.
40
+ * Called after wallet is assigned and accountsChanged is emitted.
41
+ */
42
+ onWalletSet(_wallet) {
43
+ }
44
+ /** Clear wallet and emit disconnect events. */
45
+ clearWallet() {
46
+ this.wallet = null;
47
+ this.connected = false;
48
+ this.emit("disconnect", {
49
+ code: ProviderErrorCode.DISCONNECTED,
50
+ message: "User disconnected"
51
+ });
52
+ this.emit("accountsChanged", []);
53
+ }
54
+ /** Whether a wallet is connected. */
55
+ isConnected() {
56
+ return this.connected && this.wallet !== null;
57
+ }
58
+ /** Set request interceptor for sign confirmation UI. */
59
+ setRequestInterceptor(interceptor) {
60
+ this.requestInterceptor = interceptor;
61
+ }
62
+ /** Set TalkenApiClient instance. */
63
+ setTalkenApi(talkenApi) {
64
+ this.talkenApi = talkenApi;
65
+ }
66
+ /**
67
+ * Get TalkenApiClient or throw if not initialized.
68
+ * Falls back to the global singleton.
69
+ */
70
+ getTalkenApiClientOrThrow() {
71
+ const api = this.talkenApi || getTalkenApiClient();
72
+ if (!api) {
73
+ throw new ProviderError(
74
+ ProviderErrorCode.INTERNAL_ERROR,
75
+ "TalkenApiClient not initialized"
76
+ );
77
+ }
78
+ return api;
79
+ }
80
+ /**
81
+ * Show pending transaction UI via singleton callback.
82
+ * Subclasses call this before sending a transaction.
83
+ */
84
+ showPendingTx(params) {
85
+ const showPending = getShowPendingTransaction();
86
+ if (showPending) {
87
+ showPending({
88
+ txHash: "",
89
+ network: params.network,
90
+ chain: params.chain,
91
+ explorerUrl: void 0
92
+ });
93
+ }
94
+ }
95
+ /**
96
+ * Update transaction result UI via singleton callback.
97
+ * Subclasses call this after a transaction is confirmed.
98
+ */
99
+ updateTxResult(params) {
100
+ const updateResult = getUpdateTransactionResult();
101
+ if (updateResult) {
102
+ updateResult({
103
+ txHash: params.txHash,
104
+ network: params.network,
105
+ chain: params.chain,
106
+ receipt: params.receipt ?? null,
107
+ explorerUrl: params.explorerUrl
108
+ });
109
+ }
110
+ }
111
+ /**
112
+ * Update transaction result UI with failure state.
113
+ * Subclasses call this in catch blocks to close the pending modal.
114
+ */
115
+ failTxResult(params) {
116
+ const updateResult = getUpdateTransactionResult();
117
+ if (updateResult) {
118
+ updateResult({
119
+ txHash: "",
120
+ network: params.network,
121
+ chain: params.chain,
122
+ receipt: { status: 0, blockNumber: null, gasUsed: null },
123
+ errorMessage: params.errorMessage
124
+ });
125
+ }
126
+ }
127
+ };
128
+
129
+ export {
130
+ AbstractChainProvider
131
+ };
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import {
3
+ abcConnector
4
+ } from "./chunk-I2LB6GVH.js";
5
+ import {
6
+ createTalkenApiClient
7
+ } from "./chunk-MVZX47XV.js";
8
+ import {
9
+ resolveTalkenApiUrl
10
+ } from "./chunk-GFWUFYT2.js";
11
+ import {
12
+ ABC_WALLET_METADATA,
13
+ loadTgAccessKey
14
+ } from "./chunk-6KRX73ED.js";
15
+
16
+ // src/wallets/walletConnectors/abcWallet/abcWallet.ts
17
+ import { setTalkenApiClient } from "@talken/talkenkit";
18
+ var abcWallet = (specificOptions) => ({ projectId }) => {
19
+ const talkenApiUrl = resolveTalkenApiUrl(specificOptions?.talkenApiUrl);
20
+ const talkenApi = createTalkenApiClient({
21
+ baseUrl: talkenApiUrl,
22
+ debug: specificOptions?.environment === "development"
23
+ });
24
+ setTalkenApiClient(talkenApi);
25
+ const accessKey = specificOptions?.accessKey || loadTgAccessKey() || null;
26
+ const config = {
27
+ talkenApiUrl,
28
+ apiKey: specificOptions?.apiKey,
29
+ plain: specificOptions?.plain || "",
30
+ // Deprecated - not used (secure.ts uses random generation)
31
+ environment: specificOptions?.environment || "development",
32
+ defaultChainId: specificOptions?.defaultChainId,
33
+ defaultSolanaNetwork: specificOptions?.defaultSolanaNetwork,
34
+ defaultBitcoinNetwork: specificOptions?.defaultBitcoinNetwork,
35
+ projectId,
36
+ ...accessKey && { accessKey }
37
+ };
38
+ return {
39
+ id: ABC_WALLET_METADATA.id,
40
+ name: ABC_WALLET_METADATA.name,
41
+ rdns: ABC_WALLET_METADATA.rdns,
42
+ iconUrl: async () => (await import("./abcWallet-4PXRQO5T.js")).default,
43
+ iconBackground: ABC_WALLET_METADATA.iconBackground,
44
+ // Embedded wallet - no installation required
45
+ installed: void 0,
46
+ // No download URLs for embedded wallet
47
+ downloadUrls: void 0,
48
+ // Create connector - wrapper function required by Wallet type
49
+ // If accessKey exists, abcConnector will use AbcAccessKeyProvider internally
50
+ createConnector: (_walletDetails) => abcConnector({ config }),
51
+ // Embedded wallet always available
52
+ hidden: () => false
53
+ };
54
+ };
55
+
56
+ export {
57
+ abcWallet
58
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-PODFK4OS.js";
9
+
10
+ // src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
11
+ var coin98Wallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCoin98WalletInjected = hasInjectedProvider({
16
+ namespace: "coin98.provider",
17
+ flag: "isCoin98"
18
+ });
19
+ const shouldUseWalletConnect = !isCoin98WalletInjected;
20
+ return {
21
+ id: "coin98",
22
+ name: "Coin98 Wallet",
23
+ iconUrl: async () => (await import("./coin98Wallet-RFXRNVWP.js")).default,
24
+ installed: isCoin98WalletInjected,
25
+ iconAccent: "#CDA349",
26
+ iconBackground: "#fff",
27
+ rdns: "coin98.com",
28
+ downloadUrls: {
29
+ android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
30
+ ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
31
+ mobile: "https://coin98.com/wallet",
32
+ qrCode: "https://coin98.com/wallet",
33
+ chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
34
+ browserExtension: "https://coin98.com/wallet"
35
+ },
36
+ mobile: {
37
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
38
+ },
39
+ qrCode: shouldUseWalletConnect ? {
40
+ getUri: (uri) => uri,
41
+ instructions: {
42
+ learnMoreUrl: "https://coin98.com/wallet",
43
+ steps: [
44
+ {
45
+ description: "wallet_connectors.coin98.qr_code.step1.description",
46
+ step: "install",
47
+ title: "wallet_connectors.coin98.qr_code.step1.title"
48
+ },
49
+ {
50
+ description: "wallet_connectors.coin98.qr_code.step2.description",
51
+ step: "create",
52
+ title: "wallet_connectors.coin98.qr_code.step2.title"
53
+ },
54
+ {
55
+ description: "wallet_connectors.coin98.qr_code.step3.description",
56
+ step: "scan",
57
+ title: "wallet_connectors.coin98.qr_code.step3.title"
58
+ }
59
+ ]
60
+ }
61
+ } : void 0,
62
+ extension: {
63
+ instructions: {
64
+ learnMoreUrl: "https://coin98.com/wallet",
65
+ steps: [
66
+ {
67
+ description: "wallet_connectors.coin98.extension.step1.description",
68
+ step: "install",
69
+ title: "wallet_connectors.coin98.extension.step1.title"
70
+ },
71
+ {
72
+ description: "wallet_connectors.coin98.extension.step2.description",
73
+ step: "create",
74
+ title: "wallet_connectors.coin98.extension.step2.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.coin98.extension.step3.description",
78
+ step: "refresh",
79
+ title: "wallet_connectors.coin98.extension.step3.title"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
+ projectId,
86
+ walletConnectParameters
87
+ }) : getInjectedConnector({
88
+ namespace: "coin98Wallet",
89
+ flag: "isCoin98"
90
+ })
91
+ };
92
+ };
93
+
94
+ export {
95
+ coin98Wallet
96
+ };
@@ -0,0 +1,91 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-PODFK4OS.js";
9
+
10
+ // src/wallets/walletConnectors/zealWallet/zealWallet.ts
11
+ var zealWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isZealWalletInjected = hasInjectedProvider({ flag: "isZeal" });
16
+ const shouldUseWalletConnect = !isZealWalletInjected;
17
+ return {
18
+ id: "zeal",
19
+ name: "Zeal",
20
+ rdns: "app.zeal",
21
+ iconUrl: async () => (await import("./zealWallet-URNQ2AWF.js")).default,
22
+ iconBackground: "#fff0",
23
+ iconAccent: "#00FFFF",
24
+ downloadUrls: {
25
+ browserExtension: "https://zeal.app",
26
+ chrome: "https://chromewebstore.google.com/detail/zeal-wallet/heamnjbnflcikcggoiplibfommfbkjpj",
27
+ android: "https://play.google.com/store/apps/details?id=app.zeal.wallet",
28
+ ios: "https://testflight.apple.com/join/MP72Ytw8",
29
+ mobile: "https://zeal.app",
30
+ qrCode: "https://zeal.app"
31
+ },
32
+ mobile: {
33
+ getUri: shouldUseWalletConnect ? (uri) => {
34
+ return `zeal://wc?uri=${encodeURIComponent(uri)}`;
35
+ } : void 0
36
+ },
37
+ qrCode: shouldUseWalletConnect ? {
38
+ getUri: (uri) => uri,
39
+ instructions: {
40
+ learnMoreUrl: "https://zeal.app",
41
+ steps: [
42
+ {
43
+ description: "wallet_connectors.zeal.qr_code.step1.description",
44
+ step: "install",
45
+ title: "wallet_connectors.zeal.qr_code.step1.title"
46
+ },
47
+ {
48
+ description: "wallet_connectors.zeal.qr_code.step2.description",
49
+ step: "create",
50
+ title: "wallet_connectors.zeal.qr_code.step2.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.zeal.qr_code.step3.description",
54
+ step: "scan",
55
+ title: "wallet_connectors.zeal.qr_code.step3.title"
56
+ }
57
+ ]
58
+ }
59
+ } : void 0,
60
+ extension: {
61
+ instructions: {
62
+ learnMoreUrl: "https://zeal.app",
63
+ steps: [
64
+ {
65
+ description: "wallet_connectors.zeal.extension.step1.description",
66
+ step: "install",
67
+ title: "wallet_connectors.zeal.extension.step1.title"
68
+ },
69
+ {
70
+ description: "wallet_connectors.zeal.extension.step2.description",
71
+ step: "create",
72
+ title: "wallet_connectors.zeal.extension.step2.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.zeal.extension.step3.description",
76
+ step: "refresh",
77
+ title: "wallet_connectors.zeal.extension.step3.title"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
83
+ projectId,
84
+ walletConnectParameters
85
+ }) : getInjectedConnector({ flag: "isZeal" })
86
+ };
87
+ };
88
+
89
+ export {
90
+ zealWallet
91
+ };
@@ -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,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-PZDOBO6X.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,66 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-PONHGUSY.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-PODFK4OS.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-7M6V6L4V.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
+ };