@cfxjs/sirius-next-common 0.1.26 → 0.1.28
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/dist/chunk-24MUZRQJ.js +108 -0
- package/dist/chunk-24MUZRQJ.js.map +1 -0
- package/dist/chunk-24Z2NTKQ.js +43 -0
- package/dist/chunk-24Z2NTKQ.js.map +1 -0
- package/dist/chunk-26ABIFHL.js +127 -0
- package/dist/chunk-26ABIFHL.js.map +1 -0
- package/dist/chunk-27S75HVO.js +108 -0
- package/dist/chunk-27S75HVO.js.map +1 -0
- package/dist/chunk-2ATI4GSO.js +130 -0
- package/dist/chunk-2ATI4GSO.js.map +1 -0
- package/dist/chunk-2RR4CX3F.js +141 -0
- package/dist/chunk-2RR4CX3F.js.map +1 -0
- package/dist/chunk-2S6T3LVP.js +212 -0
- package/dist/chunk-2S6T3LVP.js.map +1 -0
- package/dist/chunk-3357K7AW.js +108 -0
- package/dist/chunk-3357K7AW.js.map +1 -0
- package/dist/chunk-3BLNV3M6.js +49 -0
- package/dist/chunk-3BLNV3M6.js.map +1 -0
- package/dist/chunk-3DOLNPRU.js +27 -0
- package/dist/chunk-3DOLNPRU.js.map +1 -0
- package/dist/chunk-3MYGXIHH.js +108 -0
- package/dist/chunk-3MYGXIHH.js.map +1 -0
- package/dist/chunk-3PCM3OLN.js +141 -0
- package/dist/chunk-3PCM3OLN.js.map +1 -0
- package/dist/chunk-3TBXOB3R.js +141 -0
- package/dist/chunk-3TBXOB3R.js.map +1 -0
- package/dist/chunk-3XY72AXV.js +49 -0
- package/dist/chunk-3XY72AXV.js.map +1 -0
- package/dist/chunk-3YBIEQO6.js +212 -0
- package/dist/chunk-3YBIEQO6.js.map +1 -0
- package/dist/chunk-4A4J7WSV.js +86 -0
- package/dist/chunk-4A4J7WSV.js.map +1 -0
- package/dist/chunk-4ESGRQGT.js +108 -0
- package/dist/chunk-4ESGRQGT.js.map +1 -0
- package/dist/chunk-5BIMFEMU.js +1478 -0
- package/dist/chunk-5BIMFEMU.js.map +1 -0
- package/dist/chunk-5SRYL5WC.js +212 -0
- package/dist/chunk-5SRYL5WC.js.map +1 -0
- package/dist/chunk-62YQFYHZ.js +3629 -0
- package/dist/chunk-62YQFYHZ.js.map +1 -0
- package/dist/chunk-6HKZB5HS.js +49 -0
- package/dist/chunk-6HKZB5HS.js.map +1 -0
- package/dist/chunk-6NC6XI6T.js +108 -0
- package/dist/chunk-6NC6XI6T.js.map +1 -0
- package/dist/chunk-6VGNSL3V.js +108 -0
- package/dist/chunk-6VGNSL3V.js.map +1 -0
- package/dist/chunk-74Z6QJ2V.js +108 -0
- package/dist/chunk-74Z6QJ2V.js.map +1 -0
- package/dist/chunk-77BWMAR2.js +105 -0
- package/dist/chunk-77BWMAR2.js.map +1 -0
- package/dist/chunk-7EX3S2AT.js +2324 -0
- package/dist/chunk-7EX3S2AT.js.map +1 -0
- package/dist/chunk-7LU43J6Y.js +2199 -0
- package/dist/chunk-7LU43J6Y.js.map +1 -0
- package/dist/chunk-7ONFLU6G.js +127 -0
- package/dist/chunk-7ONFLU6G.js.map +1 -0
- package/dist/chunk-7S7HFNGN.js +49 -0
- package/dist/chunk-7S7HFNGN.js.map +1 -0
- package/dist/chunk-7T3QFG4C.js +108 -0
- package/dist/chunk-7T3QFG4C.js.map +1 -0
- package/dist/chunk-ACI4CZ3N.js +141 -0
- package/dist/chunk-ACI4CZ3N.js.map +1 -0
- package/dist/chunk-AF3NCC5P.js +127 -0
- package/dist/chunk-AF3NCC5P.js.map +1 -0
- package/dist/chunk-AFTE3PC6.js +141 -0
- package/dist/chunk-AFTE3PC6.js.map +1 -0
- package/dist/chunk-ARSX76AK.js +49 -0
- package/dist/chunk-ARSX76AK.js.map +1 -0
- package/dist/chunk-AVOJOQXO.js +108 -0
- package/dist/chunk-AVOJOQXO.js.map +1 -0
- package/dist/chunk-AWLKSOKJ.js +49 -0
- package/dist/chunk-AWLKSOKJ.js.map +1 -0
- package/dist/chunk-B5CBBNRH.js +141 -0
- package/dist/chunk-B5CBBNRH.js.map +1 -0
- package/dist/chunk-BJAVQP5F.js +212 -0
- package/dist/chunk-BJAVQP5F.js.map +1 -0
- package/dist/chunk-C4DWCONF.js +212 -0
- package/dist/chunk-C4DWCONF.js.map +1 -0
- package/dist/chunk-CM2VKLWZ.js +127 -0
- package/dist/chunk-CM2VKLWZ.js.map +1 -0
- package/dist/chunk-CRPUM7SJ.js +212 -0
- package/dist/chunk-CRPUM7SJ.js.map +1 -0
- package/dist/chunk-CSBHWPRR.js +105 -0
- package/dist/chunk-CSBHWPRR.js.map +1 -0
- package/dist/chunk-CT7PENLL.js +105 -0
- package/dist/chunk-CT7PENLL.js.map +1 -0
- package/dist/chunk-DIAD272J.js +49 -0
- package/dist/chunk-DIAD272J.js.map +1 -0
- package/dist/chunk-DXONM5CJ.js +141 -0
- package/dist/chunk-DXONM5CJ.js.map +1 -0
- package/dist/chunk-E4LV6EXS.js +108 -0
- package/dist/chunk-E4LV6EXS.js.map +1 -0
- package/dist/chunk-E6E6MHRM.js +212 -0
- package/dist/chunk-E6E6MHRM.js.map +1 -0
- package/dist/chunk-E77PCJ2L.js +141 -0
- package/dist/chunk-E77PCJ2L.js.map +1 -0
- package/dist/chunk-E7F44FIR.js +105 -0
- package/dist/chunk-E7F44FIR.js.map +1 -0
- package/dist/chunk-EK2YUTFC.js +141 -0
- package/dist/chunk-EK2YUTFC.js.map +1 -0
- package/dist/chunk-EKQJYLLX.js +212 -0
- package/dist/chunk-EKQJYLLX.js.map +1 -0
- package/dist/chunk-FA77TXZD.js +127 -0
- package/dist/chunk-FA77TXZD.js.map +1 -0
- package/dist/chunk-FAFYYMFU.js +108 -0
- package/dist/chunk-FAFYYMFU.js.map +1 -0
- package/dist/chunk-FHTHKUN5.js +126 -0
- package/dist/chunk-FHTHKUN5.js.map +1 -0
- package/dist/chunk-GAWACXC2.js +127 -0
- package/dist/chunk-GAWACXC2.js.map +1 -0
- package/dist/chunk-GR3BLVJV.js +212 -0
- package/dist/chunk-GR3BLVJV.js.map +1 -0
- package/dist/chunk-GRCSAYBS.js +141 -0
- package/dist/chunk-GRCSAYBS.js.map +1 -0
- package/dist/chunk-GTRGNGUL.js +212 -0
- package/dist/chunk-GTRGNGUL.js.map +1 -0
- package/dist/chunk-H6EWZ7XZ.js +105 -0
- package/dist/chunk-H6EWZ7XZ.js.map +1 -0
- package/dist/chunk-HH3OPBBE.js +108 -0
- package/dist/chunk-HH3OPBBE.js.map +1 -0
- package/dist/chunk-HRVIZJEA.js +63 -0
- package/dist/chunk-HRVIZJEA.js.map +1 -0
- package/dist/chunk-I5GYABMO.js +141 -0
- package/dist/chunk-I5GYABMO.js.map +1 -0
- package/dist/chunk-I5J6GFME.js +141 -0
- package/dist/chunk-I5J6GFME.js.map +1 -0
- package/dist/chunk-IHFBGGHI.js +2297 -0
- package/dist/chunk-IHFBGGHI.js.map +1 -0
- package/dist/chunk-IHHNRYGC.js +108 -0
- package/dist/chunk-IHHNRYGC.js.map +1 -0
- package/dist/chunk-IPF6TU3K.js +212 -0
- package/dist/chunk-IPF6TU3K.js.map +1 -0
- package/dist/chunk-JNSJK2TR.js +2323 -0
- package/dist/chunk-JNSJK2TR.js.map +1 -0
- package/dist/chunk-JY62VTMC.js +49 -0
- package/dist/chunk-JY62VTMC.js.map +1 -0
- package/dist/chunk-KKC3SV7X.js +212 -0
- package/dist/chunk-KKC3SV7X.js.map +1 -0
- package/dist/chunk-KLKFSFIO.js +127 -0
- package/dist/chunk-KLKFSFIO.js.map +1 -0
- package/dist/chunk-KLXG7TWR.js +212 -0
- package/dist/chunk-KLXG7TWR.js.map +1 -0
- package/dist/chunk-KONLD7QH.js +108 -0
- package/dist/chunk-KONLD7QH.js.map +1 -0
- package/dist/chunk-KVZ4GBCQ.js +212 -0
- package/dist/chunk-KVZ4GBCQ.js.map +1 -0
- package/dist/chunk-LCX6G6UD.js +49 -0
- package/dist/chunk-LCX6G6UD.js.map +1 -0
- package/dist/chunk-LTJESAOY.js +49 -0
- package/dist/chunk-LTJESAOY.js.map +1 -0
- package/dist/chunk-LVOIDBQG.js +5083 -0
- package/dist/chunk-LVOIDBQG.js.map +1 -0
- package/dist/chunk-M7MZHGIW.js +141 -0
- package/dist/chunk-M7MZHGIW.js.map +1 -0
- package/dist/chunk-MFLND54Z.js +105 -0
- package/dist/chunk-MFLND54Z.js.map +1 -0
- package/dist/chunk-MU2VXMVI.js +105 -0
- package/dist/chunk-MU2VXMVI.js.map +1 -0
- package/dist/chunk-MYFQGX4G.js +130 -0
- package/dist/chunk-MYFQGX4G.js.map +1 -0
- package/dist/chunk-NIVSHXEJ.js +141 -0
- package/dist/chunk-NIVSHXEJ.js.map +1 -0
- package/dist/chunk-NJMWUDSI.js +2323 -0
- package/dist/chunk-NJMWUDSI.js.map +1 -0
- package/dist/chunk-NP4YOCMX.js +127 -0
- package/dist/chunk-NP4YOCMX.js.map +1 -0
- package/dist/chunk-NVIXO3FX.js +127 -0
- package/dist/chunk-NVIXO3FX.js.map +1 -0
- package/dist/chunk-OB5SKTJ7.js +2294 -0
- package/dist/chunk-OB5SKTJ7.js.map +1 -0
- package/dist/chunk-OWG3KRZJ.js +108 -0
- package/dist/chunk-OWG3KRZJ.js.map +1 -0
- package/dist/chunk-P3FVYMA6.js +127 -0
- package/dist/chunk-P3FVYMA6.js.map +1 -0
- package/dist/chunk-PJDWYUHP.js +3629 -0
- package/dist/chunk-PJDWYUHP.js.map +1 -0
- package/dist/chunk-PS6RUUUK.js +86 -0
- package/dist/chunk-PS6RUUUK.js.map +1 -0
- package/dist/chunk-QAFEK7IY.js +105 -0
- package/dist/chunk-QAFEK7IY.js.map +1 -0
- package/dist/chunk-QFPKRXR3.js +108 -0
- package/dist/chunk-QFPKRXR3.js.map +1 -0
- package/dist/chunk-R3N37XCV.js +212 -0
- package/dist/chunk-R3N37XCV.js.map +1 -0
- package/dist/chunk-R4E42CNE.js +2324 -0
- package/dist/chunk-R4E42CNE.js.map +1 -0
- package/dist/chunk-R4FMLRKR.js +105 -0
- package/dist/chunk-R4FMLRKR.js.map +1 -0
- package/dist/chunk-R4ISWFAU.js +2323 -0
- package/dist/chunk-R4ISWFAU.js.map +1 -0
- package/dist/chunk-R5KOPIFI.js +127 -0
- package/dist/chunk-R5KOPIFI.js.map +1 -0
- package/dist/chunk-RHM7WSYL.js +127 -0
- package/dist/chunk-RHM7WSYL.js.map +1 -0
- package/dist/chunk-RMOYI7RJ.js +212 -0
- package/dist/chunk-RMOYI7RJ.js.map +1 -0
- package/dist/chunk-RQB4FWW7.js +2296 -0
- package/dist/chunk-RQB4FWW7.js.map +1 -0
- package/dist/chunk-RRQLWLKC.js +127 -0
- package/dist/chunk-RRQLWLKC.js.map +1 -0
- package/dist/chunk-S7BWR5IZ.js +212 -0
- package/dist/chunk-S7BWR5IZ.js.map +1 -0
- package/dist/chunk-SUHRSNAI.js +63 -0
- package/dist/chunk-SUHRSNAI.js.map +1 -0
- package/dist/chunk-T5J4XBWF.js +127 -0
- package/dist/chunk-T5J4XBWF.js.map +1 -0
- package/dist/chunk-T5OKHLM7.js +86 -0
- package/dist/chunk-T5OKHLM7.js.map +1 -0
- package/dist/chunk-T6TINFBB.js +49 -0
- package/dist/chunk-T6TINFBB.js.map +1 -0
- package/dist/chunk-TK4FIUGX.js +105 -0
- package/dist/chunk-TK4FIUGX.js.map +1 -0
- package/dist/chunk-TSYM32RM.js +2218 -0
- package/dist/chunk-TSYM32RM.js.map +1 -0
- package/dist/chunk-TYLFHFBL.js +127 -0
- package/dist/chunk-TYLFHFBL.js.map +1 -0
- package/dist/chunk-TZ6FCCCJ.js +105 -0
- package/dist/chunk-TZ6FCCCJ.js.map +1 -0
- package/dist/chunk-UFO7XI55.js +212 -0
- package/dist/chunk-UFO7XI55.js.map +1 -0
- package/dist/chunk-UHGU5YPX.js +127 -0
- package/dist/chunk-UHGU5YPX.js.map +1 -0
- package/dist/chunk-UTXIA4ZA.js +105 -0
- package/dist/chunk-UTXIA4ZA.js.map +1 -0
- package/dist/chunk-UYI6WFT7.js +105 -0
- package/dist/chunk-UYI6WFT7.js.map +1 -0
- package/dist/chunk-VENIIRNN.js +49 -0
- package/dist/chunk-VENIIRNN.js.map +1 -0
- package/dist/chunk-VIX553CW.js +108 -0
- package/dist/chunk-VIX553CW.js.map +1 -0
- package/dist/chunk-VLYJFH7W.js +49 -0
- package/dist/chunk-VLYJFH7W.js.map +1 -0
- package/dist/chunk-VOXSIPTX.js +141 -0
- package/dist/chunk-VOXSIPTX.js.map +1 -0
- package/dist/chunk-VZNGE73T.js +105 -0
- package/dist/chunk-VZNGE73T.js.map +1 -0
- package/dist/chunk-W2J2VZEP.js +108 -0
- package/dist/chunk-W2J2VZEP.js.map +1 -0
- package/dist/chunk-X3QTCV4Q.js +212 -0
- package/dist/chunk-X3QTCV4Q.js.map +1 -0
- package/dist/chunk-X5ZOQIDW.js +108 -0
- package/dist/chunk-X5ZOQIDW.js.map +1 -0
- package/dist/chunk-XHG32AO6.js +141 -0
- package/dist/chunk-XHG32AO6.js.map +1 -0
- package/dist/chunk-XJSNK6B3.js +127 -0
- package/dist/chunk-XJSNK6B3.js.map +1 -0
- package/dist/chunk-XRKRGNVZ.js +141 -0
- package/dist/chunk-XRKRGNVZ.js.map +1 -0
- package/dist/chunk-XVA5MO4M.js +2324 -0
- package/dist/chunk-XVA5MO4M.js.map +1 -0
- package/dist/chunk-XXEJA3Q7.js +86 -0
- package/dist/chunk-XXEJA3Q7.js.map +1 -0
- package/dist/chunk-XZAEVXPG.js +108 -0
- package/dist/chunk-XZAEVXPG.js.map +1 -0
- package/dist/chunk-YCVZY6JX.js +141 -0
- package/dist/chunk-YCVZY6JX.js.map +1 -0
- package/dist/chunk-YQAMFHXE.js +212 -0
- package/dist/chunk-YQAMFHXE.js.map +1 -0
- package/dist/chunk-YRB4D655.js +141 -0
- package/dist/chunk-YRB4D655.js.map +1 -0
- package/dist/chunk-YVPSUVSB.js +141 -0
- package/dist/chunk-YVPSUVSB.js.map +1 -0
- package/dist/chunk-YWEJJEJY.js +105 -0
- package/dist/chunk-YWEJJEJY.js.map +1 -0
- package/dist/chunk-YXOEPMQS.js +127 -0
- package/dist/chunk-YXOEPMQS.js.map +1 -0
- package/dist/chunk-ZBNO57AP.js +141 -0
- package/dist/chunk-ZBNO57AP.js.map +1 -0
- package/dist/chunk-ZZDH4KPF.js +212 -0
- package/dist/chunk-ZZDH4KPF.js.map +1 -0
- package/dist/components/AddressContainer/CoreAddressContainer.js +6 -6
- package/dist/components/AddressContainer/EVMAddressContainer.js +6 -6
- package/dist/components/AddressContainer/addressSwitcher.js +4 -4
- package/dist/components/AddressContainer/addressView.js +3 -3
- package/dist/components/AddressContainer/label.js +2 -2
- package/dist/components/Age/index.js +2 -2
- package/dist/components/CopyButton/index.js +1 -1
- package/dist/components/DownloadCSV/index.js +1 -1
- package/dist/components/Highlight/index.js +12 -2
- package/dist/components/Highlight/index.js.map +1 -1
- package/dist/components/InfoIconWithTooltip/index.js +1 -1
- package/dist/components/PhishingAddressContainer/PhishingWarningIcon.d.ts +6 -0
- package/dist/components/PhishingAddressContainer/PhishingWarningIcon.js +7 -0
- package/dist/components/PhishingAddressContainer/PhishingWarningIcon.js.map +1 -0
- package/dist/components/PhishingAddressContainer/index.d.ts +15 -0
- package/dist/components/PhishingAddressContainer/index.js +124 -0
- package/dist/components/PhishingAddressContainer/index.js.map +1 -0
- package/dist/components/PhishingAddressContainer/phishing-warning.svg.svg +3 -0
- package/dist/components/Price/index.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Select/select.js +1 -1
- package/dist/components/Text/index.js +2 -2
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/tt.d.ts +28 -0
- package/dist/components/Tooltip/tt.js +8 -0
- package/dist/components/Tooltip/tt.js.map +1 -0
- package/dist/components/TransactionAction/coreTransactionAction.js +6 -6
- package/dist/components/TransactionAction/evmTransactionAction.js +6 -6
- package/dist/contants/cssVariable.d.ts +20 -0
- package/dist/contants/cssVariable.js +41 -0
- package/dist/contants/cssVariable.js.map +1 -0
- package/dist/uno.css +6 -4
- package/dist/utils/contractManagerTool.d.ts +50 -0
- package/dist/utils/contractManagerTool.js +92 -0
- package/dist/utils/contractManagerTool.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RenderAddress
|
|
3
|
+
} from "./chunk-7ONFLU6G.js";
|
|
4
|
+
import {
|
|
5
|
+
formatAddress,
|
|
6
|
+
isInnerContractAddress
|
|
7
|
+
} from "./chunk-RTFAJGPO.js";
|
|
8
|
+
import {
|
|
9
|
+
Tooltip
|
|
10
|
+
} from "./chunk-RQB4FWW7.js";
|
|
11
|
+
import {
|
|
12
|
+
coreCorrespondsToEspace,
|
|
13
|
+
formatString,
|
|
14
|
+
getNetwork
|
|
15
|
+
} from "./chunk-4WJBUQY7.js";
|
|
16
|
+
import {
|
|
17
|
+
getEnvConfig,
|
|
18
|
+
getTranslations,
|
|
19
|
+
useGlobalData
|
|
20
|
+
} from "./chunk-DQGLZCIG.js";
|
|
21
|
+
|
|
22
|
+
// src/components/AddressContainer/addressSwitcher.tsx
|
|
23
|
+
import { AlertTriangle, File } from "@zeit-ui/react-icons";
|
|
24
|
+
import InternalContractIcon from "./internal-contract-icon-ZH2RG3CU.png";
|
|
25
|
+
import ContractIcon from "./contract-icon-P3W2HUAA.png";
|
|
26
|
+
import VerifiedIcon from "./verified-VJRHZNN7.png";
|
|
27
|
+
import isMeIcon from "./me-SIV36SR7.png";
|
|
28
|
+
import { isPosAddress } from "@cfx-kit/dapp-utils/dist/address";
|
|
29
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
+
var ContractCreatedAddress = (props) => {
|
|
31
|
+
const { contractCreated = "", outputType, t, isFull } = props;
|
|
32
|
+
const translations = getTranslations();
|
|
33
|
+
const contractAddress = formatAddress(contractCreated, outputType);
|
|
34
|
+
const customProps = {
|
|
35
|
+
content: t(translations.transaction.contractCreation),
|
|
36
|
+
alias: t(translations.transaction.contractCreation),
|
|
37
|
+
hrefAddress: contractAddress,
|
|
38
|
+
cfxAddress: contractAddress,
|
|
39
|
+
maxWidth: 160
|
|
40
|
+
};
|
|
41
|
+
const mergedProps = { ...props, ...customProps };
|
|
42
|
+
return RenderAddress({
|
|
43
|
+
...mergedProps,
|
|
44
|
+
prefix: /* @__PURE__ */ jsx("div", { className: `mr-[2px] flex-shrink-0 ${isFull ? "icon" : ""}`, children: /* @__PURE__ */ jsx(Tooltip, { title: mergedProps.content, children: /* @__PURE__ */ jsx("div", { className: "relative w-[16px] h-[16px]", children: /* @__PURE__ */ jsx(
|
|
45
|
+
"img",
|
|
46
|
+
{
|
|
47
|
+
className: "w-[16px] h-[16px] align-bottom mb-[3px]",
|
|
48
|
+
src: ContractIcon,
|
|
49
|
+
alt: mergedProps.content
|
|
50
|
+
}
|
|
51
|
+
) }) }) })
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
var CoreHexAddress = (props) => {
|
|
55
|
+
const { value, t, isFull, maxWidth } = props;
|
|
56
|
+
const { globalData } = useGlobalData();
|
|
57
|
+
const ENV_CONFIG = getEnvConfig();
|
|
58
|
+
const translations = getTranslations();
|
|
59
|
+
const hexAddress = formatAddress(value, "hex");
|
|
60
|
+
const network = getNetwork(
|
|
61
|
+
globalData?.networks,
|
|
62
|
+
coreCorrespondsToEspace(ENV_CONFIG.ENV_NETWORK_ID)
|
|
63
|
+
);
|
|
64
|
+
const url = `${window.location.protocol}${network.url}/address/${hexAddress}`;
|
|
65
|
+
return RenderAddress({
|
|
66
|
+
cfxAddress: hexAddress,
|
|
67
|
+
hoverValue: hexAddress,
|
|
68
|
+
link: url,
|
|
69
|
+
isFull,
|
|
70
|
+
maxWidth,
|
|
71
|
+
suffixSize: 0,
|
|
72
|
+
prefix: /* @__PURE__ */ jsx("div", { className: "mr-[2px] flex-shrink-0", children: /* @__PURE__ */ jsx(Tooltip, { title: t(translations.general.eSpaceAddress), children: /* @__PURE__ */ jsx(File, { size: 16, color: "#17B38A" }) }) })
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
var InvalidAddress = (props) => {
|
|
76
|
+
const {
|
|
77
|
+
value,
|
|
78
|
+
alias,
|
|
79
|
+
t,
|
|
80
|
+
isFull,
|
|
81
|
+
maxWidth,
|
|
82
|
+
isFullNameTag,
|
|
83
|
+
hideAliasPrefixInHover
|
|
84
|
+
} = props;
|
|
85
|
+
const translations = getTranslations();
|
|
86
|
+
const tip = t(translations.general.invalidAddress);
|
|
87
|
+
return RenderAddress({
|
|
88
|
+
cfxAddress: value,
|
|
89
|
+
alias,
|
|
90
|
+
hoverValue: `${tip}: ${value}`,
|
|
91
|
+
content: alias ? formatString(alias, "tag") : value,
|
|
92
|
+
link: false,
|
|
93
|
+
isFull,
|
|
94
|
+
isFullNameTag,
|
|
95
|
+
maxWidth,
|
|
96
|
+
style: { color: "#e00909" },
|
|
97
|
+
prefix: /* @__PURE__ */ jsx("div", { className: "mr-[2px] flex-shrink-0", children: /* @__PURE__ */ jsx(Tooltip, { title: tip, children: /* @__PURE__ */ jsx(AlertTriangle, { size: 16, color: "#e00909" }) }) }),
|
|
98
|
+
hideAliasPrefixInHover
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
var ContractAddress = (props) => {
|
|
102
|
+
const { showIcon, verify, t, cfxAddress, isFull } = props;
|
|
103
|
+
const translations = getTranslations();
|
|
104
|
+
const isInnerContract = cfxAddress && isInnerContractAddress(cfxAddress);
|
|
105
|
+
const typeText = t(
|
|
106
|
+
isInnerContract ? translations.general.internalContract : verify ? translations.general.verifiedContract : translations.general.unverifiedContract
|
|
107
|
+
);
|
|
108
|
+
return RenderAddress({
|
|
109
|
+
...props,
|
|
110
|
+
prefix: showIcon ? /* @__PURE__ */ jsx("div", { className: `mr-[2px] flex-shrink-0 ${isFull ? "icon" : ""}`, children: /* @__PURE__ */ jsx(Tooltip, { title: typeText, children: /* @__PURE__ */ jsx("div", { className: "relative w-[16px] h-[16px]", children: isInnerContract ? /* @__PURE__ */ jsx(
|
|
111
|
+
"img",
|
|
112
|
+
{
|
|
113
|
+
className: "w-[16px] h-[16px] align-bottom mb-[5px]",
|
|
114
|
+
src: InternalContractIcon,
|
|
115
|
+
alt: typeText
|
|
116
|
+
}
|
|
117
|
+
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
118
|
+
/* @__PURE__ */ jsx(
|
|
119
|
+
"img",
|
|
120
|
+
{
|
|
121
|
+
className: "w-[16px] h-[16px] align-bottom mb-[5px]",
|
|
122
|
+
src: ContractIcon,
|
|
123
|
+
alt: typeText
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
verify ? /* @__PURE__ */ jsx(
|
|
127
|
+
"img",
|
|
128
|
+
{
|
|
129
|
+
className: "w-[8px] h-[8px] absolute bottom-[-1px] right-[1px]",
|
|
130
|
+
src: VerifiedIcon,
|
|
131
|
+
alt: ""
|
|
132
|
+
}
|
|
133
|
+
) : /* @__PURE__ */ jsx(Fragment, {})
|
|
134
|
+
] }) }) }) }) : /* @__PURE__ */ jsx(Fragment, {})
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
var MyAddress = (props) => {
|
|
138
|
+
const { isFull } = props;
|
|
139
|
+
return RenderAddress({
|
|
140
|
+
...props,
|
|
141
|
+
suffix: /* @__PURE__ */ jsx("div", { className: "mr-[2px] flex-shrink-0", children: /* @__PURE__ */ jsx(
|
|
142
|
+
"img",
|
|
143
|
+
{
|
|
144
|
+
className: "w-[38.5px] h-[16px] ml-[3px] align-bottom",
|
|
145
|
+
src: isMeIcon,
|
|
146
|
+
alt: "is me",
|
|
147
|
+
style: {
|
|
148
|
+
marginBottom: isFull ? "6px" : "4px"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
) })
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
var PosAddress = (props) => {
|
|
155
|
+
const {
|
|
156
|
+
alias,
|
|
157
|
+
isFull,
|
|
158
|
+
isFullNameTag,
|
|
159
|
+
maxWidth,
|
|
160
|
+
t,
|
|
161
|
+
link,
|
|
162
|
+
isMe,
|
|
163
|
+
hideAliasPrefixInHover
|
|
164
|
+
} = props;
|
|
165
|
+
const value = props.value;
|
|
166
|
+
if (!value) {
|
|
167
|
+
return /* @__PURE__ */ jsx(Fragment, { children: "--" });
|
|
168
|
+
}
|
|
169
|
+
if (isMe) {
|
|
170
|
+
return MyAddress(props);
|
|
171
|
+
}
|
|
172
|
+
const translations = getTranslations();
|
|
173
|
+
const content = alias ? formatString(alias, "tag") : formatString(value, "posAddress");
|
|
174
|
+
if (!isPosAddress(value)) {
|
|
175
|
+
const tip = t(translations.general.invalidPosAddress);
|
|
176
|
+
return RenderAddress({
|
|
177
|
+
cfxAddress: value,
|
|
178
|
+
alias,
|
|
179
|
+
hoverValue: `${tip}: ${value}`,
|
|
180
|
+
content,
|
|
181
|
+
link: false,
|
|
182
|
+
isFull,
|
|
183
|
+
isFullNameTag,
|
|
184
|
+
maxWidth,
|
|
185
|
+
style: { color: "#e00909" },
|
|
186
|
+
prefix: /* @__PURE__ */ jsx("div", { className: "mr-[2px] flex-shrink-0", children: /* @__PURE__ */ jsx(Tooltip, { title: tip, children: /* @__PURE__ */ jsx(AlertTriangle, { size: 16, color: "#e00909" }) }) }),
|
|
187
|
+
type: "pos",
|
|
188
|
+
hideAliasPrefixInHover
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
return RenderAddress({
|
|
192
|
+
cfxAddress: value,
|
|
193
|
+
alias,
|
|
194
|
+
link,
|
|
195
|
+
isFull,
|
|
196
|
+
isFullNameTag,
|
|
197
|
+
maxWidth,
|
|
198
|
+
type: "pos",
|
|
199
|
+
content,
|
|
200
|
+
hideAliasPrefixInHover
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export {
|
|
205
|
+
ContractCreatedAddress,
|
|
206
|
+
CoreHexAddress,
|
|
207
|
+
InvalidAddress,
|
|
208
|
+
ContractAddress,
|
|
209
|
+
MyAddress,
|
|
210
|
+
PosAddress
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=chunk-ZZDH4KPF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/AddressContainer/addressSwitcher.tsx"],"sourcesContent":["import { WithTranslation } from 'react-i18next';\nimport { AlertTriangle, File } from '@zeit-ui/react-icons';\nimport InternalContractIcon from '../../images/internal-contract-icon.png';\nimport ContractIcon from '../../images/contract-icon.png';\nimport VerifiedIcon from '../../images/verified.png';\nimport isMeIcon from '../../images/me.png';\nimport { Tooltip } from '../Tooltip';\nimport { isPosAddress } from '@cfx-kit/dapp-utils/dist/address';\nimport { formatAddress, isInnerContractAddress } from '../../utils/address';\nimport { getTranslations, getEnvConfig, useGlobalData } from '../../store';\nimport { getNetwork, formatString, coreCorrespondsToEspace } from 'src/utils';\nimport { Props } from './types';\nimport { RenderAddress } from './addressView';\n\n// common\nexport const ContractCreatedAddress = (\n props: Props & WithTranslation & { outputType: 'hex' | 'base32' },\n) => {\n const { contractCreated = '', outputType, t, isFull } = props;\n\n const translations = getTranslations();\n\n const contractAddress = formatAddress(contractCreated, outputType);\n\n const customProps = {\n content: t(translations.transaction.contractCreation),\n alias: t(translations.transaction.contractCreation),\n hrefAddress: contractAddress,\n cfxAddress: contractAddress,\n maxWidth: 160,\n };\n\n const mergedProps = { ...props, ...customProps };\n return RenderAddress({\n ...mergedProps,\n prefix: (\n <div className={`mr-[2px] flex-shrink-0 ${isFull ? 'icon' : ''}`}>\n <Tooltip title={mergedProps.content}>\n <div className=\"relative w-[16px] h-[16px]\">\n <img\n className=\"w-[16px] h-[16px] align-bottom mb-[3px]\"\n src={ContractIcon}\n alt={mergedProps.content}\n />\n </div>\n </Tooltip>\n </div>\n ),\n });\n};\n\n// core\nexport const CoreHexAddress = (props: Props & WithTranslation) => {\n const { value, t, isFull, maxWidth } = props;\n const { globalData } = useGlobalData();\n\n const ENV_CONFIG = getEnvConfig();\n const translations = getTranslations();\n const hexAddress = formatAddress(value, 'hex');\n const network = getNetwork(\n globalData?.networks,\n coreCorrespondsToEspace(ENV_CONFIG.ENV_NETWORK_ID),\n );\n const url = `${window.location.protocol}${network.url}/address/${hexAddress}`;\n\n return RenderAddress({\n cfxAddress: hexAddress,\n hoverValue: hexAddress,\n link: url,\n isFull,\n maxWidth,\n suffixSize: 0,\n prefix: (\n <div className=\"mr-[2px] flex-shrink-0\">\n <Tooltip title={t((translations as any).general.eSpaceAddress)}>\n <File size={16} color=\"#17B38A\" />\n </Tooltip>\n </div>\n ),\n });\n};\n\n// common\nexport const InvalidAddress = (props: Props & WithTranslation) => {\n const {\n value,\n alias,\n t,\n isFull,\n maxWidth,\n isFullNameTag,\n hideAliasPrefixInHover,\n } = props;\n\n const translations = getTranslations();\n\n const tip = t(translations.general.invalidAddress);\n\n return RenderAddress({\n cfxAddress: value,\n alias,\n hoverValue: `${tip}: ${value}`,\n content: alias ? formatString(alias, 'tag') : value,\n link: false,\n isFull,\n isFullNameTag,\n maxWidth,\n style: { color: '#e00909' },\n prefix: (\n <div className=\"mr-[2px] flex-shrink-0\">\n <Tooltip title={tip}>\n <AlertTriangle size={16} color=\"#e00909\" />\n </Tooltip>\n </div>\n ),\n hideAliasPrefixInHover,\n });\n};\n\n// common\nexport const ContractAddress = (props: Props & WithTranslation) => {\n const { showIcon, verify, t, cfxAddress, isFull } = props;\n\n const translations = getTranslations();\n\n const isInnerContract = cfxAddress && isInnerContractAddress(cfxAddress);\n\n const typeText = t(\n isInnerContract\n ? translations.general.internalContract\n : verify\n ? translations.general.verifiedContract\n : translations.general.unverifiedContract,\n );\n\n return RenderAddress({\n ...props,\n prefix: showIcon ? (\n <div className={`mr-[2px] flex-shrink-0 ${isFull ? 'icon' : ''}`}>\n <Tooltip title={typeText}>\n <div className=\"relative w-[16px] h-[16px]\">\n {isInnerContract ? (\n <img\n className=\"w-[16px] h-[16px] align-bottom mb-[5px]\"\n src={InternalContractIcon}\n alt={typeText}\n />\n ) : (\n <>\n <img\n className=\"w-[16px] h-[16px] align-bottom mb-[5px]\"\n src={ContractIcon}\n alt={typeText}\n />\n {verify ? (\n <img\n className=\"w-[8px] h-[8px] absolute bottom-[-1px] right-[1px]\"\n src={VerifiedIcon}\n alt={''}\n />\n ) : (\n <></>\n )}\n </>\n )}\n </div>\n </Tooltip>\n </div>\n ) : (\n <></>\n ),\n });\n};\n\n// common\nexport const MyAddress = (props: Props & WithTranslation) => {\n const { isFull } = props;\n return RenderAddress({\n ...props,\n suffix: (\n <div className=\"mr-[2px] flex-shrink-0\">\n <img\n className=\"w-[38.5px] h-[16px] ml-[3px] align-bottom\"\n src={isMeIcon}\n alt=\"is me\"\n style={{\n marginBottom: isFull ? '6px' : '4px',\n }}\n />\n </div>\n ),\n });\n};\n\n// core\nexport const PosAddress = (props: Props & WithTranslation) => {\n const {\n alias,\n isFull,\n isFullNameTag,\n maxWidth,\n t,\n link,\n isMe,\n hideAliasPrefixInHover,\n } = props;\n const value = props.value;\n if (!value) {\n return <>--</>;\n }\n if (isMe) {\n return MyAddress(props);\n }\n const translations = getTranslations();\n const content = alias\n ? formatString(alias, 'tag')\n : formatString(value, 'posAddress');\n if (!isPosAddress(value)) {\n const tip = t(translations.general.invalidPosAddress);\n return RenderAddress({\n cfxAddress: value,\n alias,\n hoverValue: `${tip}: ${value}`,\n content,\n link: false,\n isFull,\n isFullNameTag,\n maxWidth,\n style: { color: '#e00909' },\n prefix: (\n <div className=\"mr-[2px] flex-shrink-0\">\n <Tooltip title={tip}>\n <AlertTriangle size={16} color=\"#e00909\" />\n </Tooltip>\n </div>\n ),\n type: 'pos',\n hideAliasPrefixInHover,\n });\n }\n\n return RenderAddress({\n cfxAddress: value,\n alias,\n link,\n isFull,\n isFullNameTag,\n maxWidth,\n type: 'pos',\n content,\n hideAliasPrefixInHover,\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;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,MACA,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO,EAAE,OAAO,UAAU;AAAA,MAC1B,QACE,oBAAC,SAAI,WAAU,0BACb,8BAAC,WAAQ,OAAO,KACd,8BAAC,iBAAc,MAAM,IAAI,OAAM,WAAU,GAC3C,GACF;AAAA,MAEF,MAAM;AAAA,MACN;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SAAO,cAAc;AAAA,IACnB,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,EACF,CAAC;AACH;","names":[]}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CoreAddressContainer
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-YRB4D655.js";
|
|
4
4
|
import "../../chunk-5CJCDS5F.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-2S6T3LVP.js";
|
|
6
|
+
import "../../chunk-NP4YOCMX.js";
|
|
7
7
|
import "../../chunk-RTFAJGPO.js";
|
|
8
8
|
import "../../chunk-PVQ5UZ7S.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-DIAD272J.js";
|
|
10
|
+
import "../../chunk-VZNGE73T.js";
|
|
11
11
|
import "../../chunk-TOKKKTFG.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-XVA5MO4M.js";
|
|
13
13
|
import "../../chunk-LRCAKRPK.js";
|
|
14
14
|
import "../../chunk-4WJBUQY7.js";
|
|
15
15
|
import "../../chunk-7RH7LJYB.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EVMAddressContainer
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-OWG3KRZJ.js";
|
|
4
|
+
import "../../chunk-2S6T3LVP.js";
|
|
5
|
+
import "../../chunk-NP4YOCMX.js";
|
|
6
6
|
import "../../chunk-RTFAJGPO.js";
|
|
7
7
|
import "../../chunk-PVQ5UZ7S.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-DIAD272J.js";
|
|
9
|
+
import "../../chunk-VZNGE73T.js";
|
|
10
10
|
import "../../chunk-TOKKKTFG.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-XVA5MO4M.js";
|
|
12
12
|
import "../../chunk-LRCAKRPK.js";
|
|
13
13
|
import "../../chunk-4WJBUQY7.js";
|
|
14
14
|
import "../../chunk-7RH7LJYB.js";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
InvalidAddress,
|
|
6
6
|
MyAddress,
|
|
7
7
|
PosAddress
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-2S6T3LVP.js";
|
|
9
|
+
import "../../chunk-NP4YOCMX.js";
|
|
10
10
|
import "../../chunk-RTFAJGPO.js";
|
|
11
11
|
import "../../chunk-PVQ5UZ7S.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-VZNGE73T.js";
|
|
13
13
|
import "../../chunk-TOKKKTFG.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-XVA5MO4M.js";
|
|
15
15
|
import "../../chunk-LRCAKRPK.js";
|
|
16
16
|
import "../../chunk-4WJBUQY7.js";
|
|
17
17
|
import "../../chunk-7RH7LJYB.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RenderAddress
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-NP4YOCMX.js";
|
|
4
4
|
import "../../chunk-RTFAJGPO.js";
|
|
5
5
|
import "../../chunk-PVQ5UZ7S.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-VZNGE73T.js";
|
|
7
7
|
import "../../chunk-TOKKKTFG.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-XVA5MO4M.js";
|
|
9
9
|
import "../../chunk-LRCAKRPK.js";
|
|
10
10
|
import "../../chunk-4WJBUQY7.js";
|
|
11
11
|
import "../../chunk-7RH7LJYB.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLabelInfo
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-DIAD272J.js";
|
|
4
|
+
import "../../chunk-XVA5MO4M.js";
|
|
5
5
|
import "../../chunk-LRCAKRPK.js";
|
|
6
6
|
import "../../chunk-4WJBUQY7.js";
|
|
7
7
|
import "../../chunk-7RH7LJYB.js";
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/components/Highlight/index.tsx
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
-
import { useCallback, useMemo } from "react";
|
|
7
|
+
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
var ValueHighlight = ({ value, scope, children, className, ...props }) => {
|
|
10
|
+
const eventRef = useRef(false);
|
|
10
11
|
const { highlight, setHighlight } = useHighlightStore();
|
|
11
12
|
const isHighlight = useMemo(
|
|
12
13
|
() => value && highlight.scope === scope && highlight.value === value,
|
|
@@ -16,6 +17,7 @@ var ValueHighlight = ({ value, scope, children, className, ...props }) => {
|
|
|
16
17
|
(e) => {
|
|
17
18
|
if (isHighlight)
|
|
18
19
|
return;
|
|
20
|
+
eventRef.current = true;
|
|
19
21
|
const data = e.target.dataset;
|
|
20
22
|
if (!value || data?.scope === "tooltip")
|
|
21
23
|
return;
|
|
@@ -24,10 +26,18 @@ var ValueHighlight = ({ value, scope, children, className, ...props }) => {
|
|
|
24
26
|
[scope, value, isHighlight, setHighlight]
|
|
25
27
|
);
|
|
26
28
|
const handleMouseLeave = useCallback(() => {
|
|
29
|
+
eventRef.current = false;
|
|
27
30
|
if (!value)
|
|
28
31
|
return;
|
|
29
32
|
setHighlight();
|
|
30
33
|
}, [value, setHighlight]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
return () => {
|
|
36
|
+
if (eventRef.current) {
|
|
37
|
+
setHighlight();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}, [setHighlight]);
|
|
31
41
|
return /* @__PURE__ */ jsx(
|
|
32
42
|
"div",
|
|
33
43
|
{
|
|
@@ -35,7 +45,7 @@ var ValueHighlight = ({ value, scope, children, className, ...props }) => {
|
|
|
35
45
|
onMouseOver: handleMouseEnter,
|
|
36
46
|
onMouseLeave: handleMouseLeave,
|
|
37
47
|
className: clsx(
|
|
38
|
-
"border-1px border-dashed w-fit px-
|
|
48
|
+
"border-1px border-dashed w-fit px-10px rounded-12px",
|
|
39
49
|
isHighlight ? "border-[var(--theme-color-primary)] bg-[var(--theme-color-highlight-bg)]" : "border-transparent",
|
|
40
50
|
className
|
|
41
51
|
),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Highlight/index.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { useCallback, useMemo } from 'react';\nimport { useHighlightStore } from 'src/store';\n\nexport const ValueHighlight: React.FC<\n {\n value?: unknown;\n scope: string;\n } & React.HTMLAttributes<HTMLDivElement>\n> = ({ value, scope, children, className, ...props }) => {\n const { highlight, setHighlight } = useHighlightStore();\n const isHighlight = useMemo(\n () => value && highlight.scope === scope && highlight.value === value,\n [value, scope, highlight.value, highlight.scope],\n );\n const handleMouseEnter = useCallback(\n (e: React.MouseEvent<HTMLDivElement>) => {\n if (isHighlight) return;\n const data = (e.target as any).dataset;\n if (!value || data?.scope === 'tooltip') return;\n setHighlight(scope, value);\n },\n [scope, value, isHighlight, setHighlight],\n );\n const handleMouseLeave = useCallback(() => {\n if (!value) return;\n setHighlight();\n }, [value, setHighlight]);\n return (\n <div\n onMouseEnter={handleMouseEnter}\n onMouseOver={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n className={clsx(\n 'border-1px border-dashed w-fit px-
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Highlight/index.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\nimport { useHighlightStore } from 'src/store';\n\nexport const ValueHighlight: React.FC<\n {\n value?: unknown;\n scope: string;\n } & React.HTMLAttributes<HTMLDivElement>\n> = ({ value, scope, children, className, ...props }) => {\n const eventRef = useRef(false);\n const { highlight, setHighlight } = useHighlightStore();\n const isHighlight = useMemo(\n () => value && highlight.scope === scope && highlight.value === value,\n [value, scope, highlight.value, highlight.scope],\n );\n const handleMouseEnter = useCallback(\n (e: React.MouseEvent<HTMLDivElement>) => {\n if (isHighlight) return;\n eventRef.current = true;\n const data = (e.target as any).dataset;\n if (!value || data?.scope === 'tooltip') return;\n setHighlight(scope, value);\n },\n [scope, value, isHighlight, setHighlight],\n );\n const handleMouseLeave = useCallback(() => {\n eventRef.current = false;\n if (!value) return;\n setHighlight();\n }, [value, setHighlight]);\n useEffect(() => {\n return () => {\n if (eventRef.current) {\n setHighlight();\n }\n };\n }, [setHighlight]);\n return (\n <div\n onMouseEnter={handleMouseEnter}\n onMouseOver={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n className={clsx(\n 'border-1px border-dashed w-fit px-10px rounded-12px',\n isHighlight\n ? 'border-[var(--theme-color-primary)] bg-[var(--theme-color-highlight-bg)]'\n : 'border-transparent',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n};\n"],"mappings":";;;;;AAAA,OAAO,UAAU;AACjB,SAAS,aAAa,WAAW,SAAS,cAAc;AAsCpD;AAnCG,IAAM,iBAKT,CAAC,EAAE,OAAO,OAAO,UAAU,WAAW,GAAG,MAAM,MAAM;AACvD,QAAM,WAAW,OAAO,KAAK;AAC7B,QAAM,EAAE,WAAW,aAAa,IAAI,kBAAkB;AACtD,QAAM,cAAc;AAAA,IAClB,MAAM,SAAS,UAAU,UAAU,SAAS,UAAU,UAAU;AAAA,IAChE,CAAC,OAAO,OAAO,UAAU,OAAO,UAAU,KAAK;AAAA,EACjD;AACA,QAAM,mBAAmB;AAAA,IACvB,CAAC,MAAwC;AACvC,UAAI;AAAa;AACjB,eAAS,UAAU;AACnB,YAAM,OAAQ,EAAE,OAAe;AAC/B,UAAI,CAAC,SAAS,MAAM,UAAU;AAAW;AACzC,mBAAa,OAAO,KAAK;AAAA,IAC3B;AAAA,IACA,CAAC,OAAO,OAAO,aAAa,YAAY;AAAA,EAC1C;AACA,QAAM,mBAAmB,YAAY,MAAM;AACzC,aAAS,UAAU;AACnB,QAAI,CAAC;AAAO;AACZ,iBAAa;AAAA,EACf,GAAG,CAAC,OAAO,YAAY,CAAC;AACxB,YAAU,MAAM;AACd,WAAO,MAAM;AACX,UAAI,SAAS,SAAS;AACpB,qBAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF,GAAG,CAAC,YAAY,CAAC;AACjB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAc;AAAA,MACd,aAAa;AAAA,MACb,cAAc;AAAA,MACd,WAAW;AAAA,QACT;AAAA,QACA,cACI,6EACA;AAAA,QACJ;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface PhishingData {
|
|
2
|
+
key: string;
|
|
3
|
+
regex: RegExp;
|
|
4
|
+
list: {
|
|
5
|
+
address: string;
|
|
6
|
+
list: [string, string, string];
|
|
7
|
+
}[];
|
|
8
|
+
}
|
|
9
|
+
declare const formatListResponseWithPhishingInfo: <T extends Record<string, unknown>>(response: T) => T;
|
|
10
|
+
declare const PhishingAddressContainer: React.FC<React.PropsWithChildren & {
|
|
11
|
+
address?: string;
|
|
12
|
+
phishingData?: PhishingData;
|
|
13
|
+
}>;
|
|
14
|
+
|
|
15
|
+
export { PhishingAddressContainer, PhishingData, formatListResponseWithPhishingInfo };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PhishingWarningIcon
|
|
3
|
+
} from "../../chunk-3DOLNPRU.js";
|
|
4
|
+
import {
|
|
5
|
+
convertCheckSum
|
|
6
|
+
} from "../../chunk-RTFAJGPO.js";
|
|
7
|
+
import "../../chunk-PVQ5UZ7S.js";
|
|
8
|
+
import {
|
|
9
|
+
Tooltip
|
|
10
|
+
} from "../../chunk-XVA5MO4M.js";
|
|
11
|
+
import "../../chunk-LRCAKRPK.js";
|
|
12
|
+
import "../../chunk-4WJBUQY7.js";
|
|
13
|
+
import "../../chunk-7RH7LJYB.js";
|
|
14
|
+
import {
|
|
15
|
+
getTranslations
|
|
16
|
+
} from "../../chunk-DQGLZCIG.js";
|
|
17
|
+
|
|
18
|
+
// src/components/PhishingAddressContainer/index.tsx
|
|
19
|
+
import { Trans } from "react-i18next";
|
|
20
|
+
import { useMemo } from "react";
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
var formatListResponseWithPhishingInfo = (response) => {
|
|
23
|
+
if (!response || !response.phishingInfo || !response.list) {
|
|
24
|
+
return response;
|
|
25
|
+
}
|
|
26
|
+
const phishingInfo = response.phishingInfo;
|
|
27
|
+
const phishingRegex = Object.keys(phishingInfo).reduce((acc, key) => {
|
|
28
|
+
const value = phishingInfo[key] || [];
|
|
29
|
+
if (!Array.isArray(value) || value.length <= 1) {
|
|
30
|
+
return acc;
|
|
31
|
+
}
|
|
32
|
+
const [start = "", end = ""] = key.split("...");
|
|
33
|
+
const regex = new RegExp(`^(${start})(.*)(${end})$`, "i");
|
|
34
|
+
acc.push({
|
|
35
|
+
key,
|
|
36
|
+
regex,
|
|
37
|
+
list: value.map((item) => {
|
|
38
|
+
const [_, start2 = "", middle = "", end2 = ""] = convertCheckSum(item).match(regex) || [];
|
|
39
|
+
return {
|
|
40
|
+
address: item,
|
|
41
|
+
list: [start2, middle, end2]
|
|
42
|
+
};
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
return acc;
|
|
46
|
+
}, []);
|
|
47
|
+
if (phishingRegex.length === 0) {
|
|
48
|
+
return response;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
...response,
|
|
52
|
+
list: response.list.map((item) => {
|
|
53
|
+
const fromPhishingData = phishingRegex.find(
|
|
54
|
+
(p) => p.regex.test(item.from || "")
|
|
55
|
+
);
|
|
56
|
+
const toPhishingData = phishingRegex.find(
|
|
57
|
+
(p) => p.regex.test(item.to || "")
|
|
58
|
+
);
|
|
59
|
+
return {
|
|
60
|
+
...item,
|
|
61
|
+
fromPhishingData,
|
|
62
|
+
toPhishingData
|
|
63
|
+
};
|
|
64
|
+
})
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
var PhishingAddress = ({ start, end, middle }) => {
|
|
68
|
+
return /* @__PURE__ */ jsxs("span", { children: [
|
|
69
|
+
/* @__PURE__ */ jsx("span", { className: "text-#FFBB37", children: start }),
|
|
70
|
+
/* @__PURE__ */ jsx("span", { children: middle }),
|
|
71
|
+
/* @__PURE__ */ jsx("span", { className: "text-#FFBB37", children: end })
|
|
72
|
+
] });
|
|
73
|
+
};
|
|
74
|
+
var SimilarAddresses = ({ list }) => {
|
|
75
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col", children: list.map((item) => /* @__PURE__ */ jsx(
|
|
76
|
+
PhishingAddress,
|
|
77
|
+
{
|
|
78
|
+
start: item[0],
|
|
79
|
+
end: item[2],
|
|
80
|
+
middle: item[1]
|
|
81
|
+
},
|
|
82
|
+
item[1]
|
|
83
|
+
)) });
|
|
84
|
+
};
|
|
85
|
+
var PhishingTooltip = ({ phishingData, address }) => {
|
|
86
|
+
const translations = getTranslations();
|
|
87
|
+
const { list: _list, key, regex } = phishingData;
|
|
88
|
+
const { start, middle, end, list } = useMemo(() => {
|
|
89
|
+
const [_, start2 = "", middle2 = "", end2 = ""] = convertCheckSum(address).match(regex) || [];
|
|
90
|
+
return {
|
|
91
|
+
start: start2,
|
|
92
|
+
middle: middle2,
|
|
93
|
+
end: end2,
|
|
94
|
+
list: _list.filter((item) => item.address.toLowerCase() !== address.toLowerCase()).map((item) => item.list)
|
|
95
|
+
};
|
|
96
|
+
}, [address, key, _list]);
|
|
97
|
+
return /* @__PURE__ */ jsx(
|
|
98
|
+
Tooltip,
|
|
99
|
+
{
|
|
100
|
+
className: "flex items-center",
|
|
101
|
+
containerClassName: "[&.sirius-next-tooltip>[data-part=content]]:text-10px",
|
|
102
|
+
title: /* @__PURE__ */ jsxs(Trans, { i18nKey: translations.toolTip.phishingWarning, children: [
|
|
103
|
+
/* @__PURE__ */ jsx(PhishingAddress, { start, end, middle }),
|
|
104
|
+
/* @__PURE__ */ jsx(SimilarAddresses, { list })
|
|
105
|
+
] }),
|
|
106
|
+
portalled: true,
|
|
107
|
+
children: /* @__PURE__ */ jsx(PhishingWarningIcon, { className: "text-#FFBB37" })
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
var PhishingAddressContainer = ({ children, phishingData, address }) => {
|
|
112
|
+
if (address && phishingData && phishingData.list.length > 0) {
|
|
113
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
114
|
+
/* @__PURE__ */ jsx(PhishingTooltip, { phishingData, address }),
|
|
115
|
+
children
|
|
116
|
+
] });
|
|
117
|
+
}
|
|
118
|
+
return children;
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
PhishingAddressContainer,
|
|
122
|
+
formatListResponseWithPhishingInfo
|
|
123
|
+
};
|
|
124
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/PhishingAddressContainer/index.tsx"],"sourcesContent":["import { getTranslations } from 'src/store';\nimport { Tooltip } from '../Tooltip';\nimport { PhishingWarningIcon } from './PhishingWarningIcon';\nimport { Trans } from 'react-i18next';\nimport { useMemo } from 'react';\nimport { convertCheckSum } from 'src/utils/address';\n\nexport interface PhishingData {\n key: string;\n regex: RegExp;\n list: {\n address: string;\n list: [string, string, string];\n }[];\n}\n\nexport const formatListResponseWithPhishingInfo = <\n T extends Record<string, unknown>,\n>(\n response: T,\n) => {\n if (!response || !response.phishingInfo || !response.list) {\n return response;\n }\n const phishingInfo = response.phishingInfo as Record<string, string[]>;\n const phishingRegex = Object.keys(phishingInfo).reduce((acc, key) => {\n const value = phishingInfo[key] || [];\n if (!Array.isArray(value) || value.length <= 1) {\n return acc;\n }\n const [start = '', end = ''] = key.split('...');\n const regex = new RegExp(`^(${start})(.*)(${end})$`, 'i');\n acc.push({\n key,\n regex,\n list: value.map(item => {\n const [_, start = '', middle = '', end = ''] =\n convertCheckSum(item).match(regex) || [];\n return {\n address: item,\n list: [start, middle, end],\n };\n }),\n });\n return acc;\n }, [] as PhishingData[]);\n if (phishingRegex.length === 0) {\n return response;\n }\n return {\n ...response,\n list: (response.list as Record<string, unknown>[]).map(item => {\n const fromPhishingData = phishingRegex.find(p =>\n p.regex.test((item.from || '') as string),\n );\n const toPhishingData = phishingRegex.find(p =>\n p.regex.test((item.to || '') as string),\n );\n return {\n ...item,\n fromPhishingData,\n toPhishingData,\n };\n }),\n };\n};\n\nconst PhishingAddress: React.FC<{\n start: string;\n end: string;\n middle: string;\n}> = ({ start, end, middle }) => {\n return (\n <span>\n <span className=\"text-#FFBB37\">{start}</span>\n <span>{middle}</span>\n <span className=\"text-#FFBB37\">{end}</span>\n </span>\n );\n};\n\nconst SimilarAddresses: React.FC<{\n list: [string, string, string][];\n}> = ({ list }) => {\n return (\n <div className=\"flex flex-col\">\n {list.map(item => (\n <PhishingAddress\n key={item[1]}\n start={item[0]}\n end={item[2]}\n middle={item[1]}\n />\n ))}\n </div>\n );\n};\n\nconst PhishingTooltip: React.FC<{\n phishingData: PhishingData;\n address: string;\n}> = ({ phishingData, address }) => {\n const translations = getTranslations();\n const { list: _list, key, regex } = phishingData;\n const { start, middle, end, list } = useMemo(() => {\n const [_, start = '', middle = '', end = ''] =\n convertCheckSum(address).match(regex) || [];\n return {\n start,\n middle,\n end,\n list: _list\n .filter(item => item.address.toLowerCase() !== address.toLowerCase())\n .map(item => item.list),\n };\n }, [address, key, _list]);\n\n return (\n <Tooltip\n className=\"flex items-center\"\n containerClassName=\"[&.sirius-next-tooltip>[data-part=content]]:text-10px\"\n title={\n <Trans i18nKey={translations.toolTip.phishingWarning}>\n <PhishingAddress start={start} end={end} middle={middle} />\n <SimilarAddresses list={list} />\n </Trans>\n }\n portalled\n >\n <PhishingWarningIcon className=\"text-#FFBB37\" />\n </Tooltip>\n );\n};\n\nexport const PhishingAddressContainer: React.FC<\n React.PropsWithChildren & {\n address?: string;\n phishingData?: PhishingData;\n }\n> = ({ children, phishingData, address }) => {\n if (address && phishingData && phishingData.list.length > 0) {\n return (\n <div className=\"flex items-center\">\n <PhishingTooltip phishingData={phishingData} address={address} />\n {children}\n </div>\n );\n }\n return children;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAGA,SAAS,aAAa;AACtB,SAAS,eAAe;AAqEpB,SACE,KADF;AAzDG,IAAM,qCAAqC,CAGhD,aACG;AACH,MAAI,CAAC,YAAY,CAAC,SAAS,gBAAgB,CAAC,SAAS,MAAM;AACzD,WAAO;AAAA,EACT;AACA,QAAM,eAAe,SAAS;AAC9B,QAAM,gBAAgB,OAAO,KAAK,YAAY,EAAE,OAAO,CAAC,KAAK,QAAQ;AACnE,UAAM,QAAQ,aAAa,GAAG,KAAK,CAAC;AACpC,QAAI,CAAC,MAAM,QAAQ,KAAK,KAAK,MAAM,UAAU,GAAG;AAC9C,aAAO;AAAA,IACT;AACA,UAAM,CAAC,QAAQ,IA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viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0ZM8 1.54883C4.43687 1.54883 1.54883 4.43687 1.54883 8C1.54883 11.5631 4.43687 14.4512 8 14.4512C11.5631 14.4512 14.4512 11.5631 14.4512 8C14.4512 4.43687 11.5631 1.54883 8 1.54883ZM8 7.22559C8.39182 7.22559 8.71616 7.51682 8.76758 7.89453L8.77441 8V10.8906C8.77425 11.3181 8.42747 11.6641 8 11.6641C7.60806 11.6641 7.28369 11.373 7.23242 10.9951L7.22559 10.8906V8C7.22559 7.57242 7.57242 7.22559 8 7.22559ZM8.00684 4.33594C8.43431 4.33594 8.78109 4.68194 8.78125 5.10938C8.78125 5.50132 8.49019 5.82569 8.1123 5.87695L8.00684 5.88379C7.57222 5.88358 7.22559 5.53682 7.22559 5.10938C7.22574 4.71772 7.51696 4.39422 7.89453 4.34277L8.00684 4.33594Z" fill="#FFBB37"/>
|
|
3
|
+
</svg>
|