@funkit/connect 1.4.2 → 1.5.0-next.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 (48) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/index.js +1 -1
  3. package/dist/wallets/walletConnectors/chunk-2DWBVWFI.js +87 -0
  4. package/dist/wallets/walletConnectors/chunk-32KBKKGT.js +182 -0
  5. package/dist/wallets/walletConnectors/chunk-37MVF2BB.js +94 -0
  6. package/dist/wallets/walletConnectors/chunk-3CLNL7LR.js +73 -0
  7. package/dist/wallets/walletConnectors/chunk-3F5GNHAG.js +182 -0
  8. package/dist/wallets/walletConnectors/chunk-3R3RNCGE.js +100 -0
  9. package/dist/wallets/walletConnectors/chunk-5L2OLU3J.js +102 -0
  10. package/dist/wallets/walletConnectors/chunk-7GGRZNT3.js +96 -0
  11. package/dist/wallets/walletConnectors/chunk-7YDZTPO4.js +100 -0
  12. package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +92 -0
  13. package/dist/wallets/walletConnectors/chunk-BAFQ33Z6.js +71 -0
  14. package/dist/wallets/walletConnectors/chunk-BCXBFAL4.js +98 -0
  15. package/dist/wallets/walletConnectors/chunk-CMXZK5RR.js +94 -0
  16. package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +60 -0
  17. package/dist/wallets/walletConnectors/chunk-F4EJ42XO.js +105 -0
  18. package/dist/wallets/walletConnectors/chunk-FGBCIE4L.js +182 -0
  19. package/dist/wallets/walletConnectors/chunk-FL2VIO76.js +71 -0
  20. package/dist/wallets/walletConnectors/chunk-GJ4TYHDI.js +102 -0
  21. package/dist/wallets/walletConnectors/chunk-I5GSQUQN.js +98 -0
  22. package/dist/wallets/walletConnectors/chunk-IIJOJ6AD.js +102 -0
  23. package/dist/wallets/walletConnectors/chunk-KZFAL4RZ.js +27 -0
  24. package/dist/wallets/walletConnectors/chunk-LJRV5JY7.js +95 -0
  25. package/dist/wallets/walletConnectors/chunk-M4SPCKW4.js +66 -0
  26. package/dist/wallets/walletConnectors/chunk-MFS6NY6T.js +105 -0
  27. package/dist/wallets/walletConnectors/chunk-MOAWRDEM.js +95 -0
  28. package/dist/wallets/walletConnectors/chunk-MSRKKVDE.js +98 -0
  29. package/dist/wallets/walletConnectors/chunk-NK3DYIAB.js +92 -0
  30. package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +60 -0
  31. package/dist/wallets/walletConnectors/chunk-OMKARG6Y.js +94 -0
  32. package/dist/wallets/walletConnectors/chunk-OPO2D6GL.js +102 -0
  33. package/dist/wallets/walletConnectors/chunk-OXWTS7HX.js +98 -0
  34. package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +60 -0
  35. package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +81 -0
  36. package/dist/wallets/walletConnectors/chunk-PJRUHFBT.js +71 -0
  37. package/dist/wallets/walletConnectors/chunk-PK46LOWC.js +95 -0
  38. package/dist/wallets/walletConnectors/chunk-QYK7UAJQ.js +96 -0
  39. package/dist/wallets/walletConnectors/chunk-R5GNFRXW.js +96 -0
  40. package/dist/wallets/walletConnectors/chunk-S2IWMXKX.js +94 -0
  41. package/dist/wallets/walletConnectors/chunk-THEL4ZSX.js +105 -0
  42. package/dist/wallets/walletConnectors/chunk-WH7S23VZ.js +73 -0
  43. package/dist/wallets/walletConnectors/chunk-XB2GFXBL.js +107 -0
  44. package/dist/wallets/walletConnectors/chunk-XC7OMZSO.js +73 -0
  45. package/dist/wallets/walletConnectors/chunk-XUXFYTCV.js +96 -0
  46. package/dist/wallets/walletConnectors/chunk-Z4YUZ33O.js +100 -0
  47. package/dist/wallets/walletConnectors/index.js +55 -55
  48. package/package.json +5 -5
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-F3VCNZXS.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-ZDU3JFGR.js";
9
+ import {
10
+ isAndroid,
11
+ isIOS
12
+ } from "./chunk-ZOLACFTK.js";
13
+
14
+ // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
15
+ var rainbowWallet = ({
16
+ projectId,
17
+ walletConnectParameters
18
+ }) => {
19
+ const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
20
+ const shouldUseWalletConnect = !isRainbowInjected;
21
+ const getUri = (uri) => {
22
+ return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
23
+ uri
24
+ )}&connector=rainbowkit`;
25
+ };
26
+ return {
27
+ id: "rainbow",
28
+ name: "Rainbow",
29
+ rdns: "me.rainbow",
30
+ iconUrl: async () => (await import("./rainbowWallet-GGU64QEI.js")).default,
31
+ iconBackground: "#0c2f78",
32
+ installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
33
+ downloadUrls: {
34
+ android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
35
+ ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
36
+ mobile: "https://rainbow.download?utm_source=rainbowkit",
37
+ qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
38
+ browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
39
+ },
40
+ mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
41
+ qrCode: shouldUseWalletConnect ? {
42
+ getUri,
43
+ instructions: {
44
+ learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
45
+ steps: [
46
+ {
47
+ description: "wallet_connectors.rainbow.qr_code.step1.description",
48
+ step: "install",
49
+ title: "wallet_connectors.rainbow.qr_code.step1.title"
50
+ },
51
+ {
52
+ description: "wallet_connectors.rainbow.qr_code.step2.description",
53
+ step: "create",
54
+ title: "wallet_connectors.rainbow.qr_code.step2.title"
55
+ },
56
+ {
57
+ description: "wallet_connectors.rainbow.qr_code.step3.description",
58
+ step: "scan",
59
+ title: "wallet_connectors.rainbow.qr_code.step3.title"
60
+ }
61
+ ]
62
+ }
63
+ } : void 0,
64
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
65
+ projectId,
66
+ walletConnectParameters
67
+ }) : getInjectedConnector({ flag: "isRainbow" })
68
+ };
69
+ };
70
+
71
+ export {
72
+ rainbowWallet
73
+ };
@@ -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
+ };
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-F3VCNZXS.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-ZDU3JFGR.js";
9
+ import {
10
+ isAndroid
11
+ } from "./chunk-ZOLACFTK.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,4 +1,7 @@
1
1
  "use client";
2
+ import {
3
+ xdefiWallet
4
+ } from "./chunk-JNZ3EYC7.js";
2
5
  import {
3
6
  zealWallet
4
7
  } from "./chunk-Z5QFIFDP.js";
@@ -6,20 +9,20 @@ import {
6
9
  zerionWallet
7
10
  } from "./chunk-G4DNQN67.js";
8
11
  import {
9
- walletConnectWallet
10
- } from "./chunk-ASPRR7T3.js";
11
- import {
12
- tokenPocketWallet
13
- } from "./chunk-UWU574XS.js";
12
+ safeheronWallet
13
+ } from "./chunk-FQDX6QIP.js";
14
14
  import {
15
- subWallet
16
- } from "./chunk-WS4EM7AZ.js";
15
+ talismanWallet
16
+ } from "./chunk-R2GYJ376.js";
17
17
  import {
18
18
  tahoWallet
19
19
  } from "./chunk-PILSRRPJ.js";
20
20
  import {
21
- talismanWallet
22
- } from "./chunk-R2GYJ376.js";
21
+ tokenPocketWallet
22
+ } from "./chunk-UWU574XS.js";
23
+ import {
24
+ uniswapWallet
25
+ } from "./chunk-XRSY4JVH.js";
23
26
  import {
24
27
  trustWallet
25
28
  } from "./chunk-BMHNXJZK.js";
@@ -27,11 +30,8 @@ import {
27
30
  tokenaryWallet
28
31
  } from "./chunk-MD5OPFAT.js";
29
32
  import {
30
- uniswapWallet
31
- } from "./chunk-XRSY4JVH.js";
32
- import {
33
- xdefiWallet
34
- } from "./chunk-JNZ3EYC7.js";
33
+ walletConnectWallet
34
+ } from "./chunk-ASPRR7T3.js";
35
35
  import {
36
36
  phantomWallet
37
37
  } from "./chunk-4PTY6XNU.js";
@@ -50,15 +50,15 @@ import {
50
50
  import {
51
51
  safeWallet
52
52
  } from "./chunk-D3DCQ72J.js";
53
- import {
54
- safeheronWallet
55
- } from "./chunk-FQDX6QIP.js";
56
53
  import {
57
54
  safepalWallet
58
55
  } from "./chunk-PQSJXOGA.js";
59
56
  import {
60
- ledgerWallet
61
- } from "./chunk-Y6VY6E3L.js";
57
+ subWallet
58
+ } from "./chunk-WS4EM7AZ.js";
59
+ import {
60
+ kresusWallet
61
+ } from "./chunk-X6T3CICZ.js";
62
62
  import {
63
63
  metaMaskWallet
64
64
  } from "./chunk-TUK3HNKY.js";
@@ -71,83 +71,83 @@ import {
71
71
  import {
72
72
  okxWallet
73
73
  } from "./chunk-5ZGE5SN5.js";
74
- import {
75
- omniWallet
76
- } from "./chunk-SVN7OEQR.js";
77
74
  import {
78
75
  oneInchWallet
79
76
  } from "./chunk-LCPIZUR3.js";
77
+ import {
78
+ omniWallet
79
+ } from "./chunk-SVN7OEQR.js";
80
80
  import {
81
81
  oneKeyWallet
82
82
  } from "./chunk-QS2J6MWB.js";
83
83
  import {
84
- frameWallet
85
- } from "./chunk-HXGBE5AH.js";
84
+ desigWallet
85
+ } from "./chunk-P4C7ZHIS.js";
86
+ import {
87
+ enkryptWallet
88
+ } from "./chunk-SJWHYD45.js";
86
89
  import {
87
90
  frontierWallet
88
91
  } from "./chunk-LOEDYNWO.js";
89
92
  import {
90
- foxWallet
91
- } from "./chunk-TKXMLZXG.js";
93
+ gateWallet
94
+ } from "./chunk-QGQISKXF.js";
92
95
  import {
93
96
  imTokenWallet
94
97
  } from "./chunk-5MVV7OVS.js";
95
- import {
96
- gateWallet
97
- } from "./chunk-QGQISKXF.js";
98
98
  import {
99
99
  injectedWallet
100
100
  } from "./chunk-GUJHPWTU.js";
101
101
  import {
102
- kresusWallet
103
- } from "./chunk-X6T3CICZ.js";
102
+ ledgerWallet
103
+ } from "./chunk-Y6VY6E3L.js";
104
104
  import {
105
- bitgetWallet
106
- } from "./chunk-OUQ3ZF2W.js";
105
+ clvWallet
106
+ } from "./chunk-ND5YG63V.js";
107
107
  import {
108
108
  coin98Wallet
109
109
  } from "./chunk-3QXMJHL4.js";
110
- import {
111
- bybitWallet
112
- } from "./chunk-ZBQT5PV6.js";
113
- import {
114
- coreWallet
115
- } from "./chunk-32O7HVBJ.js";
116
110
  import {
117
111
  coinbaseWallet
118
112
  } from "./chunk-O77H3VWW.js";
119
113
  import {
120
- desigWallet
121
- } from "./chunk-P4C7ZHIS.js";
114
+ coreWallet
115
+ } from "./chunk-32O7HVBJ.js";
122
116
  import {
123
- enkryptWallet
124
- } from "./chunk-SJWHYD45.js";
117
+ braveWallet
118
+ } from "./chunk-KJWMF6GZ.js";
125
119
  import {
126
120
  dawnWallet
127
121
  } from "./chunk-QUFNIKMV.js";
128
122
  import {
129
- argentWallet
130
- } from "./chunk-NZ5G23JP.js";
123
+ foxWallet
124
+ } from "./chunk-TKXMLZXG.js";
125
+ import {
126
+ frameWallet
127
+ } from "./chunk-HXGBE5AH.js";
131
128
  import {
132
129
  bifrostWallet
133
130
  } from "./chunk-AFONKDII.js";
134
131
  import {
135
- bitskiWallet
136
- } from "./chunk-IMZRCMZR.js";
132
+ argentWallet
133
+ } from "./chunk-NZ5G23JP.js";
134
+ import {
135
+ bitverseWallet
136
+ } from "./chunk-NL4I7WOT.js";
137
137
  import {
138
138
  bloomWallet
139
139
  } from "./chunk-NTGZF5BY.js";
140
- import "./chunk-ZOLACFTK.js";
141
140
  import {
142
- bitverseWallet
143
- } from "./chunk-NL4I7WOT.js";
141
+ bitskiWallet
142
+ } from "./chunk-IMZRCMZR.js";
144
143
  import {
145
- clvWallet
146
- } from "./chunk-ND5YG63V.js";
147
- import "./chunk-ZDU3JFGR.js";
144
+ bitgetWallet
145
+ } from "./chunk-OUQ3ZF2W.js";
146
+ import "./chunk-ZOLACFTK.js";
148
147
  import {
149
- braveWallet
150
- } from "./chunk-KJWMF6GZ.js";
148
+ bybitWallet
149
+ } from "./chunk-ZBQT5PV6.js";
150
+ import "./chunk-ZDU3JFGR.js";
151
151
  import "./chunk-F3VCNZXS.js";
152
152
  export {
153
153
  argentWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "1.4.2",
3
+ "version": "1.5.0-next.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -20,7 +20,7 @@
20
20
  "src/css/reset.css.ts"
21
21
  ],
22
22
  "engines": {
23
- "node": ">=12.4"
23
+ "node": ">=18"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
@@ -77,9 +77,9 @@
77
77
  "react-remove-scroll": "2.5.7",
78
78
  "ua-parser-js": "^1.0.37",
79
79
  "uuid": "^9.0.1",
80
- "@funkit/api-base": "0.0.6",
81
- "@funkit/wagmi-tools": "2.0.5",
82
- "@funkit/core": "1.0.20"
80
+ "@funkit/core": "1.1.0-next.0",
81
+ "@funkit/api-base": "0.1.0-next.0",
82
+ "@funkit/wagmi-tools": "2.1.0-next.0"
83
83
  },
84
84
  "repository": {
85
85
  "type": "git",