@funkit/connect 8.2.1 → 8.3.1-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 (98) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/__generated__/default_configs.d.ts +70 -0
  3. package/dist/atoms/activeCheckout.d.ts +183 -0
  4. package/dist/atoms/activeWithdrawal.d.ts +21 -0
  5. package/dist/atoms/bridgeProviders/acrossAdapter.d.ts +109 -0
  6. package/dist/atoms/bridgeProviders/index.d.ts +25 -0
  7. package/dist/atoms/bridgeProviders/registry.d.ts +12 -0
  8. package/dist/atoms/bridgeProviders/relayAdapter.d.ts +60 -0
  9. package/dist/atoms/bridgeProviders/types.d.ts +182 -0
  10. package/dist/atoms/checkoutProgress.d.ts +22 -0
  11. package/dist/atoms/directExecution.d.ts +70 -0
  12. package/dist/atoms/funkitCheckout.d.ts +18 -0
  13. package/dist/atoms/funkitProvider/index.d.ts +24 -0
  14. package/dist/atoms/generalWallet.d.ts +45 -0
  15. package/dist/atoms/i18n.d.ts +6 -0
  16. package/dist/atoms/modalState.d.ts +30 -0
  17. package/dist/atoms/quote.d.ts +98 -0
  18. package/dist/atoms/stepTransition.d.ts +6 -0
  19. package/dist/atoms/store.d.ts +1 -0
  20. package/dist/atoms/track/index.d.ts +10 -0
  21. package/dist/atoms/utils.d.ts +2 -0
  22. package/dist/atoms/wagmi.d.ts +4 -0
  23. package/dist/atoms/walletClient.d.ts +15391 -0
  24. package/dist/chunk-5JRQC2VM.js +300 -0
  25. package/dist/{chunk-BP7VOYBS.js → chunk-A24XIU2M.js} +3 -1
  26. package/dist/{chunk-MYPFORR2.js → chunk-CMS4F5PL.js} +3 -2
  27. package/dist/chunk-CUWQELX3.js +209 -0
  28. package/dist/chunk-FBCU3TQA.js +204 -0
  29. package/dist/{chunk-KKGSXLMH.js → chunk-GRQP5R23.js} +3 -2
  30. package/dist/chunk-MGQZMUZ2.js +288 -0
  31. package/dist/chunk-OTMBU2BL.js +204 -0
  32. package/dist/chunk-VWSYBHAK.js +209 -0
  33. package/dist/clients/fanatics.css +3648 -3563
  34. package/dist/clients/fanatics.js +3 -3
  35. package/dist/components/Box/Box.d.ts +28 -28
  36. package/dist/components/FunPaymentMethodItem/FunPaymentMethodItemSkeleton.d.ts +2 -0
  37. package/dist/components/Icons/AcrossIcon.d.ts +4 -0
  38. package/dist/css/sprinkles.css.d.ts +40 -28
  39. package/dist/domains/across.d.ts +29 -0
  40. package/dist/domains/track.d.ts +14 -0
  41. package/dist/hooks/queries/useFops.d.ts +15 -0
  42. package/dist/hooks/usePaymentSources.d.ts +1 -1
  43. package/dist/hooks/useRelayBypass.d.ts +0 -9
  44. package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +2 -0
  45. package/dist/hooks/useUserIpInfo.d.ts +19 -0
  46. package/dist/index.css +3654 -3569
  47. package/dist/index.js +2648 -2650
  48. package/dist/modals/CheckoutModal/SelectAsset.d.ts +14 -0
  49. package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +11 -0
  50. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +16 -0
  51. package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -0
  52. package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -0
  53. package/dist/providers/FunkitConfigContext.d.ts +9 -2
  54. package/dist/providers/FunkitMoonpayProvider.d.ts +0 -14
  55. package/dist/providers/FunkitThemeProvider.d.ts +18 -0
  56. package/dist/themes/baseTheme.js +1 -1
  57. package/dist/themes/darkTheme.js +2 -2
  58. package/dist/themes/lightTheme.js +2 -2
  59. package/dist/utils/flags/config.d.ts +1 -1
  60. package/dist/utils/lighter.d.ts +0 -2
  61. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  62. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  63. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  64. package/dist/wallets/walletConnectors/chunk-2E4PDCEJ.js +103 -0
  65. package/dist/wallets/walletConnectors/chunk-47QF6EET.js +93 -0
  66. package/dist/wallets/walletConnectors/chunk-5EAOMOTO.js +98 -0
  67. package/dist/wallets/walletConnectors/chunk-77UTBHGP.js +70 -0
  68. package/dist/wallets/walletConnectors/chunk-CZYUE3AR.js +100 -0
  69. package/dist/wallets/walletConnectors/chunk-FA5DTT5R.js +99 -0
  70. package/dist/wallets/walletConnectors/chunk-HPHADOYD.js +87 -0
  71. package/dist/wallets/walletConnectors/chunk-JFHP4YJG.js +106 -0
  72. package/dist/wallets/walletConnectors/chunk-MRRZOQGZ.js +92 -0
  73. package/dist/wallets/walletConnectors/chunk-R6Y36CMA.js +69 -0
  74. package/dist/wallets/walletConnectors/chunk-RA7MCWF4.js +218 -0
  75. package/dist/wallets/walletConnectors/chunk-RLRQYUYC.js +96 -0
  76. package/dist/wallets/walletConnectors/chunk-T5KHVUFR.js +96 -0
  77. package/dist/wallets/walletConnectors/chunk-U5QP7MI5.js +94 -0
  78. package/dist/wallets/walletConnectors/chunk-UOTQQJJD.js +92 -0
  79. package/dist/wallets/walletConnectors/chunk-VYNVAGSV.js +95 -0
  80. package/dist/wallets/walletConnectors/chunk-W7Y6I22Y.js +110 -0
  81. package/dist/wallets/walletConnectors/chunk-YLJDPTYF.js +66 -0
  82. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  83. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  84. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  85. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  86. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  87. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  88. package/dist/wallets/walletConnectors/index.js +39 -39
  89. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  90. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  91. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  92. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  93. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  94. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  95. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  96. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  97. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  98. package/package.json +4 -4
@@ -0,0 +1,218 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-ARYAYQ7Z.js";
9
+
10
+ // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
11
+ import { isAndroid, isIOS } from "@funkit/utils";
12
+ function isMetaMask(ethereum) {
13
+ if (!ethereum?.isMetaMask) {
14
+ return false;
15
+ }
16
+ if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
17
+ return false;
18
+ }
19
+ if (ethereum.isApexWallet) {
20
+ return false;
21
+ }
22
+ if (ethereum.isAvalanche) {
23
+ return false;
24
+ }
25
+ if (ethereum.isBackpack) {
26
+ return false;
27
+ }
28
+ if (ethereum.isBifrost) {
29
+ return false;
30
+ }
31
+ if (ethereum.isBitKeep) {
32
+ return false;
33
+ }
34
+ if (ethereum.isBitski) {
35
+ return false;
36
+ }
37
+ if (ethereum.isBlockWallet) {
38
+ return false;
39
+ }
40
+ if (ethereum.isCoinbaseWallet) {
41
+ return false;
42
+ }
43
+ if (ethereum.isDawn) {
44
+ return false;
45
+ }
46
+ if (ethereum.isEnkrypt) {
47
+ return false;
48
+ }
49
+ if (ethereum.isExodus) {
50
+ return false;
51
+ }
52
+ if (ethereum.isFrame) {
53
+ return false;
54
+ }
55
+ if (ethereum.isFrontier) {
56
+ return false;
57
+ }
58
+ if (ethereum.isGamestop) {
59
+ return false;
60
+ }
61
+ if (ethereum.isHyperPay) {
62
+ return false;
63
+ }
64
+ if (ethereum.isImToken) {
65
+ return false;
66
+ }
67
+ if (ethereum.isKuCoinWallet) {
68
+ return false;
69
+ }
70
+ if (ethereum.isMathWallet) {
71
+ return false;
72
+ }
73
+ if (ethereum.isNestWallet) {
74
+ return false;
75
+ }
76
+ if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
77
+ return false;
78
+ }
79
+ if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
80
+ return false;
81
+ }
82
+ if (ethereum.isOpera) {
83
+ return false;
84
+ }
85
+ if (ethereum.isPhantom) {
86
+ return false;
87
+ }
88
+ if (ethereum.isPortal) {
89
+ return false;
90
+ }
91
+ if (ethereum.isRabby) {
92
+ return false;
93
+ }
94
+ if (ethereum.isRainbow) {
95
+ return false;
96
+ }
97
+ if (ethereum.isStatus) {
98
+ return false;
99
+ }
100
+ if (ethereum.isTalisman) {
101
+ return false;
102
+ }
103
+ if (ethereum.isTally) {
104
+ return false;
105
+ }
106
+ if (ethereum.isTokenPocket) {
107
+ return false;
108
+ }
109
+ if (ethereum.isTokenary) {
110
+ return false;
111
+ }
112
+ if (ethereum.isTrust || ethereum.isTrustWallet) {
113
+ return false;
114
+ }
115
+ if (ethereum.isXDEFI) {
116
+ return false;
117
+ }
118
+ if (ethereum.isZeal) {
119
+ return false;
120
+ }
121
+ if (ethereum.isZerion) {
122
+ return false;
123
+ }
124
+ return true;
125
+ }
126
+ var metaMaskWallet = ({
127
+ projectId,
128
+ walletConnectParameters
129
+ }) => {
130
+ const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
131
+ const shouldUseWalletConnect = !isMetaMaskInjected;
132
+ const getUri = (uri) => {
133
+ return isAndroid() ? uri : isIOS() ? (
134
+ // currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
135
+ `metamask://wc?uri=${encodeURIComponent(uri)}`
136
+ ) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
137
+ };
138
+ return {
139
+ id: "metaMask",
140
+ name: "MetaMask",
141
+ rdns: "io.metamask",
142
+ iconUrl: async () => (await import("./metaMaskWallet-RMHEKBDR.js")).default,
143
+ iconAccent: "#f6851a",
144
+ iconBackground: "#fff",
145
+ installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
146
+ downloadUrls: {
147
+ android: "https://play.google.com/store/apps/details?id=io.metamask",
148
+ ios: "https://apps.apple.com/us/app/metamask/id1438144202",
149
+ mobile: "https://metamask.io/download",
150
+ qrCode: "https://metamask.io/download",
151
+ chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
152
+ edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
153
+ firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
154
+ opera: "https://addons.opera.com/extensions/details/metamask-10",
155
+ browserExtension: "https://metamask.io/download"
156
+ },
157
+ mobile: {
158
+ getUri: shouldUseWalletConnect ? getUri : void 0
159
+ },
160
+ qrCode: shouldUseWalletConnect ? {
161
+ getUri,
162
+ instructions: {
163
+ learnMoreUrl: "https://metamask.io/faqs/",
164
+ steps: [
165
+ {
166
+ description: "wallet_connectors.metamask.qr_code.step1.description",
167
+ step: "install",
168
+ title: "wallet_connectors.metamask.qr_code.step1.title"
169
+ },
170
+ {
171
+ description: "wallet_connectors.metamask.qr_code.step2.description",
172
+ step: "create",
173
+ title: "wallet_connectors.metamask.qr_code.step2.title"
174
+ },
175
+ {
176
+ description: "wallet_connectors.metamask.qr_code.step3.description",
177
+ step: "refresh",
178
+ title: "wallet_connectors.metamask.qr_code.step3.title"
179
+ }
180
+ ]
181
+ }
182
+ } : void 0,
183
+ extension: {
184
+ instructions: {
185
+ learnMoreUrl: "https://metamask.io/faqs/",
186
+ steps: [
187
+ {
188
+ description: "wallet_connectors.metamask.extension.step1.description",
189
+ step: "install",
190
+ title: "wallet_connectors.metamask.extension.step1.title"
191
+ },
192
+ {
193
+ description: "wallet_connectors.metamask.extension.step2.description",
194
+ step: "create",
195
+ title: "wallet_connectors.metamask.extension.step2.title"
196
+ },
197
+ {
198
+ description: "wallet_connectors.metamask.extension.step3.description",
199
+ step: "refresh",
200
+ title: "wallet_connectors.metamask.extension.step3.title"
201
+ }
202
+ ]
203
+ }
204
+ },
205
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
206
+ projectId,
207
+ walletConnectParameters
208
+ }) : getInjectedConnector({
209
+ target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
210
+ isMetaMask
211
+ ) ?? window.ethereum : void 0
212
+ })
213
+ };
214
+ };
215
+
216
+ export {
217
+ metaMaskWallet
218
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-ARYAYQ7Z.js";
9
+
10
+ // src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
11
+ var coin98Wallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCoin98WalletInjected = hasInjectedProvider({
16
+ namespace: "coin98.provider",
17
+ flag: "isCoin98"
18
+ });
19
+ const shouldUseWalletConnect = !isCoin98WalletInjected;
20
+ return {
21
+ id: "coin98",
22
+ name: "Coin98 Wallet",
23
+ iconUrl: async () => (await import("./coin98Wallet-I5CP5KYZ.js")).default,
24
+ installed: isCoin98WalletInjected,
25
+ iconAccent: "#CDA349",
26
+ iconBackground: "#fff",
27
+ rdns: "coin98.com",
28
+ downloadUrls: {
29
+ android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
30
+ ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
31
+ mobile: "https://coin98.com/wallet",
32
+ qrCode: "https://coin98.com/wallet",
33
+ chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
34
+ browserExtension: "https://coin98.com/wallet"
35
+ },
36
+ mobile: {
37
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
38
+ },
39
+ qrCode: shouldUseWalletConnect ? {
40
+ getUri: (uri) => uri,
41
+ instructions: {
42
+ learnMoreUrl: "https://coin98.com/wallet",
43
+ steps: [
44
+ {
45
+ description: "wallet_connectors.coin98.qr_code.step1.description",
46
+ step: "install",
47
+ title: "wallet_connectors.coin98.qr_code.step1.title"
48
+ },
49
+ {
50
+ description: "wallet_connectors.coin98.qr_code.step2.description",
51
+ step: "create",
52
+ title: "wallet_connectors.coin98.qr_code.step2.title"
53
+ },
54
+ {
55
+ description: "wallet_connectors.coin98.qr_code.step3.description",
56
+ step: "scan",
57
+ title: "wallet_connectors.coin98.qr_code.step3.title"
58
+ }
59
+ ]
60
+ }
61
+ } : void 0,
62
+ extension: {
63
+ instructions: {
64
+ learnMoreUrl: "https://coin98.com/wallet",
65
+ steps: [
66
+ {
67
+ description: "wallet_connectors.coin98.extension.step1.description",
68
+ step: "install",
69
+ title: "wallet_connectors.coin98.extension.step1.title"
70
+ },
71
+ {
72
+ description: "wallet_connectors.coin98.extension.step2.description",
73
+ step: "create",
74
+ title: "wallet_connectors.coin98.extension.step2.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.coin98.extension.step3.description",
78
+ step: "refresh",
79
+ title: "wallet_connectors.coin98.extension.step3.title"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
85
+ projectId,
86
+ walletConnectParameters
87
+ }) : getInjectedConnector({
88
+ namespace: "coin98Wallet",
89
+ flag: "isCoin98"
90
+ })
91
+ };
92
+ };
93
+
94
+ export {
95
+ coin98Wallet
96
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-ARYAYQ7Z.js";
9
+
10
+ // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var frontierWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isFrontierInjected = hasInjectedProvider({
17
+ namespace: "frontier.ethereum",
18
+ flag: "isFrontier"
19
+ });
20
+ const shouldUseWalletConnect = !isFrontierInjected;
21
+ return {
22
+ id: "frontier",
23
+ name: "Frontier Wallet",
24
+ rdns: "xyz.frontier.wallet",
25
+ installed: isFrontierInjected,
26
+ iconUrl: async () => (await import("./frontierWallet-5QV7ZACT.js")).default,
27
+ iconBackground: "#CC703C",
28
+ downloadUrls: {
29
+ android: "https://play.google.com/store/apps/details?id=com.frontierwallet",
30
+ ios: "https://apps.apple.com/us/app/frontier-crypto-defi-wallet/id1482380988",
31
+ qrCode: "https://www.frontier.xyz/download",
32
+ chrome: "https://chrome.google.com/webstore/detail/frontier-wallet/kppfdiipphfccemcignhifpjkapfbihd",
33
+ browserExtension: "https://www.frontier.xyz/download"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => {
37
+ return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
38
+ } : void 0
39
+ },
40
+ qrCode: shouldUseWalletConnect ? {
41
+ getUri: (uri) => {
42
+ return isAndroid() ? `frontier://wc?uri=${encodeURIComponent(uri)}` : uri;
43
+ },
44
+ instructions: {
45
+ learnMoreUrl: "https://help.frontier.xyz/en/",
46
+ steps: [
47
+ {
48
+ description: "wallet_connectors.im_token.qr_code.step1.description",
49
+ step: "install",
50
+ title: "wallet_connectors.im_token.qr_code.step1.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.im_token.qr_code.step2.description",
54
+ step: "create",
55
+ title: "wallet_connectors.im_token.qr_code.step2.title"
56
+ },
57
+ {
58
+ description: "wallet_connectors.im_token.qr_code.step3.description",
59
+ step: "scan",
60
+ title: "wallet_connectors.im_token.qr_code.step3.title"
61
+ }
62
+ ]
63
+ }
64
+ } : void 0,
65
+ extension: {
66
+ instructions: {
67
+ learnMoreUrl: "https://help.frontier.xyz/en/articles/6967236-setting-up-frontier-on-your-device",
68
+ steps: [
69
+ {
70
+ description: "wallet_connectors.frontier.extension.step1.description",
71
+ step: "install",
72
+ title: "wallet_connectors.frontier.extension.step1.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.frontier.extension.step2.description",
76
+ step: "create",
77
+ title: "wallet_connectors.frontier.extension.step2.title"
78
+ },
79
+ {
80
+ description: "wallet_connectors.frontier.extension.step3.description",
81
+ step: "refresh",
82
+ title: "wallet_connectors.frontier.extension.step3.title"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({ projectId, walletConnectParameters }) : getInjectedConnector({
88
+ namespace: "frontier.ethereum",
89
+ flag: "isFrontier"
90
+ })
91
+ };
92
+ };
93
+
94
+ export {
95
+ frontierWallet
96
+ };
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-ARYAYQ7Z.js";
9
+
10
+ // src/wallets/walletConnectors/okxWallet/okxWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var okxWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isOKXInjected = hasInjectedProvider({ namespace: "okxwallet" });
17
+ const shouldUseWalletConnect = !isOKXInjected;
18
+ return {
19
+ id: "okx",
20
+ name: "OKX Wallet",
21
+ rdns: "com.okex.wallet",
22
+ iconUrl: async () => (await import("./okxWallet-GJMKZIND.js")).default,
23
+ iconAccent: "#000",
24
+ iconBackground: "#000",
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
27
+ ios: "https://itunes.apple.com/app/id1327268470?mt=8",
28
+ mobile: "https://okx.com/download",
29
+ qrCode: "https://okx.com/download",
30
+ chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
31
+ edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
32
+ firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
33
+ browserExtension: "https://okx.com/download"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => {
37
+ return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
38
+ } : void 0
39
+ },
40
+ qrCode: shouldUseWalletConnect ? {
41
+ getUri: (uri) => uri,
42
+ instructions: {
43
+ learnMoreUrl: "https://okx.com/web3/",
44
+ steps: [
45
+ {
46
+ description: "wallet_connectors.okx.qr_code.step1.description",
47
+ step: "install",
48
+ title: "wallet_connectors.okx.qr_code.step1.title"
49
+ },
50
+ {
51
+ description: "wallet_connectors.okx.qr_code.step2.description",
52
+ step: "create",
53
+ title: "wallet_connectors.okx.qr_code.step2.title"
54
+ },
55
+ {
56
+ description: "wallet_connectors.okx.qr_code.step3.description",
57
+ step: "scan",
58
+ title: "wallet_connectors.okx.qr_code.step3.title"
59
+ }
60
+ ]
61
+ }
62
+ } : void 0,
63
+ extension: {
64
+ instructions: {
65
+ learnMoreUrl: "https://okx.com/web3/",
66
+ steps: [
67
+ {
68
+ description: "wallet_connectors.okx.extension.step1.description",
69
+ step: "install",
70
+ title: "wallet_connectors.okx.extension.step1.title"
71
+ },
72
+ {
73
+ description: "wallet_connectors.okx.extension.step2.description",
74
+ step: "create",
75
+ title: "wallet_connectors.okx.extension.step2.title"
76
+ },
77
+ {
78
+ description: "wallet_connectors.okx.extension.step3.description",
79
+ step: "refresh",
80
+ title: "wallet_connectors.okx.extension.step3.title"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
86
+ projectId,
87
+ walletConnectParameters
88
+ }) : getInjectedConnector({ namespace: "okxwallet" })
89
+ };
90
+ };
91
+
92
+ export {
93
+ okxWallet
94
+ };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-ARYAYQ7Z.js";
9
+
10
+ // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
+ var roninWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isRoninInjected = hasInjectedProvider({
16
+ namespace: "ronin.provider"
17
+ });
18
+ return {
19
+ id: "ronin",
20
+ name: "Ronin Wallet",
21
+ iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
22
+ iconBackground: "#ffffff",
23
+ rdns: "com.roninchain.wallet",
24
+ installed: isRoninInjected || void 0,
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
27
+ ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
28
+ mobile: "https://wallet.roninchain.com",
29
+ chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
30
+ edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
31
+ firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
32
+ browserExtension: "https://wallet.roninchain.com/",
33
+ qrCode: "https://wallet.roninchain.com/"
34
+ },
35
+ mobile: {
36
+ getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
37
+ },
38
+ qrCode: {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://wallet.roninchain.com/",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.ronin.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.ronin.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.ronin.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.ronin.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.ronin.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.ronin.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://wallet.roninchain.com/",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.ronin.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.ronin.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.ronin.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.ronin.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.ronin.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.ronin.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ })
87
+ };
88
+ };
89
+
90
+ export {
91
+ roninWallet
92
+ };
@@ -0,0 +1,95 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-ARYAYQ7Z.js";
9
+
10
+ // src/wallets/walletConnectors/coreWallet/coreWallet.ts
11
+ var coreWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isCoreInjected = hasInjectedProvider({
16
+ namespace: "avalanche",
17
+ flag: "isAvalanche"
18
+ });
19
+ const shouldUseWalletConnect = !isCoreInjected;
20
+ return {
21
+ id: "core",
22
+ name: "Core",
23
+ rdns: "app.core.extension",
24
+ iconUrl: async () => (await import("./coreWallet-RFVUHOVE.js")).default,
25
+ iconBackground: "#1A1A1C",
26
+ installed: !shouldUseWalletConnect ? isCoreInjected : void 0,
27
+ downloadUrls: {
28
+ android: "https://play.google.com/store/apps/details?id=com.avaxwallet",
29
+ ios: "https://apps.apple.com/us/app/core-wallet/id6443685999",
30
+ mobile: "https://core.app/?downloadCoreMobile=1",
31
+ qrCode: "https://core.app/?downloadCoreMobile=1",
32
+ chrome: "https://chrome.google.com/webstore/detail/core-crypto-wallet-nft-ex/agoakfejjabomempkjlepdflaleeobhb",
33
+ browserExtension: "https://extension.core.app/"
34
+ },
35
+ mobile: {
36
+ getUri: shouldUseWalletConnect ? (uri) => uri : void 0
37
+ },
38
+ qrCode: shouldUseWalletConnect ? {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://support.avax.network/en/articles/6115608-core-mobile-how-to-add-the-core-mobile-to-my-phone",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.core.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.core.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.core.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.core.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.core.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.core.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ } : void 0,
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://extension.core.app/",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.core.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.core.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.core.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.core.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.core.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.core.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ }) : getInjectedConnector({
87
+ namespace: "avalanche",
88
+ flag: "isAvalanche"
89
+ })
90
+ };
91
+ };
92
+
93
+ export {
94
+ coreWallet
95
+ };