@cfxjs/sirius-next-common 0.2.16 → 0.2.18
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-SX6R4MHO.js → chunk-2WEBXRNL.js} +2 -2
- package/dist/{chunk-CNF26YY7.js → chunk-6L4ZEJQI.js} +2 -2
- package/dist/{chunk-2KXTTKRI.js → chunk-7AVQOIDM.js} +2 -2
- package/dist/{chunk-ZLNQICQZ.js → chunk-7VQL3G7K.js} +4 -4
- package/dist/{chunk-GSWIFV2B.js → chunk-AYCHKB2Y.js} +2 -2
- package/dist/{chunk-E3ZD2GGG.js → chunk-BEI5TWJL.js} +2 -2
- package/dist/{chunk-CKVDFS45.js → chunk-BHAXBHVC.js} +8 -13
- package/dist/chunk-BHAXBHVC.js.map +1 -0
- package/dist/{chunk-VJSXGYWN.js → chunk-C6CGZ6KN.js} +2 -2
- package/dist/{chunk-P4EE3QGM.js → chunk-C7OIVXE3.js} +3 -3
- package/dist/{chunk-BUSBM33B.js → chunk-CMOP3BKX.js} +3 -3
- package/dist/{chunk-6H5A42YS.js → chunk-DCQANK66.js} +2 -2
- package/dist/{chunk-OZ4OJLIM.js → chunk-DYNSSHD5.js} +7 -7
- package/dist/{chunk-OCQIWTDC.js → chunk-ELF2EOGF.js} +2 -2
- package/dist/{chunk-5M5ECKFB.js → chunk-GG7ROFBQ.js} +45 -41
- package/dist/chunk-GG7ROFBQ.js.map +1 -0
- package/dist/{chunk-YIZCD4WG.js → chunk-GHHUAWSG.js} +3 -3
- package/dist/{chunk-DF3PVTB5.js → chunk-GQRCW7WX.js} +2 -2
- package/dist/{chunk-YIXV7A4J.js → chunk-H5ZJBRIK.js} +4 -4
- package/dist/{chunk-JRB53YY7.js → chunk-K4SBN5ZT.js} +22 -18
- package/dist/chunk-K4SBN5ZT.js.map +1 -0
- package/dist/{chunk-3PXUIH3S.js → chunk-LCIBOT5P.js} +2 -2
- package/dist/chunk-MUW5KBWU.js +25 -0
- package/dist/chunk-MUW5KBWU.js.map +1 -0
- package/dist/{chunk-7OSADJ6H.js → chunk-NFPBS22O.js} +24 -9
- package/dist/chunk-NFPBS22O.js.map +1 -0
- package/dist/{chunk-CPPQCJEV.js → chunk-NM3BMITL.js} +4 -5
- package/dist/chunk-NM3BMITL.js.map +1 -0
- package/dist/{chunk-L62OTV7F.js → chunk-OT7NZ4PK.js} +3 -3
- package/dist/{chunk-EMPFZFBS.js → chunk-RUU22F7R.js} +2 -2
- package/dist/{chunk-CPR4QZT6.js → chunk-UF5BN4QN.js} +2 -2
- package/dist/{chunk-TP67325Z.js → chunk-UZALXR3J.js} +4 -4
- package/dist/{chunk-5EDEEGZK.js → chunk-VGYNHJFT.js} +16 -3
- package/dist/chunk-VGYNHJFT.js.map +1 -0
- package/dist/{chunk-A6ND7FSQ.js → chunk-W64AF7LA.js} +5 -5
- package/dist/chunk-WZIT54AU.js +51 -0
- package/dist/chunk-WZIT54AU.js.map +1 -0
- package/dist/{chunk-AYH6CLQB.js → chunk-XZL5CZFT.js} +6 -6
- package/dist/chunk-XZL5CZFT.js.map +1 -0
- package/dist/{chunk-5Y7I6VYA.js → chunk-YEAWH772.js} +2 -2
- package/dist/{chunk-5CDCNIBM.js → chunk-YKHDBNJD.js} +21 -24
- package/dist/chunk-YKHDBNJD.js.map +1 -0
- package/dist/{chunk-LVFMTP5H.js → chunk-YVV32ON3.js} +2 -2
- package/dist/components/AceEditor/index.js +4 -4
- package/dist/components/AddressContainer/CoreAddressContainer.d.ts +1 -0
- package/dist/components/AddressContainer/CoreAddressContainer.js +10 -10
- package/dist/components/AddressContainer/EVMAddressContainer.d.ts +1 -0
- package/dist/components/AddressContainer/EVMAddressContainer.js +9 -9
- package/dist/components/AddressContainer/addressSwitcher.d.ts +1 -0
- package/dist/components/AddressContainer/addressSwitcher.js +7 -7
- package/dist/components/AddressContainer/addressView.d.ts +2 -1
- package/dist/components/AddressContainer/addressView.js +6 -6
- package/dist/components/AddressContainer/label.js +45 -6
- package/dist/components/AddressContainer/label.js.map +1 -1
- package/dist/components/AddressContainer/types.d.ts +20 -23
- package/dist/components/AddressContainer/utils.d.ts +17 -2
- package/dist/components/AddressContainer/utils.js +6 -20
- package/dist/components/AddressContainer/utils.js.map +1 -1
- package/dist/components/Age/index.js +4 -4
- package/dist/components/AutoComplete/index.js +3 -3
- package/dist/components/Charts/PreviewChartTemplate.js +1 -1
- package/dist/components/Charts/StockChartTemplate.js +1 -1
- package/dist/components/CopyButton/index.js +3 -3
- package/dist/components/DecimalsSelect/index.js +3 -3
- package/dist/components/DownloadCSV/index.js +4 -4
- package/dist/components/GasPriceDropdown/index.js +2 -2
- package/dist/components/IncreasePercent/index.js +2 -2
- package/dist/components/InfoIconWithTooltip/index.js +4 -4
- package/dist/components/InputData/AddressLabel.js +8 -9
- package/dist/components/InputData/ContractDetail.js +3 -3
- package/dist/components/InputData/JsonDecode.js +5 -5
- package/dist/components/InputData/OptimizationDecode.js +10 -11
- package/dist/components/InputData/UTF8.js +3 -3
- package/dist/components/InputData/index.js +14 -15
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/NetworkIcon/index.js +2 -2
- package/dist/components/OutputData/ErrorDecode.js +13 -14
- package/dist/components/OutputData/index.js +15 -16
- package/dist/components/PhishingAddressContainer/index.js +4 -4
- package/dist/components/Popover/index.js +3 -3
- package/dist/components/Price/index.js +3 -3
- package/dist/components/ProxyContractAddress/index.d.ts +1 -1
- package/dist/components/ProxyContractAddress/index.js +24 -15
- package/dist/components/ProxyContractAddress/index.js.map +1 -1
- package/dist/components/Radio/index.js +2 -2
- package/dist/components/SearchInput/index.js +4 -4
- package/dist/components/Select/index.js +4 -4
- package/dist/components/Select/select.js +3 -3
- package/dist/components/Text/index.js +4 -4
- package/dist/components/Tooltip/index.js +3 -3
- package/dist/components/TransactionAction/coreTransactionAction.js +13 -18
- package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -1
- package/dist/components/TransactionAction/evmTransactionAction.js +12 -17
- package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -1
- package/dist/components/TransactionTrace/TraceDetail.js +23 -24
- package/dist/components/TransactionTrace/TreeTraceTable.js +24 -25
- package/dist/components/TransactionTrace/index.js +24 -25
- package/dist/utils/address.js +2 -2
- package/dist/utils/contractManagerTool.js +2 -2
- package/dist/utils/hooks/useAddressLabel.js +3 -3
- package/dist/utils/hooks/useAddressNameMap.d.ts +6 -0
- package/dist/utils/hooks/useAddressNameMap.js +12 -0
- package/dist/utils/hooks/useAddressNameMap.js.map +1 -0
- package/dist/utils/hooks/useAge.js +1 -1
- package/dist/utils/hooks/useAge.js.map +1 -1
- package/dist/utils/hooks/useAutoSetHolderFilterParams.js +2 -2
- package/dist/utils/hooks/useContractDetail.js +2 -2
- package/dist/utils/hooks/useDecodeFunctionData.js +5 -5
- package/dist/utils/hooks/useDecodeFunctionError.js +3 -3
- package/dist/utils/hooks/useENS.js +3 -3
- package/dist/utils/hooks/useEnhanceDataWithNameMap.d.ts +30 -0
- package/dist/utils/hooks/useEnhanceDataWithNameMap.js +71 -0
- package/dist/utils/hooks/useEnhanceDataWithNameMap.js.map +1 -0
- package/dist/utils/hooks/useMethodAbi.js +2 -2
- package/dist/utils/hooks/useTableData.d.ts +34 -0
- package/dist/utils/hooks/useTableData.js +95 -0
- package/dist/utils/hooks/useTableData.js.map +1 -0
- package/dist/utils/hooks/useTxTrace.d.ts +3 -40
- package/dist/utils/hooks/useTxTrace.js +5 -15
- package/dist/utils/hooks/useTxTrace.js.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/request.d.ts +7 -2
- package/dist/utils/request.js +3 -1
- package/dist/utils/request.types.d.ts +35 -1
- package/package.json +11 -11
- package/dist/chunk-5CDCNIBM.js.map +0 -1
- package/dist/chunk-5EDEEGZK.js.map +0 -1
- package/dist/chunk-5M5ECKFB.js.map +0 -1
- package/dist/chunk-7OSADJ6H.js.map +0 -1
- package/dist/chunk-AYH6CLQB.js.map +0 -1
- package/dist/chunk-CKVDFS45.js.map +0 -1
- package/dist/chunk-CPPQCJEV.js.map +0 -1
- package/dist/chunk-JRB53YY7.js.map +0 -1
- package/dist/chunk-Q2DX6IDH.js +0 -49
- package/dist/chunk-Q2DX6IDH.js.map +0 -1
- /package/dist/{chunk-SX6R4MHO.js.map → chunk-2WEBXRNL.js.map} +0 -0
- /package/dist/{chunk-CNF26YY7.js.map → chunk-6L4ZEJQI.js.map} +0 -0
- /package/dist/{chunk-2KXTTKRI.js.map → chunk-7AVQOIDM.js.map} +0 -0
- /package/dist/{chunk-ZLNQICQZ.js.map → chunk-7VQL3G7K.js.map} +0 -0
- /package/dist/{chunk-GSWIFV2B.js.map → chunk-AYCHKB2Y.js.map} +0 -0
- /package/dist/{chunk-E3ZD2GGG.js.map → chunk-BEI5TWJL.js.map} +0 -0
- /package/dist/{chunk-VJSXGYWN.js.map → chunk-C6CGZ6KN.js.map} +0 -0
- /package/dist/{chunk-P4EE3QGM.js.map → chunk-C7OIVXE3.js.map} +0 -0
- /package/dist/{chunk-BUSBM33B.js.map → chunk-CMOP3BKX.js.map} +0 -0
- /package/dist/{chunk-6H5A42YS.js.map → chunk-DCQANK66.js.map} +0 -0
- /package/dist/{chunk-OZ4OJLIM.js.map → chunk-DYNSSHD5.js.map} +0 -0
- /package/dist/{chunk-OCQIWTDC.js.map → chunk-ELF2EOGF.js.map} +0 -0
- /package/dist/{chunk-YIZCD4WG.js.map → chunk-GHHUAWSG.js.map} +0 -0
- /package/dist/{chunk-DF3PVTB5.js.map → chunk-GQRCW7WX.js.map} +0 -0
- /package/dist/{chunk-YIXV7A4J.js.map → chunk-H5ZJBRIK.js.map} +0 -0
- /package/dist/{chunk-3PXUIH3S.js.map → chunk-LCIBOT5P.js.map} +0 -0
- /package/dist/{chunk-L62OTV7F.js.map → chunk-OT7NZ4PK.js.map} +0 -0
- /package/dist/{chunk-EMPFZFBS.js.map → chunk-RUU22F7R.js.map} +0 -0
- /package/dist/{chunk-CPR4QZT6.js.map → chunk-UF5BN4QN.js.map} +0 -0
- /package/dist/{chunk-TP67325Z.js.map → chunk-UZALXR3J.js.map} +0 -0
- /package/dist/{chunk-A6ND7FSQ.js.map → chunk-W64AF7LA.js.map} +0 -0
- /package/dist/{chunk-5Y7I6VYA.js.map → chunk-YEAWH772.js.map} +0 -0
- /package/dist/{chunk-LVFMTP5H.js.map → chunk-YVV32ON3.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-MWAD4CIG.js";
|
|
7
7
|
import {
|
|
8
8
|
formatAddress
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6L4ZEJQI.js";
|
|
10
10
|
|
|
11
11
|
// src/components/InputData/ContractDetail.tsx
|
|
12
12
|
import clsx from "clsx";
|
|
@@ -81,4 +81,4 @@ export {
|
|
|
81
81
|
formatContractAndTokenInfoMap,
|
|
82
82
|
ContractDetail
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=chunk-
|
|
84
|
+
//# sourceMappingURL=chunk-2WEBXRNL.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WIB76E7O.js";
|
|
4
4
|
import {
|
|
5
5
|
detectAccountType
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VGYNHJFT.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/address.ts
|
|
9
9
|
import SDK from "js-conflux-sdk";
|
|
@@ -281,4 +281,4 @@ export {
|
|
|
281
281
|
formatAddressHexToBase32,
|
|
282
282
|
isAddressEqual
|
|
283
283
|
};
|
|
284
|
-
//# sourceMappingURL=chunk-
|
|
284
|
+
//# sourceMappingURL=chunk-6L4ZEJQI.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-6SXAFSBF.js";
|
|
4
4
|
import {
|
|
5
5
|
useContractDetail
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LCIBOT5P.js";
|
|
7
7
|
import {
|
|
8
8
|
CommonError_default
|
|
9
9
|
} from "./chunk-5TGK2EA2.js";
|
|
@@ -125,4 +125,4 @@ var useDecodeFunctionError = ({
|
|
|
125
125
|
export {
|
|
126
126
|
useDecodeFunctionError
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-7AVQOIDM.js.map
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-OYESIV3F.js";
|
|
4
4
|
import {
|
|
5
5
|
JsonDecode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OT7NZ4PK.js";
|
|
7
7
|
import {
|
|
8
8
|
OptimizationDecode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DYNSSHD5.js";
|
|
10
10
|
import {
|
|
11
11
|
Original
|
|
12
12
|
} from "./chunk-YBQQ72FQ.js";
|
|
13
13
|
import {
|
|
14
14
|
UTF8
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UF5BN4QN.js";
|
|
16
16
|
|
|
17
17
|
// src/components/InputData/index.tsx
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -63,4 +63,4 @@ var InputData = ({
|
|
|
63
63
|
export {
|
|
64
64
|
InputData
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=chunk-
|
|
66
|
+
//# sourceMappingURL=chunk-7VQL3G7K.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-XCKMXAL2.js";
|
|
4
4
|
import {
|
|
5
5
|
cn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NM3BMITL.js";
|
|
7
7
|
|
|
8
8
|
// src/components/Modal/index.tsx
|
|
9
9
|
import { useEffect, useCallback, useMemo } from "react";
|
|
@@ -137,4 +137,4 @@ var Modal = ({
|
|
|
137
137
|
export {
|
|
138
138
|
Modal
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-AYCHKB2Y.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reqAbiByMethodId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VGYNHJFT.js";
|
|
4
4
|
|
|
5
5
|
// src/utils/hooks/useMethodAbi.ts
|
|
6
6
|
import useSWRImmutable from "swr/immutable";
|
|
@@ -14,4 +14,4 @@ var useMethodAbi = (methodId, shouldFetch = true) => {
|
|
|
14
14
|
export {
|
|
15
15
|
useMethodAbi
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-BEI5TWJL.js.map
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAddressLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DCQANK66.js";
|
|
4
4
|
import {
|
|
5
5
|
useENS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CMOP3BKX.js";
|
|
7
7
|
import {
|
|
8
8
|
Text
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
getLabelInfo
|
|
12
|
-
} from "./chunk-Q2DX6IDH.js";
|
|
9
|
+
} from "./chunk-C7OIVXE3.js";
|
|
13
10
|
import {
|
|
14
11
|
getTranslations
|
|
15
12
|
} from "./chunk-DQGLZCIG.js";
|
|
@@ -17,8 +14,9 @@ import {
|
|
|
17
14
|
// src/components/InputData/AddressLabel.tsx
|
|
18
15
|
import { Bookmark } from "@zeit-ui/react-icons";
|
|
19
16
|
import { useTranslation } from "react-i18next";
|
|
20
|
-
import
|
|
17
|
+
import ICON_ENS from "./logo-cns-7CXISC6I.svg";
|
|
21
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var ENSIcon = () => /* @__PURE__ */ jsx("img", { src: ICON_ENS, className: "w-[16px] h-[16px] mb-[3px] mr-[2px]", alt: "" });
|
|
22
20
|
var AddressLabel = ({
|
|
23
21
|
address,
|
|
24
22
|
space
|
|
@@ -27,16 +25,13 @@ var AddressLabel = ({
|
|
|
27
25
|
const { ens } = useENS(space === "core" ? address : null);
|
|
28
26
|
const { t } = useTranslation();
|
|
29
27
|
const addressLabel = useAddressLabel(address);
|
|
30
|
-
const
|
|
31
|
-
() => getLabelInfo(ens[address]?.name ?? "", "ens"),
|
|
32
|
-
[address, ens]
|
|
33
|
-
);
|
|
28
|
+
const label = ens[address]?.name ?? "";
|
|
34
29
|
const addressLabelIcon = /* @__PURE__ */ jsx(Text, { tag: "span", hoverValue: t(translations.profile.tip.label), children: /* @__PURE__ */ jsx(Bookmark, { color: "var(--theme-color-gray2)", size: 16 }) });
|
|
35
30
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
31
|
label && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
32
|
" ",
|
|
38
33
|
"(",
|
|
39
|
-
|
|
34
|
+
/* @__PURE__ */ jsx(ENSIcon, {}),
|
|
40
35
|
label,
|
|
41
36
|
")"
|
|
42
37
|
] }),
|
|
@@ -53,4 +48,4 @@ var AddressLabel = ({
|
|
|
53
48
|
export {
|
|
54
49
|
AddressLabel
|
|
55
50
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-BHAXBHVC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/InputData/AddressLabel.tsx"],"sourcesContent":["import { Bookmark } from '@zeit-ui/react-icons';\nimport { useTranslation } from 'react-i18next';\nimport { Text } from '../Text';\nimport { getTranslations } from 'src/store';\nimport { useENS } from 'src/utils/hooks/useENS';\nimport { useAddressLabel } from 'src/utils/hooks/useAddressLabel';\nimport ICON_ENS from '../../images/logo-cns.svg';\n\nconst ENSIcon = () => (\n <img src={ICON_ENS} className=\"w-[16px] h-[16px] mb-[3px] mr-[2px]\" alt=\"\" />\n);\n\nexport const AddressLabel = ({\n address,\n space,\n}: {\n address: string;\n space: 'evm' | 'core';\n}) => {\n const translations = getTranslations();\n // ENS is only for core space, and we don't want to request ENS info for evm space to avoid unnecessary requests\n const { ens } = useENS(space === 'core' ? address : null);\n const { t } = useTranslation();\n\n const addressLabel = useAddressLabel(address);\n\n const label = ens[address]?.name ?? '';\n\n const addressLabelIcon = (\n <Text tag=\"span\" hoverValue={t(translations.profile.tip.label)}>\n <Bookmark color=\"var(--theme-color-gray2)\" size={16} />\n </Text>\n );\n\n return (\n <>\n {label && (\n <>\n {' '}\n (<ENSIcon />\n {label})\n </>\n )}\n {addressLabel && (\n <>\n {' '}\n ({addressLabelIcon}\n {addressLabel})\n </>\n )}\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AAK/B,OAAO,cAAc;AAGnB,SA4BM,UA5BN,KA4BM,YA5BN;AADF,IAAM,UAAU,MACd,oBAAC,SAAI,KAAK,UAAU,WAAU,uCAAsC,KAAI,IAAG;AAGtE,IAAM,eAAe,CAAC;AAAA,EAC3B;AAAA,EACA;AACF,MAGM;AACJ,QAAM,eAAe,gBAAgB;AAErC,QAAM,EAAE,IAAI,IAAI,OAAO,UAAU,SAAS,UAAU,IAAI;AACxD,QAAM,EAAE,EAAE,IAAI,eAAe;AAE7B,QAAM,eAAe,gBAAgB,OAAO;AAE5C,QAAM,QAAQ,IAAI,OAAO,GAAG,QAAQ;AAEpC,QAAM,mBACJ,oBAAC,QAAK,KAAI,QAAO,YAAY,EAAE,aAAa,QAAQ,IAAI,KAAK,GAC3D,8BAAC,YAAS,OAAM,4BAA2B,MAAM,IAAI,GACvD;AAGF,SACE,iCACG;AAAA,aACC,iCACG;AAAA;AAAA,MAAI;AAAA,MACJ,oBAAC,WAAQ;AAAA,MACT;AAAA,MAAM;AAAA,OACT;AAAA,IAED,gBACC,iCACG;AAAA;AAAA,MAAI;AAAA,MACH;AAAA,MACD;AAAA,MAAa;AAAA,OAChB;AAAA,KAEJ;AAEJ;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TraceDetail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W64AF7LA.js";
|
|
4
4
|
import {
|
|
5
5
|
Table
|
|
6
6
|
} from "./chunk-XZ7IV2FF.js";
|
|
@@ -79,4 +79,4 @@ var TreeTraceTable = ({
|
|
|
79
79
|
export {
|
|
80
80
|
TreeTraceTable
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-C6CGZ6KN.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-TOKKKTFG.js";
|
|
4
4
|
import {
|
|
5
5
|
Tooltip
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQRCW7WX.js";
|
|
7
7
|
import {
|
|
8
8
|
selectText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NM3BMITL.js";
|
|
10
10
|
|
|
11
11
|
// src/components/Text/index.tsx
|
|
12
12
|
import React from "react";
|
|
@@ -102,4 +102,4 @@ var Text = React.memo(
|
|
|
102
102
|
export {
|
|
103
103
|
Text
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-C7OIVXE3.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isCoreMainOrTestAddress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6L4ZEJQI.js";
|
|
4
4
|
import {
|
|
5
5
|
apiPrefix
|
|
6
6
|
} from "./chunk-WIB76E7O.js";
|
|
7
7
|
import {
|
|
8
8
|
sendRequestENSInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VGYNHJFT.js";
|
|
10
10
|
import {
|
|
11
11
|
useENSStore
|
|
12
12
|
} from "./chunk-DQGLZCIG.js";
|
|
@@ -60,4 +60,4 @@ var useENS = (address) => {
|
|
|
60
60
|
export {
|
|
61
61
|
useENS
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-CMOP3BKX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertCheckSum
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6L4ZEJQI.js";
|
|
4
4
|
import {
|
|
5
5
|
useGlobalData
|
|
6
6
|
} from "./chunk-DQGLZCIG.js";
|
|
@@ -20,4 +20,4 @@ var useAddressLabel = (address, showAddressLabel = true) => {
|
|
|
20
20
|
export {
|
|
21
21
|
useAddressLabel
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-DCQANK66.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContractDetail,
|
|
3
3
|
formatContractAndTokenInfoMap
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2WEBXRNL.js";
|
|
5
5
|
import {
|
|
6
6
|
FunctionName,
|
|
7
7
|
getParameterType
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
} from "./chunk-SFCNLOQ5.js";
|
|
12
12
|
import {
|
|
13
13
|
AddressLabel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BHAXBHVC.js";
|
|
15
15
|
import {
|
|
16
16
|
Link
|
|
17
17
|
} from "./chunk-2Y57U43P.js";
|
|
18
18
|
import {
|
|
19
19
|
convertCheckSum
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6L4ZEJQI.js";
|
|
21
21
|
import {
|
|
22
22
|
Text
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-C7OIVXE3.js";
|
|
24
24
|
import {
|
|
25
25
|
cn
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NM3BMITL.js";
|
|
27
27
|
import {
|
|
28
28
|
reqContractAndToken
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VGYNHJFT.js";
|
|
30
30
|
|
|
31
31
|
// src/components/InputData/OptimizationDecode.tsx
|
|
32
32
|
import { useEffect, useMemo, useState } from "react";
|
|
@@ -181,4 +181,4 @@ export {
|
|
|
181
181
|
DecodedParameters,
|
|
182
182
|
OptimizationDecode
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=chunk-
|
|
184
|
+
//# sourceMappingURL=chunk-DYNSSHD5.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-65X53DMW.js";
|
|
4
4
|
import {
|
|
5
5
|
Tooltip
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GQRCW7WX.js";
|
|
7
7
|
|
|
8
8
|
// src/components/InfoIconWithTooltip/index.tsx
|
|
9
9
|
import clsx from "clsx";
|
|
@@ -23,4 +23,4 @@ var InfoIconWithTooltip = ({
|
|
|
23
23
|
export {
|
|
24
24
|
InfoIconWithTooltip
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
26
|
+
//# sourceMappingURL=chunk-ELF2EOGF.js.map
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useENS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CMOP3BKX.js";
|
|
4
|
+
import {
|
|
5
|
+
getAddressNameInfo
|
|
6
|
+
} from "./chunk-WZIT54AU.js";
|
|
4
7
|
import {
|
|
5
8
|
ContractAddress,
|
|
6
9
|
ContractCreatedAddress,
|
|
@@ -8,19 +11,16 @@ import {
|
|
|
8
11
|
InvalidAddress,
|
|
9
12
|
MyAddress,
|
|
10
13
|
PosAddress
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K4SBN5ZT.js";
|
|
12
15
|
import {
|
|
13
16
|
RenderAddress
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NFPBS22O.js";
|
|
15
18
|
import {
|
|
16
19
|
formatAddress,
|
|
17
20
|
isCoreAddress,
|
|
18
21
|
isCoreContractAddress,
|
|
19
22
|
isZeroAddress
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
getLabelInfo
|
|
23
|
-
} from "./chunk-Q2DX6IDH.js";
|
|
23
|
+
} from "./chunk-6L4ZEJQI.js";
|
|
24
24
|
import {
|
|
25
25
|
getTranslations,
|
|
26
26
|
useGlobalData
|
|
@@ -30,68 +30,71 @@ import {
|
|
|
30
30
|
import { memo } from "react";
|
|
31
31
|
import { withTranslation } from "react-i18next";
|
|
32
32
|
import _ from "lodash";
|
|
33
|
+
import ICON_ENS from "./logo-cns-7CXISC6I.svg";
|
|
33
34
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
34
35
|
var parseProps = (props, globalData) => {
|
|
35
36
|
const {
|
|
36
|
-
alias,
|
|
37
|
-
ensInfo,
|
|
38
37
|
t,
|
|
39
38
|
showAddressLabel,
|
|
40
39
|
showNametag,
|
|
41
|
-
|
|
42
|
-
showENSLabel
|
|
40
|
+
nametag,
|
|
41
|
+
showENSLabel,
|
|
42
|
+
ensName,
|
|
43
|
+
nameMap,
|
|
44
|
+
cfxAddress
|
|
43
45
|
} = props;
|
|
44
|
-
const value = props.value || "";
|
|
45
|
-
const cfxAddress = formatAddress(value, "base32");
|
|
46
|
-
let ENSMap = ensInfo || {};
|
|
47
46
|
const translations = getTranslations();
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
const nameInfo = getAddressNameInfo(cfxAddress, nameMap);
|
|
48
|
+
let innerName = props.innerName;
|
|
49
|
+
if (!innerName && isZeroAddress(cfxAddress)) {
|
|
50
|
+
innerName = t(translations.general.zeroAddress);
|
|
51
51
|
}
|
|
52
|
-
let ENSIcon = null;
|
|
53
|
-
let officalNametag = null;
|
|
54
52
|
let addressLabel = null;
|
|
53
|
+
let officalNametag = null;
|
|
55
54
|
let ENSLabel = null;
|
|
56
|
-
|
|
55
|
+
let ENSIcon = null;
|
|
57
56
|
if (cfxAddress && showAddressLabel) {
|
|
58
57
|
const addressLabels = globalData?.["CONFLUX_SCAN_ADDRESS_LABELS" /* addressLabel */];
|
|
59
|
-
|
|
60
|
-
if (gAddressLabel) {
|
|
61
|
-
const { label } = getLabelInfo(gAddressLabel, "tag");
|
|
62
|
-
addressLabel = label;
|
|
63
|
-
}
|
|
58
|
+
addressLabel = addressLabels?.[cfxAddress];
|
|
64
59
|
}
|
|
65
60
|
if (cfxAddress && showNametag) {
|
|
66
|
-
|
|
67
|
-
if (nametags) {
|
|
68
|
-
const nametag = nametags?.nametag ?? "";
|
|
69
|
-
const { label } = getLabelInfo(nametag, "nametag");
|
|
70
|
-
officalNametag = label;
|
|
71
|
-
}
|
|
61
|
+
officalNametag = nametag || nameInfo?.nametag;
|
|
72
62
|
}
|
|
73
|
-
if (showENSLabel &&
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
63
|
+
if (showENSLabel && ensName) {
|
|
64
|
+
ENSLabel = ensName;
|
|
65
|
+
ENSIcon = /* @__PURE__ */ jsx(
|
|
66
|
+
"img",
|
|
67
|
+
{
|
|
68
|
+
src: ICON_ENS,
|
|
69
|
+
className: "w-[16px] h-[16px] mb-[3px] mr-[2px]",
|
|
70
|
+
alt: ""
|
|
71
|
+
}
|
|
72
|
+
);
|
|
77
73
|
}
|
|
78
74
|
return {
|
|
79
|
-
|
|
80
|
-
ENSIcon,
|
|
75
|
+
innerName,
|
|
81
76
|
nametag: officalNametag,
|
|
82
77
|
addressLabel,
|
|
83
78
|
ENSLabel,
|
|
84
|
-
|
|
79
|
+
ENSIcon,
|
|
80
|
+
cfxAddress,
|
|
81
|
+
tokenName: props.tokenName || nameInfo?.tokenName,
|
|
82
|
+
contractName: props.contractName || nameInfo?.contractName,
|
|
83
|
+
verificationName: props.verificationName || nameInfo?.verificationName,
|
|
84
|
+
verify: props.verify || nameInfo?.verify,
|
|
85
|
+
ensName: props.ensName || nameInfo?.ensName,
|
|
86
|
+
isEspaceAddress: props.isEspaceAddress || nameInfo?.isEspaceAddress
|
|
85
87
|
};
|
|
86
88
|
};
|
|
87
89
|
var CoreAddressContainer = withTranslation()(
|
|
88
90
|
memo((props) => {
|
|
89
91
|
const { globalData } = useGlobalData();
|
|
90
|
-
const unnecessaryEns = props.
|
|
92
|
+
const unnecessaryEns = !!props.ensName || props.showENSLabel === false;
|
|
91
93
|
const { ens } = useENS(unnecessaryEns ? null : props.value);
|
|
92
94
|
if (!props.value && !props.contractCreated) {
|
|
93
95
|
return /* @__PURE__ */ jsx(Fragment, { children: "--" });
|
|
94
96
|
}
|
|
97
|
+
const cfxAddress = formatAddress(props.value, "base32");
|
|
95
98
|
const defaultProps = {
|
|
96
99
|
isFull: false,
|
|
97
100
|
isFullNameTag: false,
|
|
@@ -102,7 +105,8 @@ var CoreAddressContainer = withTranslation()(
|
|
|
102
105
|
showAddressLabel: true,
|
|
103
106
|
showENSLabel: true,
|
|
104
107
|
showNametag: true,
|
|
105
|
-
|
|
108
|
+
cfxAddress,
|
|
109
|
+
ensName: ens ? ens[cfxAddress]?.name : void 0
|
|
106
110
|
};
|
|
107
111
|
const mergeDefaultProps = _.assign({}, defaultProps, props);
|
|
108
112
|
const mergeParseProps = _.merge(
|
|
@@ -138,4 +142,4 @@ var CoreAddressContainer = withTranslation()(
|
|
|
138
142
|
export {
|
|
139
143
|
CoreAddressContainer
|
|
140
144
|
};
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
145
|
+
//# sourceMappingURL=chunk-GG7ROFBQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/AddressContainer/CoreAddressContainer.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { WithTranslation, withTranslation } from 'react-i18next';\nimport _ from 'lodash';\nimport {\n formatAddress,\n isCoreAddress,\n isCoreContractAddress,\n isZeroAddress,\n} from '../../utils/address';\nimport { useGlobalData, getTranslations } from '../../store';\nimport { LOCALSTORAGE_KEYS_MAP } from '../../utils/constants';\nimport { useENS } from '../../utils/hooks/useENS';\n\nimport { RenderAddress } from './addressView';\nimport {\n ContractCreatedAddress,\n CoreHexAddress,\n InvalidAddress,\n ContractAddress,\n MyAddress,\n PosAddress,\n} from './addressSwitcher';\nimport { GlobalDataType } from 'src/store/types';\nimport { CoreAddressContainerProps } from './types';\nimport ICON_ENS from '../../images/logo-cns.svg';\nimport { getAddressNameInfo } from './utils';\n\nconst parseProps = (\n props: CoreAddressContainerProps & WithTranslation,\n globalData: GlobalDataType,\n) => {\n const {\n t,\n showAddressLabel,\n showNametag,\n nametag,\n showENSLabel,\n ensName,\n nameMap,\n cfxAddress,\n } = props;\n\n const translations = getTranslations();\n\n const nameInfo = getAddressNameInfo(cfxAddress, nameMap);\n\n let innerName = props.innerName;\n if (!innerName && isZeroAddress(cfxAddress)) {\n innerName = t(translations.general.zeroAddress);\n }\n\n // private name tag\n let addressLabel: React.ReactNode = null;\n // official name tag\n let officalNametag: React.ReactNode = null;\n // ens name tag\n let ENSLabel: React.ReactNode = null;\n let ENSIcon: React.ReactNode = null;\n\n if (cfxAddress && showAddressLabel) {\n // global private name tag\n const addressLabels = globalData?.[LOCALSTORAGE_KEYS_MAP.addressLabel];\n addressLabel = addressLabels?.[cfxAddress];\n }\n\n if (cfxAddress && showNametag) {\n officalNametag = nametag || nameInfo?.nametag;\n }\n\n if (showENSLabel && ensName) {\n ENSLabel = ensName;\n ENSIcon = (\n <img\n src={ICON_ENS}\n className=\"w-[16px] h-[16px] mb-[3px] mr-[2px]\"\n alt=\"\"\n />\n );\n }\n\n return {\n innerName,\n nametag: officalNametag,\n addressLabel,\n ENSLabel,\n ENSIcon: ENSIcon,\n cfxAddress,\n tokenName: props.tokenName || nameInfo?.tokenName,\n contractName: props.contractName || nameInfo?.contractName,\n verificationName: props.verificationName || nameInfo?.verificationName,\n verify: props.verify || nameInfo?.verify,\n ensName: props.ensName || nameInfo?.ensName,\n isEspaceAddress: props.isEspaceAddress || nameInfo?.isEspaceAddress,\n };\n};\n\nexport const CoreAddressContainer = withTranslation()(\n memo((props: CoreAddressContainerProps & WithTranslation) => {\n const { globalData } = useGlobalData();\n\n // If the interface returns Ens content, there is no need to obtain it separately, or disable the display of Ens content (in most cases on the list page).\n const unnecessaryEns = !!props.ensName || props.showENSLabel === false;\n const { ens } = useENS(unnecessaryEns ? null : props.value);\n\n // If a txn receipt has no 'to' address or 'contractCreated', show -- for temp\n if (!props.value && !props.contractCreated) {\n return <>--</>;\n }\n const cfxAddress = formatAddress(props.value, 'base32');\n\n const defaultProps = {\n isFull: false,\n isFullNameTag: false,\n link: true,\n isMe: false,\n showIcon: true,\n verify: false,\n showAddressLabel: true,\n showENSLabel: true,\n showNametag: true,\n cfxAddress,\n ensName: ens ? ens[cfxAddress]?.name : undefined,\n };\n\n const mergeDefaultProps = _.assign({}, defaultProps, props);\n\n const mergeParseProps = _.merge(\n {},\n mergeDefaultProps,\n parseProps(mergeDefaultProps, globalData),\n );\n\n if (mergeParseProps.isPosAddress) {\n return PosAddress(mergeParseProps);\n }\n\n if (!mergeParseProps.value && mergeParseProps.contractCreated) {\n return ContractCreatedAddress({\n ...mergeParseProps,\n outputType: 'base32',\n });\n }\n\n if (mergeParseProps.isEspaceAddress) {\n return CoreHexAddress(mergeParseProps);\n }\n\n if (!isCoreAddress(mergeParseProps.value)) {\n return InvalidAddress(mergeParseProps);\n }\n\n if (isCoreContractAddress(mergeParseProps.cfxAddress)) {\n return ContractAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isMe) {\n return MyAddress(mergeParseProps);\n }\n\n return RenderAddress(mergeParseProps);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAA0B,uBAAuB;AACjD,OAAO,OAAO;AAsBd,OAAO,cAAc;AAgDf,SAkCO,UAlCP;AA7CN,IAAM,aAAa,CACjB,OACA,eACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,eAAe,gBAAgB;AAErC,QAAM,WAAW,mBAAmB,YAAY,OAAO;AAEvD,MAAI,YAAY,MAAM;AACtB,MAAI,CAAC,aAAa,cAAc,UAAU,GAAG;AAC3C,gBAAY,EAAE,aAAa,QAAQ,WAAW;AAAA,EAChD;AAGA,MAAI,eAAgC;AAEpC,MAAI,iBAAkC;AAEtC,MAAI,WAA4B;AAChC,MAAI,UAA2B;AAE/B,MAAI,cAAc,kBAAkB;AAElC,UAAM,gBAAgB,6DAA+C;AACrE,mBAAe,gBAAgB,UAAU;AAAA,EAC3C;AAEA,MAAI,cAAc,aAAa;AAC7B,qBAAiB,WAAW,UAAU;AAAA,EACxC;AAEA,MAAI,gBAAgB,SAAS;AAC3B,eAAW;AACX,cACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,WAAU;AAAA,QACV,KAAI;AAAA;AAAA,IACN;AAAA,EAEJ;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,MAAM,aAAa,UAAU;AAAA,IACxC,cAAc,MAAM,gBAAgB,UAAU;AAAA,IAC9C,kBAAkB,MAAM,oBAAoB,UAAU;AAAA,IACtD,QAAQ,MAAM,UAAU,UAAU;AAAA,IAClC,SAAS,MAAM,WAAW,UAAU;AAAA,IACpC,iBAAiB,MAAM,mBAAmB,UAAU;AAAA,EACtD;AACF;AAEO,IAAM,uBAAuB,gBAAgB;AAAA,EAClD,KAAK,CAAC,UAAuD;AAC3D,UAAM,EAAE,WAAW,IAAI,cAAc;AAGrC,UAAM,iBAAiB,CAAC,CAAC,MAAM,WAAW,MAAM,iBAAiB;AACjE,UAAM,EAAE,IAAI,IAAI,OAAO,iBAAiB,OAAO,MAAM,KAAK;AAG1D,QAAI,CAAC,MAAM,SAAS,CAAC,MAAM,iBAAiB;AAC1C,aAAO,gCAAE,gBAAE;AAAA,IACb;AACA,UAAM,aAAa,cAAc,MAAM,OAAO,QAAQ;AAEtD,UAAM,eAAe;AAAA,MACnB,QAAQ;AAAA,MACR,eAAe;AAAA,MACf,MAAM;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,kBAAkB;AAAA,MAClB,cAAc;AAAA,MACd,aAAa;AAAA,MACb;AAAA,MACA,SAAS,MAAM,IAAI,UAAU,GAAG,OAAO;AAAA,IACzC;AAEA,UAAM,oBAAoB,EAAE,OAAO,CAAC,GAAG,cAAc,KAAK;AAE1D,UAAM,kBAAkB,EAAE;AAAA,MACxB,CAAC;AAAA,MACD;AAAA,MACA,WAAW,mBAAmB,UAAU;AAAA,IAC1C;AAEA,QAAI,gBAAgB,cAAc;AAChC,aAAO,WAAW,eAAe;AAAA,IACnC;AAEA,QAAI,CAAC,gBAAgB,SAAS,gBAAgB,iBAAiB;AAC7D,aAAO,uBAAuB;AAAA,QAC5B,GAAG;AAAA,QACH,YAAY;AAAA,MACd,CAAC;AAAA,IACH;AAEA,QAAI,gBAAgB,iBAAiB;AACnC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,CAAC,cAAc,gBAAgB,KAAK,GAAG;AACzC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,sBAAsB,gBAAgB,UAAU,GAAG;AACrD,aAAO,gBAAgB,eAAe;AAAA,IACxC;AAEA,QAAI,gBAAgB,MAAM;AACxB,aAAO,UAAU,eAAe;AAAA,IAClC;AAEA,WAAO,cAAc,eAAe;AAAA,EACtC,CAAC;AACH;","names":[]}
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
SelectItem,
|
|
6
6
|
SelectTrigger,
|
|
7
7
|
SelectValue
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RUU22F7R.js";
|
|
9
9
|
import {
|
|
10
10
|
cn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NM3BMITL.js";
|
|
12
12
|
|
|
13
13
|
// src/components/Select/index.tsx
|
|
14
14
|
import React, { useMemo, useState, useEffect } from "react";
|
|
@@ -104,4 +104,4 @@ Select2.Option = Option;
|
|
|
104
104
|
export {
|
|
105
105
|
Select2 as Select
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-GHHUAWSG.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-BMO4IZHV.js";
|
|
24
24
|
import {
|
|
25
25
|
cn
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NM3BMITL.js";
|
|
27
27
|
|
|
28
28
|
// src/components/Tooltip/index.tsx
|
|
29
29
|
import {
|
|
@@ -531,4 +531,4 @@ var Tooltip2 = ({
|
|
|
531
531
|
export {
|
|
532
532
|
Tooltip2 as Tooltip
|
|
533
533
|
};
|
|
534
|
-
//# sourceMappingURL=chunk-
|
|
534
|
+
//# sourceMappingURL=chunk-GQRCW7WX.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDecodeFunctionError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7AVQOIDM.js";
|
|
4
4
|
import {
|
|
5
5
|
DecodedParameters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DYNSSHD5.js";
|
|
7
7
|
import {
|
|
8
8
|
FunctionName
|
|
9
9
|
} from "./chunk-FYLAXC3R.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-XBEBAU77.js";
|
|
16
16
|
import {
|
|
17
17
|
cn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NM3BMITL.js";
|
|
19
19
|
|
|
20
20
|
// src/components/OutputData/ErrorDecode.tsx
|
|
21
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -87,4 +87,4 @@ var ErrorDecode = ({
|
|
|
87
87
|
export {
|
|
88
88
|
ErrorDecode
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-H5ZJBRIK.js.map
|
|
@@ -3,19 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-MWAD4CIG.js";
|
|
4
4
|
import {
|
|
5
5
|
RenderAddress
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NFPBS22O.js";
|
|
7
7
|
import {
|
|
8
8
|
formatAddress,
|
|
9
9
|
isInnerContractAddress
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6L4ZEJQI.js";
|
|
11
11
|
import {
|
|
12
12
|
Tooltip
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GQRCW7WX.js";
|
|
14
14
|
import {
|
|
15
15
|
coreCorrespondsToEspace,
|
|
16
|
-
formatString,
|
|
17
16
|
getNetwork
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NM3BMITL.js";
|
|
19
18
|
import {
|
|
20
19
|
getEnvConfig,
|
|
21
20
|
getTranslations,
|
|
@@ -35,8 +34,7 @@ var ContractCreatedAddress = (props) => {
|
|
|
35
34
|
const translations = getTranslations();
|
|
36
35
|
const contractAddress = formatAddress(contractCreated, outputType);
|
|
37
36
|
const customProps = {
|
|
38
|
-
|
|
39
|
-
alias: t(translations.transaction.contractCreation),
|
|
37
|
+
contractName: t(translations.transaction.contractCreation),
|
|
40
38
|
hrefAddress: contractAddress,
|
|
41
39
|
cfxAddress: contractAddress,
|
|
42
40
|
maxWidth: 160
|
|
@@ -44,7 +42,7 @@ var ContractCreatedAddress = (props) => {
|
|
|
44
42
|
const mergedProps = { ...props, ...customProps };
|
|
45
43
|
return RenderAddress({
|
|
46
44
|
...mergedProps,
|
|
47
|
-
prefix: /* @__PURE__ */ jsx("div", { className: `mr-[2px] flex-shrink-0 ${isFull ? "icon" : ""}`, children: /* @__PURE__ */ jsx(Tooltip, { title: mergedProps.
|
|
45
|
+
prefix: /* @__PURE__ */ jsx("div", { className: `mr-[2px] flex-shrink-0 ${isFull ? "icon" : ""}`, children: /* @__PURE__ */ jsx(Tooltip, { title: mergedProps.contractName, children: /* @__PURE__ */ jsx("div", { className: "relative w-[16px] h-[16px]", children: /* @__PURE__ */ jsx(ContractCreated, { className: "w-[16px] h-[16px] align-bottom mb-[3px]" }) }) }) })
|
|
48
46
|
});
|
|
49
47
|
};
|
|
50
48
|
var CoreHexAddress = (props) => {
|
|
@@ -71,7 +69,9 @@ var CoreHexAddress = (props) => {
|
|
|
71
69
|
var InvalidAddress = (props) => {
|
|
72
70
|
const {
|
|
73
71
|
value,
|
|
74
|
-
|
|
72
|
+
tokenName,
|
|
73
|
+
contractName,
|
|
74
|
+
verificationName,
|
|
75
75
|
t,
|
|
76
76
|
isFull,
|
|
77
77
|
maxWidth,
|
|
@@ -82,9 +82,10 @@ var InvalidAddress = (props) => {
|
|
|
82
82
|
const tip = t(translations.general.invalidAddress);
|
|
83
83
|
return RenderAddress({
|
|
84
84
|
cfxAddress: value,
|
|
85
|
-
|
|
85
|
+
contractName,
|
|
86
|
+
tokenName,
|
|
87
|
+
verificationName,
|
|
86
88
|
hoverValue: `${tip}: ${value}`,
|
|
87
|
-
content: alias ? formatString(alias, "tag") : value,
|
|
88
89
|
link: false,
|
|
89
90
|
isFull,
|
|
90
91
|
isFullNameTag,
|
|
@@ -149,7 +150,9 @@ var MyAddress = (props) => {
|
|
|
149
150
|
};
|
|
150
151
|
var PosAddress = (props) => {
|
|
151
152
|
const {
|
|
152
|
-
|
|
153
|
+
tokenName,
|
|
154
|
+
contractName,
|
|
155
|
+
verificationName,
|
|
153
156
|
isFull,
|
|
154
157
|
isFullNameTag,
|
|
155
158
|
maxWidth,
|
|
@@ -166,14 +169,14 @@ var PosAddress = (props) => {
|
|
|
166
169
|
return MyAddress(props);
|
|
167
170
|
}
|
|
168
171
|
const translations = getTranslations();
|
|
169
|
-
const content = alias ? formatString(alias, "tag") : formatString(value, "posAddress");
|
|
170
172
|
if (!isPosAddress(value)) {
|
|
171
173
|
const tip = t(translations.general.invalidPosAddress);
|
|
172
174
|
return RenderAddress({
|
|
173
175
|
cfxAddress: value,
|
|
174
|
-
|
|
176
|
+
tokenName,
|
|
177
|
+
contractName,
|
|
178
|
+
verificationName,
|
|
175
179
|
hoverValue: `${tip}: ${value}`,
|
|
176
|
-
content,
|
|
177
180
|
link: false,
|
|
178
181
|
isFull,
|
|
179
182
|
isFullNameTag,
|
|
@@ -186,13 +189,14 @@ var PosAddress = (props) => {
|
|
|
186
189
|
}
|
|
187
190
|
return RenderAddress({
|
|
188
191
|
cfxAddress: value,
|
|
189
|
-
|
|
192
|
+
tokenName,
|
|
193
|
+
contractName,
|
|
194
|
+
verificationName,
|
|
190
195
|
link,
|
|
191
196
|
isFull,
|
|
192
197
|
isFullNameTag,
|
|
193
198
|
maxWidth,
|
|
194
199
|
type: "pos",
|
|
195
|
-
content,
|
|
196
200
|
hideAliasPrefixInHover
|
|
197
201
|
});
|
|
198
202
|
};
|
|
@@ -205,4 +209,4 @@ export {
|
|
|
205
209
|
MyAddress,
|
|
206
210
|
PosAddress
|
|
207
211
|
};
|
|
208
|
-
//# sourceMappingURL=chunk-
|
|
212
|
+
//# sourceMappingURL=chunk-K4SBN5ZT.js.map
|