@funkit/connect 1.0.7 → 1.0.8

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 (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/index.js +1 -1
  3. package/dist/wallets/walletConnectors/index.js +68 -68
  4. package/package.json +18 -17
  5. package/dist/components/Icons/MastercardIcon.d.ts +0 -2
  6. package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +0 -100
  7. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
  8. package/dist/wallets/walletConnectors/chunk-2LY3WMXK.js +0 -96
  9. package/dist/wallets/walletConnectors/chunk-2PC2XXUH.js +0 -94
  10. package/dist/wallets/walletConnectors/chunk-2XQJ2NQ4.js +0 -178
  11. package/dist/wallets/walletConnectors/chunk-75A2U7T7.js +0 -100
  12. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
  13. package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
  14. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
  15. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
  16. package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
  17. package/dist/wallets/walletConnectors/chunk-DNOEX5NF.js +0 -73
  18. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
  19. package/dist/wallets/walletConnectors/chunk-FDIIMYTB.js +0 -73
  20. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
  21. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
  22. package/dist/wallets/walletConnectors/chunk-HXYRONSJ.js +0 -94
  23. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
  24. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
  25. package/dist/wallets/walletConnectors/chunk-MCTPLICE.js +0 -102
  26. package/dist/wallets/walletConnectors/chunk-MU35GKP3.js +0 -71
  27. package/dist/wallets/walletConnectors/chunk-N3VZE65M.js +0 -98
  28. package/dist/wallets/walletConnectors/chunk-OAEJQOAV.js +0 -105
  29. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
  30. package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
  31. package/dist/wallets/walletConnectors/chunk-OR3PU2W4.js +0 -95
  32. package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
  33. package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
  34. package/dist/wallets/walletConnectors/chunk-PPFSHJTA.js +0 -95
  35. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
  36. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
  37. package/dist/wallets/walletConnectors/chunk-RYO26XSK.js +0 -100
  38. package/dist/wallets/walletConnectors/chunk-SL4VH23R.js +0 -71
  39. package/dist/wallets/walletConnectors/chunk-SPLW3CCH.js +0 -98
  40. package/dist/wallets/walletConnectors/chunk-SQGFKNNZ.js +0 -102
  41. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
  42. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
  43. package/dist/wallets/walletConnectors/chunk-VWZEDVW6.js +0 -27
  44. package/dist/wallets/walletConnectors/chunk-X255T3C4.js +0 -178
  45. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
  46. package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +0 -178
  47. package/dist/wallets/walletConnectors/chunk-XSSD5ZVD.js +0 -96
  48. package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +0 -98
  49. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
  50. package/dist/wallets/walletConnectors/chunk-ZFXXHGAS.js +0 -105
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 5bedbdc: chore: package bump
8
+ - Updated dependencies [5bedbdc]
9
+ - @funkit/core@1.0.4
10
+ - @funkit/wagmi-tools@1.0.5
11
+
3
12
  ## 1.0.7
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -15363,7 +15363,7 @@ function setFunkitConnectVersion({ version }) {
15363
15363
  localStorage.setItem(storageKey4, version);
15364
15364
  }
15365
15365
  function getCurrentSdkVersion() {
15366
- return "1.0.7";
15366
+ return "1.0.8";
15367
15367
  }
15368
15368
  function useFingerprint() {
15369
15369
  const fingerprint = useCallback28(() => {
@@ -1,124 +1,121 @@
1
1
  "use client";
2
2
  import {
3
- zealWallet
4
- } from "./chunk-DPXMP5KS.js";
5
- import {
6
- zerionWallet
7
- } from "./chunk-7CQPABJG.js";
3
+ xdefiWallet
4
+ } from "./chunk-L734HTUS.js";
8
5
  import {
9
- uniswapWallet
10
- } from "./chunk-XRSY4JVH.js";
6
+ walletConnectWallet
7
+ } from "./chunk-ASPRR7T3.js";
11
8
  import {
12
- subWallet
13
- } from "./chunk-ZBAQFL6G.js";
9
+ zealWallet
10
+ } from "./chunk-DPXMP5KS.js";
14
11
  import {
15
12
  tokenPocketWallet
16
13
  } from "./chunk-2UXZAUWT.js";
17
14
  import {
18
- talismanWallet
19
- } from "./chunk-H273OTQA.js";
15
+ safeWallet
16
+ } from "./chunk-D3DCQ72J.js";
17
+ import {
18
+ mewWallet
19
+ } from "./chunk-PWYTDYBE.js";
20
20
  import {
21
21
  tokenaryWallet
22
22
  } from "./chunk-ENZLEAG2.js";
23
23
  import {
24
- trustWallet
25
- } from "./chunk-Z2DGDHHZ.js";
26
- import {
27
- walletConnectWallet
28
- } from "./chunk-ASPRR7T3.js";
29
- import {
30
- xdefiWallet
31
- } from "./chunk-L734HTUS.js";
24
+ uniswapWallet
25
+ } from "./chunk-XRSY4JVH.js";
32
26
  import {
33
- safeWallet
34
- } from "./chunk-D3DCQ72J.js";
27
+ safeheronWallet
28
+ } from "./chunk-63NPZXAL.js";
35
29
  import {
36
- rainbowWallet
37
- } from "./chunk-O5NKWWEG.js";
30
+ trustWallet
31
+ } from "./chunk-Z2DGDHHZ.js";
38
32
  import {
39
- rabbyWallet
40
- } from "./chunk-XPEBP6XV.js";
33
+ zerionWallet
34
+ } from "./chunk-7CQPABJG.js";
41
35
  import {
42
36
  ramperWallet
43
37
  } from "./chunk-ZOL6ZMTJ.js";
44
38
  import {
45
- oneKeyWallet
46
- } from "./chunk-4WOV4ITL.js";
39
+ roninWallet
40
+ } from "./chunk-LVRXH33E.js";
47
41
  import {
48
42
  safepalWallet
49
43
  } from "./chunk-SYELB4QO.js";
50
44
  import {
51
- safeheronWallet
52
- } from "./chunk-63NPZXAL.js";
45
+ rainbowWallet
46
+ } from "./chunk-O5NKWWEG.js";
53
47
  import {
54
- roninWallet
55
- } from "./chunk-LVRXH33E.js";
48
+ subWallet
49
+ } from "./chunk-ZBAQFL6G.js";
56
50
  import {
57
51
  tahoWallet
58
52
  } from "./chunk-H76YCX2M.js";
59
53
  import {
60
- mewWallet
61
- } from "./chunk-PWYTDYBE.js";
54
+ talismanWallet
55
+ } from "./chunk-H273OTQA.js";
62
56
  import {
63
- ledgerWallet
64
- } from "./chunk-Y6VY6E3L.js";
57
+ injectedWallet
58
+ } from "./chunk-KIHCNUU3.js";
65
59
  import {
66
60
  oktoWallet
67
61
  } from "./chunk-WKHTUEF5.js";
68
62
  import {
69
- injectedWallet
70
- } from "./chunk-KIHCNUU3.js";
63
+ metaMaskWallet
64
+ } from "./chunk-3WZRNEZH.js";
71
65
  import {
72
66
  omniWallet
73
67
  } from "./chunk-SVN7OEQR.js";
68
+ import {
69
+ phantomWallet
70
+ } from "./chunk-KGBLSE7L.js";
74
71
  import {
75
72
  okxWallet
76
73
  } from "./chunk-NGXIHASN.js";
74
+ import {
75
+ oneKeyWallet
76
+ } from "./chunk-4WOV4ITL.js";
77
+ import {
78
+ rabbyWallet
79
+ } from "./chunk-XPEBP6XV.js";
77
80
  import {
78
81
  oneInchWallet
79
82
  } from "./chunk-LCPIZUR3.js";
80
83
  import {
81
- phantomWallet
82
- } from "./chunk-KGBLSE7L.js";
84
+ dawnWallet
85
+ } from "./chunk-4XQDKOGF.js";
83
86
  import {
84
87
  foxWallet
85
88
  } from "./chunk-Q4RLUJJD.js";
89
+ import {
90
+ imTokenWallet
91
+ } from "./chunk-5MVV7OVS.js";
86
92
  import {
87
93
  frameWallet
88
94
  } from "./chunk-XXFJVY73.js";
89
95
  import {
90
- frontierWallet
91
- } from "./chunk-AM4SSLAP.js";
92
- import {
93
- imTokenWallet
94
- } from "./chunk-5MVV7OVS.js";
96
+ kresusWallet
97
+ } from "./chunk-X6T3CICZ.js";
95
98
  import {
96
99
  gateWallet
97
100
  } from "./chunk-V45EXW7A.js";
98
101
  import {
99
- kresusWallet
100
- } from "./chunk-X6T3CICZ.js";
102
+ ledgerWallet
103
+ } from "./chunk-Y6VY6E3L.js";
101
104
  import {
102
- metaMaskWallet
103
- } from "./chunk-3WZRNEZH.js";
105
+ bitgetWallet
106
+ } from "./chunk-ZNXQ4V6G.js";
104
107
  import {
105
108
  coin98Wallet
106
109
  } from "./chunk-4FQLUQNA.js";
110
+ import {
111
+ bitverseWallet
112
+ } from "./chunk-NL4I7WOT.js";
107
113
  import {
108
114
  coinbaseWallet
109
115
  } from "./chunk-XBUTWYE4.js";
110
- import {
111
- bitskiWallet
112
- } from "./chunk-C67TQJ6W.js";
113
116
  import {
114
117
  coreWallet
115
118
  } from "./chunk-JLQ5HJYV.js";
116
- import {
117
- bloomWallet
118
- } from "./chunk-NTGZF5BY.js";
119
- import {
120
- dawnWallet
121
- } from "./chunk-4XQDKOGF.js";
122
119
  import {
123
120
  desigWallet
124
121
  } from "./chunk-P4JLZ42R.js";
@@ -126,24 +123,27 @@ import {
126
123
  enkryptWallet
127
124
  } from "./chunk-FLY7F4XA.js";
128
125
  import {
129
- bifrostWallet
130
- } from "./chunk-6LTLPR2Q.js";
131
- import {
132
- bitgetWallet
133
- } from "./chunk-ZNXQ4V6G.js";
134
- import {
135
- bitverseWallet
136
- } from "./chunk-NL4I7WOT.js";
126
+ frontierWallet
127
+ } from "./chunk-AM4SSLAP.js";
137
128
  import {
138
129
  argentWallet
139
130
  } from "./chunk-NZ5G23JP.js";
140
- import "./chunk-ZOLACFTK.js";
141
131
  import {
142
- braveWallet
143
- } from "./chunk-ABYQAXUX.js";
132
+ bitskiWallet
133
+ } from "./chunk-C67TQJ6W.js";
134
+ import {
135
+ bifrostWallet
136
+ } from "./chunk-6LTLPR2Q.js";
137
+ import {
138
+ bloomWallet
139
+ } from "./chunk-NTGZF5BY.js";
140
+ import "./chunk-ZOLACFTK.js";
144
141
  import {
145
142
  bybitWallet
146
143
  } from "./chunk-ZUAHWUEL.js";
144
+ import {
145
+ braveWallet
146
+ } from "./chunk-ABYQAXUX.js";
147
147
  import {
148
148
  clvWallet
149
149
  } from "./chunk-MIWCKFYE.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -25,6 +25,18 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
+ "scripts": {
29
+ "build": "node build.js && pnpm typecheck",
30
+ "build:watch": "node build.js --watch",
31
+ "dev": "pnpm build:watch & pnpm typegen:watch",
32
+ "prepare": "MINIFY_CSS=true pnpm build",
33
+ "prebuild": "pnpm typegen",
34
+ "typecheck": "pnpm tsc --noEmit",
35
+ "typegen": "tsc --emitDeclarationOnly || true",
36
+ "typegen:watch": "tsc --emitDeclarationOnly --watch",
37
+ "lint": "eslint \"**/*.{ts,tsx,js,jsx}\"",
38
+ "lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix"
39
+ },
28
40
  "keywords": [
29
41
  "ens",
30
42
  "ethereum",
@@ -60,6 +72,8 @@
60
72
  "@types/ua-parser-js": "^0.7.39"
61
73
  },
62
74
  "dependencies": {
75
+ "@funkit/wagmi-tools": "^1.0.5",
76
+ "@funkit/core": "^1.0.4",
63
77
  "@vanilla-extract/css": "1.14.0",
64
78
  "@vanilla-extract/dynamic": "2.1.0",
65
79
  "@vanilla-extract/sprinkles": "1.6.1",
@@ -74,25 +88,12 @@
74
88
  "@meshconnect/web-link-sdk": "^2.0.1",
75
89
  "@wagmi/core": "^2.6.9",
76
90
  "uuid": "^9.0.1",
77
- "@types/uuid": "^9.0.8",
78
- "@funkit/wagmi-tools": "1.0.4",
79
- "@funkit/core": "1.0.3"
91
+ "@types/uuid": "^9.0.8"
80
92
  },
81
93
  "repository": {
82
94
  "type": "git",
83
95
  "url": "git+https://github.com/fun-xyz/funkit.git",
84
96
  "directory": "packages/connect"
85
97
  },
86
- "homepage": "https://github.com/fun-xyz/funkit/tree/main/packages/connect",
87
- "scripts": {
88
- "build": "node build.js && pnpm typecheck",
89
- "build:watch": "node build.js --watch",
90
- "dev": "pnpm build:watch & pnpm typegen:watch",
91
- "prebuild": "pnpm typegen",
92
- "typecheck": "pnpm tsc --noEmit",
93
- "typegen": "tsc --emitDeclarationOnly || true",
94
- "typegen:watch": "tsc --emitDeclarationOnly --watch",
95
- "lint": "eslint \"**/*.{ts,tsx,js,jsx}\"",
96
- "lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix"
97
- }
98
- }
98
+ "homepage": "https://github.com/fun-xyz/funkit/tree/main/packages/connect"
99
+ }
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const MasterCardIcon: () => React.JSX.Element;
@@ -1,100 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-QII6PY2D.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-ZDU3JFGR.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
- iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
27
- iconAccent: "#f6851a",
28
- iconBackground: "#fff",
29
- installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
30
- downloadUrls: {
31
- android: "https://web3.bitget.com/en/wallet-download?type=0",
32
- ios: "https://apps.apple.com/app/bitkeep/id1395301115",
33
- mobile: "https://web3.bitget.com/en/wallet-download?type=2",
34
- qrCode: "https://web3.bitget.com/en/wallet-download",
35
- chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
36
- browserExtension: "https://web3.bitget.com/en/wallet-download"
37
- },
38
- extension: {
39
- instructions: {
40
- learnMoreUrl: "https://web3.bitget.com/en/academy",
41
- steps: [
42
- {
43
- description: "wallet_connectors.bitget.extension.step1.description",
44
- step: "install",
45
- title: "wallet_connectors.bitget.extension.step1.title"
46
- },
47
- {
48
- description: "wallet_connectors.bitget.extension.step2.description",
49
- step: "create",
50
- title: "wallet_connectors.bitget.extension.step2.title"
51
- },
52
- {
53
- description: "wallet_connectors.bitget.extension.step3.description",
54
- step: "refresh",
55
- title: "wallet_connectors.bitget.extension.step3.description"
56
- }
57
- ]
58
- }
59
- },
60
- mobile: {
61
- getUri: shouldUseWalletConnect ? (uri) => {
62
- return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
63
- } : void 0
64
- },
65
- qrCode: shouldUseWalletConnect ? {
66
- getUri: (uri) => uri,
67
- instructions: {
68
- learnMoreUrl: "https://web3.bitget.com/en/academy",
69
- steps: [
70
- {
71
- description: "wallet_connectors.bitget.qr_code.step1.description",
72
- step: "install",
73
- title: "wallet_connectors.bitget.qr_code.step1.title"
74
- },
75
- {
76
- description: "wallet_connectors.bitget.qr_code.step2.description",
77
- step: "create",
78
- title: "wallet_connectors.bitget.qr_code.step2.title"
79
- },
80
- {
81
- description: "wallet_connectors.bitget.qr_code.step3.description",
82
- step: "scan",
83
- title: "wallet_connectors.bitget.qr_code.step3.title"
84
- }
85
- ]
86
- }
87
- } : void 0,
88
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
89
- projectId,
90
- walletConnectParameters
91
- }) : getInjectedConnector({
92
- namespace: "bitkeep.ethereum",
93
- flag: "isBitKeep"
94
- })
95
- };
96
- };
97
-
98
- export {
99
- bitgetWallet
100
- };
@@ -1,102 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-ZDU3JFGR.js";
9
-
10
- // src/wallets/walletConnectors/subWallet/subWallet.ts
11
- var subWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isSubWalletInjected = hasInjectedProvider({ namespace: "SubWallet" });
16
- const shouldUseWalletConnect = !isSubWalletInjected;
17
- const getUriMobile = (uri) => {
18
- return `subwallet://wc?uri=${encodeURIComponent(uri)}`;
19
- };
20
- const getUriQR = (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://www.subwallet.app/",
32
- steps: [
33
- {
34
- description: "wallet_connectors.subwallet.qr_code.step1.description",
35
- step: "install",
36
- title: "wallet_connectors.subwallet.qr_code.step1.title"
37
- },
38
- {
39
- description: "wallet_connectors.subwallet.qr_code.step2.description",
40
- step: "create",
41
- title: "wallet_connectors.subwallet.qr_code.step2.title"
42
- },
43
- {
44
- description: "wallet_connectors.subwallet.qr_code.step3.description",
45
- step: "scan",
46
- title: "wallet_connectors.subwallet.qr_code.step3.title"
47
- }
48
- ]
49
- }
50
- };
51
- }
52
- const extensionConnector = {
53
- instructions: {
54
- learnMoreUrl: "https://www.subwallet.app/",
55
- steps: [
56
- {
57
- description: "wallet_connectors.subwallet.extension.step1.description",
58
- step: "install",
59
- title: "wallet_connectors.subwallet.extension.step1.title"
60
- },
61
- {
62
- description: "wallet_connectors.subwallet.extension.step2.description",
63
- step: "create",
64
- title: "wallet_connectors.subwallet.extension.step2.title"
65
- },
66
- {
67
- description: "wallet_connectors.subwallet.extension.step3.description",
68
- step: "refresh",
69
- title: "wallet_connectors.subwallet.extension.step3.title"
70
- }
71
- ]
72
- }
73
- };
74
- return {
75
- id: "subwallet",
76
- name: "SubWallet",
77
- iconUrl: async () => (await import("./subWallet-ELA2UJOS.js")).default,
78
- iconBackground: "#fff",
79
- installed: isSubWalletInjected || void 0,
80
- downloadUrls: {
81
- browserExtension: "https://www.subwallet.app/download",
82
- chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
83
- firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
84
- edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
85
- mobile: "https://www.subwallet.app/download",
86
- android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
87
- ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
88
- qrCode: "https://www.subwallet.app/download"
89
- },
90
- mobile: mobileConnector,
91
- qrCode: qrConnector,
92
- extension: extensionConnector,
93
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
94
- projectId,
95
- walletConnectParameters
96
- }) : getInjectedConnector({ namespace: "SubWallet" })
97
- };
98
- };
99
-
100
- export {
101
- subWallet
102
- };
@@ -1,96 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
- import {
6
- isAndroid
7
- } from "./chunk-ZOLACFTK.js";
8
- import {
9
- getInjectedConnector,
10
- hasInjectedProvider
11
- } from "./chunk-QII6PY2D.js";
12
-
13
- // src/wallets/walletConnectors/okxWallet/okxWallet.ts
14
- var okxWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
19
- const shouldUseWalletConnect = !isOKXInjected;
20
- return {
21
- id: "okx",
22
- name: "OKX Wallet",
23
- rdns: "com.okex.wallet",
24
- iconUrl: async () => (await import("./okxWallet-GKYMI2XW.js")).default,
25
- iconAccent: "#000",
26
- iconBackground: "#000",
27
- downloadUrls: {
28
- android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
29
- ios: "https://itunes.apple.com/app/id1327268470?mt=8",
30
- mobile: "https://okx.com/download",
31
- qrCode: "https://okx.com/download",
32
- chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
33
- edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
34
- firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
35
- browserExtension: "https://okx.com/download"
36
- },
37
- mobile: {
38
- getUri: shouldUseWalletConnect ? (uri) => {
39
- return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
40
- } : void 0
41
- },
42
- qrCode: shouldUseWalletConnect ? {
43
- getUri: (uri) => uri,
44
- instructions: {
45
- learnMoreUrl: "https://okx.com/web3/",
46
- steps: [
47
- {
48
- description: "wallet_connectors.okx.qr_code.step1.description",
49
- step: "install",
50
- title: "wallet_connectors.okx.qr_code.step1.title"
51
- },
52
- {
53
- description: "wallet_connectors.okx.qr_code.step2.description",
54
- step: "create",
55
- title: "wallet_connectors.okx.qr_code.step2.title"
56
- },
57
- {
58
- description: "wallet_connectors.okx.qr_code.step3.description",
59
- step: "scan",
60
- title: "wallet_connectors.okx.qr_code.step3.title"
61
- }
62
- ]
63
- }
64
- } : void 0,
65
- extension: {
66
- instructions: {
67
- learnMoreUrl: "https://okx.com/web3/",
68
- steps: [
69
- {
70
- description: "wallet_connectors.okx.extension.step1.description",
71
- step: "install",
72
- title: "wallet_connectors.okx.extension.step1.title"
73
- },
74
- {
75
- description: "wallet_connectors.okx.extension.step2.description",
76
- step: "create",
77
- title: "wallet_connectors.okx.extension.step2.title"
78
- },
79
- {
80
- description: "wallet_connectors.okx.extension.step3.description",
81
- step: "refresh",
82
- title: "wallet_connectors.okx.extension.step3.title"
83
- }
84
- ]
85
- }
86
- },
87
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
- projectId,
89
- walletConnectParameters
90
- }) : getInjectedConnector({ namespace: "okxwallet" })
91
- };
92
- };
93
-
94
- export {
95
- okxWallet
96
- };