@dogeos/dogeos-sdk 2.0.0-beta.4 → 2.0.0-beta.5

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/index.js +5 -5
  2. package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
  3. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  4. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  5. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  6. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  7. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  8. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  9. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  12. package/dist/wallets/walletConnectors/index.js +38 -38
  13. package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  26. package/package.json +3 -3
  27. package/dist/wallets/walletConnectors/chunk-23BTDHWT.js +0 -68
  28. package/dist/wallets/walletConnectors/chunk-3RV2PDNU.js +0 -90
  29. package/dist/wallets/walletConnectors/chunk-5AA45G6G.js +0 -68
  30. package/dist/wallets/walletConnectors/chunk-5Z7ZXXRR.js +0 -98
  31. package/dist/wallets/walletConnectors/chunk-BH3DH43L.js +0 -92
  32. package/dist/wallets/walletConnectors/chunk-C77FT77Y.js +0 -93
  33. package/dist/wallets/walletConnectors/chunk-DSSAT3NI.js +0 -99
  34. package/dist/wallets/walletConnectors/chunk-EU6OLW4A.js +0 -95
  35. package/dist/wallets/walletConnectors/chunk-FWKF7LPD.js +0 -107
  36. package/dist/wallets/walletConnectors/chunk-HKLLWUHG.js +0 -63
  37. package/dist/wallets/walletConnectors/chunk-IQZBD6M4.js +0 -63
  38. package/dist/wallets/walletConnectors/chunk-JY4IF5AQ.js +0 -84
  39. package/dist/wallets/walletConnectors/chunk-LKBXEGOJ.js +0 -92
  40. package/dist/wallets/walletConnectors/chunk-MD4POIVS.js +0 -93
  41. package/dist/wallets/walletConnectors/chunk-NBPDTYTT.js +0 -93
  42. package/dist/wallets/walletConnectors/chunk-OP7MZATO.js +0 -100
  43. package/dist/wallets/walletConnectors/chunk-PE2OUMNV.js +0 -91
  44. package/dist/wallets/walletConnectors/chunk-PTIPKDP7.js +0 -143
  45. package/dist/wallets/walletConnectors/chunk-RQLI2RTW.js +0 -105
  46. package/dist/wallets/walletConnectors/chunk-U37MS2YB.js +0 -88
  47. package/dist/wallets/walletConnectors/chunk-VFRUWZVT.js +0 -62
  48. package/dist/wallets/walletConnectors/chunk-XAQXLPKN.js +0 -90
  49. package/dist/wallets/walletConnectors/chunk-XVUM5YFT.js +0 -93
@@ -1,107 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-PJCRXY6L.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-75A5A7MH.js";
9
-
10
- // src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
11
- var safepalWallet = ({ projectId, walletConnectParameters }) => {
12
- const isSafePalWalletInjected = hasInjectedProvider({
13
- namespace: "safepalProvider",
14
- flag: "isSafePal"
15
- });
16
- const shouldUseWalletConnect = !isSafePalWalletInjected;
17
- const getUriMobile = (uri) => {
18
- return `safepalwallet://wc?uri=${encodeURIComponent(uri)}`;
19
- };
20
- const getUriQR = async (uri) => {
21
- return uri;
22
- };
23
- const mobileConnector = {
24
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
25
- };
26
- let qrConnector = void 0;
27
- if (shouldUseWalletConnect) {
28
- qrConnector = {
29
- getUri: getUriQR,
30
- instructions: {
31
- learnMoreUrl: "https://safepal.com/",
32
- steps: [
33
- {
34
- description: "wallet_connectors.safepal.qr_code.step1.description",
35
- step: "install",
36
- title: "wallet_connectors.safepal.qr_code.step1.title"
37
- },
38
- {
39
- description: "wallet_connectors.safepal.qr_code.step2.description",
40
- step: "create",
41
- title: "wallet_connectors.safepal.qr_code.step2.title"
42
- },
43
- {
44
- description: "wallet_connectors.safepal.qr_code.step3.description",
45
- step: "scan",
46
- title: "wallet_connectors.safepal.qr_code.step3.title"
47
- }
48
- ]
49
- }
50
- };
51
- }
52
- const extensionConnector = {
53
- instructions: {
54
- learnMoreUrl: "https://www.safepal.com/download?product=2",
55
- steps: [
56
- {
57
- description: "wallet_connectors.safepal.extension.step1.description",
58
- step: "install",
59
- title: "wallet_connectors.safepal.extension.step1.title"
60
- },
61
- {
62
- description: "wallet_connectors.safepal.extension.step2.description",
63
- step: "create",
64
- title: "wallet_connectors.safepal.extension.step2.title"
65
- },
66
- {
67
- description: "wallet_connectors.safepal.extension.step3.description",
68
- step: "refresh",
69
- title: "wallet_connectors.safepal.extension.step3.title"
70
- }
71
- ]
72
- }
73
- };
74
- return {
75
- id: "safepal",
76
- name: "SafePal Wallet",
77
- iconUrl: async () => (await import("./safepalWallet-KQJ4OCNH.js")).default,
78
- // Note that we never resolve `installed` to `false` because the
79
- // SafePal Wallet provider falls back to other connection methods if
80
- // the injected connector isn't available
81
- installed: isSafePalWalletInjected,
82
- iconAccent: "#3375BB",
83
- iconBackground: "#fff",
84
- downloadUrls: {
85
- android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
86
- ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
87
- mobile: "https://www.safepal.com/en/download",
88
- qrCode: "https://www.safepal.com/en/download",
89
- chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
90
- browserExtension: "https://www.safepal.com/download?product=2"
91
- },
92
- mobile: mobileConnector,
93
- ...qrConnector ? qrConnector : {},
94
- extension: extensionConnector,
95
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
96
- projectId,
97
- walletConnectParameters
98
- }) : getInjectedConnector({
99
- namespace: "safepalProvider",
100
- flag: "isSafePal"
101
- })
102
- };
103
- };
104
-
105
- export {
106
- safepalWallet
107
- };
@@ -1,63 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
- import {
6
- getInjectedConnector
7
- } from "./chunk-PJCRXY6L.js";
8
- import {
9
- getWalletConnectConnector
10
- } from "./chunk-75A5A7MH.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 = ({ projectId, walletConnectParameters }) => ({
17
- id: "iopay",
18
- name: "ioPay Wallet",
19
- iconUrl: async () => (await import("./iopayWallet-IJHJ7NYT.js")).default,
20
- iconBackground: "#fff",
21
- downloadUrls: {
22
- android: "https://play.google.com/store/apps/details?id=io.iotex.iopay.gp&pli=1",
23
- ios: "https://apps.apple.com/us/app/iopay-multichain-crypto-wallet/id1478086371",
24
- qrCode: "https://iopay.me/",
25
- browserExtension: "https://iopay.me/"
26
- },
27
- mobile: {
28
- getUri: (uri) => {
29
- return isAndroid() ? uri : `iopay://wc?uri=${encodeURIComponent(uri)}`;
30
- }
31
- },
32
- qrCode: {
33
- getUri: (uri) => uri,
34
- instructions: {
35
- learnMoreUrl: "https://iopay.me/",
36
- steps: [
37
- {
38
- description: "wallet_connectors.iopay.qr_code.step1.description",
39
- step: "install",
40
- title: "wallet_connectors.iopay.qr_code.step1.title"
41
- },
42
- {
43
- description: "wallet_connectors.iopay.qr_code.step2.description",
44
- step: "create",
45
- title: "wallet_connectors.iopay.qr_code.step2.title"
46
- },
47
- {
48
- description: "wallet_connectors.iopay.qr_code.step3.description",
49
- step: "scan",
50
- title: "wallet_connectors.iopay.qr_code.step3.title"
51
- }
52
- ]
53
- }
54
- },
55
- createConnector: isIoPayMobile() ? getInjectedConnector({}) : getWalletConnectConnector({
56
- projectId,
57
- walletConnectParameters
58
- })
59
- });
60
-
61
- export {
62
- iopayWallet
63
- };
@@ -1,63 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-PJCRXY6L.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-75A5A7MH.js";
9
-
10
- // src/wallets/walletConnectors/foxWallet/foxWallet.ts
11
- var foxWallet = ({ projectId, walletConnectParameters }) => {
12
- const isFoxInjected = hasInjectedProvider({
13
- namespace: "foxwallet.ethereum"
14
- });
15
- const shouldUseWalletConnect = !isFoxInjected;
16
- return {
17
- id: "foxwallet",
18
- name: "FoxWallet",
19
- iconUrl: async () => (await import("./foxWallet-5ESSNXJV.js")).default,
20
- iconBackground: "#fff",
21
- downloadUrls: {
22
- android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
23
- ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
24
- qrCode: "https://foxwallet.com/download"
25
- },
26
- mobile: {
27
- getUri: shouldUseWalletConnect ? (uri) => {
28
- return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
29
- } : void 0
30
- },
31
- qrCode: shouldUseWalletConnect ? {
32
- getUri: (uri) => uri,
33
- instructions: {
34
- learnMoreUrl: "https://foxwallet.com",
35
- steps: [
36
- {
37
- description: "wallet_connectors.fox.qr_code.step1.description",
38
- step: "install",
39
- title: "wallet_connectors.fox.qr_code.step1.title"
40
- },
41
- {
42
- description: "wallet_connectors.fox.qr_code.step2.description",
43
- step: "create",
44
- title: "wallet_connectors.fox.qr_code.step2.title"
45
- },
46
- {
47
- description: "wallet_connectors.fox.qr_code.step3.description",
48
- step: "scan",
49
- title: "wallet_connectors.fox.qr_code.step3.title"
50
- }
51
- ]
52
- }
53
- } : void 0,
54
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
55
- projectId,
56
- walletConnectParameters
57
- }) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
58
- };
59
- };
60
-
61
- export {
62
- foxWallet
63
- };
@@ -1,84 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-PJCRXY6L.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-75A5A7MH.js";
9
-
10
- // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
- var clvWallet = ({ projectId, walletConnectParameters }) => {
12
- const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
13
- const shouldUseWalletConnect = !isCLVInjected;
14
- return {
15
- id: "clv",
16
- name: "CLV",
17
- iconUrl: async () => (await import("./clvWallet-ZIMSRU5J.js")).default,
18
- iconBackground: "#fff",
19
- iconAccent: "#BDFDE2",
20
- installed: isCLVInjected,
21
- downloadUrls: {
22
- chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
23
- ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
24
- mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
25
- qrCode: "https://clv.org/"
26
- },
27
- extension: {
28
- instructions: {
29
- learnMoreUrl: "https://clv.org/",
30
- steps: [
31
- {
32
- description: "wallet_connectors.clv.extension.step1.description",
33
- step: "install",
34
- title: "wallet_connectors.clv.extension.step1.title"
35
- },
36
- {
37
- description: "wallet_connectors.clv.extension.step2.description",
38
- step: "create",
39
- title: "wallet_connectors.clv.extension.step2.title"
40
- },
41
- {
42
- description: "wallet_connectors.clv.extension.step3.description",
43
- step: "refresh",
44
- title: "wallet_connectors.clv.extension.step3.title"
45
- }
46
- ]
47
- }
48
- },
49
- mobile: {
50
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
51
- },
52
- qrCode: shouldUseWalletConnect ? {
53
- getUri: (uri) => uri,
54
- instructions: {
55
- learnMoreUrl: "https://clv.org/",
56
- steps: [
57
- {
58
- description: "wallet_connectors.clv.qr_code.step1.description",
59
- step: "install",
60
- title: "wallet_connectors.clv.qr_code.step1.title"
61
- },
62
- {
63
- description: "wallet_connectors.clv.qr_code.step2.description",
64
- step: "create",
65
- title: "wallet_connectors.clv.qr_code.step2.title"
66
- },
67
- {
68
- description: "wallet_connectors.clv.qr_code.step3.description",
69
- step: "scan",
70
- title: "wallet_connectors.clv.qr_code.step3.title"
71
- }
72
- ]
73
- }
74
- } : void 0,
75
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
76
- projectId,
77
- walletConnectParameters
78
- }) : getInjectedConnector({ namespace: "clover" })
79
- };
80
- };
81
-
82
- export {
83
- clvWallet
84
- };
@@ -1,92 +0,0 @@
1
- "use client";
2
- import {
3
- isMobile
4
- } from "./chunk-RETKWSKD.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-PJCRXY6L.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-75A5A7MH.js";
12
-
13
- // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
14
- var tokenPocketWallet = ({ projectId, walletConnectParameters }) => {
15
- const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
16
- const shouldUseWalletConnect = !isTokenPocketInjected;
17
- const getUri = (uri) => {
18
- return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
19
- };
20
- return {
21
- id: "tokenPocket",
22
- name: "TokenPocket",
23
- rdns: "pro.tokenpocket",
24
- iconUrl: async () => (await import("./tokenPocketWallet-BVMBOYTC.js")).default,
25
- iconBackground: "#2980FE",
26
- installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
27
- downloadUrls: {
28
- chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
29
- browserExtension: "https://extension.tokenpocket.pro/",
30
- android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
31
- ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
32
- qrCode: "https://tokenpocket.pro/en/download/app",
33
- mobile: "https://tokenpocket.pro/en/download/app"
34
- },
35
- mobile: {
36
- getUri: shouldUseWalletConnect ? getUri : void 0
37
- },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri,
40
- instructions: {
41
- learnMoreUrl: "https://help.tokenpocket.pro/en/",
42
- steps: [
43
- {
44
- description: "wallet_connectors.token_pocket.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.token_pocket.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.token_pocket.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.token_pocket.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.token_pocket.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.token_pocket.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
64
- steps: [
65
- {
66
- description: "wallet_connectors.token_pocket.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.token_pocket.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.token_pocket.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.token_pocket.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.token_pocket.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.token_pocket.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- }) : getInjectedConnector({ flag: "isTokenPocket" })
87
- };
88
- };
89
-
90
- export {
91
- tokenPocketWallet
92
- };
@@ -1,93 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-PJCRXY6L.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-75A5A7MH.js";
9
-
10
- // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
- var roninWallet = ({ projectId, walletConnectParameters }) => {
12
- const isRoninInjected = hasInjectedProvider({
13
- namespace: "ronin.provider"
14
- });
15
- const shouldUseWalletConnect = !isRoninInjected;
16
- const getUri = (uri) => {
17
- return `roninwallet://wc?uri=${encodeURIComponent(uri)}`;
18
- };
19
- return {
20
- id: "ronin",
21
- name: "Ronin Wallet",
22
- iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
23
- iconBackground: "#ffffff",
24
- rdns: "com.roninchain.wallet",
25
- installed: isRoninInjected || void 0,
26
- downloadUrls: {
27
- android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
28
- ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
29
- mobile: "https://wallet.roninchain.com",
30
- chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
31
- edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
32
- firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
33
- browserExtension: "https://wallet.roninchain.com/",
34
- qrCode: "https://wallet.roninchain.com/"
35
- },
36
- mobile: {
37
- getUri: shouldUseWalletConnect ? getUri : void 0
38
- },
39
- qrCode: shouldUseWalletConnect ? {
40
- getUri: (uri) => uri,
41
- instructions: {
42
- learnMoreUrl: "https://wallet.roninchain.com/",
43
- steps: [
44
- {
45
- description: "wallet_connectors.ronin.qr_code.step1.description",
46
- step: "install",
47
- title: "wallet_connectors.ronin.qr_code.step1.title"
48
- },
49
- {
50
- description: "wallet_connectors.ronin.qr_code.step2.description",
51
- step: "create",
52
- title: "wallet_connectors.ronin.qr_code.step2.title"
53
- },
54
- {
55
- description: "wallet_connectors.ronin.qr_code.step3.description",
56
- step: "scan",
57
- title: "wallet_connectors.ronin.qr_code.step3.title"
58
- }
59
- ]
60
- }
61
- } : void 0,
62
- extension: {
63
- instructions: {
64
- learnMoreUrl: "https://wallet.roninchain.com/",
65
- steps: [
66
- {
67
- description: "wallet_connectors.ronin.extension.step1.description",
68
- step: "install",
69
- title: "wallet_connectors.ronin.extension.step1.title"
70
- },
71
- {
72
- description: "wallet_connectors.ronin.extension.step2.description",
73
- step: "create",
74
- title: "wallet_connectors.ronin.extension.step2.title"
75
- },
76
- {
77
- description: "wallet_connectors.ronin.extension.step3.description",
78
- step: "refresh",
79
- title: "wallet_connectors.ronin.extension.step3.title"
80
- }
81
- ]
82
- }
83
- },
84
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
- projectId,
86
- walletConnectParameters
87
- }) : getInjectedConnector({ namespace: "ronin.provider" })
88
- };
89
- };
90
-
91
- export {
92
- roninWallet
93
- };
@@ -1,93 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-PJCRXY6L.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-75A5A7MH.js";
12
-
13
- // src/wallets/walletConnectors/okxWallet/okxWallet.ts
14
- var okxWallet = ({ projectId, walletConnectParameters }) => {
15
- const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
16
- const shouldUseWalletConnect = !isOKXInjected;
17
- return {
18
- id: "okx",
19
- name: "OKX Wallet",
20
- rdns: "com.okex.wallet",
21
- iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
22
- iconAccent: "#000",
23
- iconBackground: "#000",
24
- downloadUrls: {
25
- android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
26
- ios: "https://itunes.apple.com/app/id1327268470?mt=8",
27
- mobile: "https://okx.com/download",
28
- qrCode: "https://okx.com/download",
29
- chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
30
- edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
31
- firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
32
- browserExtension: "https://okx.com/download"
33
- },
34
- mobile: {
35
- getUri: shouldUseWalletConnect ? (uri) => {
36
- return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
37
- } : void 0
38
- },
39
- qrCode: shouldUseWalletConnect ? {
40
- getUri: (uri) => uri,
41
- instructions: {
42
- learnMoreUrl: "https://okx.com/web3/",
43
- steps: [
44
- {
45
- description: "wallet_connectors.okx.qr_code.step1.description",
46
- step: "install",
47
- title: "wallet_connectors.okx.qr_code.step1.title"
48
- },
49
- {
50
- description: "wallet_connectors.okx.qr_code.step2.description",
51
- step: "create",
52
- title: "wallet_connectors.okx.qr_code.step2.title"
53
- },
54
- {
55
- description: "wallet_connectors.okx.qr_code.step3.description",
56
- step: "scan",
57
- title: "wallet_connectors.okx.qr_code.step3.title"
58
- }
59
- ]
60
- }
61
- } : void 0,
62
- extension: {
63
- instructions: {
64
- learnMoreUrl: "https://okx.com/web3/",
65
- steps: [
66
- {
67
- description: "wallet_connectors.okx.extension.step1.description",
68
- step: "install",
69
- title: "wallet_connectors.okx.extension.step1.title"
70
- },
71
- {
72
- description: "wallet_connectors.okx.extension.step2.description",
73
- step: "create",
74
- title: "wallet_connectors.okx.extension.step2.title"
75
- },
76
- {
77
- description: "wallet_connectors.okx.extension.step3.description",
78
- step: "refresh",
79
- title: "wallet_connectors.okx.extension.step3.title"
80
- }
81
- ]
82
- }
83
- },
84
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
- projectId,
86
- walletConnectParameters
87
- }) : getInjectedConnector({ namespace: "okxwallet" })
88
- };
89
- };
90
-
91
- export {
92
- okxWallet
93
- };