@funkit/connect 8.3.1-next.0 → 8.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 +125 -0
- package/dist/{chunk-5JRQC2VM.js → chunk-4WY7FNYP.js} +14 -0
- package/dist/{chunk-CUWQELX3.js → chunk-UUHLEWAL.js} +4 -2
- package/dist/{chunk-VWSYBHAK.js → chunk-Z4QDKBBG.js} +4 -2
- package/dist/clients/fanatics.css +4064 -3651
- package/dist/clients/fanatics.d.ts +6 -0
- package/dist/clients/fanatics.js +118 -43
- package/dist/components/Box/Box.d.ts +45 -45
- package/dist/components/FunCheckoutHistory/FunDirectExecutionHistoryBottomBar.d.ts +1 -0
- package/dist/components/FunCheckoutHistory/FunTxSummarySections.d.ts +7 -0
- package/dist/components/FunCheckoutHistory/TotalTimeItem.d.ts +6 -0
- package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +6 -0
- package/dist/components/FunCheckoutHistory/useCustomStatusAnimationAboveTopbar.d.ts +1 -3
- package/dist/components/FunCheckoutModalHeightAnimationWrapper/FunCheckoutModalHeightAnimationWrapper.d.ts +3 -1
- package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItem.d.ts +1 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -0
- package/dist/components/Icons/New/CircleBitcoinIcon.d.ts +4 -0
- package/dist/components/Icons/New/DollarIcon.d.ts +3 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/consts/customers.d.ts +1 -1
- package/dist/consts/layout.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +91 -45
- package/dist/domains/asset.d.ts +1 -1
- package/dist/domains/meld.d.ts +0 -6
- package/dist/hooks/queries/useFops.d.ts +4 -2
- package/dist/hooks/queries/useSwappedDefaultCurrency.d.ts +5 -0
- package/dist/hooks/track/CheckoutModalEvent.d.ts +7 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +1 -0
- package/dist/hooks/useStepQueryReadiness.d.ts +32 -0
- package/dist/index.css +4090 -3671
- package/dist/index.js +3894 -3058
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +1 -0
- package/dist/modals/CheckoutModal/FunCheckoutStep.d.ts +2 -1
- package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +5 -1
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +10 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +10 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -0
- package/dist/modals/CheckoutModal/SourceChange/{DefaultSourceList.d.ts → SourceList.d.ts} +3 -3
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +2 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +7 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
- package/dist/providers/FunkitConfigContext.d.ts +14 -0
- package/dist/providers/FunkitProvider.d.ts +1 -0
- package/dist/providers/FunkitThemeProvider.d.ts +69 -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/across.d.ts +5 -0
- package/dist/utils/depositCutoff.d.ts +9 -0
- package/dist/utils/directExecution.d.ts +16 -0
- package/dist/utils/flags/config.d.ts +2 -2
- package/dist/utils/lighter.d.ts +1 -1
- package/dist/utils/sanitizeHtml.d.ts +7 -0
- package/dist/utils/sanitizeUrl.d.ts +10 -0
- package/dist/utils/tokenIconUrl.d.ts +1 -1
- package/dist/utils/transfer.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +24 -24
- package/package.json +4 -4
- package/dist/atoms/activeCheckout.d.ts +0 -183
- package/dist/atoms/activeWithdrawal.d.ts +0 -21
- package/dist/atoms/bridgeProviders/acrossAdapter.d.ts +0 -109
- package/dist/atoms/bridgeProviders/index.d.ts +0 -25
- package/dist/atoms/bridgeProviders/registry.d.ts +0 -12
- package/dist/atoms/bridgeProviders/relayAdapter.d.ts +0 -60
- package/dist/atoms/bridgeProviders/types.d.ts +0 -182
- package/dist/atoms/checkoutProgress.d.ts +0 -22
- package/dist/atoms/directExecution.d.ts +0 -70
- package/dist/atoms/funkitCheckout.d.ts +0 -18
- package/dist/atoms/funkitProvider/index.d.ts +0 -24
- package/dist/atoms/generalWallet.d.ts +0 -45
- package/dist/atoms/i18n.d.ts +0 -6
- package/dist/atoms/modalState.d.ts +0 -30
- package/dist/atoms/quote.d.ts +0 -98
- package/dist/atoms/stepTransition.d.ts +0 -6
- package/dist/atoms/store.d.ts +0 -1
- package/dist/atoms/track/index.d.ts +0 -10
- package/dist/atoms/utils.d.ts +0 -2
- package/dist/atoms/wagmi.d.ts +0 -4
- package/dist/atoms/walletClient.d.ts +0 -15391
- package/dist/chunk-A24XIU2M.js +0 -299
- package/dist/chunk-CMS4F5PL.js +0 -209
- package/dist/chunk-FBCU3TQA.js +0 -204
- package/dist/chunk-GRQP5R23.js +0 -209
- package/dist/chunk-MGQZMUZ2.js +0 -288
- package/dist/chunk-OTMBU2BL.js +0 -204
- package/dist/domains/across.d.ts +0 -29
- package/dist/domains/track.d.ts +0 -14
- package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +0 -2
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +0 -14
- package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +0 -15
- package/dist/wallets/walletConnectors/chunk-3ZWIUCOI.js +0 -96
- package/dist/wallets/walletConnectors/chunk-4SC3PZVM.js +0 -70
- package/dist/wallets/walletConnectors/chunk-5AV2NSL3.js +0 -98
- package/dist/wallets/walletConnectors/chunk-5FWURLPF.js +0 -218
- package/dist/wallets/walletConnectors/chunk-6677RKVT.js +0 -69
- package/dist/wallets/walletConnectors/chunk-75A4Q5E5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-ENLR4LXN.js +0 -94
- package/dist/wallets/walletConnectors/chunk-FT5BX7TL.js +0 -103
- package/dist/wallets/walletConnectors/chunk-GEMN6DM5.js +0 -106
- package/dist/wallets/walletConnectors/chunk-GXTI2PZD.js +0 -100
- package/dist/wallets/walletConnectors/chunk-LGT6IAXI.js +0 -93
- package/dist/wallets/walletConnectors/chunk-N7475PGA.js +0 -110
- package/dist/wallets/walletConnectors/chunk-O6YFVGVQ.js +0 -99
- package/dist/wallets/walletConnectors/chunk-OCM5YHT5.js +0 -92
- package/dist/wallets/walletConnectors/chunk-PRGCIJ7Y.js +0 -87
- package/dist/wallets/walletConnectors/chunk-RNIMZDHW.js +0 -95
- package/dist/wallets/walletConnectors/chunk-TLOROKED.js +0 -96
- package/dist/wallets/walletConnectors/chunk-WNQ3NPHX.js +0 -66
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-ARYAYQ7Z.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.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
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-ARYAYQ7Z.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
11
|
-
import { isMobile } from "@funkit/utils";
|
|
12
|
-
var trustWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isTrustWalletInjected = isMobile() ? hasInjectedProvider({ flag: "isTrust" }) : hasInjectedProvider({ flag: "isTrustWallet" });
|
|
17
|
-
const shouldUseWalletConnect = !isTrustWalletInjected;
|
|
18
|
-
const getUriMobile = (uri) => {
|
|
19
|
-
return `trust://wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
-
};
|
|
21
|
-
const getUriQR = (uri) => {
|
|
22
|
-
return uri;
|
|
23
|
-
};
|
|
24
|
-
const mobileConnector = {
|
|
25
|
-
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
26
|
-
};
|
|
27
|
-
let qrConnector = void 0;
|
|
28
|
-
if (shouldUseWalletConnect) {
|
|
29
|
-
qrConnector = {
|
|
30
|
-
getUri: getUriQR,
|
|
31
|
-
instructions: {
|
|
32
|
-
learnMoreUrl: "https://trustwallet.com/",
|
|
33
|
-
steps: [
|
|
34
|
-
{
|
|
35
|
-
description: "wallet_connectors.trust.qr_code.step1.description",
|
|
36
|
-
step: "install",
|
|
37
|
-
title: "wallet_connectors.trust.qr_code.step1.title"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
description: "wallet_connectors.trust.qr_code.step2.description",
|
|
41
|
-
step: "create",
|
|
42
|
-
title: "wallet_connectors.trust.qr_code.step2.title"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.trust.qr_code.step3.description",
|
|
46
|
-
step: "scan",
|
|
47
|
-
title: "wallet_connectors.trust.qr_code.step3.title"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
const extensionConnector = {
|
|
54
|
-
instructions: {
|
|
55
|
-
learnMoreUrl: "https://trustwallet.com/browser-extension",
|
|
56
|
-
steps: [
|
|
57
|
-
{
|
|
58
|
-
description: "wallet_connectors.trust.extension.step1.description",
|
|
59
|
-
step: "install",
|
|
60
|
-
title: "wallet_connectors.trust.extension.step1.title"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
description: "wallet_connectors.trust.extension.step2.description",
|
|
64
|
-
step: "create",
|
|
65
|
-
title: "wallet_connectors.trust.extension.step2.title"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.trust.extension.step3.description",
|
|
69
|
-
step: "refresh",
|
|
70
|
-
title: "wallet_connectors.trust.extension.step3.title"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
return {
|
|
76
|
-
id: "trust",
|
|
77
|
-
name: "Trust Wallet",
|
|
78
|
-
rdns: "com.trustwallet.app",
|
|
79
|
-
iconUrl: async () => (await import("./trustWallet-2N5TZJGC.js")).default,
|
|
80
|
-
// Note that we never resolve `installed` to `false` because the
|
|
81
|
-
// Trust Wallet provider falls back to other connection methods if
|
|
82
|
-
// the injected connector isn't available
|
|
83
|
-
installed: isTrustWalletInjected || void 0,
|
|
84
|
-
iconAccent: "#3375BB",
|
|
85
|
-
iconBackground: "#fff",
|
|
86
|
-
downloadUrls: {
|
|
87
|
-
android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
|
|
88
|
-
ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
|
|
89
|
-
mobile: "https://trustwallet.com/download",
|
|
90
|
-
qrCode: "https://trustwallet.com/download",
|
|
91
|
-
chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
|
|
92
|
-
browserExtension: "https://trustwallet.com/browser-extension"
|
|
93
|
-
},
|
|
94
|
-
mobile: mobileConnector,
|
|
95
|
-
qrCode: qrConnector,
|
|
96
|
-
extension: extensionConnector,
|
|
97
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
98
|
-
projectId,
|
|
99
|
-
walletConnectParameters
|
|
100
|
-
}) : isMobile() ? getInjectedConnector({ flag: "isTrust" }) : getInjectedConnector({ flag: "isTrustWallet" })
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export {
|
|
105
|
-
trustWallet
|
|
106
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-ARYAYQ7Z.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
11
|
-
import { isIOS } from "@funkit/utils";
|
|
12
|
-
var zerionWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isZerionInjected = hasInjectedProvider({
|
|
17
|
-
namespace: "zerionWallet",
|
|
18
|
-
flag: "isZerion"
|
|
19
|
-
});
|
|
20
|
-
const shouldUseWalletConnect = !isZerionInjected;
|
|
21
|
-
const getUri = (uri) => {
|
|
22
|
-
return isIOS() ? `zerion://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
23
|
-
};
|
|
24
|
-
return {
|
|
25
|
-
id: "zerion",
|
|
26
|
-
name: "Zerion",
|
|
27
|
-
rdns: "io.zerion.wallet",
|
|
28
|
-
iconUrl: async () => (await import("./zerionWallet-SEPREHKH.js")).default,
|
|
29
|
-
iconAccent: "#2962ef",
|
|
30
|
-
iconBackground: "#2962ef",
|
|
31
|
-
installed: !shouldUseWalletConnect ? isZerionInjected : void 0,
|
|
32
|
-
downloadUrls: {
|
|
33
|
-
android: "https://play.google.com/store/apps/details?id=io.zerion.android",
|
|
34
|
-
ios: "https://apps.apple.com/app/apple-store/id1456732565",
|
|
35
|
-
mobile: "https://link.zerion.io/pt3gdRP0njb",
|
|
36
|
-
qrCode: "https://link.zerion.io/pt3gdRP0njb",
|
|
37
|
-
chrome: "https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",
|
|
38
|
-
browserExtension: "https://zerion.io/extension"
|
|
39
|
-
},
|
|
40
|
-
mobile: {
|
|
41
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
42
|
-
},
|
|
43
|
-
qrCode: shouldUseWalletConnect ? {
|
|
44
|
-
getUri,
|
|
45
|
-
instructions: {
|
|
46
|
-
learnMoreUrl: "https://zerion.io/blog/announcing-the-zerion-smart-wallet/",
|
|
47
|
-
steps: [
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.zerion.qr_code.step1.description",
|
|
50
|
-
step: "install",
|
|
51
|
-
title: "wallet_connectors.zerion.qr_code.step1.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.zerion.qr_code.step2.description",
|
|
55
|
-
step: "create",
|
|
56
|
-
title: "wallet_connectors.zerion.qr_code.step2.title"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
description: "wallet_connectors.zerion.qr_code.step3.description",
|
|
60
|
-
step: "scan",
|
|
61
|
-
title: "wallet_connectors.zerion.qr_code.step3.title"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
} : void 0,
|
|
66
|
-
extension: {
|
|
67
|
-
instructions: {
|
|
68
|
-
learnMoreUrl: "https://help.zerion.io/en/",
|
|
69
|
-
steps: [
|
|
70
|
-
{
|
|
71
|
-
description: "wallet_connectors.zerion.extension.step1.description",
|
|
72
|
-
step: "install",
|
|
73
|
-
title: "wallet_connectors.zerion.extension.step1.title"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "wallet_connectors.zerion.extension.step2.description",
|
|
77
|
-
step: "create",
|
|
78
|
-
title: "wallet_connectors.zerion.extension.step2.title"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
description: "wallet_connectors.zerion.extension.step3.description",
|
|
82
|
-
step: "refresh",
|
|
83
|
-
title: "wallet_connectors.zerion.extension.step3.title"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
89
|
-
projectId,
|
|
90
|
-
walletConnectParameters
|
|
91
|
-
}) : getInjectedConnector({
|
|
92
|
-
namespace: "zerionWallet",
|
|
93
|
-
flag: "isZerion"
|
|
94
|
-
})
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
zerionWallet
|
|
100
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-ARYAYQ7Z.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
|
-
import { isMobile } from "@funkit/utils";
|
|
12
|
-
var tokenPocketWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
|
|
17
|
-
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
id: "tokenPocket",
|
|
23
|
-
name: "TokenPocket",
|
|
24
|
-
rdns: "pro.tokenpocket",
|
|
25
|
-
iconUrl: async () => (await import("./tokenPocketWallet-FLFG3JUQ.js")).default,
|
|
26
|
-
iconBackground: "#2980FE",
|
|
27
|
-
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
30
|
-
browserExtension: "https://extension.tokenpocket.pro/",
|
|
31
|
-
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
32
|
-
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
33
|
-
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
34
|
-
mobile: "https://tokenpocket.pro/en/download/app"
|
|
35
|
-
},
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
38
|
-
},
|
|
39
|
-
qrCode: shouldUseWalletConnect ? {
|
|
40
|
-
getUri,
|
|
41
|
-
instructions: {
|
|
42
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
43
|
-
steps: [
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
46
|
-
step: "install",
|
|
47
|
-
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
51
|
-
step: "create",
|
|
52
|
-
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
56
|
-
step: "scan",
|
|
57
|
-
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
} : void 0,
|
|
62
|
-
extension: {
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
78
|
-
step: "refresh",
|
|
79
|
-
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
-
projectId,
|
|
86
|
-
walletConnectParameters
|
|
87
|
-
}) : getInjectedConnector({ flag: "isTokenPocket" })
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
tokenPocketWallet
|
|
93
|
-
};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-ARYAYQ7Z.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/safepalWallet/safepalWallet.ts
|
|
11
|
-
var safepalWallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isSafePalWalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "safepalProvider",
|
|
17
|
-
flag: "isSafePal"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isSafePalWalletInjected;
|
|
20
|
-
const getUriMobile = (uri) => {
|
|
21
|
-
return `safepalwallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
const getUriQR = async (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://safepal.com/",
|
|
35
|
-
steps: [
|
|
36
|
-
{
|
|
37
|
-
description: "wallet_connectors.safepal.qr_code.step1.description",
|
|
38
|
-
step: "install",
|
|
39
|
-
title: "wallet_connectors.safepal.qr_code.step1.title"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
description: "wallet_connectors.safepal.qr_code.step2.description",
|
|
43
|
-
step: "create",
|
|
44
|
-
title: "wallet_connectors.safepal.qr_code.step2.title"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.safepal.qr_code.step3.description",
|
|
48
|
-
step: "scan",
|
|
49
|
-
title: "wallet_connectors.safepal.qr_code.step3.title"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
const extensionConnector = {
|
|
56
|
-
instructions: {
|
|
57
|
-
learnMoreUrl: "https://www.safepal.com/download?product=2",
|
|
58
|
-
steps: [
|
|
59
|
-
{
|
|
60
|
-
description: "wallet_connectors.safepal.extension.step1.description",
|
|
61
|
-
step: "install",
|
|
62
|
-
title: "wallet_connectors.safepal.extension.step1.title"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: "wallet_connectors.safepal.extension.step2.description",
|
|
66
|
-
step: "create",
|
|
67
|
-
title: "wallet_connectors.safepal.extension.step2.title"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.safepal.extension.step3.description",
|
|
71
|
-
step: "refresh",
|
|
72
|
-
title: "wallet_connectors.safepal.extension.step3.title"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
return {
|
|
78
|
-
id: "safepal",
|
|
79
|
-
name: "SafePal Wallet",
|
|
80
|
-
iconUrl: async () => (await import("./safepalWallet-7YULGM2L.js")).default,
|
|
81
|
-
// Note that we never resolve `installed` to `false` because the
|
|
82
|
-
// SafePal Wallet provider falls back to other connection methods if
|
|
83
|
-
// the injected connector isn't available
|
|
84
|
-
installed: isSafePalWalletInjected,
|
|
85
|
-
iconAccent: "#3375BB",
|
|
86
|
-
iconBackground: "#fff",
|
|
87
|
-
downloadUrls: {
|
|
88
|
-
android: "https://play.google.com/store/apps/details?id=io.safepal.wallet&referrer=utm_source%3Drainbowkit%26utm_medium%3Ddisplay%26utm_campaign%3Ddownload",
|
|
89
|
-
ios: "https://apps.apple.com/app/apple-store/id1548297139?pt=122504219&ct=rainbowkit&mt=8",
|
|
90
|
-
mobile: "https://www.safepal.com/en/download",
|
|
91
|
-
qrCode: "https://www.safepal.com/en/download",
|
|
92
|
-
chrome: "https://chrome.google.com/webstore/detail/safepal-extension-wallet/lgmpcpglpngdoalbgeoldeajfclnhafa",
|
|
93
|
-
browserExtension: "https://www.safepal.com/download?product=2"
|
|
94
|
-
},
|
|
95
|
-
mobile: mobileConnector,
|
|
96
|
-
...qrConnector ? qrConnector : {},
|
|
97
|
-
extension: extensionConnector,
|
|
98
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
99
|
-
projectId,
|
|
100
|
-
walletConnectParameters
|
|
101
|
-
}) : getInjectedConnector({
|
|
102
|
-
namespace: "safepalProvider",
|
|
103
|
-
flag: "isSafePal"
|
|
104
|
-
})
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
safepalWallet
|
|
110
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-ARYAYQ7Z.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-23WIEY36.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var bitgetWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isBitKeepInjected = hasInjectedProvider({
|
|
17
|
-
namespace: "bitkeep.ethereum",
|
|
18
|
-
flag: "isBitKeep"
|
|
19
|
-
});
|
|
20
|
-
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "bitget",
|
|
23
|
-
name: "Bitget Wallet",
|
|
24
|
-
rdns: "com.bitget.web3",
|
|
25
|
-
iconUrl: async () => (await import("./bitgetWallet-CBQAJOIK.js")).default,
|
|
26
|
-
iconAccent: "#f6851a",
|
|
27
|
-
iconBackground: "#fff",
|
|
28
|
-
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
29
|
-
downloadUrls: {
|
|
30
|
-
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
31
|
-
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
32
|
-
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
33
|
-
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
34
|
-
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
35
|
-
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
36
|
-
},
|
|
37
|
-
extension: {
|
|
38
|
-
instructions: {
|
|
39
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
40
|
-
steps: [
|
|
41
|
-
{
|
|
42
|
-
description: "wallet_connectors.bitget.extension.step1.description",
|
|
43
|
-
step: "install",
|
|
44
|
-
title: "wallet_connectors.bitget.extension.step1.title"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.bitget.extension.step2.description",
|
|
48
|
-
step: "create",
|
|
49
|
-
title: "wallet_connectors.bitget.extension.step2.title"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
description: "wallet_connectors.bitget.extension.step3.description",
|
|
53
|
-
step: "refresh",
|
|
54
|
-
title: "wallet_connectors.bitget.extension.step3.description"
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
mobile: {
|
|
60
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
61
|
-
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
62
|
-
} : void 0
|
|
63
|
-
},
|
|
64
|
-
qrCode: shouldUseWalletConnect ? {
|
|
65
|
-
getUri: (uri) => uri,
|
|
66
|
-
instructions: {
|
|
67
|
-
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
68
|
-
steps: [
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
71
|
-
step: "install",
|
|
72
|
-
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
76
|
-
step: "create",
|
|
77
|
-
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
81
|
-
step: "scan",
|
|
82
|
-
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
} : void 0,
|
|
87
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
88
|
-
projectId,
|
|
89
|
-
walletConnectParameters
|
|
90
|
-
}) : getInjectedConnector({
|
|
91
|
-
namespace: "bitkeep.ethereum",
|
|
92
|
-
flag: "isBitKeep"
|
|
93
|
-
})
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
bitgetWallet
|
|
99
|
-
};
|