@funkit/connect 5.5.1 → 5.5.2

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.
@@ -1,98 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.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
- };
@@ -1,66 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/foxWallet/foxWallet.ts
11
- var foxWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isFoxInjected = hasInjectedProvider({
16
- namespace: "foxwallet.ethereum"
17
- });
18
- const shouldUseWalletConnect = !isFoxInjected;
19
- return {
20
- id: "foxwallet",
21
- name: "FoxWallet",
22
- iconUrl: async () => (await import("./foxWallet-I7D5KIW4.js")).default,
23
- iconBackground: "#fff",
24
- downloadUrls: {
25
- android: "https://play.google.com/store/apps/details?id=com.foxwallet.play",
26
- ios: "https://apps.apple.com/app/foxwallet-crypto-web3/id1590983231",
27
- qrCode: "https://foxwallet.com/download"
28
- },
29
- mobile: {
30
- getUri: shouldUseWalletConnect ? (uri) => {
31
- return `foxwallet://wc?uri=${encodeURIComponent(uri)}`;
32
- } : void 0
33
- },
34
- qrCode: shouldUseWalletConnect ? {
35
- getUri: (uri) => uri,
36
- instructions: {
37
- learnMoreUrl: "https://foxwallet.com",
38
- steps: [
39
- {
40
- description: "wallet_connectors.fox.qr_code.step1.description",
41
- step: "install",
42
- title: "wallet_connectors.fox.qr_code.step1.title"
43
- },
44
- {
45
- description: "wallet_connectors.fox.qr_code.step2.description",
46
- step: "create",
47
- title: "wallet_connectors.fox.qr_code.step2.title"
48
- },
49
- {
50
- description: "wallet_connectors.fox.qr_code.step3.description",
51
- step: "scan",
52
- title: "wallet_connectors.fox.qr_code.step3.title"
53
- }
54
- ]
55
- }
56
- } : void 0,
57
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
58
- projectId,
59
- walletConnectParameters
60
- }) : getInjectedConnector({ namespace: "foxwallet.ethereum" })
61
- };
62
- };
63
-
64
- export {
65
- foxWallet
66
- };