@funkit/connect 12.1.0 → 12.3.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 +62 -0
- package/dist/clients/{chunk-UPZNKPYU.js → chunk-2W2P3OS6.js} +2 -1
- package/dist/clients/{chunk-3U55HYGJ.js → chunk-CE42WHAA.js} +1 -0
- package/dist/clients/fanatics.js +1 -1
- package/dist/clients/internal/nado/withdrawalForm.css +15 -0
- package/dist/clients/internal/nado/withdrawalForm.js +4 -3
- package/dist/clients/internal/nado/withdrawalStatus.js +1 -1
- package/dist/clients/lighter.css +15 -0
- package/dist/clients/lighter.js +151 -51
- package/dist/clients/mallard.js +1 -1
- package/dist/clients/nado.js +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunPayments/ExchangeIconCluster.d.ts +5 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +0 -5
- package/dist/components/FunPayments/SourceExchangeIcon.d.ts +5 -0
- package/dist/components/FunPayments/TransferCryptoChainIcons.d.ts +2 -0
- package/dist/components/FunPayments/icons/binance.d.ts +5 -0
- package/dist/components/FunPayments/icons/coinbase.d.ts +5 -0
- package/dist/components/FunPayments/icons/gemini.d.ts +5 -0
- package/dist/components/FunPayments/icons/kraken.d.ts +5 -0
- package/dist/components/IconCluster/IconCluster.css.d.ts +4 -0
- package/dist/components/IconCluster/IconCluster.d.ts +20 -0
- package/dist/components/SupportedChainList/SupportedChainList.d.ts +13 -0
- package/dist/consts/funkit.d.ts +7 -0
- package/dist/domains/asset.d.ts +3 -2
- package/dist/domains/checkout.d.ts +6 -3
- package/dist/domains/checkoutRecipient.d.ts +21 -3
- package/dist/domains/quote.d.ts +7 -8
- package/dist/hooks/track/analytics/events.d.ts +16 -2
- package/dist/hooks/track/analytics/qrNotificationObservation.d.ts +10 -0
- package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +4 -0
- package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
- package/dist/hooks/useIsBlacklisted.d.ts +2 -2
- package/dist/hooks/usePaymentSources.d.ts +1 -1
- package/dist/hooks/useWalletAssets.d.ts +1 -1
- package/dist/index.css +15 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4230 -3296
- package/dist/interfaces/solanaWallet.d.ts +46 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChangeLoading.d.ts +4 -1
- package/dist/modals/CheckoutModal/SourceChange/useSourceChangeLayout.d.ts +3 -1
- package/dist/modals/CheckoutModal/TransferToken/useTransferTokenTracking.d.ts +6 -2
- package/dist/modals/WithdrawalModal/useTrackWithdrawalEvents.d.ts +5 -2
- package/dist/providers/FunkitProvider.d.ts +15 -1
- package/dist/providers/GeneralWalletProvider.d.ts +15 -7
- package/dist/providers/SolanaWalletProvider.d.ts +28 -0
- package/dist/shadow-css.js +1 -1
- package/dist/utils/userInfo.d.ts +22 -14
- package/dist/wagmi/hooks.d.ts +3 -3
- package/dist/wallets/Wallet.d.ts +1 -0
- package/dist/wallets/pickConnectionChainId.d.ts +12 -0
- package/dist/wallets/useAdoptionConnectionGuard.d.ts +17 -0
- package/dist/wallets/useWalletAdoption.d.ts +27 -0
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +3 -3
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +4 -4
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +4 -4
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +3 -3
- package/dist/wallets/walletConnectors/bitverseWallet/bitverseWallet.js +3 -3
- package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +3 -3
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +3 -3
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +4 -4
- package/dist/wallets/walletConnectors/{chunk-2CX7LX4J.js → chunk-2TAUCVX7.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RVOY537T.js → chunk-34B7OJNT.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-UK7C2JXW.js → chunk-4FHNLTR3.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-STVVP43G.js → chunk-53MYTA42.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-NSK6A7TI.js → chunk-5AEWIKRA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2VP2F6EK.js → chunk-65ULY6OC.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-X6CGV36L.js → chunk-A5POD5SV.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-N4IJLYFY.js → chunk-AALSJCUR.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4T6ZSRJF.js → chunk-ALGPGI6V.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-CCQV2ZET.js → chunk-ANODOMIN.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-YEZM4CK4.js → chunk-ASTCNVJC.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-IGKXZBTA.js → chunk-B454LLKJ.js} +2 -1
- package/dist/wallets/walletConnectors/{chunk-BU3ZAT5X.js → chunk-B572YIAQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VTM6EECM.js → chunk-BBB2J3US.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-F5XEEVG6.js → chunk-BBDNB5TQ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-RPV27V2Y.js → chunk-BL4OC2EJ.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-CU5J53XR.js +94 -0
- package/dist/wallets/walletConnectors/{chunk-FW3WZETT.js → chunk-DFHP75HV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-MQM45ADF.js → chunk-DSPQXAB2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-3FCWJRI4.js → chunk-DUX4XCDV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OLZ7626J.js → chunk-EYWGX5LT.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-MIQTHJ6X.js → chunk-F45CUFRR.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-HNRB7KJU.js → chunk-FYPQ3HP4.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-QG6ZHI7B.js → chunk-GFS2AVAH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-52QXXLDS.js → chunk-GLX5FULK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OQB55QXP.js → chunk-GPXIBTWN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-CPI4TD43.js → chunk-HOCKAU5H.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-JN5I3DNC.js → chunk-HXX4PRE2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VAPGUPHO.js → chunk-IA5432IR.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-4DCO3TGL.js → chunk-IAYYWCVB.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RCY66YHF.js → chunk-IR3PJMVM.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-IWOMSW64.js +96 -0
- package/dist/wallets/walletConnectors/chunk-IWPW26AL.js +98 -0
- package/dist/wallets/walletConnectors/chunk-JJBLW4IU.js +87 -0
- package/dist/wallets/walletConnectors/{chunk-HTHAK6XB.js → chunk-KE4CWI3A.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-WVT6BBJH.js → chunk-KN32ITJ7.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-G2PHTVL6.js → chunk-LV6YV3DE.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-T6LGKC3F.js → chunk-M75V7OL3.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-MWB6LFSG.js +110 -0
- package/dist/wallets/walletConnectors/{chunk-7HRFUZFX.js → chunk-NPITCCJE.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-NXWG6FG2.js +93 -0
- package/dist/wallets/walletConnectors/chunk-OVDCDVFX.js +100 -0
- package/dist/wallets/walletConnectors/{chunk-PJ7Y57EH.js → chunk-PNHDOC77.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZNX4EMPB.js → chunk-PPQ6L4K2.js} +2 -2
- package/dist/wallets/walletConnectors/{chunk-QY53O7WG.js → chunk-Q27YVDDH.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-6BW3HLBG.js → chunk-RFCZYLNR.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-RJF2YEZ5.js +92 -0
- package/dist/wallets/walletConnectors/{chunk-RB66PKPA.js → chunk-RQ2GXOJL.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-RQYEGJKL.js +96 -0
- package/dist/wallets/walletConnectors/chunk-RXRYHMRI.js +218 -0
- package/dist/wallets/walletConnectors/{chunk-2DLDAZRH.js → chunk-SM2A3OSG.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-SR5CZR3L.js +106 -0
- package/dist/wallets/walletConnectors/{chunk-RB3HR4R2.js → chunk-TIHTQ3OB.js} +2 -2
- package/dist/wallets/walletConnectors/chunk-TM7UBV3Q.js +69 -0
- package/dist/wallets/walletConnectors/{chunk-VH3THHJY.js → chunk-TPM5PUJD.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-TRZDAXCQ.js +95 -0
- package/dist/wallets/walletConnectors/{chunk-DS73TZ6O.js → chunk-U2XXV45G.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-U52QO5HF.js +66 -0
- package/dist/wallets/walletConnectors/{chunk-7ZYCBDQ4.js → chunk-U74RFZOL.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-76S7R2ND.js → chunk-UN3ONVNC.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-Z3PPW6NC.js → chunk-UNDWHCDH.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-USLZMUJ3.js +99 -0
- package/dist/wallets/walletConnectors/{chunk-YWOVAU6O.js → chunk-V4M3SNPS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RICTB3FA.js → chunk-V77ATGZT.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-VKM5M5UK.js +49 -0
- package/dist/wallets/walletConnectors/chunk-XODA5ESL.js +103 -0
- package/dist/wallets/walletConnectors/{chunk-NTMBEOR2.js → chunk-XSDTNMQY.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-YRMBR6NA.js +92 -0
- package/dist/wallets/walletConnectors/{chunk-WNAGGFMG.js → chunk-YY2JA23M.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HBQK5RD5.js → chunk-Z6LDN2AN.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-ZSSSLFQF.js +70 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +4 -4
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +4 -4
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +4 -4
- package/dist/wallets/walletConnectors/customWallet/customWallet.d.ts +32 -0
- package/dist/wallets/walletConnectors/customWallet/customWallet.js +9 -0
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +3 -3
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +3 -3
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +3 -3
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +4 -4
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +3 -3
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +4 -4
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +4 -4
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +3 -3
- package/dist/wallets/walletConnectors/index.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +82 -78
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +3 -3
- package/dist/wallets/walletConnectors/kresusWallet/kresusWallet.js +3 -3
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +3 -3
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +4 -4
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +3 -3
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +3 -3
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +4 -4
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +3 -3
- package/dist/wallets/walletConnectors/oneInchWallet/oneInchWallet.js +3 -3
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +3 -3
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +3 -3
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +3 -3
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +4 -4
- package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +3 -3
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +4 -4
- package/dist/wallets/walletConnectors/safeWallet/safeWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +3 -3
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +4 -4
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +4 -4
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +3 -3
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +3 -3
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +4 -4
- package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +3 -3
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +4 -4
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +3 -3
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +3 -3
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +3 -3
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +3 -3
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +4 -4
- package/package.json +5 -5
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-EYWGX5LT.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-AALSJCUR.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
|
+
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getInjectedConnector,
|
|
4
4
|
hasInjectedProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EYWGX5LT.js";
|
|
6
6
|
import {
|
|
7
7
|
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AALSJCUR.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
11
11
|
import { isMobile } from "@funkit/utils";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-AALSJCUR.js";
|
|
2
5
|
import {
|
|
3
6
|
getInjectedConnector,
|
|
4
7
|
hasInjectedProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-N4IJLYFY.js";
|
|
8
|
+
} from "./chunk-EYWGX5LT.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
11
|
var coin98Wallet = ({
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-EYWGX5LT.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-AALSJCUR.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/roninWallet/roninWallet.ts
|
|
11
|
+
var roninWallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isRoninInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "ronin.provider"
|
|
17
|
+
});
|
|
18
|
+
return {
|
|
19
|
+
id: "ronin",
|
|
20
|
+
name: "Ronin Wallet",
|
|
21
|
+
iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
|
|
22
|
+
iconBackground: "#ffffff",
|
|
23
|
+
rdns: "com.roninchain.wallet",
|
|
24
|
+
installed: isRoninInjected || void 0,
|
|
25
|
+
downloadUrls: {
|
|
26
|
+
android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
|
|
27
|
+
ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
|
|
28
|
+
mobile: "https://wallet.roninchain.com",
|
|
29
|
+
chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
|
|
30
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
|
|
31
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
|
|
32
|
+
browserExtension: "https://wallet.roninchain.com/",
|
|
33
|
+
qrCode: "https://wallet.roninchain.com/"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
|
|
37
|
+
},
|
|
38
|
+
qrCode: {
|
|
39
|
+
getUri: (uri) => uri,
|
|
40
|
+
instructions: {
|
|
41
|
+
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
description: "wallet_connectors.ronin.qr_code.step1.description",
|
|
45
|
+
step: "install",
|
|
46
|
+
title: "wallet_connectors.ronin.qr_code.step1.title"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
description: "wallet_connectors.ronin.qr_code.step2.description",
|
|
50
|
+
step: "create",
|
|
51
|
+
title: "wallet_connectors.ronin.qr_code.step2.title"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
description: "wallet_connectors.ronin.qr_code.step3.description",
|
|
55
|
+
step: "scan",
|
|
56
|
+
title: "wallet_connectors.ronin.qr_code.step3.title"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
extension: {
|
|
62
|
+
instructions: {
|
|
63
|
+
learnMoreUrl: "https://wallet.roninchain.com/",
|
|
64
|
+
steps: [
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.ronin.extension.step1.description",
|
|
67
|
+
step: "install",
|
|
68
|
+
title: "wallet_connectors.ronin.extension.step1.title"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "wallet_connectors.ronin.extension.step2.description",
|
|
72
|
+
step: "create",
|
|
73
|
+
title: "wallet_connectors.ronin.extension.step2.title"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
description: "wallet_connectors.ronin.extension.step3.description",
|
|
77
|
+
step: "refresh",
|
|
78
|
+
title: "wallet_connectors.ronin.extension.step3.title"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
|
|
84
|
+
projectId,
|
|
85
|
+
walletConnectParameters
|
|
86
|
+
})
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
roninWallet
|
|
92
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-EYWGX5LT.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector
|
|
8
|
+
} from "./chunk-AALSJCUR.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
|
+
var coin98Wallet = ({
|
|
12
|
+
projectId,
|
|
13
|
+
walletConnectParameters
|
|
14
|
+
}) => {
|
|
15
|
+
const isCoin98WalletInjected = hasInjectedProvider({
|
|
16
|
+
namespace: "coin98.provider",
|
|
17
|
+
flag: "isCoin98"
|
|
18
|
+
});
|
|
19
|
+
const shouldUseWalletConnect = !isCoin98WalletInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "coin98",
|
|
22
|
+
name: "Coin98 Wallet",
|
|
23
|
+
iconUrl: async () => (await import("./coin98Wallet-I5CP5KYZ.js")).default,
|
|
24
|
+
installed: isCoin98WalletInjected,
|
|
25
|
+
iconAccent: "#CDA349",
|
|
26
|
+
iconBackground: "#fff",
|
|
27
|
+
rdns: "coin98.com",
|
|
28
|
+
downloadUrls: {
|
|
29
|
+
android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
|
|
30
|
+
ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
|
|
31
|
+
mobile: "https://coin98.com/wallet",
|
|
32
|
+
qrCode: "https://coin98.com/wallet",
|
|
33
|
+
chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
|
|
34
|
+
browserExtension: "https://coin98.com/wallet"
|
|
35
|
+
},
|
|
36
|
+
mobile: {
|
|
37
|
+
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
38
|
+
},
|
|
39
|
+
qrCode: shouldUseWalletConnect ? {
|
|
40
|
+
getUri: (uri) => uri,
|
|
41
|
+
instructions: {
|
|
42
|
+
learnMoreUrl: "https://coin98.com/wallet",
|
|
43
|
+
steps: [
|
|
44
|
+
{
|
|
45
|
+
description: "wallet_connectors.coin98.qr_code.step1.description",
|
|
46
|
+
step: "install",
|
|
47
|
+
title: "wallet_connectors.coin98.qr_code.step1.title"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
description: "wallet_connectors.coin98.qr_code.step2.description",
|
|
51
|
+
step: "create",
|
|
52
|
+
title: "wallet_connectors.coin98.qr_code.step2.title"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
description: "wallet_connectors.coin98.qr_code.step3.description",
|
|
56
|
+
step: "scan",
|
|
57
|
+
title: "wallet_connectors.coin98.qr_code.step3.title"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
} : void 0,
|
|
62
|
+
extension: {
|
|
63
|
+
instructions: {
|
|
64
|
+
learnMoreUrl: "https://coin98.com/wallet",
|
|
65
|
+
steps: [
|
|
66
|
+
{
|
|
67
|
+
description: "wallet_connectors.coin98.extension.step1.description",
|
|
68
|
+
step: "install",
|
|
69
|
+
title: "wallet_connectors.coin98.extension.step1.title"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
description: "wallet_connectors.coin98.extension.step2.description",
|
|
73
|
+
step: "create",
|
|
74
|
+
title: "wallet_connectors.coin98.extension.step2.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
description: "wallet_connectors.coin98.extension.step3.description",
|
|
78
|
+
step: "refresh",
|
|
79
|
+
title: "wallet_connectors.coin98.extension.step3.title"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
+
projectId,
|
|
86
|
+
walletConnectParameters
|
|
87
|
+
}) : getInjectedConnector({
|
|
88
|
+
namespace: "coin98Wallet",
|
|
89
|
+
flag: "isCoin98"
|
|
90
|
+
})
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
coin98Wallet
|
|
96
|
+
};
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-AALSJCUR.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-EYWGX5LT.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
11
|
+
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
+
function isMetaMask(ethereum) {
|
|
13
|
+
if (!ethereum?.isMetaMask) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (ethereum.isApexWallet) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if (ethereum.isAvalanche) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
if (ethereum.isBackpack) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
if (ethereum.isBifrost) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
if (ethereum.isBitKeep) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (ethereum.isBitski) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
if (ethereum.isBlockWallet) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
if (ethereum.isCoinbaseWallet) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (ethereum.isDawn) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (ethereum.isEnkrypt) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
if (ethereum.isExodus) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
if (ethereum.isFrame) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
if (ethereum.isFrontier) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
if (ethereum.isGamestop) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
if (ethereum.isHyperPay) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (ethereum.isImToken) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
if (ethereum.isKuCoinWallet) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
if (ethereum.isMathWallet) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
if (ethereum.isNestWallet) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (ethereum.isOpera) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
if (ethereum.isPhantom) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
if (ethereum.isPortal) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (ethereum.isRabby) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (ethereum.isRainbow) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
if (ethereum.isStatus) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
if (ethereum.isTalisman) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
if (ethereum.isTally) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (ethereum.isTokenPocket) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
if (ethereum.isTokenary) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
if (ethereum.isXDEFI) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
if (ethereum.isZeal) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
if (ethereum.isZerion) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
var metaMaskWallet = ({
|
|
127
|
+
projectId,
|
|
128
|
+
walletConnectParameters
|
|
129
|
+
}) => {
|
|
130
|
+
const isMetaMaskInjected = hasInjectedProvider({ flag: "isMetaMask" });
|
|
131
|
+
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
132
|
+
const getUri = (uri) => {
|
|
133
|
+
return isAndroid() ? uri : isIOS() ? (
|
|
134
|
+
// currently broken in MetaMask v6.5.0 https://github.com/MetaMask/metamask-mobile/issues/6457
|
|
135
|
+
`metamask://wc?uri=${encodeURIComponent(uri)}`
|
|
136
|
+
) : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
137
|
+
};
|
|
138
|
+
return {
|
|
139
|
+
id: "metaMask",
|
|
140
|
+
name: "MetaMask",
|
|
141
|
+
rdns: "io.metamask",
|
|
142
|
+
iconUrl: async () => (await import("./metaMaskWallet-RMHEKBDR.js")).default,
|
|
143
|
+
iconAccent: "#f6851a",
|
|
144
|
+
iconBackground: "#fff",
|
|
145
|
+
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
146
|
+
downloadUrls: {
|
|
147
|
+
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
148
|
+
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
149
|
+
mobile: "https://metamask.io/download",
|
|
150
|
+
qrCode: "https://metamask.io/download",
|
|
151
|
+
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
152
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
153
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
154
|
+
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
155
|
+
browserExtension: "https://metamask.io/download"
|
|
156
|
+
},
|
|
157
|
+
mobile: {
|
|
158
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
159
|
+
},
|
|
160
|
+
qrCode: shouldUseWalletConnect ? {
|
|
161
|
+
getUri,
|
|
162
|
+
instructions: {
|
|
163
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
164
|
+
steps: [
|
|
165
|
+
{
|
|
166
|
+
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
167
|
+
step: "install",
|
|
168
|
+
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
172
|
+
step: "create",
|
|
173
|
+
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
177
|
+
step: "refresh",
|
|
178
|
+
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
} : void 0,
|
|
183
|
+
extension: {
|
|
184
|
+
instructions: {
|
|
185
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
186
|
+
steps: [
|
|
187
|
+
{
|
|
188
|
+
description: "wallet_connectors.metamask.extension.step1.description",
|
|
189
|
+
step: "install",
|
|
190
|
+
title: "wallet_connectors.metamask.extension.step1.title"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
description: "wallet_connectors.metamask.extension.step2.description",
|
|
194
|
+
step: "create",
|
|
195
|
+
title: "wallet_connectors.metamask.extension.step2.title"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
description: "wallet_connectors.metamask.extension.step3.description",
|
|
199
|
+
step: "refresh",
|
|
200
|
+
title: "wallet_connectors.metamask.extension.step3.title"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
206
|
+
projectId,
|
|
207
|
+
walletConnectParameters
|
|
208
|
+
}) : getInjectedConnector({
|
|
209
|
+
target: typeof window !== "undefined" ? window.ethereum?.providers?.find(
|
|
210
|
+
isMetaMask
|
|
211
|
+
) ?? window.ethereum : void 0
|
|
212
|
+
})
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export {
|
|
217
|
+
metaMaskWallet
|
|
218
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector
|
|
4
|
+
} from "./chunk-AALSJCUR.js";
|
|
5
|
+
import {
|
|
6
|
+
getInjectedConnector,
|
|
7
|
+
hasInjectedProvider
|
|
8
|
+
} from "./chunk-EYWGX5LT.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
|
+
};
|