@funkit/connect 4.1.1 → 4.1.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.
- package/CHANGELOG.md +32 -0
- package/dist/{chunk-2QK6Y7FR.js → chunk-C7BDNBKV.js} +1 -0
- package/dist/{chunk-JFHTYZ23.js → chunk-QCYFMAKN.js} +1 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -1
- package/dist/components/Box/Box.d.ts +7 -7
- package/dist/components/CopyAddress/CopyAddressButton.d.ts +5 -0
- package/dist/components/CopyAddress/CopyDisplayedAddress.d.ts +5 -0
- package/dist/components/CopyAddress/CopyInputDisplayedAddress.d.ts +5 -0
- package/dist/components/CopyAddress/LabelledCopyAddressButton.d.ts +6 -0
- package/dist/components/Dropdown/BaseDropdown.css.d.ts +5 -0
- package/dist/components/Dropdown/BaseDropdown.d.ts +7 -1
- package/dist/components/FunButton/FunButton.css.d.ts +3 -3
- package/dist/components/FunButton/FunLinkButton.d.ts +9 -4
- package/dist/components/FunInput/FunInput.css.d.ts +1 -0
- package/dist/components/FunInput/FunInput.d.ts +0 -1
- package/dist/components/FunNotification/FunNotification.css.d.ts +2 -0
- package/dist/components/FunNotification/FunNotification.d.ts +0 -1
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.css.d.ts +1 -0
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +6 -2
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -3
- package/dist/components/FunTooltip/FunTooltip.css.d.ts +4 -0
- package/dist/components/FunTooltip/FunTooltip.d.ts +4 -1
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.css.d.ts +2 -0
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +0 -1
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.css.d.ts +2 -0
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +1 -1
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +3 -1
- package/dist/consts/customers.d.ts +0 -4
- package/dist/consts/layout.d.ts +5 -0
- package/dist/css/sprinkles.css.d.ts +9 -7
- package/dist/domains/clientMetadata.d.ts +5 -3
- package/dist/domains/feeEstimate.d.ts +10 -0
- package/dist/domains/paymentMethods.d.ts +1 -0
- package/dist/domains/quote.d.ts +5 -0
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +2 -2
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +7 -0
- package/dist/hooks/useCopyToClipboard.d.ts +4 -0
- package/dist/hooks/usePaymentSources.d.ts +6 -0
- package/dist/index.css +524 -459
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6777 -6966
- package/dist/locales/index.d.ts +0 -3
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +5 -3
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -3
- package/dist/modals/CheckoutModal/useNewCheckoutQuote.d.ts +7 -0
- package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +4 -2
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.d.ts +0 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeTokenDisplayRow.d.ts +0 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.d.ts +2 -1
- package/dist/modals/ProfileDetails/FunProfileViews/Home/index.d.ts +1 -1
- package/dist/modals/ProfileDetails/ProfileDetails.d.ts +0 -1
- package/dist/providers/FunkitCheckoutContext.d.ts +7 -34
- package/dist/providers/FunkitFlagsProvider.d.ts +2 -2
- package/dist/providers/FunkitProvider.d.ts +2 -1
- package/dist/providers/FunkitQuoteContext.d.ts +45 -0
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/providers/provideFunkitConnectChains.d.ts +1 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/address.d.ts +6 -0
- package/dist/utils/assets.d.ts +1 -10
- package/dist/utils/checkout.d.ts +4 -13
- package/dist/utils/checkoutHistory.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +19 -46
- package/dist/utils/funLogger.d.ts +3 -1
- package/dist/utils/moonpay.d.ts +12 -0
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
- package/dist/wallets/walletConnectors/index.js +33 -33
- package/package.json +6 -8
- package/dist/ar_AR-26YWBMAY.js +0 -7
- package/dist/arbitrum-EUTVMZS6.js +0 -7
- package/dist/avalanche-6CKETBV4.js +0 -7
- package/dist/base-FG2B7H5W.js +0 -7
- package/dist/blast-VGAGZQAP.js +0 -7
- package/dist/bsc-BUTATTVT.js +0 -7
- package/dist/chunk-FRCBBARC.js +0 -1184
- package/dist/components/CopyAddress/CopyAddress.d.ts +0 -12
- package/dist/cronos-DEE5V35Y.js +0 -7
- package/dist/dydx-CLPISBCB.js +0 -7
- package/dist/en_US-45SPICME.js +0 -7
- package/dist/es_419-ZOOWMI2O.js +0 -7
- package/dist/ethereum-4YOWVRNC.js +0 -7
- package/dist/fr_FR-FC4AERJX.js +0 -1057
- package/dist/hardhat-WRPL5WKN.js +0 -7
- package/dist/hi_IN-VKOWQKED.js +0 -7
- package/dist/id_ID-JEPISG6J.js +0 -7
- package/dist/ja_JP-GJBWIN4W.js +0 -7
- package/dist/klaytn-NEGYZJPB.js +0 -7
- package/dist/ko_KR-G6COLOAZ.js +0 -7
- package/dist/locales/I18n.d.ts +0 -25
- package/dist/manta-G75LJIRI.js +0 -7
- package/dist/mantle-LQ3XH3KY.js +0 -7
- package/dist/optimism-TIC2YA7E.js +0 -7
- package/dist/polygon-NDHYUKMH.js +0 -7
- package/dist/providers/I18nContext.d.ts +0 -11
- package/dist/pt_BR-52CJXY6T.js +0 -7
- package/dist/ronin-O6KMJHPZ.js +0 -7
- package/dist/ru_RU-AEJUH3PG.js +0 -1057
- package/dist/scroll-G3S4ZVYZ.js +0 -7
- package/dist/th_TH-4TFH5TB7.js +0 -1057
- package/dist/tr_TR-WG4WEQOS.js +0 -1057
- package/dist/uk_UA-2JYNNASB.js +0 -1057
- package/dist/utils/deposit.d.ts +0 -12
- package/dist/utils/isDydxAddress.d.ts +0 -6
- package/dist/xdc-E3X4E3NM.js +0 -7
- package/dist/zetachain-2J22B4NG.js +0 -7
- package/dist/zh_CN-HFGZOTOB.js +0 -7
- package/dist/zkSync-76EOKZ5Y.js +0 -7
- package/dist/zora-73DYEWFN.js +0 -7
|
@@ -0,0 +1,146 @@
|
|
|
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/metaMaskWallet/metaMaskWallet.ts
|
|
11
|
+
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
+
function isMetaMask(ethereum) {
|
|
13
|
+
if (!ethereum?.isMetaMask) return false;
|
|
14
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state)
|
|
15
|
+
return false;
|
|
16
|
+
if (ethereum.isApexWallet) return false;
|
|
17
|
+
if (ethereum.isAvalanche) return false;
|
|
18
|
+
if (ethereum.isBackpack) return false;
|
|
19
|
+
if (ethereum.isBifrost) return false;
|
|
20
|
+
if (ethereum.isBitKeep) return false;
|
|
21
|
+
if (ethereum.isBitski) return false;
|
|
22
|
+
if (ethereum.isBlockWallet) return false;
|
|
23
|
+
if (ethereum.isCoinbaseWallet) return false;
|
|
24
|
+
if (ethereum.isDawn) return false;
|
|
25
|
+
if (ethereum.isEnkrypt) return false;
|
|
26
|
+
if (ethereum.isExodus) return false;
|
|
27
|
+
if (ethereum.isFrame) return false;
|
|
28
|
+
if (ethereum.isFrontier) return false;
|
|
29
|
+
if (ethereum.isGamestop) return false;
|
|
30
|
+
if (ethereum.isHyperPay) return false;
|
|
31
|
+
if (ethereum.isImToken) return false;
|
|
32
|
+
if (ethereum.isKuCoinWallet) return false;
|
|
33
|
+
if (ethereum.isMathWallet) return false;
|
|
34
|
+
if (ethereum.isNestWallet) return false;
|
|
35
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) return false;
|
|
36
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
|
|
37
|
+
return false;
|
|
38
|
+
if (ethereum.isOpera) return false;
|
|
39
|
+
if (ethereum.isPhantom) return false;
|
|
40
|
+
if (ethereum.isPortal) return false;
|
|
41
|
+
if (ethereum.isRabby) return false;
|
|
42
|
+
if (ethereum.isRainbow) return false;
|
|
43
|
+
if (ethereum.isStatus) return false;
|
|
44
|
+
if (ethereum.isTalisman) return false;
|
|
45
|
+
if (ethereum.isTally) return false;
|
|
46
|
+
if (ethereum.isTokenPocket) return false;
|
|
47
|
+
if (ethereum.isTokenary) return false;
|
|
48
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) return false;
|
|
49
|
+
if (ethereum.isXDEFI) return false;
|
|
50
|
+
if (ethereum.isZeal) return false;
|
|
51
|
+
if (ethereum.isZerion) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
var metaMaskWallet = ({
|
|
55
|
+
projectId,
|
|
56
|
+
walletConnectParameters
|
|
57
|
+
}) => {
|
|
58
|
+
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
59
|
+
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
60
|
+
const getUri = (uri) => {
|
|
61
|
+
return isAndroid() ? uri : isIOS() ? (
|
|
62
|
+
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
63
|
+
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
64
|
+
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
65
|
+
};
|
|
66
|
+
return {
|
|
67
|
+
id: "metaMask",
|
|
68
|
+
name: "MetaMask",
|
|
69
|
+
rdns: "io.metamask",
|
|
70
|
+
iconUrl: async () => (await import("./metaMaskWallet-RMHEKBDR.js")).default,
|
|
71
|
+
iconAccent: "#f6851a",
|
|
72
|
+
iconBackground: "#fff",
|
|
73
|
+
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
74
|
+
downloadUrls: {
|
|
75
|
+
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
76
|
+
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
77
|
+
mobile: "https://metamask.io/download",
|
|
78
|
+
qrCode: "https://metamask.io/download",
|
|
79
|
+
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
80
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
81
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
82
|
+
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
83
|
+
browserExtension: "https://metamask.io/download"
|
|
84
|
+
},
|
|
85
|
+
mobile: {
|
|
86
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
87
|
+
},
|
|
88
|
+
qrCode: shouldUseWalletConnect ? {
|
|
89
|
+
getUri,
|
|
90
|
+
instructions: {
|
|
91
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
92
|
+
steps: [
|
|
93
|
+
{
|
|
94
|
+
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
95
|
+
step: "install",
|
|
96
|
+
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
100
|
+
step: "create",
|
|
101
|
+
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
105
|
+
step: "refresh",
|
|
106
|
+
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
} : void 0,
|
|
111
|
+
extension: {
|
|
112
|
+
instructions: {
|
|
113
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
114
|
+
steps: [
|
|
115
|
+
{
|
|
116
|
+
description: "wallet_connectors.metamask.extension.step1.description",
|
|
117
|
+
step: "install",
|
|
118
|
+
title: "wallet_connectors.metamask.extension.step1.title"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
description: "wallet_connectors.metamask.extension.step2.description",
|
|
122
|
+
step: "create",
|
|
123
|
+
title: "wallet_connectors.metamask.extension.step2.title"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
description: "wallet_connectors.metamask.extension.step3.description",
|
|
127
|
+
step: "refresh",
|
|
128
|
+
title: "wallet_connectors.metamask.extension.step3.title"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
134
|
+
projectId,
|
|
135
|
+
walletConnectParameters
|
|
136
|
+
}) : getInjectedConnector({
|
|
137
|
+
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
138
|
+
isMetaMask
|
|
139
|
+
) ?? window.ethereum : void 0
|
|
140
|
+
})
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export {
|
|
145
|
+
metaMaskWallet
|
|
146
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
xdefiWallet
|
|
4
|
+
} from "./chunk-NO7XMBB5.js";
|
|
2
5
|
import {
|
|
3
6
|
zealWallet
|
|
4
7
|
} from "./chunk-JROWU5BP.js";
|
|
5
|
-
import {
|
|
6
|
-
frameWallet
|
|
7
|
-
} from "./chunk-ZMYVTWDF.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-AXWP3GD4.js";
|
|
11
|
+
import {
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-AD2KIJB6.js";
|
|
11
14
|
import {
|
|
12
15
|
tahoWallet
|
|
13
16
|
} from "./chunk-6P2EMPZI.js";
|
|
@@ -17,21 +20,21 @@ import {
|
|
|
17
20
|
import {
|
|
18
21
|
tokenPocketWallet
|
|
19
22
|
} from "./chunk-IDKVN5CF.js";
|
|
20
|
-
import {
|
|
21
|
-
tokenaryWallet
|
|
22
|
-
} from "./chunk-SLOIIJGP.js";
|
|
23
23
|
import {
|
|
24
24
|
trustWallet
|
|
25
25
|
} from "./chunk-ISIBREBO.js";
|
|
26
|
+
import {
|
|
27
|
+
tokenaryWallet
|
|
28
|
+
} from "./chunk-SLOIIJGP.js";
|
|
26
29
|
import {
|
|
27
30
|
uniswapWallet
|
|
28
31
|
} from "./chunk-LH7BMNFZ.js";
|
|
29
|
-
import {
|
|
30
|
-
xdefiWallet
|
|
31
|
-
} from "./chunk-NO7XMBB5.js";
|
|
32
32
|
import {
|
|
33
33
|
walletConnectWallet
|
|
34
34
|
} from "./chunk-NP5QGWNL.js";
|
|
35
|
+
import {
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
35
38
|
import {
|
|
36
39
|
rabbyWallet
|
|
37
40
|
} from "./chunk-BVX4XGNP.js";
|
|
@@ -50,12 +53,12 @@ import {
|
|
|
50
53
|
import {
|
|
51
54
|
safeheronWallet
|
|
52
55
|
} from "./chunk-R6RWZRFF.js";
|
|
53
|
-
import {
|
|
54
|
-
subWallet
|
|
55
|
-
} from "./chunk-AD2KIJB6.js";
|
|
56
56
|
import {
|
|
57
57
|
safepalWallet
|
|
58
58
|
} from "./chunk-MSFKSQBY.js";
|
|
59
|
+
import {
|
|
60
|
+
ledgerWallet
|
|
61
|
+
} from "./chunk-BRBKM4PW.js";
|
|
59
62
|
import {
|
|
60
63
|
metaMaskWallet
|
|
61
64
|
} from "./chunk-G73C6P5P.js";
|
|
@@ -78,20 +81,17 @@ import {
|
|
|
78
81
|
oneKeyWallet
|
|
79
82
|
} from "./chunk-4AD7VI2P.js";
|
|
80
83
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-LMZMXEXL.js";
|
|
86
|
+
import {
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-ZMYVTWDF.js";
|
|
83
89
|
import {
|
|
84
90
|
frontierWallet
|
|
85
91
|
} from "./chunk-3S2U24BJ.js";
|
|
86
|
-
import {
|
|
87
|
-
foxWallet
|
|
88
|
-
} from "./chunk-LMZMXEXL.js";
|
|
89
92
|
import {
|
|
90
93
|
gateWallet
|
|
91
94
|
} from "./chunk-GSOYKKIS.js";
|
|
92
|
-
import {
|
|
93
|
-
injectedWallet
|
|
94
|
-
} from "./chunk-VCVVV2K7.js";
|
|
95
95
|
import {
|
|
96
96
|
imTokenWallet
|
|
97
97
|
} from "./chunk-COZ7MIQS.js";
|
|
@@ -99,50 +99,50 @@ import {
|
|
|
99
99
|
kresusWallet
|
|
100
100
|
} from "./chunk-MJXPRJZT.js";
|
|
101
101
|
import {
|
|
102
|
-
|
|
103
|
-
} from "./chunk-
|
|
102
|
+
injectedWallet
|
|
103
|
+
} from "./chunk-VCVVV2K7.js";
|
|
104
104
|
import {
|
|
105
105
|
bybitWallet
|
|
106
106
|
} from "./chunk-6ONTSPEY.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
clvWallet
|
|
109
|
+
} from "./chunk-KR6JBW5E.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-DTRYS3MO.js";
|
|
113
113
|
import {
|
|
114
114
|
coinbaseWallet
|
|
115
115
|
} from "./chunk-H4IRCEZN.js";
|
|
116
|
+
import {
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-HBA36GW3.js";
|
|
116
119
|
import {
|
|
117
120
|
dawnWallet
|
|
118
121
|
} from "./chunk-LN7OD5EC.js";
|
|
119
122
|
import {
|
|
120
123
|
desigWallet
|
|
121
124
|
} from "./chunk-CTU6JCOK.js";
|
|
122
|
-
import {
|
|
123
|
-
bitskiWallet
|
|
124
|
-
} from "./chunk-P74YPRF6.js";
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-SJTXS4ZW.js";
|
|
128
|
-
import {
|
|
129
|
-
bifrostWallet
|
|
130
|
-
} from "./chunk-W6N74MS3.js";
|
|
131
128
|
import {
|
|
132
129
|
argentWallet
|
|
133
130
|
} from "./chunk-WSQ2YJO2.js";
|
|
134
131
|
import {
|
|
135
132
|
bitgetWallet
|
|
136
133
|
} from "./chunk-A5APNTGL.js";
|
|
134
|
+
import {
|
|
135
|
+
bifrostWallet
|
|
136
|
+
} from "./chunk-W6N74MS3.js";
|
|
137
|
+
import {
|
|
138
|
+
bitskiWallet
|
|
139
|
+
} from "./chunk-P74YPRF6.js";
|
|
137
140
|
import {
|
|
138
141
|
bitverseWallet
|
|
139
142
|
} from "./chunk-3HZRRP4Y.js";
|
|
140
143
|
import {
|
|
141
144
|
bloomWallet
|
|
142
145
|
} from "./chunk-S27IADFU.js";
|
|
143
|
-
import {
|
|
144
|
-
clvWallet
|
|
145
|
-
} from "./chunk-KR6JBW5E.js";
|
|
146
146
|
import "./chunk-23WIEY36.js";
|
|
147
147
|
import {
|
|
148
148
|
braveWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -65,12 +65,10 @@
|
|
|
65
65
|
"@vitejs/plugin-react": "^4.3.1",
|
|
66
66
|
"autoprefixer": "^10.4.16",
|
|
67
67
|
"jsdom": "^25.0.1",
|
|
68
|
-
"nock": "^13.4.0",
|
|
69
68
|
"postcss": "^8.4.32",
|
|
70
|
-
"prop-types": "^15.8.1",
|
|
71
69
|
"react": "^18.3.0",
|
|
72
70
|
"storybook": "^8.4.4",
|
|
73
|
-
"tsx": "^4.
|
|
71
|
+
"tsx": "^4.19.2",
|
|
74
72
|
"vitest": "^2.0.5"
|
|
75
73
|
},
|
|
76
74
|
"dependencies": {
|
|
@@ -90,10 +88,10 @@
|
|
|
90
88
|
"react-virtuoso": "4.10.1",
|
|
91
89
|
"ua-parser-js": "^1.0.37",
|
|
92
90
|
"uuid": "^9.0.1",
|
|
93
|
-
"@funkit/
|
|
94
|
-
"@funkit/
|
|
95
|
-
"@funkit/wagmi-tools": "3.0.
|
|
96
|
-
"@funkit/
|
|
91
|
+
"@funkit/api-base": "1.5.1",
|
|
92
|
+
"@funkit/utils": "1.0.4",
|
|
93
|
+
"@funkit/wagmi-tools": "3.0.22",
|
|
94
|
+
"@funkit/core": "2.3.1"
|
|
97
95
|
},
|
|
98
96
|
"repository": {
|
|
99
97
|
"type": "git",
|