@talken/talkenkit 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/abcWallet-XBPHUTFQ.js +172 -0
  2. package/dist/chunk-D3AVQQJG.js +5703 -0
  3. package/dist/index.js +1 -1
  4. package/dist/wallets/walletConnectors/abcWallet/AbstractChainProvider.d.ts +67 -0
  5. package/dist/wallets/walletConnectors/abcWallet/AbstractChainProvider.js +10 -0
  6. package/dist/wallets/walletConnectors/abcWallet/EventEmitter.d.ts +12 -0
  7. package/dist/wallets/walletConnectors/abcWallet/EventEmitter.js +7 -0
  8. package/dist/wallets/walletConnectors/abcWallet/ProviderError.d.ts +42 -0
  9. package/dist/wallets/walletConnectors/abcWallet/ProviderError.js +17 -0
  10. package/dist/wallets/walletConnectors/chunk-2KHTFKPP.js +186 -0
  11. package/dist/wallets/walletConnectors/chunk-34GT4R3A.js +501 -0
  12. package/dist/wallets/walletConnectors/chunk-3QC567QK.js +94 -0
  13. package/dist/wallets/walletConnectors/chunk-4666JD5V.js +333 -0
  14. package/dist/wallets/walletConnectors/chunk-4V3HRM2R.js +95 -0
  15. package/dist/wallets/walletConnectors/chunk-5QYCHHVB.js +98 -0
  16. package/dist/wallets/walletConnectors/chunk-5UITEZJU.js +121 -0
  17. package/dist/wallets/walletConnectors/chunk-7IBMHOYD.js +102 -0
  18. package/dist/wallets/walletConnectors/chunk-A2DZALFI.js +108 -0
  19. package/dist/wallets/walletConnectors/chunk-BZPKBSWY.js +66 -0
  20. package/dist/wallets/walletConnectors/chunk-CBKU2ERC.js +54 -0
  21. package/dist/wallets/walletConnectors/chunk-CEOJSQAI.js +66 -0
  22. package/dist/wallets/walletConnectors/chunk-DHWJ3552.js +93 -0
  23. package/dist/wallets/walletConnectors/chunk-EJALZNAR.js +101 -0
  24. package/dist/wallets/walletConnectors/chunk-FGYJTUYV.js +94 -0
  25. package/dist/wallets/walletConnectors/chunk-FVA6H2VF.js +95 -0
  26. package/dist/wallets/walletConnectors/chunk-GJ4CJL7F.js +57 -0
  27. package/dist/wallets/walletConnectors/chunk-HALTGRQW.js +87 -0
  28. package/dist/wallets/walletConnectors/chunk-HQO76VJR.js +1470 -0
  29. package/dist/wallets/walletConnectors/chunk-IL6T5D4L.js +362 -0
  30. package/dist/wallets/walletConnectors/chunk-IONL6LMJ.js +71 -0
  31. package/dist/wallets/walletConnectors/chunk-KBM7EYHR.js +58 -0
  32. package/dist/wallets/walletConnectors/chunk-KQDFRZT4.js +65 -0
  33. package/dist/wallets/walletConnectors/chunk-LBG7ZBQY.js +273 -0
  34. package/dist/wallets/walletConnectors/chunk-PAYYNMNP.js +347 -0
  35. package/dist/wallets/walletConnectors/chunk-PXL5G2PM.js +96 -0
  36. package/dist/wallets/walletConnectors/chunk-QB3QLNSL.js +76 -0
  37. package/dist/wallets/walletConnectors/chunk-QEDCPITY.js +344 -0
  38. package/dist/wallets/walletConnectors/chunk-QRU6XFHH.js +110 -0
  39. package/dist/wallets/walletConnectors/chunk-T6RB3SM7.js +73 -0
  40. package/dist/wallets/walletConnectors/chunk-TA4DDCKN.js +96 -0
  41. package/dist/wallets/walletConnectors/chunk-TWVKSPTP.js +91 -0
  42. package/dist/wallets/walletConnectors/chunk-V5LGED4F.js +103 -0
  43. package/dist/wallets/walletConnectors/chunk-VRI5ZALU.js +212 -0
  44. package/dist/wallets/walletConnectors/chunk-W5HMOCGP.js +18 -0
  45. package/dist/wallets/walletConnectors/chunk-XFCZU22I.js +58 -0
  46. package/dist/wallets/walletConnectors/chunk-XS6GJRRA.js +98 -0
  47. package/dist/wallets/walletConnectors/chunk-XSX5EECZ.js +96 -0
  48. package/dist/wallets/walletConnectors/index.js +34 -34
  49. package/package.json +1 -1
@@ -0,0 +1,362 @@
1
+ "use client";
2
+ import {
3
+ WalletscanApi
4
+ } from "./chunk-VBNZ7HA3.js";
5
+ import {
6
+ getCredentialManager
7
+ } from "./chunk-36BJXEBA.js";
8
+ import {
9
+ AbstractChainProvider
10
+ } from "./chunk-5UITEZJU.js";
11
+ import {
12
+ ProviderErrorCode,
13
+ SolanaProviderError
14
+ } from "./chunk-GJ4CJL7F.js";
15
+
16
+ // src/utils/apiClientFactory.ts
17
+ function createWalletscanApi() {
18
+ return new WalletscanApi();
19
+ }
20
+
21
+ // src/wallets/walletConnectors/abcWallet/abcSolanaProvider.ts
22
+ var AbcSolanaProvider = class extends AbstractChainProvider {
23
+ onWalletSet(wallet) {
24
+ this.emit("connect", {
25
+ address: wallet.address,
26
+ network: wallet.network
27
+ });
28
+ }
29
+ /**
30
+ * Call request interceptor if set (throws on user cancel)
31
+ */
32
+ async callInterceptor(request) {
33
+ if (this.requestInterceptor) {
34
+ await this.requestInterceptor(request);
35
+ }
36
+ }
37
+ getSigningNetwork() {
38
+ return this.wallet?.network === "solana" ? "solana" : "solana_devnet";
39
+ }
40
+ /**
41
+ * Get Solana address
42
+ */
43
+ async getAddress() {
44
+ if (!this.wallet) {
45
+ throw new SolanaProviderError(
46
+ ProviderErrorCode.DISCONNECTED,
47
+ "Wallet not connected"
48
+ );
49
+ }
50
+ return this.wallet.address;
51
+ }
52
+ /**
53
+ * Get public key
54
+ */
55
+ async getPublicKey() {
56
+ if (!this.wallet) {
57
+ throw new SolanaProviderError(
58
+ ProviderErrorCode.DISCONNECTED,
59
+ "Wallet not connected"
60
+ );
61
+ }
62
+ return this.wallet.publicKey;
63
+ }
64
+ /**
65
+ * Sign Solana message via PIN mode.
66
+ * Server resolves signing material from PIN hash.
67
+ * In AK mode, PIN is auto-injected by server-side delegated credentials.
68
+ */
69
+ async signMessage(encodedMessage, _display) {
70
+ if (!this.wallet) {
71
+ throw new SolanaProviderError(
72
+ ProviderErrorCode.DISCONNECTED,
73
+ "Wallet not connected"
74
+ );
75
+ }
76
+ try {
77
+ const decodedText = new TextDecoder().decode(encodedMessage);
78
+ await this.callInterceptor({
79
+ chain: "solana",
80
+ method: "signMessage",
81
+ address: this.wallet.address,
82
+ network: this.wallet.network,
83
+ message: decodedText
84
+ });
85
+ const messageHex = `0x${Array.from(encodedMessage).map((b) => b.toString(16).padStart(2, "0")).join("")}`;
86
+ const pinHash = getCredentialManager().getPinHash();
87
+ const result = await this.getTalkenApiClientOrThrow().solana.sign({
88
+ message: messageHex,
89
+ pin: pinHash || void 0,
90
+ network: this.getSigningNetwork()
91
+ });
92
+ const signatureHex = result.signature.startsWith("0x") ? result.signature.slice(2) : result.signature;
93
+ const signatureBytes = new Uint8Array(
94
+ signatureHex.match(/.{1,2}/g)?.map((byte) => Number.parseInt(byte, 16)) || []
95
+ );
96
+ return { signature: signatureBytes };
97
+ } catch (error) {
98
+ this.emit("error", error);
99
+ throw new SolanaProviderError(
100
+ ProviderErrorCode.INTERNAL_ERROR,
101
+ "Failed to sign message",
102
+ error
103
+ );
104
+ }
105
+ }
106
+ /**
107
+ * Sign arbitrary Solana transaction (requires PIN)
108
+ * Supports both Legacy Transaction and VersionedTransaction
109
+ * Used for custom transactions, dApp interactions, and protocol integrations
110
+ */
111
+ async signTransaction(transaction) {
112
+ if (!this.wallet) {
113
+ throw new SolanaProviderError(
114
+ ProviderErrorCode.DISCONNECTED,
115
+ "Wallet not connected"
116
+ );
117
+ }
118
+ try {
119
+ let txMessage = "";
120
+ try {
121
+ txMessage = JSON.stringify(transaction, null, 2);
122
+ } catch {
123
+ txMessage = String(transaction);
124
+ }
125
+ await this.callInterceptor({
126
+ chain: "solana",
127
+ method: "signTransaction",
128
+ address: this.wallet.address,
129
+ network: this.wallet.network,
130
+ message: txMessage,
131
+ isTransaction: true
132
+ });
133
+ const { VersionedTransaction, PublicKey } = await import("@solana/web3.js");
134
+ const isVersioned = transaction instanceof VersionedTransaction;
135
+ let serialized;
136
+ if (isVersioned) {
137
+ serialized = transaction.message.serialize();
138
+ } else {
139
+ serialized = transaction.serializeMessage();
140
+ }
141
+ const messageHex = Buffer.from(serialized).toString("hex");
142
+ const pinHash = getCredentialManager().getPinHash();
143
+ const signatureResponse = await this.getTalkenApiClientOrThrow().solana.sign({
144
+ message: messageHex,
145
+ pin: pinHash || void 0,
146
+ network: this.getSigningNetwork()
147
+ });
148
+ const signatureHex = signatureResponse.signature.startsWith("0x") ? signatureResponse.signature.slice(2) : signatureResponse.signature;
149
+ const signatureBytes = Buffer.from(signatureHex, "hex");
150
+ const publicKey = new PublicKey(this.wallet.address);
151
+ if (isVersioned) {
152
+ transaction.addSignature(publicKey, signatureBytes);
153
+ } else {
154
+ transaction.addSignature(publicKey, signatureBytes);
155
+ }
156
+ return transaction;
157
+ } catch (error) {
158
+ if (error.code === 4001 || error.cancelled) {
159
+ throw error;
160
+ }
161
+ this.emit("error", error);
162
+ throw new SolanaProviderError(
163
+ ProviderErrorCode.INTERNAL_ERROR,
164
+ "Failed to sign transaction",
165
+ error
166
+ );
167
+ }
168
+ }
169
+ /**
170
+ * Sign multiple transactions (batch signing)
171
+ */
172
+ async signAllTransactions(transactions) {
173
+ const signedTransactions = [];
174
+ for (const transaction of transactions) {
175
+ const signed = await this.signTransaction(transaction);
176
+ signedTransactions.push(signed);
177
+ }
178
+ return signedTransactions;
179
+ }
180
+ /**
181
+ * Unified transfer: SOL, SPL token, or NFT
182
+ * - No mintAddress → native SOL transfer (kind='native')
183
+ * - With mintAddress → SPL/NFT transfer (kind='spl')
184
+ * - NFT = transfer({ mintAddress, toAddress, amount: 1 })
185
+ */
186
+ async transfer(params) {
187
+ if (!this.wallet) {
188
+ throw new SolanaProviderError(
189
+ ProviderErrorCode.DISCONNECTED,
190
+ "Wallet not connected"
191
+ );
192
+ }
193
+ try {
194
+ const symbol = params.mintAddress ? "SPL" : "SOL";
195
+ await this.callInterceptor({
196
+ chain: "solana",
197
+ method: "transfer",
198
+ fromAddress: this.wallet.address,
199
+ toAddress: params.toAddress,
200
+ amount: String(params.amount),
201
+ symbol,
202
+ network: this.wallet.network,
203
+ tokenAddress: params.mintAddress,
204
+ isNativeToken: !params.mintAddress,
205
+ estimatedFee: "0.000005",
206
+ feeSymbol: "SOL"
207
+ });
208
+ const pinHash = getCredentialManager().getPinHash();
209
+ if (!pinHash) {
210
+ throw new SolanaProviderError(
211
+ ProviderErrorCode.INTERNAL_ERROR,
212
+ "PIN hash not found. Please login again."
213
+ );
214
+ }
215
+ console.log("[AbcSolanaProvider] transfer START", {
216
+ kind: params.mintAddress ? "spl" : "native",
217
+ toAddress: params.toAddress,
218
+ amount: params.amount,
219
+ mintAddress: params.mintAddress || null,
220
+ network: this.wallet.network,
221
+ hasPinHash: !!pinHash
222
+ });
223
+ const api = this.getTalkenApiClientOrThrow();
224
+ const apiNetwork = this.wallet.network === "solana" ? "solana" : "solana_devnet";
225
+ this.showPendingTx({ network: apiNetwork, chain: "solana" });
226
+ if (params.mintAddress) {
227
+ const walletscanApi = createWalletscanApi();
228
+ const tokenMeta = await walletscanApi.getContractTokenWithTimeout({
229
+ contractAddress: params.mintAddress,
230
+ networks: apiNetwork
231
+ });
232
+ const decimals = tokenMeta?.decimals ?? 9;
233
+ const rawAmount = Math.floor(params.amount * 10 ** decimals);
234
+ const result2 = await api.solana.transfer({
235
+ kind: "spl",
236
+ toAddress: params.toAddress,
237
+ mintAddress: params.mintAddress,
238
+ amount: String(rawAmount),
239
+ decimals,
240
+ network: apiNetwork,
241
+ pin: pinHash,
242
+ waitForConfirmation: true
243
+ });
244
+ console.log("[AbcSolanaProvider] SPL transfer result:", result2);
245
+ this.updateSolanaTransactionResult(result2, apiNetwork);
246
+ return { signature: result2.txHash };
247
+ }
248
+ const { LAMPORTS_PER_SOL } = await import("@solana/web3.js");
249
+ const amountLamports = params.amount * LAMPORTS_PER_SOL;
250
+ console.log("[AbcSolanaProvider] native transfer request:", {
251
+ toAddress: params.toAddress,
252
+ amountLamports: String(amountLamports),
253
+ amountSOL: params.amount
254
+ });
255
+ const result = await api.solana.transfer({
256
+ kind: "native",
257
+ toAddress: params.toAddress,
258
+ amountLamports: String(amountLamports),
259
+ network: apiNetwork,
260
+ pin: pinHash,
261
+ waitForConfirmation: true
262
+ });
263
+ console.log("[AbcSolanaProvider] native transfer result:", result);
264
+ this.updateSolanaTransactionResult(result, apiNetwork);
265
+ return { signature: result.txHash };
266
+ } catch (error) {
267
+ console.error("[AbcSolanaProvider] transfer FAILED:", {
268
+ message: error.message,
269
+ code: error.code,
270
+ status: error.status,
271
+ details: error.details || error.data
272
+ });
273
+ if (error.code === 4001 || error.cancelled) {
274
+ throw error;
275
+ }
276
+ this.emit("error", error);
277
+ throw new SolanaProviderError(
278
+ ProviderErrorCode.INTERNAL_ERROR,
279
+ "Failed to transfer",
280
+ error
281
+ );
282
+ }
283
+ }
284
+ /**
285
+ * Get wallet info
286
+ */
287
+ getWalletInfo() {
288
+ if (!this.wallet)
289
+ return null;
290
+ return {
291
+ address: this.wallet.address,
292
+ publicKey: this.wallet.publicKey,
293
+ network: this.wallet.network
294
+ };
295
+ }
296
+ /**
297
+ * Get SPL token balance
298
+ *
299
+ * @param mintAddress - Token mint address
300
+ * @returns Token balance information
301
+ */
302
+ async getTokenBalance(mintAddress) {
303
+ if (!this.wallet) {
304
+ throw new SolanaProviderError(
305
+ ProviderErrorCode.DISCONNECTED,
306
+ "Wallet not connected"
307
+ );
308
+ }
309
+ try {
310
+ const walletscanApi = createWalletscanApi();
311
+ const balance = await walletscanApi.getWalletTokenBalanceWithTimeout({
312
+ walletAddress: this.wallet.address,
313
+ networks: this.wallet.network,
314
+ contractAddress: mintAddress
315
+ });
316
+ if (!balance) {
317
+ return {
318
+ amount: "0",
319
+ decimals: 0,
320
+ uiAmount: 0
321
+ };
322
+ }
323
+ return {
324
+ amount: String(balance.balance ?? 0),
325
+ decimals: balance.decimals ?? 0,
326
+ uiAmount: balance.hrBalance ?? 0
327
+ };
328
+ } catch (error) {
329
+ this.emit("error", error);
330
+ throw new SolanaProviderError(
331
+ ProviderErrorCode.INTERNAL_ERROR,
332
+ "Failed to get token balance",
333
+ error
334
+ );
335
+ }
336
+ }
337
+ updateSolanaTransactionResult(result, network) {
338
+ let receipt = result.receipt;
339
+ if (!receipt && result.confirmation) {
340
+ const data = result.confirmation?.data?.result ?? result.confirmation?.result ?? result.confirmation;
341
+ const slot = data?.slot;
342
+ const meta = data?.meta;
343
+ receipt = {
344
+ status: meta?.err === null ? 1 : 0,
345
+ blockNumber: slot ?? null,
346
+ gasUsed: meta?.fee != null ? String(meta.fee) : null
347
+ };
348
+ }
349
+ const cluster = network.includes("devnet") ? "?cluster=devnet" : "";
350
+ this.updateTxResult({
351
+ txHash: result.txHash,
352
+ network,
353
+ chain: "solana",
354
+ receipt,
355
+ explorerUrl: `https://explorer.solana.com/tx/${result.txHash}${cluster}`
356
+ });
357
+ }
358
+ };
359
+
360
+ export {
361
+ AbcSolanaProvider
362
+ };
@@ -0,0 +1,71 @@
1
+ "use client";
2
+ import {
3
+ isAndroid
4
+ } from "./chunk-RETKWSKD.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-PONHGUSY.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-PODFK4OS.js";
12
+
13
+ // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
14
+ var bifrostWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
19
+ const shouldUseWalletConnect = !isBifrostInjected;
20
+ const getUri = (uri) => {
21
+ return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
22
+ };
23
+ return {
24
+ id: "bifrostWallet",
25
+ name: "Bifrost Wallet",
26
+ iconUrl: async () => (await import("./bifrostWallet-ORF3DABG.js")).default,
27
+ iconBackground: "#fff",
28
+ installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
29
+ downloadUrls: {
30
+ android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
31
+ ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
32
+ qrCode: "https://bifrostwallet.com/#download-app"
33
+ },
34
+ mobile: {
35
+ getUri: shouldUseWalletConnect ? getUri : void 0
36
+ },
37
+ qrCode: shouldUseWalletConnect ? {
38
+ getUri: (uri) => uri,
39
+ instructions: {
40
+ learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
41
+ steps: [
42
+ {
43
+ description: "wallet_connectors.bifrost.qr_code.step1.description",
44
+ step: "install",
45
+ title: "wallet_connectors.bifrost.qr_code.step1.title"
46
+ },
47
+ {
48
+ description: "wallet_connectors.bifrost.qr_code.step2.description",
49
+ step: "create",
50
+ title: "wallet_connectors.bifrost.qr_code.step2.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.bifrost.qr_code.step3.description",
54
+ step: "scan",
55
+ title: "wallet_connectors.bifrost.qr_code.step3.title"
56
+ }
57
+ ]
58
+ }
59
+ } : void 0,
60
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
61
+ projectId,
62
+ walletConnectParameters
63
+ }) : getInjectedConnector({
64
+ flag: "isBifrost"
65
+ })
66
+ };
67
+ };
68
+
69
+ export {
70
+ bifrostWallet
71
+ };
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import {
3
+ abcConnector
4
+ } from "./chunk-PAYYNMNP.js";
5
+ import {
6
+ createTalkenApiClient
7
+ } from "./chunk-5ERWBR7D.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-AYWSIGAG.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,65 @@
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/berasigWallet/berasigWallet.ts
11
+ var berasigWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isBerasigWalletInjected = hasInjectedProvider({
16
+ namespace: "berasig.ethereum"
17
+ });
18
+ const shouldUseWalletConnect = !isBerasigWalletInjected;
19
+ return {
20
+ id: "berasig",
21
+ name: "BeraSig",
22
+ iconUrl: async () => (await import("./berasigWallet-NNBFDHFK.js")).default,
23
+ iconBackground: "#ffffff",
24
+ installed: isBerasigWalletInjected,
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=io.berasig.ios",
27
+ ios: "https://apps.apple.com/us/app/berasig-wallet-on-berachain/id6502052535",
28
+ qrCode: "https://berasig.com",
29
+ mobile: "https://berasig.com",
30
+ browserExtension: "https://chromewebstore.google.com/detail/berasig/ckedkkegjbflcfblcjklibnedmfjppbj"
31
+ },
32
+ extension: {
33
+ instructions: {
34
+ steps: [
35
+ {
36
+ description: "wallet_connectors.berasig.extension.step1.description",
37
+ step: "install",
38
+ title: "wallet_connectors.berasig.extension.step1.title"
39
+ },
40
+ {
41
+ description: "wallet_connectors.berasig.extension.step2.description",
42
+ step: "create",
43
+ title: "wallet_connectors.berasig.extension.step2.title"
44
+ },
45
+ {
46
+ description: "wallet_connectors.berasig.extension.step3.description",
47
+ step: "refresh",
48
+ title: "wallet_connectors.berasig.extension.step3.title"
49
+ }
50
+ ],
51
+ learnMoreUrl: "https://berasig.com"
52
+ }
53
+ },
54
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
55
+ projectId,
56
+ walletConnectParameters
57
+ }) : getInjectedConnector({
58
+ namespace: "berasig.ethereum"
59
+ })
60
+ };
61
+ };
62
+
63
+ export {
64
+ berasigWallet
65
+ };