@funkit/connect 2.0.0 → 2.0.1

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.
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ isAndroid
4
+ } from "./chunk-ZOLACFTK.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-F3VCNZXS.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.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
+ };
@@ -1,61 +1,61 @@
1
1
  "use client";
2
2
  import {
3
- zerionWallet
4
- } from "./chunk-G4DNQN67.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-Z5QFIFDP.js";
3
+ uniswapWallet
4
+ } from "./chunk-XRSY4JVH.js";
8
5
  import {
9
6
  walletConnectWallet
10
7
  } from "./chunk-ASPRR7T3.js";
11
8
  import {
12
- roninWallet
13
- } from "./chunk-CNTLU4ZV.js";
14
- import {
15
- safeheronWallet
16
- } from "./chunk-FQDX6QIP.js";
9
+ zerionWallet
10
+ } from "./chunk-G4DNQN67.js";
17
11
  import {
18
- tokenPocketWallet
19
- } from "./chunk-UWU574XS.js";
12
+ safepalWallet
13
+ } from "./chunk-PQSJXOGA.js";
20
14
  import {
21
15
  talismanWallet
22
16
  } from "./chunk-R2GYJ376.js";
17
+ import {
18
+ tokenPocketWallet
19
+ } from "./chunk-UWU574XS.js";
23
20
  import {
24
21
  tokenaryWallet
25
22
  } from "./chunk-MD5OPFAT.js";
23
+ import {
24
+ tahoWallet
25
+ } from "./chunk-PILSRRPJ.js";
26
+ import {
27
+ zealWallet
28
+ } from "./chunk-Z5QFIFDP.js";
26
29
  import {
27
30
  trustWallet
28
31
  } from "./chunk-BMHNXJZK.js";
29
- import {
30
- uniswapWallet
31
- } from "./chunk-XRSY4JVH.js";
32
32
  import {
33
33
  xdefiWallet
34
34
  } from "./chunk-JNZ3EYC7.js";
35
35
  import {
36
- rainbowWallet
37
- } from "./chunk-EXN2ODSI.js";
36
+ oktoWallet
37
+ } from "./chunk-WKHTUEF5.js";
38
38
  import {
39
- rabbyWallet
40
- } from "./chunk-5SIHQ5GA.js";
39
+ phantomWallet
40
+ } from "./chunk-4PTY6XNU.js";
41
41
  import {
42
42
  ramperWallet
43
43
  } from "./chunk-XEZPRJPV.js";
44
+ import {
45
+ roninWallet
46
+ } from "./chunk-CNTLU4ZV.js";
44
47
  import {
45
48
  safeWallet
46
49
  } from "./chunk-D3DCQ72J.js";
47
50
  import {
48
- oneInchWallet
49
- } from "./chunk-LCPIZUR3.js";
51
+ safeheronWallet
52
+ } from "./chunk-FQDX6QIP.js";
50
53
  import {
51
- safepalWallet
52
- } from "./chunk-PQSJXOGA.js";
54
+ rainbowWallet
55
+ } from "./chunk-EXN2ODSI.js";
53
56
  import {
54
57
  subWallet
55
58
  } from "./chunk-WS4EM7AZ.js";
56
- import {
57
- tahoWallet
58
- } from "./chunk-PILSRRPJ.js";
59
59
  import {
60
60
  injectedWallet
61
61
  } from "./chunk-GUJHPWTU.js";
@@ -71,82 +71,82 @@ import {
71
71
  import {
72
72
  okxWallet
73
73
  } from "./chunk-5ZGE5SN5.js";
74
- import {
75
- oktoWallet
76
- } from "./chunk-WKHTUEF5.js";
77
74
  import {
78
75
  oneKeyWallet
79
76
  } from "./chunk-QS2J6MWB.js";
80
77
  import {
81
- phantomWallet
82
- } from "./chunk-4PTY6XNU.js";
78
+ oneInchWallet
79
+ } from "./chunk-LCPIZUR3.js";
83
80
  import {
84
- enkryptWallet
85
- } from "./chunk-SJWHYD45.js";
81
+ rabbyWallet
82
+ } from "./chunk-5SIHQ5GA.js";
86
83
  import {
87
84
  frameWallet
88
85
  } from "./chunk-HXGBE5AH.js";
89
86
  import {
90
- frontierWallet
91
- } from "./chunk-LOEDYNWO.js";
87
+ bitverseWallet
88
+ } from "./chunk-NL4I7WOT.js";
89
+ import {
90
+ coinbaseWallet
91
+ } from "./chunk-O77H3VWW.js";
92
92
  import {
93
93
  imTokenWallet
94
94
  } from "./chunk-5MVV7OVS.js";
95
- import {
96
- gateWallet
97
- } from "./chunk-QGQISKXF.js";
98
95
  import {
99
96
  ledgerWallet
100
97
  } from "./chunk-Y6VY6E3L.js";
98
+ import {
99
+ gateWallet
100
+ } from "./chunk-QGQISKXF.js";
101
101
  import {
102
102
  kresusWallet
103
103
  } from "./chunk-X6T3CICZ.js";
104
- import {
105
- bybitWallet
106
- } from "./chunk-ZBQT5PV6.js";
107
- import {
108
- coin98Wallet
109
- } from "./chunk-3QXMJHL4.js";
110
- import {
111
- bitgetWallet
112
- } from "./chunk-OUQ3ZF2W.js";
113
104
  import {
114
105
  coreWallet
115
106
  } from "./chunk-32O7HVBJ.js";
116
107
  import {
117
- coinbaseWallet
118
- } from "./chunk-O77H3VWW.js";
108
+ bitskiWallet
109
+ } from "./chunk-IMZRCMZR.js";
110
+ import {
111
+ bloomWallet
112
+ } from "./chunk-NTGZF5BY.js";
119
113
  import {
120
114
  dawnWallet
121
115
  } from "./chunk-QUFNIKMV.js";
122
116
  import {
123
117
  desigWallet
124
118
  } from "./chunk-P4C7ZHIS.js";
119
+ import {
120
+ enkryptWallet
121
+ } from "./chunk-SJWHYD45.js";
125
122
  import {
126
123
  foxWallet
127
124
  } from "./chunk-TKXMLZXG.js";
128
125
  import {
129
- bifrostWallet
130
- } from "./chunk-AFONKDII.js";
131
- import {
132
- bitskiWallet
133
- } from "./chunk-IMZRCMZR.js";
126
+ frontierWallet
127
+ } from "./chunk-LOEDYNWO.js";
134
128
  import {
135
129
  argentWallet
136
130
  } from "./chunk-NZ5G23JP.js";
137
131
  import {
138
- bitverseWallet
139
- } from "./chunk-NL4I7WOT.js";
140
- import {
141
- bloomWallet
142
- } from "./chunk-NTGZF5BY.js";
143
- import "./chunk-ZOLACFTK.js";
132
+ bifrostWallet
133
+ } from "./chunk-AFONKDII.js";
144
134
  import {
145
135
  braveWallet
146
136
  } from "./chunk-KJWMF6GZ.js";
137
+ import {
138
+ bybitWallet
139
+ } from "./chunk-ZBQT5PV6.js";
147
140
  import {
148
141
  clvWallet
149
142
  } from "./chunk-ND5YG63V.js";
143
+ import {
144
+ coin98Wallet
145
+ } from "./chunk-3QXMJHL4.js";
146
+ import {
147
+ bitgetWallet
148
+ } from "./chunk-OUQ3ZF2W.js";
149
+ import "./chunk-ZOLACFTK.js";
150
150
  import "./chunk-ZDU3JFGR.js";
151
151
  import "./chunk-F3VCNZXS.js";
152
152
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -79,8 +79,8 @@
79
79
  "ua-parser-js": "^1.0.37",
80
80
  "uuid": "^9.0.1",
81
81
  "@funkit/api-base": "1.0.0",
82
- "@funkit/core": "2.0.0",
83
- "@funkit/wagmi-tools": "3.0.0"
82
+ "@funkit/wagmi-tools": "3.0.0",
83
+ "@funkit/core": "2.0.0"
84
84
  },
85
85
  "repository": {
86
86
  "type": "git",