@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,102 @@
1
+ "use client";
2
+ import {
3
+ isIOS
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/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,108 @@
1
+ "use client";
2
+ import {
3
+ isMobile
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/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,66 @@
1
+ "use client";
2
+ import {
3
+ isAndroid
4
+ } from "./chunk-RETKWSKD.js";
5
+ import {
6
+ getInjectedConnector
7
+ } from "./chunk-PONHGUSY.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,54 @@
1
+ "use client";
2
+
3
+ // src/wallets/walletConnectors/abcWallet/EventEmitter.ts
4
+ var EventEmitter = class {
5
+ constructor() {
6
+ this.events = /* @__PURE__ */ new Map();
7
+ }
8
+ on(event, listener) {
9
+ if (!this.events.has(event)) {
10
+ this.events.set(event, []);
11
+ }
12
+ this.events.get(event).push(listener);
13
+ return this;
14
+ }
15
+ off(event, listener) {
16
+ const listeners = this.events.get(event);
17
+ if (listeners) {
18
+ const index = listeners.indexOf(listener);
19
+ if (index !== -1) {
20
+ listeners.splice(index, 1);
21
+ if (listeners.length === 0) {
22
+ this.events.delete(event);
23
+ }
24
+ }
25
+ }
26
+ return this;
27
+ }
28
+ removeListener(event, listener) {
29
+ return this.off(event, listener);
30
+ }
31
+ emit(event, ...args) {
32
+ const listeners = this.events.get(event);
33
+ if (!listeners || listeners.length === 0) {
34
+ return false;
35
+ }
36
+ const snapshot = listeners.slice();
37
+ for (const listener of snapshot) {
38
+ listener(...args);
39
+ }
40
+ return true;
41
+ }
42
+ removeAllListeners(event) {
43
+ if (event) {
44
+ this.events.delete(event);
45
+ } else {
46
+ this.events.clear();
47
+ }
48
+ return this;
49
+ }
50
+ };
51
+
52
+ export {
53
+ EventEmitter
54
+ };
@@ -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-5ESSNXJV.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
+ };
@@ -0,0 +1,93 @@
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/kaikasWallet/kaikasWallet.ts
11
+ var kaikasWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isKaikasWalletInjected = hasInjectedProvider({
16
+ namespace: "klaytn"
17
+ });
18
+ const shouldUseWalletConnect = !isKaikasWalletInjected;
19
+ const getUri = (uri) => {
20
+ return `kaikas://walletconnect?uri=${encodeURIComponent(uri)}`;
21
+ };
22
+ return {
23
+ id: "kaikas",
24
+ name: "Kaikas Wallet",
25
+ iconUrl: async () => (await import("./kaikasWallet-F6Z6IPWN.js")).default,
26
+ installed: isKaikasWalletInjected || void 0,
27
+ iconBackground: "#fff",
28
+ downloadUrls: {
29
+ chrome: "https://chromewebstore.google.com/detail/kaikas/jblndlipeogpafnldhgmapagcccfchpi",
30
+ browserExtension: "https://app.kaikas.io",
31
+ qrCode: "https://app.kaikas.io",
32
+ ios: "https://apps.apple.com/us/app/kaikas-mobile-crypto-wallet/id1626107061",
33
+ android: "https://play.google.com/store/apps/details?id=io.klutch.wallet",
34
+ mobile: "https://app.kaikas.io"
35
+ },
36
+ mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
37
+ qrCode: shouldUseWalletConnect ? {
38
+ getUri: (uri) => uri,
39
+ instructions: {
40
+ learnMoreUrl: "https://kaikas.io",
41
+ steps: [
42
+ {
43
+ description: "wallet_connectors.kaikas.qr_code.step1.description",
44
+ step: "install",
45
+ title: "wallet_connectors.kaikas.qr_code.step1.title"
46
+ },
47
+ {
48
+ description: "wallet_connectors.kaikas.qr_code.step2.description",
49
+ step: "create",
50
+ title: "wallet_connectors.kaikas.qr_code.step2.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.kaikas.qr_code.step3.description",
54
+ step: "refresh",
55
+ title: "wallet_connectors.kaikas.qr_code.step3.title"
56
+ }
57
+ ]
58
+ }
59
+ } : void 0,
60
+ extension: {
61
+ instructions: {
62
+ learnMoreUrl: "https://kaikas.io",
63
+ steps: [
64
+ {
65
+ description: "wallet_connectors.kaikas.extension.step1.description",
66
+ step: "install",
67
+ title: "wallet_connectors.kaikas.extension.step1.title"
68
+ },
69
+ {
70
+ description: "wallet_connectors.kaikas.extension.step2.description",
71
+ step: "create",
72
+ title: "wallet_connectors.kaikas.extension.step2.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.kaikas.extension.step3.description",
76
+ step: "refresh",
77
+ title: "wallet_connectors.kaikas.extension.step3.title"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
83
+ projectId,
84
+ walletConnectParameters
85
+ }) : getInjectedConnector({
86
+ namespace: "klaytn"
87
+ })
88
+ };
89
+ };
90
+
91
+ export {
92
+ kaikasWallet
93
+ };
@@ -0,0 +1,101 @@
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/bitgetWallet/bitgetWallet.ts
14
+ var bitgetWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isBitKeepInjected = hasInjectedProvider({
19
+ namespace: "bitkeep.ethereum",
20
+ flag: "isBitKeep"
21
+ });
22
+ const shouldUseWalletConnect = !isBitKeepInjected;
23
+ return {
24
+ id: "bitget",
25
+ name: "Bitget Wallet",
26
+ rdns: "com.bitget.web3",
27
+ iconUrl: async () => (await import("./bitgetWallet-CLYTW54T.js")).default,
28
+ iconAccent: "#f6851a",
29
+ iconBackground: "#fff",
30
+ installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
31
+ downloadUrls: {
32
+ android: "https://web3.bitget.com/en/wallet-download?type=0",
33
+ ios: "https://apps.apple.com/app/bitkeep/id1395301115",
34
+ mobile: "https://web3.bitget.com/en/wallet-download?type=2",
35
+ qrCode: "https://web3.bitget.com/en/wallet-download",
36
+ chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
37
+ browserExtension: "https://web3.bitget.com/en/wallet-download"
38
+ },
39
+ extension: {
40
+ instructions: {
41
+ learnMoreUrl: "https://web3.bitget.com/en/academy",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.bitget.extension.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.bitget.extension.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.bitget.extension.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.bitget.extension.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.bitget.extension.step3.description",
55
+ step: "refresh",
56
+ title: "wallet_connectors.bitget.extension.step3.description"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ mobile: {
62
+ getUri: shouldUseWalletConnect ? (uri) => {
63
+ return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
64
+ } : void 0
65
+ },
66
+ qrCode: shouldUseWalletConnect ? {
67
+ getUri: (uri) => uri,
68
+ instructions: {
69
+ learnMoreUrl: "https://web3.bitget.com/en/academy",
70
+ steps: [
71
+ {
72
+ description: "wallet_connectors.bitget.qr_code.step1.description",
73
+ step: "install",
74
+ title: "wallet_connectors.bitget.qr_code.step1.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.bitget.qr_code.step2.description",
78
+ step: "create",
79
+ title: "wallet_connectors.bitget.qr_code.step2.title"
80
+ },
81
+ {
82
+ description: "wallet_connectors.bitget.qr_code.step3.description",
83
+ step: "scan",
84
+ title: "wallet_connectors.bitget.qr_code.step3.title"
85
+ }
86
+ ]
87
+ }
88
+ } : void 0,
89
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
90
+ projectId,
91
+ walletConnectParameters
92
+ }) : getInjectedConnector({
93
+ namespace: "bitkeep.ethereum",
94
+ flag: "isBitKeep"
95
+ })
96
+ };
97
+ };
98
+
99
+ export {
100
+ bitgetWallet
101
+ };
@@ -0,0 +1,94 @@
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/kaiaWallet/kaiaWallet.ts
11
+ var kaiaWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isKaiaWalletInjected = hasInjectedProvider({
16
+ namespace: "klaytn"
17
+ });
18
+ const shouldUseWalletConnect = !isKaiaWalletInjected;
19
+ const getUri = (uri) => {
20
+ return `kaikas://walletconnect?uri=${encodeURIComponent(uri)}`;
21
+ };
22
+ return {
23
+ id: "kaia",
24
+ name: "Kaia Wallet",
25
+ rdns: "io.kaiawallet",
26
+ iconUrl: async () => (await import("./kaiaWallet-5K6WZ3AH.js")).default,
27
+ installed: isKaiaWalletInjected || void 0,
28
+ iconBackground: "#fff",
29
+ downloadUrls: {
30
+ chrome: "https://chromewebstore.google.com/detail/kaia-wallet/jblndlipeogpafnldhgmapagcccfchpi",
31
+ browserExtension: "https://app.kaiawallet.io",
32
+ qrCode: "https://app.kaiawallet.io",
33
+ ios: "https://apps.apple.com/us/app/kaia-wallet/id6502896387",
34
+ android: "https://play.google.com/store/apps/details?id=io.klutch.wallet",
35
+ mobile: "https://app.kaiawallet.io"
36
+ },
37
+ mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
38
+ qrCode: shouldUseWalletConnect ? {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://kaiawallet.io",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.kaia.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.kaia.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.kaia.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.kaia.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.kaia.qr_code.step3.description",
55
+ step: "refresh",
56
+ title: "wallet_connectors.kaia.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ } : void 0,
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://kaiawallet.io",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.kaia.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.kaia.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.kaia.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.kaia.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.kaia.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.kaia.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ }) : getInjectedConnector({
87
+ namespace: "klaytn"
88
+ })
89
+ };
90
+ };
91
+
92
+ export {
93
+ kaiaWallet
94
+ };