@funkit/connect 8.2.1 → 8.3.1-next.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 +39 -0
- package/dist/__generated__/default_configs.d.ts +70 -0
- package/dist/atoms/activeCheckout.d.ts +183 -0
- package/dist/atoms/activeWithdrawal.d.ts +21 -0
- package/dist/atoms/bridgeProviders/acrossAdapter.d.ts +109 -0
- package/dist/atoms/bridgeProviders/index.d.ts +25 -0
- package/dist/atoms/bridgeProviders/registry.d.ts +12 -0
- package/dist/atoms/bridgeProviders/relayAdapter.d.ts +60 -0
- package/dist/atoms/bridgeProviders/types.d.ts +182 -0
- package/dist/atoms/checkoutProgress.d.ts +22 -0
- package/dist/atoms/directExecution.d.ts +70 -0
- package/dist/atoms/funkitCheckout.d.ts +18 -0
- package/dist/atoms/funkitProvider/index.d.ts +24 -0
- package/dist/atoms/generalWallet.d.ts +45 -0
- package/dist/atoms/i18n.d.ts +6 -0
- package/dist/atoms/modalState.d.ts +30 -0
- package/dist/atoms/quote.d.ts +98 -0
- package/dist/atoms/stepTransition.d.ts +6 -0
- package/dist/atoms/store.d.ts +1 -0
- package/dist/atoms/track/index.d.ts +10 -0
- package/dist/atoms/utils.d.ts +2 -0
- package/dist/atoms/wagmi.d.ts +4 -0
- package/dist/atoms/walletClient.d.ts +15391 -0
- package/dist/chunk-5JRQC2VM.js +300 -0
- package/dist/{chunk-BP7VOYBS.js → chunk-A24XIU2M.js} +3 -1
- package/dist/{chunk-MYPFORR2.js → chunk-CMS4F5PL.js} +3 -2
- package/dist/chunk-CUWQELX3.js +209 -0
- package/dist/chunk-FBCU3TQA.js +204 -0
- package/dist/{chunk-KKGSXLMH.js → chunk-GRQP5R23.js} +3 -2
- package/dist/chunk-MGQZMUZ2.js +288 -0
- package/dist/chunk-OTMBU2BL.js +204 -0
- package/dist/chunk-VWSYBHAK.js +209 -0
- package/dist/clients/fanatics.css +3648 -3563
- package/dist/clients/fanatics.js +3 -3
- package/dist/components/Box/Box.d.ts +28 -28
- package/dist/components/FunPaymentMethodItem/FunPaymentMethodItemSkeleton.d.ts +2 -0
- package/dist/components/Icons/AcrossIcon.d.ts +4 -0
- package/dist/css/sprinkles.css.d.ts +40 -28
- package/dist/domains/across.d.ts +29 -0
- package/dist/domains/track.d.ts +14 -0
- package/dist/hooks/queries/useFops.d.ts +15 -0
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/useRelayBypass.d.ts +0 -9
- package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +2 -0
- package/dist/hooks/useUserIpInfo.d.ts +19 -0
- package/dist/index.css +3654 -3569
- package/dist/index.js +2648 -2650
- package/dist/modals/CheckoutModal/SelectAsset.d.ts +14 -0
- package/dist/modals/CheckoutModal/SourceChange/ConnectedSource.d.ts +11 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +16 -0
- package/dist/modals/CheckoutModal/SwappedIframe/index.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +1 -0
- package/dist/providers/FunkitConfigContext.d.ts +9 -2
- package/dist/providers/FunkitMoonpayProvider.d.ts +0 -14
- package/dist/providers/FunkitThemeProvider.d.ts +18 -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 +1 -1
- package/dist/utils/lighter.d.ts +0 -2
- 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/chunk-2E4PDCEJ.js +103 -0
- package/dist/wallets/walletConnectors/chunk-47QF6EET.js +93 -0
- package/dist/wallets/walletConnectors/chunk-5EAOMOTO.js +98 -0
- package/dist/wallets/walletConnectors/chunk-77UTBHGP.js +70 -0
- package/dist/wallets/walletConnectors/chunk-CZYUE3AR.js +100 -0
- package/dist/wallets/walletConnectors/chunk-FA5DTT5R.js +99 -0
- package/dist/wallets/walletConnectors/chunk-HPHADOYD.js +87 -0
- package/dist/wallets/walletConnectors/chunk-JFHP4YJG.js +106 -0
- package/dist/wallets/walletConnectors/chunk-MRRZOQGZ.js +92 -0
- package/dist/wallets/walletConnectors/chunk-R6Y36CMA.js +69 -0
- package/dist/wallets/walletConnectors/chunk-RA7MCWF4.js +218 -0
- package/dist/wallets/walletConnectors/chunk-RLRQYUYC.js +96 -0
- package/dist/wallets/walletConnectors/chunk-T5KHVUFR.js +96 -0
- package/dist/wallets/walletConnectors/chunk-U5QP7MI5.js +94 -0
- package/dist/wallets/walletConnectors/chunk-UOTQQJJD.js +92 -0
- package/dist/wallets/walletConnectors/chunk-VYNVAGSV.js +95 -0
- package/dist/wallets/walletConnectors/chunk-W7Y6I22Y.js +110 -0
- package/dist/wallets/walletConnectors/chunk-YLJDPTYF.js +66 -0
- 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 +39 -39
- 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 +4 -4
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.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
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.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
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/clvWallet/clvWallet.ts
|
|
11
|
+
var clvWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
|
|
16
|
+
const shouldUseWalletConnect = !isCLVInjected;
|
|
17
|
+
return {
|
|
18
|
+
id: "clv",
|
|
19
|
+
name: "CLV",
|
|
20
|
+
iconUrl: async () => (await import("./clvWallet-VVMLP7BK.js")).default,
|
|
21
|
+
iconBackground: "#fff",
|
|
22
|
+
iconAccent: "#BDFDE2",
|
|
23
|
+
installed: isCLVInjected,
|
|
24
|
+
downloadUrls: {
|
|
25
|
+
chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
|
|
26
|
+
ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
|
|
27
|
+
mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
|
|
28
|
+
qrCode: "https://clv.org/"
|
|
29
|
+
},
|
|
30
|
+
extension: {
|
|
31
|
+
instructions: {
|
|
32
|
+
learnMoreUrl: "https://clv.org/",
|
|
33
|
+
steps: [
|
|
34
|
+
{
|
|
35
|
+
description: "wallet_connectors.clv.extension.step1.description",
|
|
36
|
+
step: "install",
|
|
37
|
+
title: "wallet_connectors.clv.extension.step1.title"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
description: "wallet_connectors.clv.extension.step2.description",
|
|
41
|
+
step: "create",
|
|
42
|
+
title: "wallet_connectors.clv.extension.step2.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.clv.extension.step3.description",
|
|
46
|
+
step: "refresh",
|
|
47
|
+
title: "wallet_connectors.clv.extension.step3.title"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
mobile: {
|
|
53
|
+
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
54
|
+
},
|
|
55
|
+
qrCode: shouldUseWalletConnect ? {
|
|
56
|
+
getUri: (uri) => uri,
|
|
57
|
+
instructions: {
|
|
58
|
+
learnMoreUrl: "https://clv.org/",
|
|
59
|
+
steps: [
|
|
60
|
+
{
|
|
61
|
+
description: "wallet_connectors.clv.qr_code.step1.description",
|
|
62
|
+
step: "install",
|
|
63
|
+
title: "wallet_connectors.clv.qr_code.step1.title"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.clv.qr_code.step2.description",
|
|
67
|
+
step: "create",
|
|
68
|
+
title: "wallet_connectors.clv.qr_code.step2.title"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.clv.qr_code.step3.description",
|
|
72
|
+
step: "scan",
|
|
73
|
+
title: "wallet_connectors.clv.qr_code.step3.title"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
} : void 0,
|
|
78
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
79
|
+
projectId,
|
|
80
|
+
walletConnectParameters
|
|
81
|
+
}) : getInjectedConnector({ namespace: "clover" })
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
clvWallet
|
|
87
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.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
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var gateWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
17
|
+
const shouldUseWalletConnect = !isGateInjected;
|
|
18
|
+
return {
|
|
19
|
+
id: "gate",
|
|
20
|
+
name: "Gate Wallet",
|
|
21
|
+
rdns: "io.gate.wallet",
|
|
22
|
+
iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
|
|
23
|
+
iconAccent: "#fff",
|
|
24
|
+
iconBackground: "#fff",
|
|
25
|
+
downloadUrls: {
|
|
26
|
+
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
27
|
+
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
28
|
+
mobile: "https://www.gate.io/mobileapp",
|
|
29
|
+
qrCode: "https://www.gate.io/web3",
|
|
30
|
+
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
31
|
+
browserExtension: "https://www.gate.io/web3"
|
|
32
|
+
},
|
|
33
|
+
mobile: {
|
|
34
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
35
|
+
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
36
|
+
} : void 0
|
|
37
|
+
},
|
|
38
|
+
qrCode: shouldUseWalletConnect ? {
|
|
39
|
+
getUri: (uri) => uri,
|
|
40
|
+
instructions: {
|
|
41
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
45
|
+
step: "install",
|
|
46
|
+
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
50
|
+
step: "create",
|
|
51
|
+
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
55
|
+
step: "scan",
|
|
56
|
+
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
} : void 0,
|
|
61
|
+
extension: {
|
|
62
|
+
instructions: {
|
|
63
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
64
|
+
steps: [
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.gate.extension.step1.description",
|
|
67
|
+
step: "install",
|
|
68
|
+
title: "wallet_connectors.gate.extension.step1.title"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.gate.extension.step2.description",
|
|
72
|
+
step: "create",
|
|
73
|
+
title: "wallet_connectors.gate.extension.step2.title"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
description: "wallet_connectors.gate.extension.step3.description",
|
|
77
|
+
step: "refresh",
|
|
78
|
+
title: "wallet_connectors.gate.extension.step3.title"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
84
|
+
projectId,
|
|
85
|
+
walletConnectParameters
|
|
86
|
+
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
gateWallet
|
|
92
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-23WIEY36.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-ARYAYQ7Z.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
|
+
import { isAndroid } from "@funkit/utils";
|
|
12
|
+
var bifrostWallet = ({
|
|
13
|
+
projectId,
|
|
14
|
+
walletConnectParameters
|
|
15
|
+
}) => {
|
|
16
|
+
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
17
|
+
const shouldUseWalletConnect = !isBifrostInjected;
|
|
18
|
+
const getUri = (uri) => {
|
|
19
|
+
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
id: "bifrostWallet",
|
|
23
|
+
name: "Bifrost Wallet",
|
|
24
|
+
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
25
|
+
iconBackground: "#fff",
|
|
26
|
+
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
+
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
34
|
+
},
|
|
35
|
+
qrCode: shouldUseWalletConnect ? {
|
|
36
|
+
getUri: (uri) => uri,
|
|
37
|
+
instructions: {
|
|
38
|
+
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
39
|
+
steps: [
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
42
|
+
step: "install",
|
|
43
|
+
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
47
|
+
step: "create",
|
|
48
|
+
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
52
|
+
step: "scan",
|
|
53
|
+
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
} : void 0,
|
|
58
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
59
|
+
projectId,
|
|
60
|
+
walletConnectParameters
|
|
61
|
+
}) : getInjectedConnector({
|
|
62
|
+
flag: "isBifrost"
|
|
63
|
+
})
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
bifrostWallet
|
|
69
|
+
};
|