@funkit/connect 9.7.1 → 9.7.2-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 (82) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/chunk-64NZSUGQ.js +368 -0
  3. package/dist/chunk-B2B6HDIE.js +238 -0
  4. package/dist/chunk-OQNN7EMQ.js +238 -0
  5. package/dist/chunk-S65TG73G.js +247 -0
  6. package/dist/chunk-VLAOBEJN.js +247 -0
  7. package/dist/clients/chunk-SBQ2UUPK.js +214 -0
  8. package/dist/clients/fanatics.css +1 -1
  9. package/dist/clients/lighter.d.ts +138 -0
  10. package/dist/components/Dropdown/TokenAndChainDropdown.css.d.ts +1 -0
  11. package/dist/hooks/queries/useRecentDeposits.d.ts +2 -0
  12. package/dist/hooks/track/CheckoutTrackingContext.d.ts +60 -0
  13. package/dist/hooks/useTokenChain.d.ts +21 -0
  14. package/dist/index.css +10 -10
  15. package/dist/index.js +7 -7
  16. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframeContainer.d.ts +17 -0
  17. package/dist/modals/CheckoutModal/TransferToken/CheckoutNotifications.d.ts +6 -0
  18. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +76 -0
  19. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +27 -0
  20. package/dist/modals/WithdrawalModal/WithdrawalTypeSelect.d.ts +16 -0
  21. package/dist/modals/WithdrwalModal/WithdrawalCallbackSuccess.d.ts +10 -0
  22. package/dist/modals/WithdrwalModal/WithdrawalContent.d.ts +11 -0
  23. package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +9 -0
  24. package/dist/modals/WithdrwalModal/WithdrawalSuccess.d.ts +15 -0
  25. package/dist/modals/WithdrwalModal/types.d.ts +5 -0
  26. package/dist/modals/WithdrwalModal/useWithdrawal.d.ts +24 -0
  27. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/chunk-34HACM5U.js +110 -0
  31. package/dist/wallets/walletConnectors/chunk-4C7ER452.js +93 -0
  32. package/dist/wallets/walletConnectors/chunk-53VYSPXK.js +66 -0
  33. package/dist/wallets/walletConnectors/chunk-5TN5Z2WY.js +87 -0
  34. package/dist/wallets/walletConnectors/chunk-6DRCY52E.js +69 -0
  35. package/dist/wallets/walletConnectors/chunk-6UCI7GM6.js +98 -0
  36. package/dist/wallets/walletConnectors/chunk-6YO27XOM.js +96 -0
  37. package/dist/wallets/walletConnectors/chunk-7OARWILZ.js +92 -0
  38. package/dist/wallets/walletConnectors/chunk-7V33VJAL.js +218 -0
  39. package/dist/wallets/walletConnectors/chunk-APHCF4DT.js +103 -0
  40. package/dist/wallets/walletConnectors/chunk-CJJT7LMT.js +96 -0
  41. package/dist/wallets/walletConnectors/chunk-DEFRRPXB.js +98 -0
  42. package/dist/wallets/walletConnectors/chunk-EKJHJFRN.js +69 -0
  43. package/dist/wallets/walletConnectors/chunk-FG2LDVXL.js +92 -0
  44. package/dist/wallets/walletConnectors/chunk-GH4M6FTK.js +95 -0
  45. package/dist/wallets/walletConnectors/chunk-GSHSWVEG.js +70 -0
  46. package/dist/wallets/walletConnectors/chunk-GVOQTORD.js +87 -0
  47. package/dist/wallets/walletConnectors/chunk-HETS3KKI.js +218 -0
  48. package/dist/wallets/walletConnectors/chunk-HOPH3TQ3.js +99 -0
  49. package/dist/wallets/walletConnectors/chunk-HRDPUW3V.js +94 -0
  50. package/dist/wallets/walletConnectors/chunk-HXWUH73P.js +93 -0
  51. package/dist/wallets/walletConnectors/chunk-IICWJWGZ.js +110 -0
  52. package/dist/wallets/walletConnectors/chunk-KO56HCTI.js +106 -0
  53. package/dist/wallets/walletConnectors/chunk-KWX2SYU2.js +100 -0
  54. package/dist/wallets/walletConnectors/chunk-LCIPVVH5.js +70 -0
  55. package/dist/wallets/walletConnectors/chunk-LI6QY2B5.js +94 -0
  56. package/dist/wallets/walletConnectors/chunk-PKMAPNN6.js +92 -0
  57. package/dist/wallets/walletConnectors/chunk-T4ROGPMF.js +106 -0
  58. package/dist/wallets/walletConnectors/chunk-TTHM3WUR.js +100 -0
  59. package/dist/wallets/walletConnectors/chunk-UDTBQV4Q.js +96 -0
  60. package/dist/wallets/walletConnectors/chunk-V6UOWTEZ.js +95 -0
  61. package/dist/wallets/walletConnectors/chunk-VJZWNQOF.js +92 -0
  62. package/dist/wallets/walletConnectors/chunk-XBLHZICW.js +103 -0
  63. package/dist/wallets/walletConnectors/chunk-XVBSJCW5.js +96 -0
  64. package/dist/wallets/walletConnectors/chunk-YIEASHLS.js +99 -0
  65. package/dist/wallets/walletConnectors/chunk-ZPSPK6LH.js +66 -0
  66. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  67. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  68. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  69. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  70. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  71. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  72. package/dist/wallets/walletConnectors/index.js +40 -40
  73. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  74. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  75. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  76. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  77. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  78. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  79. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  80. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  81. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  82. package/package.json +3 -3
@@ -0,0 +1,98 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-MAPXJUOO.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-BAVE62IL.js";
9
+
10
+ // src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
11
+ var bybitWallet = ({
12
+ projectId,
13
+ walletConnectParameters
14
+ }) => {
15
+ const isBybitInjected = hasInjectedProvider({
16
+ namespace: "bybitWallet"
17
+ });
18
+ const shouldUseWalletConnect = !isBybitInjected;
19
+ const getUri = (uri) => {
20
+ return `bybitapp://open/route?targetUrl=by://web3/walletconnect/wc?uri=${encodeURIComponent(
21
+ uri
22
+ )}`;
23
+ };
24
+ return {
25
+ id: "bybit",
26
+ name: "Bybit Wallet",
27
+ rdns: "com.bybit",
28
+ iconUrl: async () => (await import("./bybitWallet-GOPAS32Q.js")).default,
29
+ installed: !shouldUseWalletConnect ? isBybitInjected : void 0,
30
+ iconBackground: "#000000",
31
+ downloadUrls: {
32
+ chrome: "https://chromewebstore.google.com/detail/bybit-wallet/pdliaogehgdbhbnmkklieghmmjkpigpa",
33
+ browserExtension: "https://www.bybit.com/en/web3",
34
+ android: "https://play.google.com/store/apps/details?id=com.bybit.app",
35
+ ios: "https://apps.apple.com/us/app/bybit-buy-trade-crypto/id1488296980",
36
+ mobile: "https://www.bybit.com/en/web3",
37
+ qrCode: "https://www.bybit.com/en/web3"
38
+ },
39
+ mobile: {
40
+ getUri: shouldUseWalletConnect ? getUri : void 0
41
+ },
42
+ qrCode: shouldUseWalletConnect ? {
43
+ getUri: (uri) => uri,
44
+ instructions: {
45
+ learnMoreUrl: "https://www.bybit.com/en/web3",
46
+ steps: [
47
+ {
48
+ description: "wallet_connectors.bybit.qr_code.step1.description",
49
+ step: "install",
50
+ title: "wallet_connectors.bybit.qr_code.step1.title"
51
+ },
52
+ {
53
+ description: "wallet_connectors.bybit.qr_code.step2.description",
54
+ step: "create",
55
+ title: "wallet_connectors.bybit.qr_code.step2.title"
56
+ },
57
+ {
58
+ description: "wallet_connectors.bybit.qr_code.step3.description",
59
+ step: "scan",
60
+ title: "wallet_connectors.bybit.qr_code.step3.title"
61
+ }
62
+ ]
63
+ }
64
+ } : void 0,
65
+ extension: {
66
+ instructions: {
67
+ learnMoreUrl: "https://www.bybit.com/en/web3",
68
+ steps: [
69
+ {
70
+ description: "wallet_connectors.bybit.extension.step1.description",
71
+ step: "install",
72
+ title: "wallet_connectors.bybit.extension.step1.title"
73
+ },
74
+ {
75
+ description: "wallet_connectors.bybit.extension.step2.description",
76
+ step: "create",
77
+ title: "wallet_connectors.bybit.extension.step2.title"
78
+ },
79
+ {
80
+ description: "wallet_connectors.bybit.extension.step3.description",
81
+ step: "refresh",
82
+ title: "wallet_connectors.bybit.extension.step3.title"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
88
+ projectId,
89
+ walletConnectParameters
90
+ }) : getInjectedConnector({
91
+ namespace: "bybitWallet"
92
+ })
93
+ };
94
+ };
95
+
96
+ export {
97
+ bybitWallet
98
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-MAPXJUOO.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-BAVE62IL.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,92 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-MAPXJUOO.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-BAVE62IL.js";
9
+
10
+ // src/wallets/walletConnectors/gateWallet/gateWallet.ts
11
+ import { isAndroid } from "@funkit/utils";
12
+ var gateWallet = ({
13
+ projectId,
14
+ walletConnectParameters
15
+ }) => {
16
+ const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
17
+ const shouldUseWalletConnect = !isGateInjected;
18
+ return {
19
+ id: "gate",
20
+ name: "Gate Wallet",
21
+ rdns: "io.gate.wallet",
22
+ iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
23
+ iconAccent: "#fff",
24
+ iconBackground: "#fff",
25
+ downloadUrls: {
26
+ android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
27
+ ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
28
+ mobile: "https://www.gate.io/mobileapp",
29
+ qrCode: "https://www.gate.io/web3",
30
+ chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
31
+ browserExtension: "https://www.gate.io/web3"
32
+ },
33
+ mobile: {
34
+ getUri: shouldUseWalletConnect ? (uri) => {
35
+ return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
36
+ } : void 0
37
+ },
38
+ qrCode: shouldUseWalletConnect ? {
39
+ getUri: (uri) => uri,
40
+ instructions: {
41
+ learnMoreUrl: "https://www.gate.io/learn",
42
+ steps: [
43
+ {
44
+ description: "wallet_connectors.gate.qr_code.step1.description",
45
+ step: "install",
46
+ title: "wallet_connectors.gate.qr_code.step1.title"
47
+ },
48
+ {
49
+ description: "wallet_connectors.gate.qr_code.step2.description",
50
+ step: "create",
51
+ title: "wallet_connectors.gate.qr_code.step2.title"
52
+ },
53
+ {
54
+ description: "wallet_connectors.gate.qr_code.step3.description",
55
+ step: "scan",
56
+ title: "wallet_connectors.gate.qr_code.step3.title"
57
+ }
58
+ ]
59
+ }
60
+ } : void 0,
61
+ extension: {
62
+ instructions: {
63
+ learnMoreUrl: "https://www.gate.io/learn",
64
+ steps: [
65
+ {
66
+ description: "wallet_connectors.gate.extension.step1.description",
67
+ step: "install",
68
+ title: "wallet_connectors.gate.extension.step1.title"
69
+ },
70
+ {
71
+ description: "wallet_connectors.gate.extension.step2.description",
72
+ step: "create",
73
+ title: "wallet_connectors.gate.extension.step2.title"
74
+ },
75
+ {
76
+ description: "wallet_connectors.gate.extension.step3.description",
77
+ step: "refresh",
78
+ title: "wallet_connectors.gate.extension.step3.title"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
84
+ projectId,
85
+ walletConnectParameters
86
+ }) : getInjectedConnector({ namespace: "gatewallet" })
87
+ };
88
+ };
89
+
90
+ export {
91
+ gateWallet
92
+ };
@@ -0,0 +1,218 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.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,103 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-YYYRPQHB.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-FMVNQKZL.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
+ rdns: "app.subwallet",
78
+ iconUrl: async () => (await import("./subWallet-5WUZ4IIO.js")).default,
79
+ iconBackground: "#fff",
80
+ installed: isSubWalletInjected || void 0,
81
+ downloadUrls: {
82
+ browserExtension: "https://www.subwallet.app/download",
83
+ chrome: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
84
+ firefox: "https://addons.mozilla.org/en-US/firefox/addon/subwallet/",
85
+ edge: "https://chrome.google.com/webstore/detail/subwallet-polkadot-wallet/onhogfjeacnfoofkfgppdlbmlmnplgbn",
86
+ mobile: "https://www.subwallet.app/download",
87
+ android: "https://play.google.com/store/apps/details?id=app.subwallet.mobile",
88
+ ios: "https://apps.apple.com/us/app/subwallet-polkadot-wallet/id1633050285",
89
+ qrCode: "https://www.subwallet.app/download"
90
+ },
91
+ mobile: mobileConnector,
92
+ qrCode: qrConnector,
93
+ extension: extensionConnector,
94
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
95
+ projectId,
96
+ walletConnectParameters
97
+ }) : getInjectedConnector({ namespace: "SubWallet" })
98
+ };
99
+ };
100
+
101
+ export {
102
+ subWallet
103
+ };
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-MAPXJUOO.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-BAVE62IL.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
+ };