@cfxjs/sirius-next-common 0.2.24 → 0.2.25
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-R62HRSIY.js → chunk-2KOLEWOS.js} +2 -2
- package/dist/{chunk-MWSXXVVL.js → chunk-2PGGAIEP.js} +6 -6
- package/dist/{chunk-OFAM2QTT.js → chunk-2PQY4AOY.js} +2 -2
- package/dist/{chunk-DASMAZXS.js → chunk-2UN57Q5P.js} +3 -3
- package/dist/{chunk-4B7BV62E.js → chunk-442632G5.js} +3 -3
- package/dist/{chunk-6C5NQACS.js → chunk-6PDWJNOG.js} +4 -4
- package/dist/{chunk-A6B5V6XY.js → chunk-73PNXQWF.js} +2 -2
- package/dist/{chunk-UVRMLFMC.js → chunk-75SROBSE.js} +2 -2
- package/dist/{chunk-E7FB4S3X.js → chunk-7R6SGHOG.js} +14 -4
- package/dist/chunk-7R6SGHOG.js.map +1 -0
- package/dist/{chunk-FTAFV6RE.js → chunk-AKS6URWT.js} +5 -5
- package/dist/{chunk-C6GUZVQ2.js → chunk-BHL6OY3L.js} +2 -2
- package/dist/{chunk-VEK5DLFI.js → chunk-C2BON7HP.js} +2 -2
- package/dist/{chunk-FW5ON36S.js → chunk-COMABNT2.js} +5 -5
- package/dist/{chunk-ASS6TOFE.js → chunk-D6FWT557.js} +4 -4
- package/dist/{chunk-O6BP54O6.js → chunk-DWU7DZBU.js} +3 -3
- package/dist/{chunk-OT252GGM.js → chunk-FUZVMDLY.js} +4 -4
- package/dist/{chunk-MQY7EQPG.js → chunk-IUL5FJSO.js} +2 -2
- package/dist/{chunk-J536GL5G.js → chunk-MBRAYFD4.js} +2 -2
- package/dist/{chunk-A46LVI25.js → chunk-NG6K2B3F.js} +2 -2
- package/dist/{chunk-FGPRA3A4.js → chunk-NQFK4HOS.js} +4 -4
- package/dist/{chunk-HCEXWKMZ.js → chunk-NRHFGPN6.js} +4 -4
- package/dist/{chunk-UX6IRX2M.js → chunk-QUEYGZEY.js} +3 -3
- package/dist/{chunk-OTSNM4CR.js → chunk-RDIVTGYB.js} +2 -2
- package/dist/{chunk-VD73ULXJ.js → chunk-RIWM6DB5.js} +3 -3
- package/dist/{chunk-AQFNXW4W.js → chunk-S4M4LBVQ.js} +2 -2
- package/dist/{chunk-7WDLTRBN.js → chunk-SWH3CIYY.js} +2 -2
- package/dist/{chunk-CNXGYDZG.js → chunk-TNVFEZBN.js} +6 -6
- package/dist/{chunk-SIZYE6WH.js → chunk-UAUOFPHA.js} +2 -2
- package/dist/{chunk-4BS66NNM.js → chunk-UDR62T6C.js} +2 -2
- package/dist/{chunk-EHRGH3HS.js → chunk-UQQJ37UO.js} +4 -4
- package/dist/{chunk-FSYB23NA.js → chunk-WBV3BSDG.js} +2 -2
- package/dist/{chunk-SNUPCZY7.js → chunk-XASQUPYS.js} +2 -2
- package/dist/{chunk-7RLNWQIR.js → chunk-ZTGRS6WM.js} +5 -5
- package/dist/components/AAFailedReason/index.js +3 -3
- package/dist/components/AceEditor/index.js +4 -4
- package/dist/components/AddressContainer/CoreAddressContainer.js +10 -10
- package/dist/components/AddressContainer/EVMAddressContainer.js +9 -9
- package/dist/components/AddressContainer/addressSwitcher.js +7 -7
- package/dist/components/AddressContainer/addressView.js +6 -6
- package/dist/components/AddressContainer/label.js +3 -3
- package/dist/components/AddressContainer/utils.js +3 -3
- 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 -8
- package/dist/components/InputData/ContractDetail.js +5 -5
- package/dist/components/InputData/JsonDecode.js +5 -5
- package/dist/components/InputData/OptimizationDecode.js +12 -12
- package/dist/components/InputData/UTF8.js +3 -3
- package/dist/components/InputData/index.js +16 -16
- package/dist/components/List/index.js +1 -1
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/NetworkIcon/index.js +2 -2
- package/dist/components/OutputData/ErrorDecode.js +15 -15
- package/dist/components/OutputData/index.js +17 -17
- 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.js +6 -6
- 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/SmartAccountAddress/index.js +6 -6
- package/dist/components/Text/index.js +4 -4
- package/dist/components/Tooltip/index.js +3 -3
- package/dist/components/TransactionAction/coreTransactionAction.js +10 -10
- package/dist/components/TransactionAction/evmTransactionAction.js +9 -9
- package/dist/components/TransactionTrace/TraceDetail.js +25 -25
- package/dist/components/TransactionTrace/TreeTraceTable.js +26 -26
- package/dist/components/TransactionTrace/index.js +26 -26
- 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.js +2 -2
- 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.js +2 -2
- package/dist/utils/hooks/useMethodAbi.js +2 -2
- package/dist/utils/hooks/useTableData.js +1 -1
- package/dist/utils/hooks/useTxTrace.js +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/ipfsGateway.d.ts +52 -0
- package/dist/utils/ipfsGateway.js +350 -0
- package/dist/utils/ipfsGateway.js.map +1 -0
- package/dist/utils/request.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-E7FB4S3X.js.map +0 -1
- /package/dist/{chunk-R62HRSIY.js.map → chunk-2KOLEWOS.js.map} +0 -0
- /package/dist/{chunk-MWSXXVVL.js.map → chunk-2PGGAIEP.js.map} +0 -0
- /package/dist/{chunk-OFAM2QTT.js.map → chunk-2PQY4AOY.js.map} +0 -0
- /package/dist/{chunk-DASMAZXS.js.map → chunk-2UN57Q5P.js.map} +0 -0
- /package/dist/{chunk-4B7BV62E.js.map → chunk-442632G5.js.map} +0 -0
- /package/dist/{chunk-6C5NQACS.js.map → chunk-6PDWJNOG.js.map} +0 -0
- /package/dist/{chunk-A6B5V6XY.js.map → chunk-73PNXQWF.js.map} +0 -0
- /package/dist/{chunk-UVRMLFMC.js.map → chunk-75SROBSE.js.map} +0 -0
- /package/dist/{chunk-FTAFV6RE.js.map → chunk-AKS6URWT.js.map} +0 -0
- /package/dist/{chunk-C6GUZVQ2.js.map → chunk-BHL6OY3L.js.map} +0 -0
- /package/dist/{chunk-VEK5DLFI.js.map → chunk-C2BON7HP.js.map} +0 -0
- /package/dist/{chunk-FW5ON36S.js.map → chunk-COMABNT2.js.map} +0 -0
- /package/dist/{chunk-ASS6TOFE.js.map → chunk-D6FWT557.js.map} +0 -0
- /package/dist/{chunk-O6BP54O6.js.map → chunk-DWU7DZBU.js.map} +0 -0
- /package/dist/{chunk-OT252GGM.js.map → chunk-FUZVMDLY.js.map} +0 -0
- /package/dist/{chunk-MQY7EQPG.js.map → chunk-IUL5FJSO.js.map} +0 -0
- /package/dist/{chunk-J536GL5G.js.map → chunk-MBRAYFD4.js.map} +0 -0
- /package/dist/{chunk-A46LVI25.js.map → chunk-NG6K2B3F.js.map} +0 -0
- /package/dist/{chunk-FGPRA3A4.js.map → chunk-NQFK4HOS.js.map} +0 -0
- /package/dist/{chunk-HCEXWKMZ.js.map → chunk-NRHFGPN6.js.map} +0 -0
- /package/dist/{chunk-UX6IRX2M.js.map → chunk-QUEYGZEY.js.map} +0 -0
- /package/dist/{chunk-OTSNM4CR.js.map → chunk-RDIVTGYB.js.map} +0 -0
- /package/dist/{chunk-VD73ULXJ.js.map → chunk-RIWM6DB5.js.map} +0 -0
- /package/dist/{chunk-AQFNXW4W.js.map → chunk-S4M4LBVQ.js.map} +0 -0
- /package/dist/{chunk-7WDLTRBN.js.map → chunk-SWH3CIYY.js.map} +0 -0
- /package/dist/{chunk-CNXGYDZG.js.map → chunk-TNVFEZBN.js.map} +0 -0
- /package/dist/{chunk-SIZYE6WH.js.map → chunk-UAUOFPHA.js.map} +0 -0
- /package/dist/{chunk-4BS66NNM.js.map → chunk-UDR62T6C.js.map} +0 -0
- /package/dist/{chunk-EHRGH3HS.js.map → chunk-UQQJ37UO.js.map} +0 -0
- /package/dist/{chunk-FSYB23NA.js.map → chunk-WBV3BSDG.js.map} +0 -0
- /package/dist/{chunk-SNUPCZY7.js.map → chunk-XASQUPYS.js.map} +0 -0
- /package/dist/{chunk-7RLNWQIR.js.map → chunk-ZTGRS6WM.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tooltip
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MBRAYFD4.js";
|
|
4
4
|
import {
|
|
5
5
|
useI18n
|
|
6
6
|
} from "./chunk-DQGLZCIG.js";
|
|
@@ -142,4 +142,4 @@ var AceEditor = forwardRef(
|
|
|
142
142
|
export {
|
|
143
143
|
AceEditor
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=chunk-
|
|
145
|
+
//# sourceMappingURL=chunk-2KOLEWOS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddressLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UQQJ37UO.js";
|
|
4
4
|
import {
|
|
5
5
|
ContractDetail
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NQFK4HOS.js";
|
|
7
7
|
import {
|
|
8
8
|
FunctionName,
|
|
9
9
|
getParameterType
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "./chunk-2Y57U43P.js";
|
|
17
17
|
import {
|
|
18
18
|
convertCheckSum
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IUL5FJSO.js";
|
|
20
20
|
import {
|
|
21
21
|
Text
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-442632G5.js";
|
|
23
23
|
import {
|
|
24
24
|
cn
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XASQUPYS.js";
|
|
26
26
|
|
|
27
27
|
// src/components/InputData/OptimizationDecode.tsx
|
|
28
28
|
import { useMemo } from "react";
|
|
@@ -154,4 +154,4 @@ export {
|
|
|
154
154
|
DecodedParameters,
|
|
155
155
|
OptimizationDecode
|
|
156
156
|
};
|
|
157
|
-
//# sourceMappingURL=chunk-
|
|
157
|
+
//# sourceMappingURL=chunk-2PGGAIEP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getContractDetail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7R6SGHOG.js";
|
|
4
4
|
|
|
5
5
|
// src/utils/hooks/useContractDetail.ts
|
|
6
6
|
import useSWRImmutable from "swr/immutable";
|
|
@@ -14,4 +14,4 @@ var useContractDetail = (contractAddress, fields = [], shouldFetch = true) => {
|
|
|
14
14
|
export {
|
|
15
15
|
useContractDetail
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-2PQY4AOY.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-XI5WO2NW.js";
|
|
4
4
|
import {
|
|
5
5
|
AceEditor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2KOLEWOS.js";
|
|
7
7
|
import {
|
|
8
8
|
formatABI
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XASQUPYS.js";
|
|
10
10
|
|
|
11
11
|
// src/components/InputData/JsonDecode.tsx
|
|
12
12
|
import { useId, useMemo } from "react";
|
|
@@ -68,4 +68,4 @@ var JsonDecode = ({
|
|
|
68
68
|
export {
|
|
69
69
|
JsonDecode
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-2UN57Q5P.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-MBRAYFD4.js";
|
|
7
7
|
import {
|
|
8
8
|
selectText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XASQUPYS.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-442632G5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useMethodAbi
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SWH3CIYY.js";
|
|
4
4
|
import {
|
|
5
5
|
decodeFunctionData,
|
|
6
6
|
decodeFunctionResult
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-JIRLY7OG.js";
|
|
11
11
|
import {
|
|
12
12
|
useContractDetail
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2PQY4AOY.js";
|
|
14
14
|
import {
|
|
15
15
|
formatABI
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XASQUPYS.js";
|
|
17
17
|
|
|
18
18
|
// src/utils/hooks/useDecodeFunctionData.ts
|
|
19
19
|
import { useMemo } from "react";
|
|
@@ -199,4 +199,4 @@ var useDecodeFunctionData = ({
|
|
|
199
199
|
export {
|
|
200
200
|
useDecodeFunctionData
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
202
|
+
//# sourceMappingURL=chunk-6PDWJNOG.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-XASQUPYS.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-73PNXQWF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hex2utf8
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XASQUPYS.js";
|
|
4
4
|
|
|
5
5
|
// src/components/InputData/UTF8.tsx
|
|
6
6
|
import { useMemo } from "react";
|
|
@@ -18,4 +18,4 @@ var UTF8 = ({ data }) => {
|
|
|
18
18
|
export {
|
|
19
19
|
UTF8
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-75SROBSE.js.map
|
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
// src/utils/request.ts
|
|
12
12
|
import qs from "query-string";
|
|
13
13
|
var TIMEOUT_TIMESTAMP = 6e4;
|
|
14
|
+
var isHeadRequest = (opts) => opts?.method?.toUpperCase() === "HEAD";
|
|
15
|
+
var createHeadFailureResponse = (status, statusText) => new Response(null, { status, statusText });
|
|
14
16
|
var checkStatus = (response) => {
|
|
15
17
|
if (response.status >= 200 && response.status < 300 || response.status === 600) {
|
|
16
18
|
return response;
|
|
@@ -47,7 +49,7 @@ var checkResponse = function(url, {
|
|
|
47
49
|
}, opts) {
|
|
48
50
|
if (response.status === 200 && (data.status === "1" || data.code === 0)) {
|
|
49
51
|
return data.result || data.data;
|
|
50
|
-
} else if (
|
|
52
|
+
} else if (isHeadRequest(opts)) {
|
|
51
53
|
return response;
|
|
52
54
|
} else {
|
|
53
55
|
const code = Number(data.status ?? data.code);
|
|
@@ -66,6 +68,9 @@ var fetchWithAbort = (url, options = {}) => {
|
|
|
66
68
|
const promise = new Promise((resolve, reject) => {
|
|
67
69
|
timeoutId = setTimeout(() => {
|
|
68
70
|
controller.abort();
|
|
71
|
+
if (isHeadRequest(opts)) {
|
|
72
|
+
return resolve(createHeadFailureResponse(408, "Request timeout"));
|
|
73
|
+
}
|
|
69
74
|
showErrorMessage && publishRequestError(
|
|
70
75
|
{ url, code: 20002, message: "Request timeout" },
|
|
71
76
|
"http"
|
|
@@ -73,8 +78,13 @@ var fetchWithAbort = (url, options = {}) => {
|
|
|
73
78
|
reject(new Error("Request timeout"));
|
|
74
79
|
}, timeout);
|
|
75
80
|
window.fetch(url, opts).then(checkStatus).then(parseJSON).then((...args) => checkResponse(url, ...args, opts)).then((data) => resolve(data)).catch((error) => {
|
|
76
|
-
if (
|
|
77
|
-
return resolve(
|
|
81
|
+
if (isHeadRequest(opts)) {
|
|
82
|
+
return resolve(
|
|
83
|
+
createHeadFailureResponse(
|
|
84
|
+
599,
|
|
85
|
+
error?.message || "Request failed"
|
|
86
|
+
)
|
|
87
|
+
);
|
|
78
88
|
}
|
|
79
89
|
if (error.name === "TypeError") {
|
|
80
90
|
showErrorMessage && publishRequestError({ url, code: 20004 }, "http");
|
|
@@ -273,4 +283,4 @@ export {
|
|
|
273
283
|
reqAbiByMethodId,
|
|
274
284
|
fetchAddressNameMap
|
|
275
285
|
};
|
|
276
|
-
//# sourceMappingURL=chunk-
|
|
286
|
+
//# sourceMappingURL=chunk-7R6SGHOG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/request.ts"],"sourcesContent":["import qs from 'query-string';\nimport { publishRequestError } from './pubsub';\nimport {\n AddressNameMap,\n BaseContractInfo,\n DetectAccountTypeResponse,\n MethodAbiItemResponse,\n} from './request.types';\nimport { getEnvConfig } from '../store';\nimport { fetchWithCache } from './cache';\ninterface FetchWithAbortType<T> {\n promise: Promise<T>;\n abort: () => void;\n}\n\ninterface FetchOptions extends RequestInit {\n timeout?: number;\n showErrorMessage?: boolean;\n}\n\nconst TIMEOUT_TIMESTAMP = 60000;\n\nconst isHeadRequest = (opts?: FetchOptions) =>\n opts?.method?.toUpperCase() === 'HEAD';\n\nconst createHeadFailureResponse = (\n status: number,\n statusText: string,\n): Response => new Response(null, { status, statusText });\n\nconst checkStatus = (response: Response) => {\n if (\n (response.status >= 200 && response.status < 300) ||\n response.status === 600\n ) {\n return response;\n } else {\n const error = new Error(response.statusText);\n error.name = 'HttpError';\n (error as any).status = response.status;\n (error as any).response = response;\n throw error;\n }\n};\n\n// 格式化 response data\nconst parseJSON = async (response: Response) => {\n const contentType = response.headers.get('content-type');\n try {\n if (contentType?.includes('application/json')) {\n return { data: await response.json(), response };\n } else if (contentType?.includes('text/html')) {\n return { data: await response.text(), response };\n } else {\n // contentType 还有其他类型,目前项目中用不到\n // 不能简单的报错,比如 image/x-icon 是 favicon 请求\n // 此处直接返回 response,由业务代码处理其他类型的数据\n return { data: response, response };\n }\n } catch (error) {\n if ((error as any).name === 'AbortError') {\n return { data: response, response };\n }\n (error as any).response = response;\n (error as any).status = 20001;\n throw error;\n }\n};\n\n// 检查返回值中是否包含错误\nconst checkResponse = function (\n url: string,\n {\n data,\n response,\n }: {\n data: any;\n response: Response;\n },\n opts: FetchOptions,\n) {\n // 兼容 data.code 和 data.data, 是关于 core space 的数据结构\n if (response.status === 200 && (data.status === '1' || data.code === 0)) {\n return data.result || data.data;\n } else if (isHeadRequest(opts)) {\n // handle of HEAD method\n return response;\n } else {\n const code = Number(data.status ?? data.code);\n const error: Partial<ErrorEvent> & {\n response?: ResponseType;\n status?: number;\n } = new Error(data.message);\n error.response = data;\n error.status = code;\n throw error;\n }\n};\n\nconst fetchWithAbort = <T>(\n url: string,\n options: FetchOptions = {},\n): FetchWithAbortType<T> => {\n const controller = new AbortController();\n const opts: FetchOptions = { ...options, signal: controller.signal };\n const showErrorMessage = options.showErrorMessage ?? true;\n const timeout = options.timeout || TIMEOUT_TIMESTAMP;\n\n let timeoutId: ReturnType<typeof setTimeout>;\n const promise: Promise<T> = new Promise((resolve, reject) => {\n timeoutId = setTimeout(() => {\n controller.abort();\n if (isHeadRequest(opts)) {\n return resolve(createHeadFailureResponse(408, 'Request timeout') as T);\n }\n showErrorMessage &&\n publishRequestError(\n { url, code: 20002, message: 'Request timeout' },\n 'http',\n );\n reject(new Error('Request timeout'));\n }, timeout);\n\n window\n .fetch(url, opts)\n .then(checkStatus)\n .then(parseJSON)\n .then((...args) => checkResponse(url, ...args, opts))\n .then(data => resolve(data as T))\n .catch(error => {\n if (isHeadRequest(opts)) {\n return resolve(\n createHeadFailureResponse(\n 599,\n error?.message || 'Request failed',\n ) as T,\n );\n }\n\n // A fetch() promise will reject with a TypeError when a network error is encountered or CORS is misconfigured on the server-side,\n // although this usually means permission issues or similar — a 404 does not constitute a network error, for example.\n // For detail: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch\n if (error.name === 'TypeError') {\n showErrorMessage && publishRequestError({ url, code: 20004 }, 'http');\n reject(new Error('Network error'));\n } else if (error.name === 'AbortError') {\n showErrorMessage &&\n publishRequestError(\n { url, code: 20003, message: 'Fetch aborted' },\n 'http',\n );\n reject(new Error('Fetch aborted'));\n } else {\n showErrorMessage &&\n publishRequestError(\n { url, code: (error as any).status, message: error.message },\n 'http',\n );\n reject(error);\n }\n })\n .finally(() => clearTimeout(timeoutId));\n });\n\n return {\n promise,\n abort: () => {\n clearTimeout(timeoutId);\n controller.abort();\n },\n };\n};\n\nexport const fetch = <T>(\n url: string,\n options: FetchOptions = {},\n): Promise<T> => {\n const { promise } = fetchWithAbort<T>(url, options);\n return promise;\n};\n\nexport const appendApiPrefix = (url: string) => {\n // for cfx top N\n if (url.startsWith('/stat/')) {\n return url;\n }\n if (url.startsWith('http')) {\n return url;\n }\n return `/v1${url.startsWith('/') ? url : '/' + url}`;\n};\n\nexport const fetchWithPrefix = <T>(url: string, opts?: FetchOptions) => {\n return fetch<T>(appendApiPrefix(url), opts);\n};\n\nexport const fetchWithOpenApi = <T>(url: string, opts?: FetchOptions) => {\n const ENV_CONFIG = getEnvConfig();\n if (!ENV_CONFIG.ENV_OPEN_API_HOST) {\n throw new Error('ENV_OPEN_API_HOST is not set');\n }\n return fetch<T>(\n `${ENV_CONFIG.ENV_OPEN_API_HOST}${url.startsWith('/') ? url : '/' + url}`,\n opts,\n );\n};\n\nexport const simpleGetFetcher = async <T>(args: any[]) => {\n let [url, query] = args;\n if (query) {\n url = qs.stringifyUrl({ url, query });\n }\n return await fetchWithPrefix<T>(url, {\n method: 'get',\n });\n};\n\ntype RequestMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';\ninterface QueryParams {\n [key: string]: string | undefined;\n}\ninterface Config {\n url: string;\n query: QueryParams;\n type?: RequestMethod;\n body?: any;\n headers?: Headers;\n signal?: AbortSignal;\n}\n\nconst queryAddress = (address: string[]) => {\n return address.reduce((prev, curr, index) => {\n return !index ? `address=${curr}` : `${prev}&address=${curr}`;\n }, '');\n};\n\nexport const sendRequestChart = async (config: Config) => {\n try {\n const res: any = await fetch(\n qs.stringifyUrl({ url: config.url, query: config.query }),\n {\n method: config.type || 'GET',\n body: config.body,\n headers: config.headers,\n signal: config.signal,\n },\n );\n const data = res;\n data.list = [...(data.list || [])].reverse();\n return data;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const sendRequestENSInfo = async (url?: string | null) => {\n if (!url) return {};\n try {\n const res: any = await fetch(url, {\n method: 'GET',\n });\n\n return res?.map;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const sendRequestGasPrice = async () => {\n try {\n const res: any = await fetch(`/stat/gasprice/tracker`, {\n method: 'GET',\n });\n return res;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const reqNametag = async (address: string[]) => {\n const query = queryAddress(address);\n\n const res: any = await fetch(`/v1/nametag?${query}`, {\n method: 'GET',\n });\n return res?.map;\n};\n\nexport const reqContractAndToken = fetchWithCache(\n async (address: string[]) => {\n const query = queryAddress(address);\n\n const res: any = await fetch(`/v1/contract-and-token?${query}`, {\n method: 'GET',\n });\n return res;\n },\n {\n key: 'contract-and-token',\n maxAge: 1000 * 60 * 60,\n },\n);\n\nexport const getContractDetail = fetchWithCache(\n <T extends string>(contractAddress?: string, fields: T[] = []) => {\n const url = qs.stringifyUrl({\n url: `/v1/contract/${contractAddress}`,\n query: { fields },\n });\n\n return fetch<BaseContractInfo & Record<T, unknown>>(url, {\n method: 'GET',\n });\n },\n {\n key: 'contract-detail',\n maxAge: 1000 * 60 * 60,\n },\n);\n\nexport const detectAccountType = fetchWithCache(\n (address: string) => {\n return fetchWithOpenApi<DetectAccountTypeResponse>(\n `/util/detectAccountType?hex=${address}`,\n {\n method: 'GET',\n },\n );\n },\n {\n // 10 seconds\n maxAge: 1000 * 10,\n },\n);\n\nexport const reqAbiByMethodId = (methodId: string) => {\n return fetchWithPrefix<{\n list: MethodAbiItemResponse[];\n }>(\n qs.stringifyUrl({\n url: '/stat/list-abi-method',\n query: {\n id: methodId,\n },\n }),\n );\n};\n\nexport const fetchAddressNameMap = (\n addresses: string[],\n params: {\n withContractInfo?: 'true' | 'false';\n withNameTagInfo?: 'true' | 'false';\n withENSInfo?: 'true' | 'false';\n } = {},\n) => {\n const url = qs.stringifyUrl({\n url: '/account/infos',\n query: {\n accounts: addresses.join(','),\n ...params,\n },\n });\n return fetchWithOpenApi<Record<string, AddressNameMap>>(url, {\n method: 'GET',\n });\n};\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,QAAQ;AAoBf,IAAM,oBAAoB;AAE1B,IAAM,gBAAgB,CAAC,SACrB,MAAM,QAAQ,YAAY,MAAM;AAElC,IAAM,4BAA4B,CAChC,QACA,eACa,IAAI,SAAS,MAAM,EAAE,QAAQ,WAAW,CAAC;AAExD,IAAM,cAAc,CAAC,aAAuB;AAC1C,MACG,SAAS,UAAU,OAAO,SAAS,SAAS,OAC7C,SAAS,WAAW,KACpB;AACA,WAAO;AAAA,EACT,OAAO;AACL,UAAM,QAAQ,IAAI,MAAM,SAAS,UAAU;AAC3C,UAAM,OAAO;AACb,IAAC,MAAc,SAAS,SAAS;AACjC,IAAC,MAAc,WAAW;AAC1B,UAAM;AAAA,EACR;AACF;AAGA,IAAM,YAAY,OAAO,aAAuB;AAC9C,QAAM,cAAc,SAAS,QAAQ,IAAI,cAAc;AACvD,MAAI;AACF,QAAI,aAAa,SAAS,kBAAkB,GAAG;AAC7C,aAAO,EAAE,MAAM,MAAM,SAAS,KAAK,GAAG,SAAS;AAAA,IACjD,WAAW,aAAa,SAAS,WAAW,GAAG;AAC7C,aAAO,EAAE,MAAM,MAAM,SAAS,KAAK,GAAG,SAAS;AAAA,IACjD,OAAO;AAIL,aAAO,EAAE,MAAM,UAAU,SAAS;AAAA,IACpC;AAAA,EACF,SAAS,OAAP;AACA,QAAK,MAAc,SAAS,cAAc;AACxC,aAAO,EAAE,MAAM,UAAU,SAAS;AAAA,IACpC;AACA,IAAC,MAAc,WAAW;AAC1B,IAAC,MAAc,SAAS;AACxB,UAAM;AAAA,EACR;AACF;AAGA,IAAM,gBAAgB,SACpB,KACA;AAAA,EACE;AAAA,EACA;AACF,GAIA,MACA;AAEA,MAAI,SAAS,WAAW,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ACL,OAAO;AAAA,MACL,UAAU,UAAU,KAAK,GAAG;AAAA,MAC5B,GAAG;AAAA,IACL;AAAA,EACF,CAAC;AACD,SAAO,iBAAiD,KAAK;AAAA,IAC3D,QAAQ;AAAA,EACV,CAAC;AACH;","names":[]}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAddressNameInfo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RDIVTGYB.js";
|
|
4
4
|
import {
|
|
5
5
|
ContractAddress,
|
|
6
6
|
ContractCreatedAddress,
|
|
7
7
|
InvalidAddress,
|
|
8
8
|
MyAddress
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-COMABNT2.js";
|
|
10
10
|
import {
|
|
11
11
|
RenderAddress
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QUEYGZEY.js";
|
|
13
13
|
import {
|
|
14
14
|
convertCheckSum,
|
|
15
15
|
formatAddress,
|
|
16
16
|
isEvmAddress,
|
|
17
17
|
isZeroAddress
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IUL5FJSO.js";
|
|
19
19
|
import {
|
|
20
20
|
getTranslations,
|
|
21
21
|
useGlobalData
|
|
@@ -109,4 +109,4 @@ var EVMAddressContainer = withTranslation()(
|
|
|
109
109
|
export {
|
|
110
110
|
EVMAddressContainer
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-AKS6URWT.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-2PQY4AOY.js";
|
|
7
7
|
import {
|
|
8
8
|
CommonError_default
|
|
9
9
|
} from "./chunk-5TGK2EA2.js";
|
|
@@ -127,4 +127,4 @@ var useDecodeFunctionError = ({
|
|
|
127
127
|
export {
|
|
128
128
|
useDecodeFunctionError
|
|
129
129
|
};
|
|
130
|
-
//# sourceMappingURL=chunk-
|
|
130
|
+
//# sourceMappingURL=chunk-BHL6OY3L.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertCheckSum
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IUL5FJSO.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-C2BON7HP.js.map
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-MWAD4CIG.js";
|
|
4
4
|
import {
|
|
5
5
|
RenderAddress
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QUEYGZEY.js";
|
|
7
7
|
import {
|
|
8
8
|
formatAddress,
|
|
9
9
|
isInnerContractAddress
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IUL5FJSO.js";
|
|
11
11
|
import {
|
|
12
12
|
Tooltip
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MBRAYFD4.js";
|
|
14
14
|
import {
|
|
15
15
|
coreCorrespondsToEspace,
|
|
16
16
|
getNetwork
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XASQUPYS.js";
|
|
18
18
|
import {
|
|
19
19
|
getEnvConfig,
|
|
20
20
|
getTranslations,
|
|
@@ -209,4 +209,4 @@ export {
|
|
|
209
209
|
MyAddress,
|
|
210
210
|
PosAddress
|
|
211
211
|
};
|
|
212
|
-
//# sourceMappingURL=chunk-
|
|
212
|
+
//# sourceMappingURL=chunk-COMABNT2.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ErrorDecode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NRHFGPN6.js";
|
|
4
4
|
import {
|
|
5
5
|
GeneralDecode
|
|
6
6
|
} from "./chunk-OYESIV3F.js";
|
|
7
7
|
import {
|
|
8
8
|
DecodedParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2PGGAIEP.js";
|
|
10
10
|
import {
|
|
11
11
|
Original
|
|
12
12
|
} from "./chunk-5AM5HM3B.js";
|
|
13
13
|
import {
|
|
14
14
|
UTF8
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-75SROBSE.js";
|
|
16
16
|
|
|
17
17
|
// src/components/OutputData/index.tsx
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -69,4 +69,4 @@ var OutputData = ({
|
|
|
69
69
|
export {
|
|
70
70
|
OutputData
|
|
71
71
|
};
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
72
|
+
//# sourceMappingURL=chunk-D6FWT557.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isCoreMainOrTestAddress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IUL5FJSO.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-7R6SGHOG.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-DWU7DZBU.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-2UN57Q5P.js";
|
|
7
7
|
import {
|
|
8
8
|
OptimizationDecode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2PGGAIEP.js";
|
|
10
10
|
import {
|
|
11
11
|
Original
|
|
12
12
|
} from "./chunk-5AM5HM3B.js";
|
|
13
13
|
import {
|
|
14
14
|
UTF8
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-75SROBSE.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-FUZVMDLY.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-7R6SGHOG.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-IUL5FJSO.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-XASQUPYS.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-MBRAYFD4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TraceDetail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZTGRS6WM.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-NG6K2B3F.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAddressNameMap
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UDR62T6C.js";
|
|
4
4
|
import {
|
|
5
5
|
Link
|
|
6
6
|
} from "./chunk-2Y57U43P.js";
|
|
7
7
|
import {
|
|
8
8
|
getAddressNameInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RDIVTGYB.js";
|
|
10
10
|
import {
|
|
11
11
|
DefaultTokenIcon
|
|
12
12
|
} from "./chunk-MWAD4CIG.js";
|
|
13
13
|
import {
|
|
14
14
|
formatAddress
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IUL5FJSO.js";
|
|
16
16
|
|
|
17
17
|
// src/components/InputData/ContractDetail.tsx
|
|
18
18
|
import clsx from "clsx";
|
|
@@ -77,4 +77,4 @@ var ContractDetail = ({ address, addressType }) => {
|
|
|
77
77
|
export {
|
|
78
78
|
ContractDetail
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-NQFK4HOS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DecodedParameters
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2PGGAIEP.js";
|
|
4
4
|
import {
|
|
5
5
|
FunctionName
|
|
6
6
|
} from "./chunk-FYLAXC3R.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-XBEBAU77.js";
|
|
13
13
|
import {
|
|
14
14
|
useDecodeFunctionError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BHL6OY3L.js";
|
|
16
16
|
import {
|
|
17
17
|
cn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XASQUPYS.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-NRHFGPN6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertCheckSum
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IUL5FJSO.js";
|
|
4
4
|
import {
|
|
5
5
|
Text
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-442632G5.js";
|
|
7
7
|
import {
|
|
8
8
|
getTranslations
|
|
9
9
|
} from "./chunk-DQGLZCIG.js";
|
|
@@ -143,4 +143,4 @@ var RenderAddress = ({
|
|
|
143
143
|
export {
|
|
144
144
|
RenderAddress
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=chunk-
|
|
146
|
+
//# sourceMappingURL=chunk-QUEYGZEY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isZeroAddress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IUL5FJSO.js";
|
|
4
4
|
|
|
5
5
|
// src/components/AddressContainer/utils.ts
|
|
6
6
|
var getPocketAlias = ({
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
getPocketAlias,
|
|
49
49
|
getAddressNameInfo
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-RDIVTGYB.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
SelectItem,
|
|
6
6
|
SelectTrigger,
|
|
7
7
|
SelectValue
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UAUOFPHA.js";
|
|
9
9
|
import {
|
|
10
10
|
cn
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XASQUPYS.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-RIWM6DB5.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-MBRAYFD4.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-S4M4LBVQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reqAbiByMethodId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7R6SGHOG.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-SWH3CIYY.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useENS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DWU7DZBU.js";
|
|
4
4
|
import {
|
|
5
5
|
getAddressNameInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RDIVTGYB.js";
|
|
7
7
|
import {
|
|
8
8
|
ContractAddress,
|
|
9
9
|
ContractCreatedAddress,
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
InvalidAddress,
|
|
12
12
|
MyAddress,
|
|
13
13
|
PosAddress
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-COMABNT2.js";
|
|
15
15
|
import {
|
|
16
16
|
RenderAddress
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QUEYGZEY.js";
|
|
18
18
|
import {
|
|
19
19
|
formatAddress,
|
|
20
20
|
isCoreAddress,
|
|
21
21
|
isCoreContractAddress,
|
|
22
22
|
isZeroAddress
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IUL5FJSO.js";
|
|
24
24
|
import {
|
|
25
25
|
getTranslations,
|
|
26
26
|
useGlobalData
|
|
@@ -143,4 +143,4 @@ var CoreAddressContainer = withTranslation()(
|
|
|
143
143
|
export {
|
|
144
144
|
CoreAddressContainer
|
|
145
145
|
};
|
|
146
|
-
//# sourceMappingURL=chunk-
|
|
146
|
+
//# sourceMappingURL=chunk-TNVFEZBN.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-LRCAKRPK.js";
|
|
15
15
|
import {
|
|
16
16
|
cn
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XASQUPYS.js";
|
|
18
18
|
|
|
19
19
|
// src/components/Select/select.tsx
|
|
20
20
|
import * as React9 from "react";
|
|
@@ -3613,4 +3613,4 @@ export {
|
|
|
3613
3613
|
SelectItem,
|
|
3614
3614
|
SelectSeparator
|
|
3615
3615
|
};
|
|
3616
|
-
//# sourceMappingURL=chunk-
|
|
3616
|
+
//# sourceMappingURL=chunk-UAUOFPHA.js.map
|