@cfxjs/sirius-next-common 0.2.23 → 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.
Files changed (133) hide show
  1. package/dist/{chunk-FTRICVXA.js → chunk-2KOLEWOS.js} +2 -2
  2. package/dist/{chunk-3KWBKDLY.js → chunk-2PGGAIEP.js} +6 -6
  3. package/dist/{chunk-DV3GFG5Q.js → chunk-2PQY4AOY.js} +2 -2
  4. package/dist/{chunk-53Z3XVZD.js → chunk-2UN57Q5P.js} +3 -3
  5. package/dist/{chunk-VVEA44KS.js → chunk-442632G5.js} +3 -3
  6. package/dist/{chunk-CRTD2R3I.js → chunk-6PDWJNOG.js} +4 -4
  7. package/dist/{chunk-N5X4DZS3.js → chunk-73PNXQWF.js} +2 -2
  8. package/dist/{chunk-P7M7B7ER.js → chunk-75SROBSE.js} +2 -2
  9. package/dist/{chunk-ZSOMTVP5.js → chunk-7R6SGHOG.js} +21 -10
  10. package/dist/chunk-7R6SGHOG.js.map +1 -0
  11. package/dist/{chunk-7JMW3D4O.js → chunk-AKS6URWT.js} +5 -5
  12. package/dist/{chunk-XF2CMO2A.js → chunk-BHL6OY3L.js} +2 -2
  13. package/dist/{chunk-RJOY6FMD.js → chunk-C2BON7HP.js} +2 -2
  14. package/dist/{chunk-TJZKPAAH.js → chunk-COMABNT2.js} +5 -5
  15. package/dist/{chunk-2PGTU5DN.js → chunk-D6FWT557.js} +4 -4
  16. package/dist/{chunk-DEZ6AV62.js → chunk-DWU7DZBU.js} +3 -3
  17. package/dist/{chunk-MCQS3VCO.js → chunk-FUZVMDLY.js} +4 -4
  18. package/dist/{chunk-6TKFGXSA.js → chunk-IUL5FJSO.js} +2 -2
  19. package/dist/{chunk-VXHLESK7.js → chunk-MBRAYFD4.js} +2 -2
  20. package/dist/{chunk-A53N6IFN.js → chunk-NG6K2B3F.js} +2 -2
  21. package/dist/{chunk-MOMFJZ7B.js → chunk-NQFK4HOS.js} +4 -4
  22. package/dist/{chunk-CCMPEOQY.js → chunk-NRHFGPN6.js} +4 -4
  23. package/dist/{chunk-E7ZFE6KT.js → chunk-QUEYGZEY.js} +3 -3
  24. package/dist/{chunk-OOL2AH54.js → chunk-RDIVTGYB.js} +2 -2
  25. package/dist/{chunk-MF6LAIGP.js → chunk-RIWM6DB5.js} +3 -3
  26. package/dist/{chunk-6KG65RIO.js → chunk-S4M4LBVQ.js} +2 -2
  27. package/dist/{chunk-7P6KYI3Z.js → chunk-SWH3CIYY.js} +2 -2
  28. package/dist/{chunk-UY54GCWF.js → chunk-TNVFEZBN.js} +6 -6
  29. package/dist/{chunk-7PQ6YKBC.js → chunk-UAUOFPHA.js} +2 -2
  30. package/dist/{chunk-LQCS5PT5.js → chunk-UDR62T6C.js} +2 -2
  31. package/dist/{chunk-TTNJMHOJ.js → chunk-UQQJ37UO.js} +4 -4
  32. package/dist/{chunk-FUKVDD7K.js → chunk-WBV3BSDG.js} +2 -2
  33. package/dist/{chunk-G246NFI4.js → chunk-XASQUPYS.js} +2 -2
  34. package/dist/{chunk-OUI67IFL.js → chunk-ZTGRS6WM.js} +5 -5
  35. package/dist/components/AAFailedReason/index.js +3 -3
  36. package/dist/components/AceEditor/index.js +4 -4
  37. package/dist/components/AddressContainer/CoreAddressContainer.js +10 -10
  38. package/dist/components/AddressContainer/EVMAddressContainer.js +9 -9
  39. package/dist/components/AddressContainer/addressSwitcher.js +7 -7
  40. package/dist/components/AddressContainer/addressView.js +6 -6
  41. package/dist/components/AddressContainer/label.js +3 -3
  42. package/dist/components/AddressContainer/utils.js +3 -3
  43. package/dist/components/Age/index.js +4 -4
  44. package/dist/components/AutoComplete/index.js +3 -3
  45. package/dist/components/Charts/PreviewChartTemplate.js +1 -1
  46. package/dist/components/Charts/StockChartTemplate.js +1 -1
  47. package/dist/components/CopyButton/index.js +3 -3
  48. package/dist/components/DecimalsSelect/index.js +3 -3
  49. package/dist/components/DownloadCSV/index.js +4 -4
  50. package/dist/components/GasPriceDropdown/index.js +2 -2
  51. package/dist/components/IncreasePercent/index.js +2 -2
  52. package/dist/components/InfoIconWithTooltip/index.js +4 -4
  53. package/dist/components/InputData/AddressLabel.js +8 -8
  54. package/dist/components/InputData/ContractDetail.js +5 -5
  55. package/dist/components/InputData/JsonDecode.js +5 -5
  56. package/dist/components/InputData/OptimizationDecode.js +12 -12
  57. package/dist/components/InputData/UTF8.js +3 -3
  58. package/dist/components/InputData/index.js +16 -16
  59. package/dist/components/List/index.js +1 -1
  60. package/dist/components/List/index.js.map +1 -1
  61. package/dist/components/Modal/index.js +3 -3
  62. package/dist/components/NetworkIcon/index.js +2 -2
  63. package/dist/components/OutputData/ErrorDecode.js +15 -15
  64. package/dist/components/OutputData/index.js +17 -17
  65. package/dist/components/PhishingAddressContainer/index.js +4 -4
  66. package/dist/components/Popover/index.js +3 -3
  67. package/dist/components/Price/index.js +3 -3
  68. package/dist/components/ProxyContractAddress/index.js +6 -6
  69. package/dist/components/Radio/index.js +2 -2
  70. package/dist/components/SearchInput/index.js +4 -4
  71. package/dist/components/Select/index.js +4 -4
  72. package/dist/components/Select/select.js +3 -3
  73. package/dist/components/SmartAccountAddress/index.js +6 -6
  74. package/dist/components/Text/index.js +4 -4
  75. package/dist/components/Tooltip/index.js +3 -3
  76. package/dist/components/TransactionAction/coreTransactionAction.js +10 -10
  77. package/dist/components/TransactionAction/evmTransactionAction.js +9 -9
  78. package/dist/components/TransactionTrace/TraceDetail.js +25 -25
  79. package/dist/components/TransactionTrace/TreeTraceTable.js +26 -26
  80. package/dist/components/TransactionTrace/index.js +26 -26
  81. package/dist/utils/address.js +2 -2
  82. package/dist/utils/contractManagerTool.js +2 -2
  83. package/dist/utils/hooks/useAddressLabel.js +3 -3
  84. package/dist/utils/hooks/useAddressNameMap.js +2 -2
  85. package/dist/utils/hooks/useAutoSetHolderFilterParams.js +2 -2
  86. package/dist/utils/hooks/useContractDetail.js +2 -2
  87. package/dist/utils/hooks/useDecodeFunctionData.js +5 -5
  88. package/dist/utils/hooks/useDecodeFunctionError.js +3 -3
  89. package/dist/utils/hooks/useENS.js +3 -3
  90. package/dist/utils/hooks/useEnhanceDataWithNameMap.js +2 -2
  91. package/dist/utils/hooks/useMethodAbi.js +2 -2
  92. package/dist/utils/hooks/useTableData.js +1 -1
  93. package/dist/utils/hooks/useTxTrace.js +3 -3
  94. package/dist/utils/index.js +2 -2
  95. package/dist/utils/ipfsGateway.d.ts +52 -0
  96. package/dist/utils/ipfsGateway.js +350 -0
  97. package/dist/utils/ipfsGateway.js.map +1 -0
  98. package/dist/utils/request.d.ts +1 -0
  99. package/dist/utils/request.js +1 -1
  100. package/package.json +3 -3
  101. package/dist/chunk-ZSOMTVP5.js.map +0 -1
  102. /package/dist/{chunk-FTRICVXA.js.map → chunk-2KOLEWOS.js.map} +0 -0
  103. /package/dist/{chunk-3KWBKDLY.js.map → chunk-2PGGAIEP.js.map} +0 -0
  104. /package/dist/{chunk-DV3GFG5Q.js.map → chunk-2PQY4AOY.js.map} +0 -0
  105. /package/dist/{chunk-53Z3XVZD.js.map → chunk-2UN57Q5P.js.map} +0 -0
  106. /package/dist/{chunk-VVEA44KS.js.map → chunk-442632G5.js.map} +0 -0
  107. /package/dist/{chunk-CRTD2R3I.js.map → chunk-6PDWJNOG.js.map} +0 -0
  108. /package/dist/{chunk-N5X4DZS3.js.map → chunk-73PNXQWF.js.map} +0 -0
  109. /package/dist/{chunk-P7M7B7ER.js.map → chunk-75SROBSE.js.map} +0 -0
  110. /package/dist/{chunk-7JMW3D4O.js.map → chunk-AKS6URWT.js.map} +0 -0
  111. /package/dist/{chunk-XF2CMO2A.js.map → chunk-BHL6OY3L.js.map} +0 -0
  112. /package/dist/{chunk-RJOY6FMD.js.map → chunk-C2BON7HP.js.map} +0 -0
  113. /package/dist/{chunk-TJZKPAAH.js.map → chunk-COMABNT2.js.map} +0 -0
  114. /package/dist/{chunk-2PGTU5DN.js.map → chunk-D6FWT557.js.map} +0 -0
  115. /package/dist/{chunk-DEZ6AV62.js.map → chunk-DWU7DZBU.js.map} +0 -0
  116. /package/dist/{chunk-MCQS3VCO.js.map → chunk-FUZVMDLY.js.map} +0 -0
  117. /package/dist/{chunk-6TKFGXSA.js.map → chunk-IUL5FJSO.js.map} +0 -0
  118. /package/dist/{chunk-VXHLESK7.js.map → chunk-MBRAYFD4.js.map} +0 -0
  119. /package/dist/{chunk-A53N6IFN.js.map → chunk-NG6K2B3F.js.map} +0 -0
  120. /package/dist/{chunk-MOMFJZ7B.js.map → chunk-NQFK4HOS.js.map} +0 -0
  121. /package/dist/{chunk-CCMPEOQY.js.map → chunk-NRHFGPN6.js.map} +0 -0
  122. /package/dist/{chunk-E7ZFE6KT.js.map → chunk-QUEYGZEY.js.map} +0 -0
  123. /package/dist/{chunk-OOL2AH54.js.map → chunk-RDIVTGYB.js.map} +0 -0
  124. /package/dist/{chunk-MF6LAIGP.js.map → chunk-RIWM6DB5.js.map} +0 -0
  125. /package/dist/{chunk-6KG65RIO.js.map → chunk-S4M4LBVQ.js.map} +0 -0
  126. /package/dist/{chunk-7P6KYI3Z.js.map → chunk-SWH3CIYY.js.map} +0 -0
  127. /package/dist/{chunk-UY54GCWF.js.map → chunk-TNVFEZBN.js.map} +0 -0
  128. /package/dist/{chunk-7PQ6YKBC.js.map → chunk-UAUOFPHA.js.map} +0 -0
  129. /package/dist/{chunk-LQCS5PT5.js.map → chunk-UDR62T6C.js.map} +0 -0
  130. /package/dist/{chunk-TTNJMHOJ.js.map → chunk-UQQJ37UO.js.map} +0 -0
  131. /package/dist/{chunk-FUKVDD7K.js.map → chunk-WBV3BSDG.js.map} +0 -0
  132. /package/dist/{chunk-G246NFI4.js.map → chunk-XASQUPYS.js.map} +0 -0
  133. /package/dist/{chunk-OUI67IFL.js.map → chunk-ZTGRS6WM.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Tooltip
3
- } from "./chunk-VXHLESK7.js";
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-FTRICVXA.js.map
145
+ //# sourceMappingURL=chunk-2KOLEWOS.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AddressLabel
3
- } from "./chunk-TTNJMHOJ.js";
3
+ } from "./chunk-UQQJ37UO.js";
4
4
  import {
5
5
  ContractDetail
6
- } from "./chunk-MOMFJZ7B.js";
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-6TKFGXSA.js";
19
+ } from "./chunk-IUL5FJSO.js";
20
20
  import {
21
21
  Text
22
- } from "./chunk-VVEA44KS.js";
22
+ } from "./chunk-442632G5.js";
23
23
  import {
24
24
  cn
25
- } from "./chunk-G246NFI4.js";
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-3KWBKDLY.js.map
157
+ //# sourceMappingURL=chunk-2PGGAIEP.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getContractDetail
3
- } from "./chunk-ZSOMTVP5.js";
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-DV3GFG5Q.js.map
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-FTRICVXA.js";
6
+ } from "./chunk-2KOLEWOS.js";
7
7
  import {
8
8
  formatABI
9
- } from "./chunk-G246NFI4.js";
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-53Z3XVZD.js.map
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-VXHLESK7.js";
6
+ } from "./chunk-MBRAYFD4.js";
7
7
  import {
8
8
  selectText
9
- } from "./chunk-G246NFI4.js";
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-VVEA44KS.js.map
105
+ //# sourceMappingURL=chunk-442632G5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useMethodAbi
3
- } from "./chunk-7P6KYI3Z.js";
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-DV3GFG5Q.js";
13
+ } from "./chunk-2PQY4AOY.js";
14
14
  import {
15
15
  formatABI
16
- } from "./chunk-G246NFI4.js";
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-CRTD2R3I.js.map
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-G246NFI4.js";
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-N5X4DZS3.js.map
140
+ //# sourceMappingURL=chunk-73PNXQWF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hex2utf8
3
- } from "./chunk-G246NFI4.js";
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-P7M7B7ER.js.map
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;
@@ -36,8 +38,8 @@ var parseJSON = async (response) => {
36
38
  if (error.name === "AbortError") {
37
39
  return { data: response, response };
38
40
  }
39
- publishRequestError({ url: response.url, code: 20001 }, "http");
40
41
  error.response = response;
42
+ error.status = 20001;
41
43
  throw error;
42
44
  }
43
45
  };
@@ -47,45 +49,54 @@ 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 (/HEAD/i.test(opts?.method || "")) {
52
+ } else if (isHeadRequest(opts)) {
51
53
  return response;
52
54
  } else {
53
55
  const code = Number(data.status ?? data.code);
54
- publishRequestError({ url, code, message: data.message }, "http");
55
56
  const error = new Error(data.message);
56
57
  error.response = data;
58
+ error.status = code;
57
59
  throw error;
58
60
  }
59
61
  };
60
62
  var fetchWithAbort = (url, options = {}) => {
61
63
  const controller = new AbortController();
62
64
  const opts = { ...options, signal: controller.signal };
65
+ const showErrorMessage = options.showErrorMessage ?? true;
63
66
  const timeout = options.timeout || TIMEOUT_TIMESTAMP;
64
67
  let timeoutId;
65
68
  const promise = new Promise((resolve, reject) => {
66
69
  timeoutId = setTimeout(() => {
67
70
  controller.abort();
68
- publishRequestError(
71
+ if (isHeadRequest(opts)) {
72
+ return resolve(createHeadFailureResponse(408, "Request timeout"));
73
+ }
74
+ showErrorMessage && publishRequestError(
69
75
  { url, code: 20002, message: "Request timeout" },
70
76
  "http"
71
77
  );
72
78
  reject(new Error("Request timeout"));
73
79
  }, timeout);
74
80
  window.fetch(url, opts).then(checkStatus).then(parseJSON).then((...args) => checkResponse(url, ...args, opts)).then((data) => resolve(data)).catch((error) => {
75
- if (/HEAD/i.test(opts?.method || "")) {
76
- return resolve({});
81
+ if (isHeadRequest(opts)) {
82
+ return resolve(
83
+ createHeadFailureResponse(
84
+ 599,
85
+ error?.message || "Request failed"
86
+ )
87
+ );
77
88
  }
78
89
  if (error.name === "TypeError") {
79
- publishRequestError({ url, code: 20004 }, "http");
90
+ showErrorMessage && publishRequestError({ url, code: 20004 }, "http");
80
91
  reject(new Error("Network error"));
81
92
  } else if (error.name === "AbortError") {
82
- publishRequestError(
93
+ showErrorMessage && publishRequestError(
83
94
  { url, code: 20003, message: "Fetch aborted" },
84
95
  "http"
85
96
  );
86
97
  reject(new Error("Fetch aborted"));
87
98
  } else {
88
- publishRequestError(
99
+ showErrorMessage && publishRequestError(
89
100
  { url, code: error.status, message: error.message },
90
101
  "http"
91
102
  );
@@ -272,4 +283,4 @@ export {
272
283
  reqAbiByMethodId,
273
284
  fetchAddressNameMap
274
285
  };
275
- //# sourceMappingURL=chunk-ZSOMTVP5.js.map
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;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,GAAG,aAAa;AAAA,IAC1B,KAAK;AAAA,IACL,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-OOL2AH54.js";
3
+ } from "./chunk-RDIVTGYB.js";
4
4
  import {
5
5
  ContractAddress,
6
6
  ContractCreatedAddress,
7
7
  InvalidAddress,
8
8
  MyAddress
9
- } from "./chunk-TJZKPAAH.js";
9
+ } from "./chunk-COMABNT2.js";
10
10
  import {
11
11
  RenderAddress
12
- } from "./chunk-E7ZFE6KT.js";
12
+ } from "./chunk-QUEYGZEY.js";
13
13
  import {
14
14
  convertCheckSum,
15
15
  formatAddress,
16
16
  isEvmAddress,
17
17
  isZeroAddress
18
- } from "./chunk-6TKFGXSA.js";
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-7JMW3D4O.js.map
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-DV3GFG5Q.js";
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-XF2CMO2A.js.map
130
+ //# sourceMappingURL=chunk-BHL6OY3L.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  convertCheckSum
3
- } from "./chunk-6TKFGXSA.js";
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-RJOY6FMD.js.map
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-E7ZFE6KT.js";
6
+ } from "./chunk-QUEYGZEY.js";
7
7
  import {
8
8
  formatAddress,
9
9
  isInnerContractAddress
10
- } from "./chunk-6TKFGXSA.js";
10
+ } from "./chunk-IUL5FJSO.js";
11
11
  import {
12
12
  Tooltip
13
- } from "./chunk-VXHLESK7.js";
13
+ } from "./chunk-MBRAYFD4.js";
14
14
  import {
15
15
  coreCorrespondsToEspace,
16
16
  getNetwork
17
- } from "./chunk-G246NFI4.js";
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-TJZKPAAH.js.map
212
+ //# sourceMappingURL=chunk-COMABNT2.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  ErrorDecode
3
- } from "./chunk-CCMPEOQY.js";
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-3KWBKDLY.js";
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-P7M7B7ER.js";
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-2PGTU5DN.js.map
72
+ //# sourceMappingURL=chunk-D6FWT557.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  isCoreMainOrTestAddress
3
- } from "./chunk-6TKFGXSA.js";
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-ZSOMTVP5.js";
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-DEZ6AV62.js.map
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-53Z3XVZD.js";
6
+ } from "./chunk-2UN57Q5P.js";
7
7
  import {
8
8
  OptimizationDecode
9
- } from "./chunk-3KWBKDLY.js";
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-P7M7B7ER.js";
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-MCQS3VCO.js.map
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-ZSOMTVP5.js";
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-6TKFGXSA.js.map
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-G246NFI4.js";
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-VXHLESK7.js.map
534
+ //# sourceMappingURL=chunk-MBRAYFD4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TraceDetail
3
- } from "./chunk-OUI67IFL.js";
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-A53N6IFN.js.map
82
+ //# sourceMappingURL=chunk-NG6K2B3F.js.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  useAddressNameMap
3
- } from "./chunk-LQCS5PT5.js";
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-OOL2AH54.js";
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-6TKFGXSA.js";
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-MOMFJZ7B.js.map
80
+ //# sourceMappingURL=chunk-NQFK4HOS.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DecodedParameters
3
- } from "./chunk-3KWBKDLY.js";
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-XF2CMO2A.js";
15
+ } from "./chunk-BHL6OY3L.js";
16
16
  import {
17
17
  cn
18
- } from "./chunk-G246NFI4.js";
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-CCMPEOQY.js.map
90
+ //# sourceMappingURL=chunk-NRHFGPN6.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  convertCheckSum
3
- } from "./chunk-6TKFGXSA.js";
3
+ } from "./chunk-IUL5FJSO.js";
4
4
  import {
5
5
  Text
6
- } from "./chunk-VVEA44KS.js";
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-E7ZFE6KT.js.map
146
+ //# sourceMappingURL=chunk-QUEYGZEY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isZeroAddress
3
- } from "./chunk-6TKFGXSA.js";
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-OOL2AH54.js.map
51
+ //# sourceMappingURL=chunk-RDIVTGYB.js.map
@@ -5,10 +5,10 @@ import {
5
5
  SelectItem,
6
6
  SelectTrigger,
7
7
  SelectValue
8
- } from "./chunk-7PQ6YKBC.js";
8
+ } from "./chunk-UAUOFPHA.js";
9
9
  import {
10
10
  cn
11
- } from "./chunk-G246NFI4.js";
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-MF6LAIGP.js.map
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-VXHLESK7.js";
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-6KG65RIO.js.map
26
+ //# sourceMappingURL=chunk-S4M4LBVQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  reqAbiByMethodId
3
- } from "./chunk-ZSOMTVP5.js";
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-7P6KYI3Z.js.map
17
+ //# sourceMappingURL=chunk-SWH3CIYY.js.map