@cfxjs/sirius-next-common 0.2.12 → 0.2.13
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-4J3SQGIV.js → chunk-2FMNW46L.js} +2 -2
- package/dist/{chunk-3HO74CMH.js → chunk-E67IKDZ4.js} +2 -2
- package/dist/{chunk-QMLPHJCA.js → chunk-GFY6G6I2.js} +2 -8
- package/dist/chunk-GFY6G6I2.js.map +1 -0
- package/dist/components/OutputData/index.js +1 -1
- package/dist/components/TransactionTrace/TraceDetail.js +2 -2
- package/dist/components/TransactionTrace/TreeTraceTable.js +3 -3
- package/dist/components/TransactionTrace/index.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-QMLPHJCA.js.map +0 -1
- /package/dist/{chunk-4J3SQGIV.js.map → chunk-2FMNW46L.js.map} +0 -0
- /package/dist/{chunk-3HO74CMH.js.map → chunk-E67IKDZ4.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-XZ7IV2FF.js";
|
|
4
4
|
import {
|
|
5
5
|
TraceDetail
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E67IKDZ4.js";
|
|
7
7
|
|
|
8
8
|
// src/components/TransactionTrace/TreeTraceTable.tsx
|
|
9
9
|
import { useMemo } from "react";
|
|
@@ -79,4 +79,4 @@ var TreeTraceTable = ({
|
|
|
79
79
|
export {
|
|
80
80
|
TreeTraceTable
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-2FMNW46L.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-YIZCD4WG.js";
|
|
10
10
|
import {
|
|
11
11
|
OutputData
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GFY6G6I2.js";
|
|
13
13
|
import {
|
|
14
14
|
InputData
|
|
15
15
|
} from "./chunk-NXCZ5PMI.js";
|
|
@@ -183,4 +183,4 @@ var TraceDetail = (props) => {
|
|
|
183
183
|
export {
|
|
184
184
|
TraceDetail
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
186
|
+
//# sourceMappingURL=chunk-E67IKDZ4.js.map
|
|
@@ -35,13 +35,7 @@ var OutputData = ({
|
|
|
35
35
|
if (!success)
|
|
36
36
|
return /* @__PURE__ */ jsx(Original, { data: output });
|
|
37
37
|
if (decodedData) {
|
|
38
|
-
return /* @__PURE__ */ jsx(
|
|
39
|
-
GeneralDecode,
|
|
40
|
-
{
|
|
41
|
-
data: output,
|
|
42
|
-
fullName: decodedData.fullName
|
|
43
|
-
}
|
|
44
|
-
);
|
|
38
|
+
return /* @__PURE__ */ jsx(GeneralDecode, { data: output, includeMethodID: false });
|
|
45
39
|
}
|
|
46
40
|
} else if (dataType === "optimizationDecode") {
|
|
47
41
|
if (!success) {
|
|
@@ -75,4 +69,4 @@ var OutputData = ({
|
|
|
75
69
|
export {
|
|
76
70
|
OutputData
|
|
77
71
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
72
|
+
//# sourceMappingURL=chunk-GFY6G6I2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/OutputData/index.tsx"],"sourcesContent":["import { DataType } from 'src/utils/hooks/useDecodedDataType';\nimport { DecodedFunctionData } from 'src/utils/hooks/useDecodeFunctionData';\nimport { ErrorDecode } from './ErrorDecode';\nimport { Original } from '../InputData/Original';\nimport { UTF8 } from '../InputData/UTF8';\nimport { GeneralDecode } from '../InputData/GeneralDecode';\nimport { DecodedParameters } from '../InputData/OptimizationDecode';\n\nexport const OutputData = ({\n decodedData,\n dataType,\n output,\n to,\n space,\n success,\n proxy,\n labelClassName,\n}: {\n decodedData?: DecodedFunctionData;\n dataType: DataType;\n output?: `0x${string}`;\n space: 'evm' | 'core';\n to?: string;\n labelClassName?: string;\n success?: boolean;\n proxy?: {\n beaconAddress?: string;\n implAddress: string;\n };\n}) => {\n const isReturnDataEmpty = !output || output === '0x';\n if (isReturnDataEmpty) return null;\n if (dataType === 'utf8') {\n return <UTF8 data={output}></UTF8>;\n } else if (dataType === 'generalDecode') {\n if (!success) return <Original data={output}></Original>;\n if (decodedData) {\n return (\n <GeneralDecode data={output} includeMethodID={false}></GeneralDecode>\n );\n }\n } else if (dataType === 'optimizationDecode') {\n if (!success) {\n return (\n <ErrorDecode\n to={to}\n space={space}\n errorData={output}\n proxy={proxy}\n labelClassName={labelClassName}\n ></ErrorDecode>\n );\n }\n if (decodedData) {\n return (\n <DecodedParameters\n args={decodedData.decodedResults}\n params={decodedData.abiItem?.outputs ?? []}\n label=\"Return:\"\n labelClassName={labelClassName}\n space={space}\n />\n );\n }\n }\n return <Original data={output}></Original>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAiCW;AAzBJ,IAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAYM;AACJ,QAAM,oBAAoB,CAAC,UAAU,WAAW;AAChD,MAAI;AAAmB,WAAO;AAC9B,MAAI,aAAa,QAAQ;AACvB,WAAO,oBAAC,QAAK,MAAM,QAAQ;AAAA,EAC7B,WAAW,aAAa,iBAAiB;AACvC,QAAI,CAAC;AAAS,aAAO,oBAAC,YAAS,MAAM,QAAQ;AAC7C,QAAI,aAAa;AACf,aACE,oBAAC,iBAAc,MAAM,QAAQ,iBAAiB,OAAO;AAAA,IAEzD;AAAA,EACF,WAAW,aAAa,sBAAsB;AAC5C,QAAI,CAAC,SAAS;AACZ,aACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA,WAAW;AAAA,UACX;AAAA,UACA;AAAA;AAAA,MACD;AAAA,IAEL;AACA,QAAI,aAAa;AACf,aACE;AAAA,QAAC;AAAA;AAAA,UACC,MAAM,YAAY;AAAA,UAClB,QAAQ,YAAY,SAAS,WAAW,CAAC;AAAA,UACzC,OAAM;AAAA,UACN;AAAA,UACA;AAAA;AAAA,MACF;AAAA,IAEJ;AAAA,EACF;AACA,SAAO,oBAAC,YAAS,MAAM,QAAQ;AACjC;","names":[]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TraceDetail
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-E67IKDZ4.js";
|
|
4
4
|
import "../../chunk-UM5J477V.js";
|
|
5
5
|
import "../../chunk-EERNUGUK.js";
|
|
6
6
|
import "../../chunk-E3ZD2GGG.js";
|
|
7
7
|
import "../../chunk-YIZCD4WG.js";
|
|
8
8
|
import "../../chunk-EMPFZFBS.js";
|
|
9
9
|
import "../../chunk-NWVSTRCG.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-GFY6G6I2.js";
|
|
11
11
|
import "../../chunk-6HJCR6PQ.js";
|
|
12
12
|
import "../../chunk-K6FHTS3F.js";
|
|
13
13
|
import "../../chunk-6SXAFSBF.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TreeTraceTable
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-2FMNW46L.js";
|
|
4
4
|
import "../../chunk-XZ7IV2FF.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-E67IKDZ4.js";
|
|
6
6
|
import "../../chunk-UM5J477V.js";
|
|
7
7
|
import "../../chunk-EERNUGUK.js";
|
|
8
8
|
import "../../chunk-E3ZD2GGG.js";
|
|
9
9
|
import "../../chunk-YIZCD4WG.js";
|
|
10
10
|
import "../../chunk-EMPFZFBS.js";
|
|
11
11
|
import "../../chunk-NWVSTRCG.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-GFY6G6I2.js";
|
|
13
13
|
import "../../chunk-6HJCR6PQ.js";
|
|
14
14
|
import "../../chunk-K6FHTS3F.js";
|
|
15
15
|
import "../../chunk-6SXAFSBF.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TreeTraceTable
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-2FMNW46L.js";
|
|
4
4
|
import "../../chunk-XZ7IV2FF.js";
|
|
5
5
|
import {
|
|
6
6
|
TraceDetail
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-E67IKDZ4.js";
|
|
8
8
|
import "../../chunk-UM5J477V.js";
|
|
9
9
|
import "../../chunk-EERNUGUK.js";
|
|
10
10
|
import "../../chunk-E3ZD2GGG.js";
|
|
11
11
|
import "../../chunk-YIZCD4WG.js";
|
|
12
12
|
import "../../chunk-EMPFZFBS.js";
|
|
13
13
|
import "../../chunk-NWVSTRCG.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-GFY6G6I2.js";
|
|
15
15
|
import "../../chunk-6HJCR6PQ.js";
|
|
16
16
|
import "../../chunk-K6FHTS3F.js";
|
|
17
17
|
import "../../chunk-6SXAFSBF.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfxjs/sirius-next-common",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**"
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"typescript": "^5.4.2",
|
|
79
79
|
"unocss": "0.58.6",
|
|
80
80
|
"vitest": "3.2.3",
|
|
81
|
-
"@cfxjs/sirius-next-eslint-config": "0.0.0",
|
|
82
81
|
"@cfxjs/sirius-next-i18n": "0.2.9",
|
|
82
|
+
"@cfxjs/sirius-next-eslint-config": "0.0.0",
|
|
83
83
|
"@cfxjs/sirius-next-typescript-config": "0.0.0"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/OutputData/index.tsx"],"sourcesContent":["import { DataType } from 'src/utils/hooks/useDecodedDataType';\nimport { DecodedFunctionData } from 'src/utils/hooks/useDecodeFunctionData';\nimport { ErrorDecode } from './ErrorDecode';\nimport { Original } from '../InputData/Original';\nimport { UTF8 } from '../InputData/UTF8';\nimport { GeneralDecode } from '../InputData/GeneralDecode';\nimport { DecodedParameters } from '../InputData/OptimizationDecode';\n\nexport const OutputData = ({\n decodedData,\n dataType,\n output,\n to,\n space,\n success,\n proxy,\n labelClassName,\n}: {\n decodedData?: DecodedFunctionData;\n dataType: DataType;\n output?: `0x${string}`;\n space: 'evm' | 'core';\n to?: string;\n labelClassName?: string;\n success?: boolean;\n proxy?: {\n beaconAddress?: string;\n implAddress: string;\n };\n}) => {\n const isReturnDataEmpty = !output || output === '0x';\n if (isReturnDataEmpty) return null;\n if (dataType === 'utf8') {\n return <UTF8 data={output}></UTF8>;\n } else if (dataType === 'generalDecode') {\n if (!success) return <Original data={output}></Original>;\n if (decodedData) {\n return (\n <GeneralDecode\n data={output}\n fullName={decodedData.fullName}\n ></GeneralDecode>\n );\n }\n } else if (dataType === 'optimizationDecode') {\n if (!success) {\n return (\n <ErrorDecode\n to={to}\n space={space}\n errorData={output}\n proxy={proxy}\n labelClassName={labelClassName}\n ></ErrorDecode>\n );\n }\n if (decodedData) {\n return (\n <DecodedParameters\n args={decodedData.decodedResults}\n params={decodedData.abiItem?.outputs ?? []}\n label=\"Return:\"\n labelClassName={labelClassName}\n space={space}\n />\n );\n }\n }\n return <Original data={output}></Original>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAiCW;AAzBJ,IAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAYM;AACJ,QAAM,oBAAoB,CAAC,UAAU,WAAW;AAChD,MAAI;AAAmB,WAAO;AAC9B,MAAI,aAAa,QAAQ;AACvB,WAAO,oBAAC,QAAK,MAAM,QAAQ;AAAA,EAC7B,WAAW,aAAa,iBAAiB;AACvC,QAAI,CAAC;AAAS,aAAO,oBAAC,YAAS,MAAM,QAAQ;AAC7C,QAAI,aAAa;AACf,aACE;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,UAAU,YAAY;AAAA;AAAA,MACvB;AAAA,IAEL;AAAA,EACF,WAAW,aAAa,sBAAsB;AAC5C,QAAI,CAAC,SAAS;AACZ,aACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA,WAAW;AAAA,UACX;AAAA,UACA;AAAA;AAAA,MACD;AAAA,IAEL;AACA,QAAI,aAAa;AACf,aACE;AAAA,QAAC;AAAA;AAAA,UACC,MAAM,YAAY;AAAA,UAClB,QAAQ,YAAY,SAAS,WAAW,CAAC;AAAA,UACzC,OAAM;AAAA,UACN;AAAA,UACA;AAAA;AAAA,MACF;AAAA,IAEJ;AAAA,EACF;AACA,SAAO,oBAAC,YAAS,MAAM,QAAQ;AACjC;","names":[]}
|
|
File without changes
|
|
File without changes
|