@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.
Files changed (158) hide show
  1. package/dist/{chunk-SX6R4MHO.js → chunk-2WEBXRNL.js} +2 -2
  2. package/dist/{chunk-CNF26YY7.js → chunk-6L4ZEJQI.js} +2 -2
  3. package/dist/{chunk-2KXTTKRI.js → chunk-7AVQOIDM.js} +2 -2
  4. package/dist/{chunk-ZLNQICQZ.js → chunk-7VQL3G7K.js} +4 -4
  5. package/dist/{chunk-GSWIFV2B.js → chunk-AYCHKB2Y.js} +2 -2
  6. package/dist/{chunk-E3ZD2GGG.js → chunk-BEI5TWJL.js} +2 -2
  7. package/dist/{chunk-CKVDFS45.js → chunk-BHAXBHVC.js} +8 -13
  8. package/dist/chunk-BHAXBHVC.js.map +1 -0
  9. package/dist/{chunk-VJSXGYWN.js → chunk-C6CGZ6KN.js} +2 -2
  10. package/dist/{chunk-P4EE3QGM.js → chunk-C7OIVXE3.js} +3 -3
  11. package/dist/{chunk-BUSBM33B.js → chunk-CMOP3BKX.js} +3 -3
  12. package/dist/{chunk-6H5A42YS.js → chunk-DCQANK66.js} +2 -2
  13. package/dist/{chunk-OZ4OJLIM.js → chunk-DYNSSHD5.js} +7 -7
  14. package/dist/{chunk-OCQIWTDC.js → chunk-ELF2EOGF.js} +2 -2
  15. package/dist/{chunk-5M5ECKFB.js → chunk-GG7ROFBQ.js} +45 -41
  16. package/dist/chunk-GG7ROFBQ.js.map +1 -0
  17. package/dist/{chunk-YIZCD4WG.js → chunk-GHHUAWSG.js} +3 -3
  18. package/dist/{chunk-DF3PVTB5.js → chunk-GQRCW7WX.js} +2 -2
  19. package/dist/{chunk-YIXV7A4J.js → chunk-H5ZJBRIK.js} +4 -4
  20. package/dist/{chunk-JRB53YY7.js → chunk-K4SBN5ZT.js} +22 -18
  21. package/dist/chunk-K4SBN5ZT.js.map +1 -0
  22. package/dist/{chunk-3PXUIH3S.js → chunk-LCIBOT5P.js} +2 -2
  23. package/dist/chunk-MUW5KBWU.js +25 -0
  24. package/dist/chunk-MUW5KBWU.js.map +1 -0
  25. package/dist/{chunk-7OSADJ6H.js → chunk-NFPBS22O.js} +24 -9
  26. package/dist/chunk-NFPBS22O.js.map +1 -0
  27. package/dist/{chunk-CPPQCJEV.js → chunk-NM3BMITL.js} +4 -5
  28. package/dist/chunk-NM3BMITL.js.map +1 -0
  29. package/dist/{chunk-L62OTV7F.js → chunk-OT7NZ4PK.js} +3 -3
  30. package/dist/{chunk-EMPFZFBS.js → chunk-RUU22F7R.js} +2 -2
  31. package/dist/{chunk-CPR4QZT6.js → chunk-UF5BN4QN.js} +2 -2
  32. package/dist/{chunk-TP67325Z.js → chunk-UZALXR3J.js} +4 -4
  33. package/dist/{chunk-5EDEEGZK.js → chunk-VGYNHJFT.js} +16 -3
  34. package/dist/chunk-VGYNHJFT.js.map +1 -0
  35. package/dist/{chunk-A6ND7FSQ.js → chunk-W64AF7LA.js} +5 -5
  36. package/dist/chunk-WZIT54AU.js +51 -0
  37. package/dist/chunk-WZIT54AU.js.map +1 -0
  38. package/dist/{chunk-AYH6CLQB.js → chunk-XZL5CZFT.js} +6 -6
  39. package/dist/chunk-XZL5CZFT.js.map +1 -0
  40. package/dist/{chunk-5Y7I6VYA.js → chunk-YEAWH772.js} +2 -2
  41. package/dist/{chunk-5CDCNIBM.js → chunk-YKHDBNJD.js} +21 -24
  42. package/dist/chunk-YKHDBNJD.js.map +1 -0
  43. package/dist/{chunk-LVFMTP5H.js → chunk-YVV32ON3.js} +2 -2
  44. package/dist/components/AceEditor/index.js +4 -4
  45. package/dist/components/AddressContainer/CoreAddressContainer.d.ts +1 -0
  46. package/dist/components/AddressContainer/CoreAddressContainer.js +10 -10
  47. package/dist/components/AddressContainer/EVMAddressContainer.d.ts +1 -0
  48. package/dist/components/AddressContainer/EVMAddressContainer.js +9 -9
  49. package/dist/components/AddressContainer/addressSwitcher.d.ts +1 -0
  50. package/dist/components/AddressContainer/addressSwitcher.js +7 -7
  51. package/dist/components/AddressContainer/addressView.d.ts +2 -1
  52. package/dist/components/AddressContainer/addressView.js +6 -6
  53. package/dist/components/AddressContainer/label.js +45 -6
  54. package/dist/components/AddressContainer/label.js.map +1 -1
  55. package/dist/components/AddressContainer/types.d.ts +20 -23
  56. package/dist/components/AddressContainer/utils.d.ts +17 -2
  57. package/dist/components/AddressContainer/utils.js +6 -20
  58. package/dist/components/AddressContainer/utils.js.map +1 -1
  59. package/dist/components/Age/index.js +4 -4
  60. package/dist/components/AutoComplete/index.js +3 -3
  61. package/dist/components/Charts/PreviewChartTemplate.js +1 -1
  62. package/dist/components/Charts/StockChartTemplate.js +1 -1
  63. package/dist/components/CopyButton/index.js +3 -3
  64. package/dist/components/DecimalsSelect/index.js +3 -3
  65. package/dist/components/DownloadCSV/index.js +4 -4
  66. package/dist/components/GasPriceDropdown/index.js +2 -2
  67. package/dist/components/IncreasePercent/index.js +2 -2
  68. package/dist/components/InfoIconWithTooltip/index.js +4 -4
  69. package/dist/components/InputData/AddressLabel.js +8 -9
  70. package/dist/components/InputData/ContractDetail.js +3 -3
  71. package/dist/components/InputData/JsonDecode.js +5 -5
  72. package/dist/components/InputData/OptimizationDecode.js +10 -11
  73. package/dist/components/InputData/UTF8.js +3 -3
  74. package/dist/components/InputData/index.js +14 -15
  75. package/dist/components/Modal/index.js +3 -3
  76. package/dist/components/NetworkIcon/index.js +2 -2
  77. package/dist/components/OutputData/ErrorDecode.js +13 -14
  78. package/dist/components/OutputData/index.js +15 -16
  79. package/dist/components/PhishingAddressContainer/index.js +4 -4
  80. package/dist/components/Popover/index.js +3 -3
  81. package/dist/components/Price/index.js +3 -3
  82. package/dist/components/ProxyContractAddress/index.d.ts +1 -1
  83. package/dist/components/ProxyContractAddress/index.js +24 -15
  84. package/dist/components/ProxyContractAddress/index.js.map +1 -1
  85. package/dist/components/Radio/index.js +2 -2
  86. package/dist/components/SearchInput/index.js +4 -4
  87. package/dist/components/Select/index.js +4 -4
  88. package/dist/components/Select/select.js +3 -3
  89. package/dist/components/Text/index.js +4 -4
  90. package/dist/components/Tooltip/index.js +3 -3
  91. package/dist/components/TransactionAction/coreTransactionAction.js +13 -18
  92. package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -1
  93. package/dist/components/TransactionAction/evmTransactionAction.js +12 -17
  94. package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -1
  95. package/dist/components/TransactionTrace/TraceDetail.js +23 -24
  96. package/dist/components/TransactionTrace/TreeTraceTable.js +24 -25
  97. package/dist/components/TransactionTrace/index.js +24 -25
  98. package/dist/utils/address.js +2 -2
  99. package/dist/utils/contractManagerTool.js +2 -2
  100. package/dist/utils/hooks/useAddressLabel.js +3 -3
  101. package/dist/utils/hooks/useAddressNameMap.d.ts +6 -0
  102. package/dist/utils/hooks/useAddressNameMap.js +12 -0
  103. package/dist/utils/hooks/useAddressNameMap.js.map +1 -0
  104. package/dist/utils/hooks/useAge.js +1 -1
  105. package/dist/utils/hooks/useAge.js.map +1 -1
  106. package/dist/utils/hooks/useAutoSetHolderFilterParams.js +2 -2
  107. package/dist/utils/hooks/useContractDetail.js +2 -2
  108. package/dist/utils/hooks/useDecodeFunctionData.js +5 -5
  109. package/dist/utils/hooks/useDecodeFunctionError.js +3 -3
  110. package/dist/utils/hooks/useENS.js +3 -3
  111. package/dist/utils/hooks/useEnhanceDataWithNameMap.d.ts +30 -0
  112. package/dist/utils/hooks/useEnhanceDataWithNameMap.js +71 -0
  113. package/dist/utils/hooks/useEnhanceDataWithNameMap.js.map +1 -0
  114. package/dist/utils/hooks/useMethodAbi.js +2 -2
  115. package/dist/utils/hooks/useTableData.d.ts +34 -0
  116. package/dist/utils/hooks/useTableData.js +95 -0
  117. package/dist/utils/hooks/useTableData.js.map +1 -0
  118. package/dist/utils/hooks/useTxTrace.d.ts +3 -40
  119. package/dist/utils/hooks/useTxTrace.js +5 -15
  120. package/dist/utils/hooks/useTxTrace.js.map +1 -1
  121. package/dist/utils/index.js +2 -2
  122. package/dist/utils/request.d.ts +7 -2
  123. package/dist/utils/request.js +3 -1
  124. package/dist/utils/request.types.d.ts +35 -1
  125. package/package.json +11 -11
  126. package/dist/chunk-5CDCNIBM.js.map +0 -1
  127. package/dist/chunk-5EDEEGZK.js.map +0 -1
  128. package/dist/chunk-5M5ECKFB.js.map +0 -1
  129. package/dist/chunk-7OSADJ6H.js.map +0 -1
  130. package/dist/chunk-AYH6CLQB.js.map +0 -1
  131. package/dist/chunk-CKVDFS45.js.map +0 -1
  132. package/dist/chunk-CPPQCJEV.js.map +0 -1
  133. package/dist/chunk-JRB53YY7.js.map +0 -1
  134. package/dist/chunk-Q2DX6IDH.js +0 -49
  135. package/dist/chunk-Q2DX6IDH.js.map +0 -1
  136. /package/dist/{chunk-SX6R4MHO.js.map → chunk-2WEBXRNL.js.map} +0 -0
  137. /package/dist/{chunk-CNF26YY7.js.map → chunk-6L4ZEJQI.js.map} +0 -0
  138. /package/dist/{chunk-2KXTTKRI.js.map → chunk-7AVQOIDM.js.map} +0 -0
  139. /package/dist/{chunk-ZLNQICQZ.js.map → chunk-7VQL3G7K.js.map} +0 -0
  140. /package/dist/{chunk-GSWIFV2B.js.map → chunk-AYCHKB2Y.js.map} +0 -0
  141. /package/dist/{chunk-E3ZD2GGG.js.map → chunk-BEI5TWJL.js.map} +0 -0
  142. /package/dist/{chunk-VJSXGYWN.js.map → chunk-C6CGZ6KN.js.map} +0 -0
  143. /package/dist/{chunk-P4EE3QGM.js.map → chunk-C7OIVXE3.js.map} +0 -0
  144. /package/dist/{chunk-BUSBM33B.js.map → chunk-CMOP3BKX.js.map} +0 -0
  145. /package/dist/{chunk-6H5A42YS.js.map → chunk-DCQANK66.js.map} +0 -0
  146. /package/dist/{chunk-OZ4OJLIM.js.map → chunk-DYNSSHD5.js.map} +0 -0
  147. /package/dist/{chunk-OCQIWTDC.js.map → chunk-ELF2EOGF.js.map} +0 -0
  148. /package/dist/{chunk-YIZCD4WG.js.map → chunk-GHHUAWSG.js.map} +0 -0
  149. /package/dist/{chunk-DF3PVTB5.js.map → chunk-GQRCW7WX.js.map} +0 -0
  150. /package/dist/{chunk-YIXV7A4J.js.map → chunk-H5ZJBRIK.js.map} +0 -0
  151. /package/dist/{chunk-3PXUIH3S.js.map → chunk-LCIBOT5P.js.map} +0 -0
  152. /package/dist/{chunk-L62OTV7F.js.map → chunk-OT7NZ4PK.js.map} +0 -0
  153. /package/dist/{chunk-EMPFZFBS.js.map → chunk-RUU22F7R.js.map} +0 -0
  154. /package/dist/{chunk-CPR4QZT6.js.map → chunk-UF5BN4QN.js.map} +0 -0
  155. /package/dist/{chunk-TP67325Z.js.map → chunk-UZALXR3J.js.map} +0 -0
  156. /package/dist/{chunk-A6ND7FSQ.js.map → chunk-W64AF7LA.js.map} +0 -0
  157. /package/dist/{chunk-5Y7I6VYA.js.map → chunk-YEAWH772.js.map} +0 -0
  158. /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-CNF26YY7.js";
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-SX6R4MHO.js.map
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-5EDEEGZK.js";
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-CNF26YY7.js.map
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-3PXUIH3S.js";
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-2KXTTKRI.js.map
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-L62OTV7F.js";
6
+ } from "./chunk-OT7NZ4PK.js";
7
7
  import {
8
8
  OptimizationDecode
9
- } from "./chunk-OZ4OJLIM.js";
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-CPR4QZT6.js";
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-ZLNQICQZ.js.map
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-CPPQCJEV.js";
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-GSWIFV2B.js.map
140
+ //# sourceMappingURL=chunk-AYCHKB2Y.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  reqAbiByMethodId
3
- } from "./chunk-5EDEEGZK.js";
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-E3ZD2GGG.js.map
17
+ //# sourceMappingURL=chunk-BEI5TWJL.js.map
@@ -1,15 +1,12 @@
1
1
  import {
2
2
  useAddressLabel
3
- } from "./chunk-6H5A42YS.js";
3
+ } from "./chunk-DCQANK66.js";
4
4
  import {
5
5
  useENS
6
- } from "./chunk-BUSBM33B.js";
6
+ } from "./chunk-CMOP3BKX.js";
7
7
  import {
8
8
  Text
9
- } from "./chunk-P4EE3QGM.js";
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 { useMemo } from "react";
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 { label, icon } = useMemo(
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
- icon,
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-CKVDFS45.js.map
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-A6ND7FSQ.js";
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-VJSXGYWN.js.map
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-DF3PVTB5.js";
6
+ } from "./chunk-GQRCW7WX.js";
7
7
  import {
8
8
  selectText
9
- } from "./chunk-CPPQCJEV.js";
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-P4EE3QGM.js.map
105
+ //# sourceMappingURL=chunk-C7OIVXE3.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  isCoreMainOrTestAddress
3
- } from "./chunk-CNF26YY7.js";
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-5EDEEGZK.js";
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-BUSBM33B.js.map
63
+ //# sourceMappingURL=chunk-CMOP3BKX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  convertCheckSum
3
- } from "./chunk-CNF26YY7.js";
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-6H5A42YS.js.map
23
+ //# sourceMappingURL=chunk-DCQANK66.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ContractDetail,
3
3
  formatContractAndTokenInfoMap
4
- } from "./chunk-SX6R4MHO.js";
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-CKVDFS45.js";
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-CNF26YY7.js";
20
+ } from "./chunk-6L4ZEJQI.js";
21
21
  import {
22
22
  Text
23
- } from "./chunk-P4EE3QGM.js";
23
+ } from "./chunk-C7OIVXE3.js";
24
24
  import {
25
25
  cn
26
- } from "./chunk-CPPQCJEV.js";
26
+ } from "./chunk-NM3BMITL.js";
27
27
  import {
28
28
  reqContractAndToken
29
- } from "./chunk-5EDEEGZK.js";
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-OZ4OJLIM.js.map
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-DF3PVTB5.js";
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-OCQIWTDC.js.map
26
+ //# sourceMappingURL=chunk-ELF2EOGF.js.map
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  useENS
3
- } from "./chunk-BUSBM33B.js";
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-JRB53YY7.js";
14
+ } from "./chunk-K4SBN5ZT.js";
12
15
  import {
13
16
  RenderAddress
14
- } from "./chunk-7OSADJ6H.js";
17
+ } from "./chunk-NFPBS22O.js";
15
18
  import {
16
19
  formatAddress,
17
20
  isCoreAddress,
18
21
  isCoreContractAddress,
19
22
  isZeroAddress
20
- } from "./chunk-CNF26YY7.js";
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
- nametagInfo,
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
- let aliasLabel = alias;
49
- if (!alias && isZeroAddress(cfxAddress)) {
50
- aliasLabel = t(translations.general.zeroAddress);
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
- const gENSLabel = cfxAddress && ENSMap[cfxAddress]?.name;
55
+ let ENSIcon = null;
57
56
  if (cfxAddress && showAddressLabel) {
58
57
  const addressLabels = globalData?.["CONFLUX_SCAN_ADDRESS_LABELS" /* addressLabel */];
59
- const gAddressLabel = addressLabels?.[cfxAddress];
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
- const nametags = nametagInfo?.[cfxAddress];
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 && gENSLabel) {
74
- const { label, icon } = getLabelInfo(gENSLabel, "ens");
75
- ENSLabel = label;
76
- ENSIcon = icon;
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
- alias: aliasLabel,
80
- ENSIcon,
75
+ innerName,
81
76
  nametag: officalNametag,
82
77
  addressLabel,
83
78
  ENSLabel,
84
- cfxAddress
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.ensInfo || props.showENSLabel === false;
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
- ensInfo: ens
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-5M5ECKFB.js.map
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":"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","names":[]}
@@ -5,10 +5,10 @@ import {
5
5
  SelectItem,
6
6
  SelectTrigger,
7
7
  SelectValue
8
- } from "./chunk-EMPFZFBS.js";
8
+ } from "./chunk-RUU22F7R.js";
9
9
  import {
10
10
  cn
11
- } from "./chunk-CPPQCJEV.js";
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-YIZCD4WG.js.map
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-CPPQCJEV.js";
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-DF3PVTB5.js.map
534
+ //# sourceMappingURL=chunk-GQRCW7WX.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useDecodeFunctionError
3
- } from "./chunk-2KXTTKRI.js";
3
+ } from "./chunk-7AVQOIDM.js";
4
4
  import {
5
5
  DecodedParameters
6
- } from "./chunk-OZ4OJLIM.js";
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-CPPQCJEV.js";
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-YIXV7A4J.js.map
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-7OSADJ6H.js";
6
+ } from "./chunk-NFPBS22O.js";
7
7
  import {
8
8
  formatAddress,
9
9
  isInnerContractAddress
10
- } from "./chunk-CNF26YY7.js";
10
+ } from "./chunk-6L4ZEJQI.js";
11
11
  import {
12
12
  Tooltip
13
- } from "./chunk-DF3PVTB5.js";
13
+ } from "./chunk-GQRCW7WX.js";
14
14
  import {
15
15
  coreCorrespondsToEspace,
16
- formatString,
17
16
  getNetwork
18
- } from "./chunk-CPPQCJEV.js";
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
- content: t(translations.transaction.contractCreation),
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.content, children: /* @__PURE__ */ jsx("div", { className: "relative w-[16px] h-[16px]", children: /* @__PURE__ */ jsx(ContractCreated, { className: "w-[16px] h-[16px] align-bottom mb-[3px]" }) }) }) })
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
- alias,
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
- alias,
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
- alias,
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
- alias,
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
- alias,
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-JRB53YY7.js.map
212
+ //# sourceMappingURL=chunk-K4SBN5ZT.js.map