@funkit/connect 5.3.5 → 5.4.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.
- package/CHANGELOG.md +37 -0
- package/dist/{chunk-CRTRMZFT.js → chunk-ICCAQZHZ.js} +1 -1
- package/dist/{chunk-CRPOYQ6X.js → chunk-R2UFCJL7.js} +5 -0
- package/dist/{chunk-KCSHTK5R.js → chunk-RN4I4Y57.js} +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Dropdown/ChainDropdown.d.ts +6 -3
- package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
- package/dist/components/FunFeatureList/FunFeatureList.d.ts +3 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1335
- package/dist/consts/customers.d.ts +2 -0
- package/dist/css/sprinkles.css.d.ts +3 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -2
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +9 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +7 -5
- package/dist/hooks/useDirectExecutionInfoPolling.d.ts +7 -0
- package/dist/index.css +2674 -2664
- package/dist/index.d.ts +1 -1
- package/dist/index.js +745 -493
- package/dist/providers/FunkitHistoryContext.d.ts +9 -5
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +42 -4
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +25 -3
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +55 -55
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +7 -7
- package/dist/hooks/useRelayExecutionInfo.d.ts +0 -6
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
|
@@ -1,70 +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/rainbowWallet/rainbowWallet.ts
|
|
11
|
-
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
-
var rainbowWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
17
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
20
|
-
uri
|
|
21
|
-
)}&connector=rainbowkit`;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "rainbow",
|
|
25
|
-
name: "Rainbow",
|
|
26
|
-
rdns: "me.rainbow",
|
|
27
|
-
iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
|
|
28
|
-
iconBackground: "#0c2f78",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
32
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
33
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
34
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
35
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
36
|
-
},
|
|
37
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
62
|
-
projectId,
|
|
63
|
-
walletConnectParameters
|
|
64
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
rainbowWallet
|
|
70
|
-
};
|
|
@@ -1,146 +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/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
|
-
};
|
|
@@ -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
|
-
};
|