@funkit/connect 1.0.8 → 1.0.9

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 (41) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +5 -3
  4. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  5. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  6. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  7. package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +100 -0
  8. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +102 -0
  9. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +95 -0
  10. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +105 -0
  11. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +98 -0
  12. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +96 -0
  13. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +92 -0
  14. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +98 -0
  15. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +94 -0
  16. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +71 -0
  17. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +66 -0
  18. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +73 -0
  19. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +107 -0
  20. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +87 -0
  21. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +94 -0
  22. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +102 -0
  23. package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +178 -0
  24. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +96 -0
  25. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  27. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/index.js +67 -67
  32. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  40. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  41. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 4e59a88: fix: default payment method
8
+
3
9
  ## 1.0.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { ConnectButton } from './components/ConnectButton/ConnectButton';
2
2
  export { useFunkitCheckout } from './components/FunkitProvider/FunkitCheckoutContext';
3
+ export type { FunkitConfig } from './components/FunkitProvider/FunkitConfigContext';
3
4
  export { FunkitProvider } from './components/FunkitProvider/FunkitProvider';
4
5
  export { useActiveTheme } from './components/FunkitProvider/FunkitThemeProvider';
5
6
  export { WalletButton } from './components/WalletButton/WalletButton';
package/dist/index.js CHANGED
@@ -5178,7 +5178,7 @@ function FunPaymentMethods({
5178
5178
  const { isCheckoutCrFlow } = useCheckoutType(checkoutItem);
5179
5179
  useEffect9(() => {
5180
5180
  if (paymentFlow === 1 /* CHECKOUT */ && isCheckoutCrFlow) {
5181
- setSelectedOption(null);
5181
+ setSelectedOption(paymentsConfig.defaultPaymentMethod || null);
5182
5182
  }
5183
5183
  }, [reDraftSymbol]);
5184
5184
  const hasSufficientBalance = useMemo13(() => {
@@ -7956,7 +7956,9 @@ function CheckoutPrimaryInfoSnapshot({
7956
7956
  keyTextColor: "modalText",
7957
7957
  keyTextSize: "18",
7958
7958
  keyTextWeight: "bold",
7959
- valueText: isLoading ? "" : formatCurrencyAndStringify((checkoutItem == null ? void 0 : checkoutItem.draftDollarValue) || 0),
7959
+ valueText: isLoading ? "" : `${formatCurrencyAndStringify(
7960
+ (checkoutItem == null ? void 0 : checkoutItem.draftDollarValue) || 0
7961
+ )} USD`,
7960
7962
  valueIcon: isLoading ? /* @__PURE__ */ React81.createElement(SpinnerIcon, {
7961
7963
  height: 16,
7962
7964
  width: 16
@@ -15363,7 +15365,7 @@ function setFunkitConnectVersion({ version }) {
15363
15365
  localStorage.setItem(storageKey4, version);
15364
15366
  }
15365
15367
  function getCurrentSdkVersion() {
15366
- return "1.0.8";
15368
+ return "1.0.9";
15367
15369
  }
15368
15370
  function useFingerprint() {
15369
15371
  const fingerprint = useCallback28(() => {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-6LTLPR2Q.js";
4
+ } from "../chunk-KGTZ6E7L.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-ZDU3JFGR.js";
7
6
  import "../chunk-QII6PY2D.js";
7
+ import "../chunk-ZDU3JFGR.js";
8
8
  export {
9
9
  bifrostWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-ZNXQ4V6G.js";
4
+ } from "../chunk-2B3SPBRY.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
- import "../chunk-ZDU3JFGR.js";
7
6
  import "../chunk-QII6PY2D.js";
7
+ import "../chunk-ZDU3JFGR.js";
8
8
  export {
9
9
  bitgetWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-ZUAHWUEL.js";
5
- import "../chunk-ZDU3JFGR.js";
4
+ } from "../chunk-CUKVUCIP.js";
6
5
  import "../chunk-QII6PY2D.js";
6
+ import "../chunk-ZDU3JFGR.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -0,0 +1,100 @@
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
+ };
@@ -0,0 +1,102 @@
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
+ };
@@ -0,0 +1,95 @@
1
+ "use client";
2
+ import {
3
+ isMobile
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/tokenPocketWallet/tokenPocketWallet.ts
14
+ var tokenPocketWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
19
+ const shouldUseWalletConnect = !isTokenPocketInjected;
20
+ const getUri = (uri) => {
21
+ return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
22
+ };
23
+ return {
24
+ id: "tokenPocket",
25
+ name: "TokenPocket",
26
+ rdns: "pro.tokenpocket",
27
+ iconUrl: async () => (await import("./tokenPocketWallet-UYD66DEM.js")).default,
28
+ iconBackground: "#2980FE",
29
+ installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
30
+ downloadUrls: {
31
+ chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
32
+ browserExtension: "https://extension.tokenpocket.pro/",
33
+ android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
34
+ ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
35
+ qrCode: "https://tokenpocket.pro/en/download/app",
36
+ mobile: "https://tokenpocket.pro/en/download/app"
37
+ },
38
+ mobile: {
39
+ getUri: shouldUseWalletConnect ? getUri : void 0
40
+ },
41
+ qrCode: shouldUseWalletConnect ? {
42
+ getUri,
43
+ instructions: {
44
+ learnMoreUrl: "https://help.tokenpocket.pro/en/",
45
+ steps: [
46
+ {
47
+ description: "wallet_connectors.token_pocket.qr_code.step1.description",
48
+ step: "install",
49
+ title: "wallet_connectors.token_pocket.qr_code.step1.title"
50
+ },
51
+ {
52
+ description: "wallet_connectors.token_pocket.qr_code.step2.description",
53
+ step: "create",
54
+ title: "wallet_connectors.token_pocket.qr_code.step2.title"
55
+ },
56
+ {
57
+ description: "wallet_connectors.token_pocket.qr_code.step3.description",
58
+ step: "scan",
59
+ title: "wallet_connectors.token_pocket.qr_code.step3.title"
60
+ }
61
+ ]
62
+ }
63
+ } : void 0,
64
+ extension: {
65
+ instructions: {
66
+ learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
67
+ steps: [
68
+ {
69
+ description: "wallet_connectors.token_pocket.extension.step1.description",
70
+ step: "install",
71
+ title: "wallet_connectors.token_pocket.extension.step1.title"
72
+ },
73
+ {
74
+ description: "wallet_connectors.token_pocket.extension.step2.description",
75
+ step: "create",
76
+ title: "wallet_connectors.token_pocket.extension.step2.title"
77
+ },
78
+ {
79
+ description: "wallet_connectors.token_pocket.extension.step3.description",
80
+ step: "refresh",
81
+ title: "wallet_connectors.token_pocket.extension.step3.title"
82
+ }
83
+ ]
84
+ }
85
+ },
86
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
87
+ projectId,
88
+ walletConnectParameters
89
+ }) : getInjectedConnector({ flag: "isTokenPocket" })
90
+ };
91
+ };
92
+
93
+ export {
94
+ tokenPocketWallet
95
+ };
@@ -0,0 +1,105 @@
1
+ "use client";
2
+ import {
3
+ isMobile
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/trustWallet/trustWallet.ts
14
+ var trustWallet = ({
15
+ projectId,
16
+ walletConnectParameters
17
+ }) => {
18
+ const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
19
+ const shouldUseWalletConnect = !isTrustWalletInjected;
20
+ const getUriMobile = (uri) => {
21
+ return `trust://wc?uri=${encodeURIComponent(uri)}`;
22
+ };
23
+ const getUriQR = (uri) => {
24
+ return uri;
25
+ };
26
+ const mobileConnector = {
27
+ getUri: shouldUseWalletConnect ? getUriMobile : void 0
28
+ };
29
+ let qrConnector = void 0;
30
+ if (shouldUseWalletConnect) {
31
+ qrConnector = {
32
+ getUri: getUriQR,
33
+ instructions: {
34
+ learnMoreUrl: "https://trustwallet.com/",
35
+ steps: [
36
+ {
37
+ description: "wallet_connectors.trust.qr_code.step1.description",
38
+ step: "install",
39
+ title: "wallet_connectors.trust.qr_code.step1.title"
40
+ },
41
+ {
42
+ description: "wallet_connectors.trust.qr_code.step2.description",
43
+ step: "create",
44
+ title: "wallet_connectors.trust.qr_code.step2.title"
45
+ },
46
+ {
47
+ description: "wallet_connectors.trust.qr_code.step3.description",
48
+ step: "scan",
49
+ title: "wallet_connectors.trust.qr_code.step3.title"
50
+ }
51
+ ]
52
+ }
53
+ };
54
+ }
55
+ const extensionConnector = {
56
+ instructions: {
57
+ learnMoreUrl: "https://trustwallet.com/browser-extension",
58
+ steps: [
59
+ {
60
+ description: "wallet_connectors.trust.extension.step1.description",
61
+ step: "install",
62
+ title: "wallet_connectors.trust.extension.step1.title"
63
+ },
64
+ {
65
+ description: "wallet_connectors.trust.extension.step2.description",
66
+ step: "create",
67
+ title: "wallet_connectors.trust.extension.step2.title"
68
+ },
69
+ {
70
+ description: "wallet_connectors.trust.extension.step3.description",
71
+ step: "refresh",
72
+ title: "wallet_connectors.trust.extension.step3.title"
73
+ }
74
+ ]
75
+ }
76
+ };
77
+ return {
78
+ id: "trust",
79
+ name: "Trust Wallet",
80
+ rdns: "com.trustwallet.app",
81
+ iconUrl: async () => (await import("./trustWallet-FST5ID2K.js")).default,
82
+ installed: isTrustWalletInjected || void 0,
83
+ iconAccent: "#3375BB",
84
+ iconBackground: "#fff",
85
+ downloadUrls: {
86
+ android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
87
+ ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
88
+ mobile: "https://trustwallet.com/download",
89
+ qrCode: "https://trustwallet.com/download",
90
+ chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
91
+ browserExtension: "https://trustwallet.com/browser-extension"
92
+ },
93
+ mobile: mobileConnector,
94
+ qrCode: qrConnector,
95
+ extension: extensionConnector,
96
+ createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
97
+ projectId,
98
+ walletConnectParameters
99
+ }) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
100
+ };
101
+ };
102
+
103
+ export {
104
+ trustWallet
105
+ };
@@ -0,0 +1,98 @@
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/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-O6NEYJRP.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
+ 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/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
+ };