@cfxjs/sirius-next-common 0.2.29 → 0.3.1
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/{ccip-DBSI27GO.js → ccip-4OIZJRM7.js} +3 -3
- package/dist/chunk-267JWZ3X.js +20 -0
- package/dist/chunk-267JWZ3X.js.map +1 -0
- package/dist/{chunk-WIB76E7O.js → chunk-2MY3T2VH.js} +2 -2
- package/dist/{chunk-CTHYDPXG.js → chunk-3CY7SRAN.js} +7 -7
- package/dist/{chunk-RP23W2AA.js → chunk-4QR5LKPG.js} +3 -3
- package/dist/{chunk-XZ7IV2FF.js → chunk-4WLXG7ZY.js} +2 -2
- package/dist/{chunk-YOI54A6M.js → chunk-5DFWDFAH.js} +2 -2
- package/dist/{chunk-XMBEB34D.js → chunk-5PYC44RX.js} +2 -2
- package/dist/{chunk-5H6N5Q5P.js → chunk-63ULYLAC.js} +3 -3
- package/dist/chunk-6JLI3Y4J.js +159 -0
- package/dist/chunk-6JLI3Y4J.js.map +1 -0
- package/dist/chunk-6JXQS4XH.js +14 -0
- package/dist/chunk-6JXQS4XH.js.map +1 -0
- package/dist/{chunk-RFN3GPMD.js → chunk-7BAN6GKP.js} +4 -4
- package/dist/chunk-7HK6APFZ.js +28 -0
- package/dist/chunk-7HK6APFZ.js.map +1 -0
- package/dist/{chunk-HBJOTRGP.js → chunk-7NVZPYT3.js} +2 -2
- package/dist/chunk-A3VDKIWS.js +60 -0
- package/dist/chunk-A3VDKIWS.js.map +1 -0
- package/dist/{chunk-H5ZIEB6Y.js → chunk-A4QSFRUF.js} +51 -25
- package/dist/chunk-A4QSFRUF.js.map +1 -0
- package/dist/{chunk-3LFAB7KP.js → chunk-A64ILFRR.js} +5 -5
- package/dist/{chunk-J3GK2LUK.js → chunk-A7LX3FWL.js} +8 -8
- package/dist/{chunk-CQ7PIGKY.js → chunk-AJB2BZ6T.js} +2 -2
- package/dist/{secp256k1-WGKMGTUQ.js → chunk-CGDNDBBP.js} +8 -7
- package/dist/{secp256k1-WGKMGTUQ.js.map → chunk-CGDNDBBP.js.map} +1 -1
- package/dist/{chunk-337L4DV3.js → chunk-CMM72NR3.js} +3 -3
- package/dist/{chunk-Z2UXDMUA.js → chunk-CWTDFCRF.js} +3 -3
- package/dist/{chunk-G6N3L7XQ.js → chunk-D6INJ4N5.js} +7 -5
- package/dist/chunk-D6INJ4N5.js.map +1 -0
- package/dist/{chunk-473ZUYVX.js → chunk-EN25IHGP.js} +3 -3
- package/dist/{chunk-5FNTPYWO.js → chunk-EZVQ6JRV.js} +3 -3
- package/dist/{chunk-S7FVSBBH.js → chunk-FGUCFE4W.js} +2 -2
- package/dist/chunk-FLFDRCTI.js +21490 -0
- package/dist/chunk-FLFDRCTI.js.map +1 -0
- package/dist/{chunk-OSFR346H.js → chunk-FOQ3VNZS.js} +15 -11
- package/dist/chunk-FOQ3VNZS.js.map +1 -0
- package/dist/{chunk-Z7YF2BJY.js → chunk-G56ZGF4A.js} +2 -2
- package/dist/chunk-GNOB77UA.js +14 -0
- package/dist/chunk-GNOB77UA.js.map +1 -0
- package/dist/{chunk-5ZPPSS5X.js → chunk-IKPPUNBU.js} +2 -2
- package/dist/{chunk-VIXYY5CK.js → chunk-IXMDBWQH.js} +2 -2
- package/dist/{chunk-G7UHBRGA.js → chunk-J6WXTCBD.js} +5 -5
- package/dist/chunk-J6WXTCBD.js.map +1 -0
- package/dist/chunk-JLEQ7K57.js +23 -0
- package/dist/chunk-JLEQ7K57.js.map +1 -0
- package/dist/{chunk-DQGLZCIG.js → chunk-L4AFJGXJ.js} +1 -1
- package/dist/{chunk-DQGLZCIG.js.map → chunk-L4AFJGXJ.js.map} +1 -1
- package/dist/{chunk-4B6ASBYQ.js → chunk-LBAEFEJU.js} +10 -1
- package/dist/{chunk-4B6ASBYQ.js.map → chunk-LBAEFEJU.js.map} +1 -1
- package/dist/{chunk-I5YTFVQB.js → chunk-NDGJLSZN.js} +2 -2
- package/dist/chunk-NSSKV676.js +50 -0
- package/dist/chunk-NSSKV676.js.map +1 -0
- package/dist/{chunk-MOVBVQ73.js → chunk-NZ32DWUZ.js} +6 -6
- package/dist/{chunk-IKP2BVXN.js → chunk-OVWRJMGS.js} +9 -9
- package/dist/chunk-PCTL7FBZ.js +10 -0
- package/dist/chunk-PCTL7FBZ.js.map +1 -0
- package/dist/{chunk-JIRLY7OG.js → chunk-S6O6Q2GQ.js} +1735 -174
- package/dist/chunk-S6O6Q2GQ.js.map +1 -0
- package/dist/{chunk-MKBKASBZ.js → chunk-SCTG3SCG.js} +3 -3
- package/dist/{chunk-RM25O3LE.js → chunk-SEIHZVZU.js} +2 -2
- package/dist/{chunk-X4VWQ2HL.js → chunk-SFULLYYL.js} +5 -5
- package/dist/{chunk-W2CLMFMA.js → chunk-T5IOTGTQ.js} +4 -4
- package/dist/{chunk-IW36ZVPL.js → chunk-UARYZ4C2.js} +2 -2
- package/dist/chunk-VRA7CSHI.js +132 -0
- package/dist/chunk-VRA7CSHI.js.map +1 -0
- package/dist/{chunk-5L5VDFFK.js → chunk-VSVZWF66.js} +6 -6
- package/dist/chunk-VYI4IZMQ.js +9448 -0
- package/dist/chunk-VYI4IZMQ.js.map +1 -0
- package/dist/{chunk-EMY3TQJY.js → chunk-WJPIKXWT.js} +2 -2
- package/dist/{chunk-YZP2WZRW.js → chunk-WZ6MS4XP.js} +9 -9
- package/dist/{chunk-Y7OVL5US.js → chunk-XCLT7DP4.js} +2 -2
- package/dist/{chunk-H2HTJNMZ.js → chunk-XN2TDIIK.js} +2 -2
- package/dist/{chunk-IUFQJFZW.js → chunk-XQ246UQW.js} +11 -10
- package/dist/chunk-XQ246UQW.js.map +1 -0
- package/dist/chunk-Y362QJNT.js +65 -0
- package/dist/chunk-Y362QJNT.js.map +1 -0
- package/dist/chunk-YEJRYVZ3.js +167 -0
- package/dist/chunk-YEJRYVZ3.js.map +1 -0
- package/dist/{chunk-J2I22Q2M.js → chunk-ZZLGINAC.js} +2 -2
- package/dist/components/AAFailedReason/index.js +13 -11
- package/dist/components/AAFailedReason/index.js.map +1 -1
- package/dist/components/AceEditor/index.js +7 -7
- package/dist/components/AddressContainer/CoreAddressContainer.js +13 -13
- package/dist/components/AddressContainer/EVMAddressContainer.js +12 -12
- package/dist/components/AddressContainer/addressSwitcher.js +10 -10
- package/dist/components/AddressContainer/addressView.js +9 -9
- package/dist/components/AddressContainer/label.js +6 -6
- package/dist/components/AddressContainer/utils.js +6 -6
- package/dist/components/Age/index.js +7 -7
- package/dist/components/AutoComplete/index.js +6 -6
- package/dist/components/Charts/ChartOptions.js +2 -2
- package/dist/components/Charts/PreviewChartTemplate.js +4 -4
- package/dist/components/Charts/PreviewTitle.js +2 -2
- package/dist/components/Charts/StockChartTemplate.js +4 -4
- package/dist/components/Collapse/index.d.ts +31 -0
- package/dist/components/Collapse/index.js +105 -0
- package/dist/components/Collapse/index.js.map +1 -0
- package/dist/components/ContractAbi/Error.d.ts +8 -0
- package/dist/components/ContractAbi/Error.js +8 -0
- package/dist/components/ContractAbi/Error.js.map +1 -0
- package/dist/components/ContractAbi/FuncBody.d.ts +9 -0
- package/dist/components/ContractAbi/FuncBody.js +8 -0
- package/dist/components/ContractAbi/FuncBody.js.map +1 -0
- package/dist/components/ContractAbi/FuncResponse.d.ts +13 -0
- package/dist/components/ContractAbi/FuncResponse.js +8 -0
- package/dist/components/ContractAbi/FuncResponse.js.map +1 -0
- package/dist/components/ContractAbi/IntValueFormatter.d.ts +9 -0
- package/dist/components/ContractAbi/IntValueFormatter.js +18 -0
- package/dist/components/ContractAbi/IntValueFormatter.js.map +1 -0
- package/dist/components/ContractAbi/OutputParams.d.ts +11 -0
- package/dist/components/ContractAbi/OutputParams.js +8 -0
- package/dist/components/ContractAbi/OutputParams.js.map +1 -0
- package/dist/components/ContractAbi/ParamTitle.d.ts +13 -0
- package/dist/components/ContractAbi/ParamTitle.js +20 -0
- package/dist/components/ContractAbi/ParamTitle.js.map +1 -0
- package/dist/components/ContractAbi/constants.d.ts +9 -0
- package/dist/components/ContractAbi/constants.js +10 -0
- package/dist/components/ContractAbi/constants.js.map +1 -0
- package/dist/components/ContractAbi/index.d.ts +10 -0
- package/dist/components/ContractAbi/index.js +52 -0
- package/dist/components/ContractAbi/index.js.map +1 -0
- package/dist/components/ContractAbi/utils.d.ts +9 -0
- package/dist/components/ContractAbi/utils.js +14 -0
- package/dist/components/ContractAbi/utils.js.map +1 -0
- package/dist/components/CookieTip/index.js +2 -2
- package/dist/components/CopyButton/index.d.ts +5 -2
- package/dist/components/CopyButton/index.js +50 -33
- package/dist/components/CopyButton/index.js.map +1 -1
- package/dist/components/DecimalsSelect/index.js +8 -131
- package/dist/components/DecimalsSelect/index.js.map +1 -1
- package/dist/components/DownloadCSV/index.js +7 -7
- package/dist/components/Empty/index.js +2 -2
- package/dist/components/GasPriceDropdown/index.js +5 -5
- package/dist/components/Highlight/index.d.ts +1 -1
- package/dist/components/Highlight/index.js +2 -2
- package/dist/components/Highlight/index.js.map +1 -1
- package/dist/components/IncreasePercent/index.js +5 -5
- package/dist/components/InfoIconWithTooltip/index.js +7 -7
- package/dist/components/InputData/AddressLabel.js +11 -11
- package/dist/components/InputData/ContractDetail.js +8 -8
- package/dist/components/InputData/FunctionName.d.ts +2 -0
- package/dist/components/InputData/JsonDecode.d.ts +2 -0
- package/dist/components/InputData/JsonDecode.js +8 -8
- package/dist/components/InputData/OptimizationDecode.d.ts +4 -1
- package/dist/components/InputData/OptimizationDecode.js +15 -15
- package/dist/components/InputData/Original.d.ts +2 -1
- package/dist/components/InputData/Original.js +7 -1
- package/dist/components/InputData/UTF8.js +6 -6
- package/dist/components/InputData/index.d.ts +2 -0
- package/dist/components/InputData/index.js +20 -20
- package/dist/components/List/index.js +3 -3
- package/dist/components/Modal/index.js +6 -6
- package/dist/components/NetworkIcon/index.js +5 -5
- package/dist/components/OutputData/ErrorDecode.d.ts +10 -6
- package/dist/components/OutputData/ErrorDecode.js +26 -24
- package/dist/components/OutputData/index.d.ts +2 -0
- package/dist/components/OutputData/index.js +28 -26
- package/dist/components/PhishingAddressContainer/index.js +7 -7
- package/dist/components/Popover/index.js +6 -6
- package/dist/components/Price/index.js +6 -6
- package/dist/components/ProxyContractAddress/index.d.ts +2 -0
- package/dist/components/ProxyContractAddress/index.js +9 -9
- package/dist/components/Radio/index.js +5 -5
- package/dist/components/Remark/index.js +1 -1
- package/dist/components/SearchInput/index.js +7 -7
- package/dist/components/Select/index.js +7 -7
- package/dist/components/Select/select.js +6 -6
- package/dist/components/SmartAccountAddress/index.js +9 -9
- package/dist/components/Table/index.js +3 -3
- package/dist/components/Text/index.js +7 -7
- package/dist/components/Tooltip/index.js +6 -6
- package/dist/components/TransactionAction/coreTransactionAction.js +13 -13
- package/dist/components/TransactionAction/evmTransactionAction.js +12 -12
- package/dist/components/TransactionTrace/TraceDetail.d.ts +2 -0
- package/dist/components/TransactionTrace/TraceDetail.js +36 -34
- package/dist/components/TransactionTrace/TreeTraceTable.d.ts +2 -0
- package/dist/components/TransactionTrace/TreeTraceTable.js +39 -37
- package/dist/components/TransactionTrace/index.d.ts +2 -0
- package/dist/components/TransactionTrace/index.js +39 -37
- package/dist/secp256k1-2GKRGI5Q.js +17 -0
- package/dist/secp256k1-2GKRGI5Q.js.map +1 -0
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/two-arrow-VZ3CKZHM.png +0 -0
- package/dist/uno.css +40 -4
- package/dist/utils/address.js +5 -5
- package/dist/utils/cive-plugins.d.ts +22 -0
- package/dist/utils/cive-plugins.js +17 -0
- package/dist/utils/cive-plugins.js.map +1 -0
- package/dist/utils/constants.js +2 -2
- package/dist/utils/contractManagerTool.js +5 -5
- package/dist/utils/hooks/useAbiItemById.js +4 -4
- package/dist/utils/hooks/useAddressLabel.js +6 -6
- package/dist/utils/hooks/useAddressNameMap.js +4 -4
- package/dist/utils/hooks/useAge.js +2 -2
- package/dist/utils/hooks/useAutoSetHolderFilterParams.js +5 -5
- package/dist/utils/hooks/useContractDetail.js +4 -4
- package/dist/utils/hooks/useDecodeFunctionData.d.ts +3 -1
- package/dist/utils/hooks/useDecodeFunctionData.js +15 -11
- package/dist/utils/hooks/useDecodeFunctionError.d.ts +9 -7
- package/dist/utils/hooks/useDecodeFunctionError.js +13 -11
- package/dist/utils/hooks/useDecodedDataType.d.ts +2 -0
- package/dist/utils/hooks/useENS.js +6 -6
- package/dist/utils/hooks/useEnhanceDataWithNameMap.js +4 -4
- package/dist/utils/hooks/useMethodAbi.js +4 -4
- package/dist/utils/hooks/useSimulateTrace.d.ts +71 -0
- package/dist/utils/hooks/useSimulateTrace.js +185 -0
- package/dist/utils/hooks/useSimulateTrace.js.map +1 -0
- package/dist/utils/hooks/useTableData.js +3 -3
- package/dist/utils/hooks/useTxTrace.d.ts +10 -3
- package/dist/utils/hooks/useTxTrace.js +16 -146
- package/dist/utils/hooks/useTxTrace.js.map +1 -1
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +7 -5
- package/dist/utils/pubsub.js +2 -2
- package/dist/utils/request.js +3 -3
- package/dist/utils/rpcRequest.js +2 -2
- package/dist/utils/sdk.d.ts +34 -9
- package/dist/utils/sdk.js +17 -7
- package/package.json +5 -2
- package/dist/chunk-5AM5HM3B.js +0 -10
- package/dist/chunk-5AM5HM3B.js.map +0 -1
- package/dist/chunk-6SXAFSBF.js +0 -1032
- package/dist/chunk-6SXAFSBF.js.map +0 -1
- package/dist/chunk-G6N3L7XQ.js.map +0 -1
- package/dist/chunk-G7UHBRGA.js.map +0 -1
- package/dist/chunk-H5ZIEB6Y.js.map +0 -1
- package/dist/chunk-IUFQJFZW.js.map +0 -1
- package/dist/chunk-JIRLY7OG.js.map +0 -1
- package/dist/chunk-OSFR346H.js.map +0 -1
- package/dist/chunk-SK75VWEO.js +0 -157
- package/dist/chunk-SK75VWEO.js.map +0 -1
- /package/dist/{ccip-DBSI27GO.js.map → ccip-4OIZJRM7.js.map} +0 -0
- /package/dist/{chunk-WIB76E7O.js.map → chunk-2MY3T2VH.js.map} +0 -0
- /package/dist/{chunk-CTHYDPXG.js.map → chunk-3CY7SRAN.js.map} +0 -0
- /package/dist/{chunk-RP23W2AA.js.map → chunk-4QR5LKPG.js.map} +0 -0
- /package/dist/{chunk-XZ7IV2FF.js.map → chunk-4WLXG7ZY.js.map} +0 -0
- /package/dist/{chunk-YOI54A6M.js.map → chunk-5DFWDFAH.js.map} +0 -0
- /package/dist/{chunk-XMBEB34D.js.map → chunk-5PYC44RX.js.map} +0 -0
- /package/dist/{chunk-5H6N5Q5P.js.map → chunk-63ULYLAC.js.map} +0 -0
- /package/dist/{chunk-RFN3GPMD.js.map → chunk-7BAN6GKP.js.map} +0 -0
- /package/dist/{chunk-HBJOTRGP.js.map → chunk-7NVZPYT3.js.map} +0 -0
- /package/dist/{chunk-3LFAB7KP.js.map → chunk-A64ILFRR.js.map} +0 -0
- /package/dist/{chunk-J3GK2LUK.js.map → chunk-A7LX3FWL.js.map} +0 -0
- /package/dist/{chunk-CQ7PIGKY.js.map → chunk-AJB2BZ6T.js.map} +0 -0
- /package/dist/{chunk-337L4DV3.js.map → chunk-CMM72NR3.js.map} +0 -0
- /package/dist/{chunk-Z2UXDMUA.js.map → chunk-CWTDFCRF.js.map} +0 -0
- /package/dist/{chunk-473ZUYVX.js.map → chunk-EN25IHGP.js.map} +0 -0
- /package/dist/{chunk-5FNTPYWO.js.map → chunk-EZVQ6JRV.js.map} +0 -0
- /package/dist/{chunk-S7FVSBBH.js.map → chunk-FGUCFE4W.js.map} +0 -0
- /package/dist/{chunk-Z7YF2BJY.js.map → chunk-G56ZGF4A.js.map} +0 -0
- /package/dist/{chunk-5ZPPSS5X.js.map → chunk-IKPPUNBU.js.map} +0 -0
- /package/dist/{chunk-VIXYY5CK.js.map → chunk-IXMDBWQH.js.map} +0 -0
- /package/dist/{chunk-I5YTFVQB.js.map → chunk-NDGJLSZN.js.map} +0 -0
- /package/dist/{chunk-MOVBVQ73.js.map → chunk-NZ32DWUZ.js.map} +0 -0
- /package/dist/{chunk-IKP2BVXN.js.map → chunk-OVWRJMGS.js.map} +0 -0
- /package/dist/{chunk-MKBKASBZ.js.map → chunk-SCTG3SCG.js.map} +0 -0
- /package/dist/{chunk-RM25O3LE.js.map → chunk-SEIHZVZU.js.map} +0 -0
- /package/dist/{chunk-X4VWQ2HL.js.map → chunk-SFULLYYL.js.map} +0 -0
- /package/dist/{chunk-W2CLMFMA.js.map → chunk-T5IOTGTQ.js.map} +0 -0
- /package/dist/{chunk-IW36ZVPL.js.map → chunk-UARYZ4C2.js.map} +0 -0
- /package/dist/{chunk-5L5VDFFK.js.map → chunk-VSVZWF66.js.map} +0 -0
- /package/dist/{chunk-EMY3TQJY.js.map → chunk-WJPIKXWT.js.map} +0 -0
- /package/dist/{chunk-YZP2WZRW.js.map → chunk-WZ6MS4XP.js.map} +0 -0
- /package/dist/{chunk-Y7OVL5US.js.map → chunk-XCLT7DP4.js.map} +0 -0
- /package/dist/{chunk-H2HTJNMZ.js.map → chunk-XN2TDIIK.js.map} +0 -0
- /package/dist/{chunk-J2I22Q2M.js.map → chunk-ZZLGINAC.js.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useAbiItemById
|
|
3
|
+
} from "./chunk-NDGJLSZN.js";
|
|
1
4
|
import {
|
|
2
5
|
decodeErrorResult
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FLFDRCTI.js";
|
|
4
7
|
import {
|
|
5
8
|
useContractDetail
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
useAbiItemById
|
|
9
|
-
} from "./chunk-I5YTFVQB.js";
|
|
9
|
+
} from "./chunk-XN2TDIIK.js";
|
|
10
10
|
import {
|
|
11
11
|
CommonError_default
|
|
12
12
|
} from "./chunk-5TGK2EA2.js";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-ADNS57X5.js";
|
|
16
16
|
import {
|
|
17
17
|
formatABI
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D6INJ4N5.js";
|
|
19
19
|
import {
|
|
20
20
|
COMMON_ERROR_OUTPUT_PREFIX,
|
|
21
21
|
COMMON_PANIC_OUTPUT_PREFIX
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2MY3T2VH.js";
|
|
23
23
|
|
|
24
24
|
// src/utils/hooks/useDecodeFunctionError.ts
|
|
25
25
|
import { useMemo } from "react";
|
|
@@ -29,26 +29,30 @@ var useDecodeFunctionError = ({
|
|
|
29
29
|
implementation: _implementation,
|
|
30
30
|
errorData,
|
|
31
31
|
space,
|
|
32
|
-
|
|
32
|
+
abi: outerAbi,
|
|
33
|
+
supportErrorAbi = false
|
|
33
34
|
}) => {
|
|
35
|
+
const isErrorDataEmpty = !errorData || errorData === "0x";
|
|
36
|
+
const hasOuterAbi = outerAbi && outerAbi.length > 0;
|
|
34
37
|
const standardErrorAbi = useMemo(() => {
|
|
35
|
-
if (
|
|
38
|
+
if (isErrorDataEmpty)
|
|
36
39
|
return null;
|
|
37
40
|
if (errorData.startsWith(COMMON_ERROR_OUTPUT_PREFIX))
|
|
38
41
|
return CommonError_default;
|
|
39
42
|
if (errorData.startsWith(COMMON_PANIC_OUTPUT_PREFIX))
|
|
40
43
|
return CommonPanic_default;
|
|
41
44
|
return null;
|
|
42
|
-
}, [errorData]);
|
|
45
|
+
}, [errorData, isErrorDataEmpty]);
|
|
46
|
+
const needContractAbi = !standardErrorAbi && !hasOuterAbi && !isErrorDataEmpty;
|
|
43
47
|
const { data, isLoading: contractLoading } = useContractDetail(
|
|
44
48
|
to,
|
|
45
49
|
fields,
|
|
46
|
-
|
|
50
|
+
needContractAbi
|
|
47
51
|
);
|
|
48
52
|
const implementation = _implementation ?? data?.implementation?.address;
|
|
49
|
-
const { data: implementationData, isLoading: implementationLoading } = useContractDetail(implementation, fields,
|
|
53
|
+
const { data: implementationData, isLoading: implementationLoading } = useContractDetail(implementation, fields, needContractAbi);
|
|
50
54
|
const decodedByStandardError = useMemo(() => {
|
|
51
|
-
if (!standardErrorAbi ||
|
|
55
|
+
if (!standardErrorAbi || isErrorDataEmpty)
|
|
52
56
|
return null;
|
|
53
57
|
try {
|
|
54
58
|
const result = decodeErrorResult({
|
|
@@ -64,9 +68,27 @@ var useDecodeFunctionError = ({
|
|
|
64
68
|
failed: true
|
|
65
69
|
};
|
|
66
70
|
}
|
|
67
|
-
}, [errorData, standardErrorAbi, space]);
|
|
71
|
+
}, [errorData, isErrorDataEmpty, standardErrorAbi, space]);
|
|
72
|
+
const decodedByOuterAbi = useMemo(() => {
|
|
73
|
+
if (!outerAbi || isErrorDataEmpty)
|
|
74
|
+
return null;
|
|
75
|
+
try {
|
|
76
|
+
const result = decodeErrorResult({
|
|
77
|
+
abi: outerAbi,
|
|
78
|
+
data: errorData,
|
|
79
|
+
space
|
|
80
|
+
});
|
|
81
|
+
return result;
|
|
82
|
+
} catch (error) {
|
|
83
|
+
console.log("decode error data with abi in params failed", error);
|
|
84
|
+
return {
|
|
85
|
+
errorName: "unknown",
|
|
86
|
+
failed: true
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}, [errorData, isErrorDataEmpty, outerAbi, space]);
|
|
68
90
|
const decoded = useMemo(() => {
|
|
69
|
-
if (!data?.abi ||
|
|
91
|
+
if (!data?.abi || isErrorDataEmpty)
|
|
70
92
|
return null;
|
|
71
93
|
try {
|
|
72
94
|
const result = decodeErrorResult({
|
|
@@ -82,9 +104,9 @@ var useDecodeFunctionError = ({
|
|
|
82
104
|
failed: true
|
|
83
105
|
};
|
|
84
106
|
}
|
|
85
|
-
}, [errorData, data, space]);
|
|
107
|
+
}, [errorData, isErrorDataEmpty, data, space]);
|
|
86
108
|
const decodedByImplementation = useMemo(() => {
|
|
87
|
-
if (!implementationData?.abi ||
|
|
109
|
+
if (!implementationData?.abi || isErrorDataEmpty)
|
|
88
110
|
return null;
|
|
89
111
|
try {
|
|
90
112
|
const result = decodeErrorResult({
|
|
@@ -100,9 +122,9 @@ var useDecodeFunctionError = ({
|
|
|
100
122
|
failed: true
|
|
101
123
|
};
|
|
102
124
|
}
|
|
103
|
-
}, [errorData, implementationData, space]);
|
|
125
|
+
}, [errorData, isErrorDataEmpty, implementationData, space]);
|
|
104
126
|
const errorId = errorData?.startsWith("0x") ? errorData.slice(0, 10) : null;
|
|
105
|
-
const needErrorAbi = supportErrorAbi && !!errorId && // contract abi decoded failed
|
|
127
|
+
const needErrorAbi = supportErrorAbi && !isErrorDataEmpty && !!errorId && // contract abi decoded failed
|
|
106
128
|
!contractLoading && (!decoded || decoded.failed) && // implementation contract abi decoded failed
|
|
107
129
|
!implementationLoading && (!decodedByImplementation || decodedByImplementation.failed);
|
|
108
130
|
const { data: errorAbiResponse, isLoading: errorAbiLoading } = useAbiItemById(
|
|
@@ -111,7 +133,7 @@ var useDecodeFunctionError = ({
|
|
|
111
133
|
needErrorAbi
|
|
112
134
|
);
|
|
113
135
|
const decodedByErrorAbi = useMemo(() => {
|
|
114
|
-
if (!errorAbiResponse ||
|
|
136
|
+
if (!errorAbiResponse || isErrorDataEmpty || !errorId)
|
|
115
137
|
return null;
|
|
116
138
|
const errorAbiList = errorAbiResponse?.error?.[errorId];
|
|
117
139
|
if (!errorAbiList || errorAbiList.length !== 1)
|
|
@@ -136,12 +158,14 @@ var useDecodeFunctionError = ({
|
|
|
136
158
|
failed: true
|
|
137
159
|
};
|
|
138
160
|
}
|
|
139
|
-
}, [errorAbiResponse, errorData, errorId, space]);
|
|
161
|
+
}, [errorAbiResponse, errorData, isErrorDataEmpty, errorId, space]);
|
|
140
162
|
return useMemo(() => {
|
|
141
|
-
if (
|
|
163
|
+
if (isErrorDataEmpty)
|
|
142
164
|
return [null, false];
|
|
143
165
|
if (decodedByStandardError && !decodedByStandardError.failed)
|
|
144
166
|
return [decodedByStandardError, false];
|
|
167
|
+
if (decodedByOuterAbi && !decodedByOuterAbi.failed)
|
|
168
|
+
return [decodedByOuterAbi, false];
|
|
145
169
|
if (decodedByImplementation && !decodedByImplementation.failed)
|
|
146
170
|
return [decodedByImplementation, implementationLoading];
|
|
147
171
|
if (decoded && !decoded.failed)
|
|
@@ -153,14 +177,16 @@ var useDecodeFunctionError = ({
|
|
|
153
177
|
return [
|
|
154
178
|
{
|
|
155
179
|
errorName: "unknown",
|
|
156
|
-
noAbi: !decodedByStandardError && !decodedByImplementation && !decoded && !decodedByErrorAbi,
|
|
157
|
-
failed: decodedByStandardError?.failed || decodedByImplementation?.failed || decoded?.failed || decodedByErrorAbi?.failed
|
|
180
|
+
noAbi: !decodedByStandardError && !decodedByOuterAbi && !decodedByImplementation && !decoded && !decodedByErrorAbi,
|
|
181
|
+
failed: decodedByStandardError?.failed || decodedByOuterAbi?.failed || decodedByImplementation?.failed || decoded?.failed || decodedByErrorAbi?.failed
|
|
158
182
|
},
|
|
159
183
|
false
|
|
160
184
|
];
|
|
161
185
|
}, [
|
|
162
186
|
errorData,
|
|
187
|
+
isErrorDataEmpty,
|
|
163
188
|
decodedByStandardError,
|
|
189
|
+
decodedByOuterAbi,
|
|
164
190
|
decoded,
|
|
165
191
|
decodedByImplementation,
|
|
166
192
|
decodedByErrorAbi,
|
|
@@ -174,4 +200,4 @@ var useDecodeFunctionError = ({
|
|
|
174
200
|
export {
|
|
175
201
|
useDecodeFunctionError
|
|
176
202
|
};
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
203
|
+
//# sourceMappingURL=chunk-A4QSFRUF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/hooks/useDecodeFunctionError.ts"],"sourcesContent":["import { useMemo } from 'react';\nimport { decodeErrorResult } from 'src/utils/sdk';\nimport type { AbiItem } from 'src/utils/sdk';\nimport { useContractDetail } from './useContractDetail';\nimport {\n COMMON_ERROR_OUTPUT_PREFIX,\n COMMON_PANIC_OUTPUT_PREFIX,\n} from '../constants';\nimport CommonError from 'src/abis/CommonError';\nimport CommonPanic from 'src/abis/CommonPanic';\nimport { useAbiItemById } from './useAbiItemById';\nimport { formatABI } from '..';\n\nconst fields = ['abi' as const];\n\ninterface Params {\n errorData?: `0x${string}`;\n to?: string;\n abi?: AbiItem[];\n implementation?: string;\n space: 'evm' | 'core';\n supportErrorAbi?: boolean;\n}\ninterface Result {\n abiItem?: AbiItem;\n args?: readonly unknown[];\n errorName: string;\n // no abi for decoded\n noAbi?: boolean;\n // decoded failed\n failed?: boolean;\n}\n\nexport const useDecodeFunctionError = ({\n to,\n implementation: _implementation,\n errorData,\n space,\n abi: outerAbi,\n supportErrorAbi = false,\n}: Params): [Result | null, boolean] => {\n const isErrorDataEmpty = !errorData || errorData === '0x';\n const hasOuterAbi = outerAbi && outerAbi.length > 0;\n const standardErrorAbi = useMemo(() => {\n if (isErrorDataEmpty) return null;\n if (errorData.startsWith(COMMON_ERROR_OUTPUT_PREFIX)) return CommonError;\n if (errorData.startsWith(COMMON_PANIC_OUTPUT_PREFIX)) return CommonPanic;\n return null;\n }, [errorData, isErrorDataEmpty]);\n const needContractAbi =\n !standardErrorAbi && !hasOuterAbi && !isErrorDataEmpty;\n const { data, isLoading: contractLoading } = useContractDetail(\n to,\n fields,\n needContractAbi,\n );\n const implementation = _implementation ?? data?.implementation?.address;\n const { data: implementationData, isLoading: implementationLoading } =\n useContractDetail(implementation, fields, needContractAbi);\n const decodedByStandardError = useMemo(() => {\n if (!standardErrorAbi || isErrorDataEmpty) return null;\n try {\n const result = decodeErrorResult({\n abi: standardErrorAbi,\n data: errorData,\n space,\n });\n return result as Result;\n } catch (error) {\n console.log('decode error data with standard error abi failed', error);\n return {\n errorName: 'unknown',\n failed: true,\n };\n }\n }, [errorData, isErrorDataEmpty, standardErrorAbi, space]);\n const decodedByOuterAbi = useMemo(() => {\n if (!outerAbi || isErrorDataEmpty) return null;\n try {\n const result = decodeErrorResult({\n abi: outerAbi,\n data: errorData,\n space,\n });\n return result as Result;\n } catch (error) {\n console.log('decode error data with abi in params failed', error);\n return {\n errorName: 'unknown',\n failed: true,\n };\n }\n }, [errorData, isErrorDataEmpty, outerAbi, space]);\n const decoded = useMemo(() => {\n if (!data?.abi || isErrorDataEmpty) return null;\n try {\n const result = decodeErrorResult({\n abi: JSON.parse(data.abi as string),\n data: errorData,\n space,\n });\n return result as Result;\n } catch (error) {\n console.log('decode error data with contract abi failed', error);\n return {\n errorName: 'unknown',\n failed: true,\n };\n }\n }, [errorData, isErrorDataEmpty, data, space]);\n const decodedByImplementation = useMemo(() => {\n if (!implementationData?.abi || isErrorDataEmpty) return null;\n try {\n const result = decodeErrorResult({\n abi: JSON.parse(implementationData.abi as string),\n data: errorData,\n space,\n });\n return result as Result;\n } catch (error) {\n console.log('decode error data with implementation abi failed', error);\n return {\n errorName: 'unknown',\n failed: true,\n };\n }\n }, [errorData, isErrorDataEmpty, implementationData, space]);\n const errorId = errorData?.startsWith('0x') ? errorData.slice(0, 10) : null;\n const needErrorAbi =\n supportErrorAbi &&\n !isErrorDataEmpty &&\n !!errorId &&\n // contract abi decoded failed\n !contractLoading &&\n (!decoded || decoded.failed) &&\n // implementation contract abi decoded failed\n !implementationLoading &&\n (!decodedByImplementation || decodedByImplementation.failed);\n const { data: errorAbiResponse, isLoading: errorAbiLoading } = useAbiItemById(\n errorId,\n 'error',\n needErrorAbi,\n );\n const decodedByErrorAbi = useMemo(() => {\n if (!errorAbiResponse || isErrorDataEmpty || !errorId) return null;\n const errorAbiList = errorAbiResponse?.error?.[errorId];\n // decode tx data with error abi only if there is only one abi\n if (!errorAbiList || errorAbiList.length !== 1) return null;\n const errorAbi = errorAbiList[0]!;\n try {\n // e.g. NotFromEntryPoint(address,address,address)\n const signature = errorAbi.signature;\n // e.g. error NotFromEntryPoint(address msgSender, address entity, address entryPoint)\n const fullFormat = errorAbi.fullFormat;\n const abi = formatABI([fullFormat || `error ${signature}`], {\n json: true,\n });\n const result = decodeErrorResult({\n abi: JSON.parse(abi),\n data: errorData,\n space,\n });\n return result as Result;\n } catch (error) {\n console.log('decode error data with error abi failed', error);\n return {\n errorName: 'unknown',\n failed: true,\n };\n }\n }, [errorAbiResponse, errorData, isErrorDataEmpty, errorId, space]);\n\n return useMemo(() => {\n if (isErrorDataEmpty) return [null, false];\n if (decodedByStandardError && !decodedByStandardError.failed)\n return [decodedByStandardError, false];\n if (decodedByOuterAbi && !decodedByOuterAbi.failed)\n return [decodedByOuterAbi, false];\n if (decodedByImplementation && !decodedByImplementation.failed)\n return [decodedByImplementation, implementationLoading];\n if (decoded && !decoded.failed) return [decoded, contractLoading];\n if (decodedByErrorAbi && !decodedByErrorAbi.failed)\n return [decodedByErrorAbi, errorAbiLoading];\n if (contractLoading || implementationLoading || errorAbiLoading)\n return [null, true];\n return [\n {\n errorName: 'unknown',\n noAbi:\n !decodedByStandardError &&\n !decodedByOuterAbi &&\n !decodedByImplementation &&\n !decoded &&\n !decodedByErrorAbi,\n failed:\n decodedByStandardError?.failed ||\n decodedByOuterAbi?.failed ||\n decodedByImplementation?.failed ||\n decoded?.failed ||\n decodedByErrorAbi?.failed,\n },\n false,\n ];\n }, [\n errorData,\n isErrorDataEmpty,\n decodedByStandardError,\n decodedByOuterAbi,\n decoded,\n decodedByImplementation,\n decodedByErrorAbi,\n contractLoading,\n implementationLoading,\n errorAbiLoading,\n space,\n ]);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,eAAe;AAaxB,IAAM,SAAS,CAAC,KAAc;AAoBvB,IAAM,yBAAyB,CAAC;AAAA,EACrC;AAAA,EACA,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,EACA,KAAK;AAAA,EACL,kBAAkB;AACpB,MAAwC;AACtC,QAAM,mBAAmB,CAAC,aAAa,cAAc;AACrD,QAAM,cAAc,YAAY,SAAS,SAAS;AAClD,QAAM,mBAAmB,QAAQ,MAAM;AACrC,QAAI;AAAkB,aAAO;AAC7B,QAAI,UAAU,WAAW,0BAA0B;AAAG,aAAO;AAC7D,QAAI,UAAU,WAAW,0BAA0B;AAAG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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAddressLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SCTG3SCG.js";
|
|
4
4
|
import {
|
|
5
5
|
useENS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SFULLYYL.js";
|
|
7
7
|
import {
|
|
8
8
|
Text
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CWTDFCRF.js";
|
|
10
10
|
import {
|
|
11
11
|
getTranslations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L4AFJGXJ.js";
|
|
13
13
|
|
|
14
14
|
// src/components/InputData/AddressLabel.tsx
|
|
15
15
|
import { Bookmark } from "@zeit-ui/react-icons";
|
|
@@ -48,4 +48,4 @@ var AddressLabel = ({
|
|
|
48
48
|
export {
|
|
49
49
|
AddressLabel
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-A64ILFRR.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useDecodeFunctionData
|
|
3
|
-
} from "./chunk-IUFQJFZW.js";
|
|
4
1
|
import {
|
|
5
2
|
useDecodedDataType
|
|
6
3
|
} from "./chunk-UM5J477V.js";
|
|
4
|
+
import {
|
|
5
|
+
useDecodeFunctionData
|
|
6
|
+
} from "./chunk-XQ246UQW.js";
|
|
7
7
|
import {
|
|
8
8
|
Select
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-63ULYLAC.js";
|
|
10
10
|
import {
|
|
11
11
|
OutputData
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OVWRJMGS.js";
|
|
13
13
|
import {
|
|
14
14
|
InputData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WZ6MS4XP.js";
|
|
16
16
|
import {
|
|
17
17
|
AbiWarning
|
|
18
18
|
} from "./chunk-XBEBAU77.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-O6NJ56NA.js";
|
|
22
22
|
import {
|
|
23
23
|
getTranslations
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-L4AFJGXJ.js";
|
|
25
25
|
|
|
26
26
|
// src/components/TransactionTrace/TraceDetail.tsx
|
|
27
27
|
import { useTranslation } from "react-i18next";
|
|
@@ -189,4 +189,4 @@ var TraceDetail = (props) => {
|
|
|
189
189
|
export {
|
|
190
190
|
TraceDetail
|
|
191
191
|
};
|
|
192
|
-
//# sourceMappingURL=chunk-
|
|
192
|
+
//# sourceMappingURL=chunk-A7LX3FWL.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-WJPIKXWT.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-AJB2BZ6T.js.map
|
|
@@ -32,8 +32,7 @@ import {
|
|
|
32
32
|
toBytes,
|
|
33
33
|
utf8ToBytes,
|
|
34
34
|
validateObject
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-WQG2LZMB.js";
|
|
35
|
+
} from "./chunk-LBAEFEJU.js";
|
|
37
36
|
|
|
38
37
|
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js
|
|
39
38
|
function setBigUint64(view, byteOffset, value, isLE) {
|
|
@@ -2228,12 +2227,14 @@ var secp256k1_hasher = /* @__PURE__ */ (() => createHasher2(secp256k1.Projective
|
|
|
2228
2227
|
}))();
|
|
2229
2228
|
var hashToCurve = /* @__PURE__ */ (() => secp256k1_hasher.hashToCurve)();
|
|
2230
2229
|
var encodeToCurve = /* @__PURE__ */ (() => secp256k1_hasher.encodeToCurve)();
|
|
2230
|
+
|
|
2231
2231
|
export {
|
|
2232
|
-
|
|
2233
|
-
hashToCurve,
|
|
2234
|
-
schnorr,
|
|
2232
|
+
sha256,
|
|
2235
2233
|
secp256k1,
|
|
2236
|
-
|
|
2234
|
+
schnorr,
|
|
2235
|
+
secp256k1_hasher,
|
|
2236
|
+
hashToCurve,
|
|
2237
|
+
encodeToCurve
|
|
2237
2238
|
};
|
|
2238
2239
|
/*! Bundled license information:
|
|
2239
2240
|
|
|
@@ -2252,4 +2253,4 @@ export {
|
|
|
2252
2253
|
@noble/curves/esm/secp256k1.js:
|
|
2253
2254
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
2254
2255
|
*/
|
|
2255
|
-
//# sourceMappingURL=
|
|
2256
|
+
//# sourceMappingURL=chunk-CGDNDBBP.js.map
|