@cfxjs/sirius-next-common 0.2.16 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-SX6R4MHO.js → chunk-2WEBXRNL.js} +2 -2
- package/dist/{chunk-CNF26YY7.js → chunk-6L4ZEJQI.js} +2 -2
- package/dist/{chunk-2KXTTKRI.js → chunk-7AVQOIDM.js} +2 -2
- package/dist/{chunk-ZLNQICQZ.js → chunk-7VQL3G7K.js} +4 -4
- package/dist/{chunk-GSWIFV2B.js → chunk-AYCHKB2Y.js} +2 -2
- package/dist/{chunk-E3ZD2GGG.js → chunk-BEI5TWJL.js} +2 -2
- package/dist/{chunk-CKVDFS45.js → chunk-BHAXBHVC.js} +8 -13
- package/dist/chunk-BHAXBHVC.js.map +1 -0
- package/dist/{chunk-VJSXGYWN.js → chunk-C6CGZ6KN.js} +2 -2
- package/dist/{chunk-P4EE3QGM.js → chunk-C7OIVXE3.js} +3 -3
- package/dist/{chunk-BUSBM33B.js → chunk-CMOP3BKX.js} +3 -3
- package/dist/{chunk-6H5A42YS.js → chunk-DCQANK66.js} +2 -2
- package/dist/{chunk-OZ4OJLIM.js → chunk-DYNSSHD5.js} +7 -7
- package/dist/{chunk-OCQIWTDC.js → chunk-ELF2EOGF.js} +2 -2
- package/dist/{chunk-5M5ECKFB.js → chunk-GG7ROFBQ.js} +45 -41
- package/dist/chunk-GG7ROFBQ.js.map +1 -0
- package/dist/{chunk-YIZCD4WG.js → chunk-GHHUAWSG.js} +3 -3
- package/dist/{chunk-DF3PVTB5.js → chunk-GQRCW7WX.js} +2 -2
- package/dist/{chunk-YIXV7A4J.js → chunk-H5ZJBRIK.js} +4 -4
- package/dist/{chunk-JRB53YY7.js → chunk-K4SBN5ZT.js} +22 -18
- package/dist/chunk-K4SBN5ZT.js.map +1 -0
- package/dist/{chunk-3PXUIH3S.js → chunk-LCIBOT5P.js} +2 -2
- package/dist/chunk-MUW5KBWU.js +25 -0
- package/dist/chunk-MUW5KBWU.js.map +1 -0
- package/dist/{chunk-7OSADJ6H.js → chunk-NFPBS22O.js} +24 -9
- package/dist/chunk-NFPBS22O.js.map +1 -0
- package/dist/{chunk-CPPQCJEV.js → chunk-NM3BMITL.js} +4 -5
- package/dist/chunk-NM3BMITL.js.map +1 -0
- package/dist/{chunk-L62OTV7F.js → chunk-OT7NZ4PK.js} +3 -3
- package/dist/{chunk-EMPFZFBS.js → chunk-RUU22F7R.js} +2 -2
- package/dist/{chunk-CPR4QZT6.js → chunk-UF5BN4QN.js} +2 -2
- package/dist/{chunk-TP67325Z.js → chunk-UZALXR3J.js} +4 -4
- package/dist/{chunk-5EDEEGZK.js → chunk-VGYNHJFT.js} +16 -3
- package/dist/chunk-VGYNHJFT.js.map +1 -0
- package/dist/{chunk-A6ND7FSQ.js → chunk-W64AF7LA.js} +5 -5
- package/dist/chunk-WZIT54AU.js +51 -0
- package/dist/chunk-WZIT54AU.js.map +1 -0
- package/dist/{chunk-AYH6CLQB.js → chunk-XZL5CZFT.js} +6 -6
- package/dist/chunk-XZL5CZFT.js.map +1 -0
- package/dist/{chunk-5Y7I6VYA.js → chunk-YEAWH772.js} +2 -2
- package/dist/{chunk-5CDCNIBM.js → chunk-YKHDBNJD.js} +21 -24
- package/dist/chunk-YKHDBNJD.js.map +1 -0
- package/dist/{chunk-LVFMTP5H.js → chunk-YVV32ON3.js} +2 -2
- package/dist/components/AceEditor/index.js +4 -4
- package/dist/components/AddressContainer/CoreAddressContainer.d.ts +1 -0
- package/dist/components/AddressContainer/CoreAddressContainer.js +10 -10
- package/dist/components/AddressContainer/EVMAddressContainer.d.ts +1 -0
- package/dist/components/AddressContainer/EVMAddressContainer.js +9 -9
- package/dist/components/AddressContainer/addressSwitcher.d.ts +1 -0
- package/dist/components/AddressContainer/addressSwitcher.js +7 -7
- package/dist/components/AddressContainer/addressView.d.ts +2 -1
- package/dist/components/AddressContainer/addressView.js +6 -6
- package/dist/components/AddressContainer/label.js +45 -6
- package/dist/components/AddressContainer/label.js.map +1 -1
- package/dist/components/AddressContainer/types.d.ts +20 -23
- package/dist/components/AddressContainer/utils.d.ts +17 -2
- package/dist/components/AddressContainer/utils.js +6 -20
- package/dist/components/AddressContainer/utils.js.map +1 -1
- 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 -9
- package/dist/components/InputData/ContractDetail.js +3 -3
- package/dist/components/InputData/JsonDecode.js +5 -5
- package/dist/components/InputData/OptimizationDecode.js +10 -11
- package/dist/components/InputData/UTF8.js +3 -3
- package/dist/components/InputData/index.js +14 -15
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/NetworkIcon/index.js +2 -2
- package/dist/components/OutputData/ErrorDecode.js +13 -14
- package/dist/components/OutputData/index.js +15 -16
- 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.d.ts +1 -1
- package/dist/components/ProxyContractAddress/index.js +24 -15
- package/dist/components/ProxyContractAddress/index.js.map +1 -1
- 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/Text/index.js +4 -4
- package/dist/components/Tooltip/index.js +3 -3
- package/dist/components/TransactionAction/coreTransactionAction.js +13 -18
- package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -1
- package/dist/components/TransactionAction/evmTransactionAction.js +12 -17
- package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -1
- package/dist/components/TransactionTrace/TraceDetail.js +23 -24
- package/dist/components/TransactionTrace/TreeTraceTable.js +24 -25
- package/dist/components/TransactionTrace/index.js +24 -25
- 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.d.ts +6 -0
- package/dist/utils/hooks/useAddressNameMap.js +12 -0
- package/dist/utils/hooks/useAddressNameMap.js.map +1 -0
- package/dist/utils/hooks/useAge.js +1 -1
- package/dist/utils/hooks/useAge.js.map +1 -1
- 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.d.ts +30 -0
- package/dist/utils/hooks/useEnhanceDataWithNameMap.js +71 -0
- package/dist/utils/hooks/useEnhanceDataWithNameMap.js.map +1 -0
- package/dist/utils/hooks/useMethodAbi.js +2 -2
- package/dist/utils/hooks/useTableData.d.ts +34 -0
- package/dist/utils/hooks/useTableData.js +95 -0
- package/dist/utils/hooks/useTableData.js.map +1 -0
- package/dist/utils/hooks/useTxTrace.d.ts +3 -40
- package/dist/utils/hooks/useTxTrace.js +5 -15
- package/dist/utils/hooks/useTxTrace.js.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/request.d.ts +7 -2
- package/dist/utils/request.js +3 -1
- package/dist/utils/request.types.d.ts +35 -1
- package/package.json +11 -11
- package/dist/chunk-5CDCNIBM.js.map +0 -1
- package/dist/chunk-5EDEEGZK.js.map +0 -1
- package/dist/chunk-5M5ECKFB.js.map +0 -1
- package/dist/chunk-7OSADJ6H.js.map +0 -1
- package/dist/chunk-AYH6CLQB.js.map +0 -1
- package/dist/chunk-CKVDFS45.js.map +0 -1
- package/dist/chunk-CPPQCJEV.js.map +0 -1
- package/dist/chunk-JRB53YY7.js.map +0 -1
- package/dist/chunk-Q2DX6IDH.js +0 -49
- package/dist/chunk-Q2DX6IDH.js.map +0 -1
- /package/dist/{chunk-SX6R4MHO.js.map → chunk-2WEBXRNL.js.map} +0 -0
- /package/dist/{chunk-CNF26YY7.js.map → chunk-6L4ZEJQI.js.map} +0 -0
- /package/dist/{chunk-2KXTTKRI.js.map → chunk-7AVQOIDM.js.map} +0 -0
- /package/dist/{chunk-ZLNQICQZ.js.map → chunk-7VQL3G7K.js.map} +0 -0
- /package/dist/{chunk-GSWIFV2B.js.map → chunk-AYCHKB2Y.js.map} +0 -0
- /package/dist/{chunk-E3ZD2GGG.js.map → chunk-BEI5TWJL.js.map} +0 -0
- /package/dist/{chunk-VJSXGYWN.js.map → chunk-C6CGZ6KN.js.map} +0 -0
- /package/dist/{chunk-P4EE3QGM.js.map → chunk-C7OIVXE3.js.map} +0 -0
- /package/dist/{chunk-BUSBM33B.js.map → chunk-CMOP3BKX.js.map} +0 -0
- /package/dist/{chunk-6H5A42YS.js.map → chunk-DCQANK66.js.map} +0 -0
- /package/dist/{chunk-OZ4OJLIM.js.map → chunk-DYNSSHD5.js.map} +0 -0
- /package/dist/{chunk-OCQIWTDC.js.map → chunk-ELF2EOGF.js.map} +0 -0
- /package/dist/{chunk-YIZCD4WG.js.map → chunk-GHHUAWSG.js.map} +0 -0
- /package/dist/{chunk-DF3PVTB5.js.map → chunk-GQRCW7WX.js.map} +0 -0
- /package/dist/{chunk-YIXV7A4J.js.map → chunk-H5ZJBRIK.js.map} +0 -0
- /package/dist/{chunk-3PXUIH3S.js.map → chunk-LCIBOT5P.js.map} +0 -0
- /package/dist/{chunk-L62OTV7F.js.map → chunk-OT7NZ4PK.js.map} +0 -0
- /package/dist/{chunk-EMPFZFBS.js.map → chunk-RUU22F7R.js.map} +0 -0
- /package/dist/{chunk-CPR4QZT6.js.map → chunk-UF5BN4QN.js.map} +0 -0
- /package/dist/{chunk-TP67325Z.js.map → chunk-UZALXR3J.js.map} +0 -0
- /package/dist/{chunk-A6ND7FSQ.js.map → chunk-W64AF7LA.js.map} +0 -0
- /package/dist/{chunk-5Y7I6VYA.js.map → chunk-YEAWH772.js.map} +0 -0
- /package/dist/{chunk-LVFMTP5H.js.map → chunk-YVV32ON3.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tooltip
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GQRCW7WX.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-YEAWH772.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAddressNameInfo
|
|
3
|
+
} from "./chunk-WZIT54AU.js";
|
|
1
4
|
import {
|
|
2
5
|
ContractAddress,
|
|
3
6
|
ContractCreatedAddress,
|
|
4
7
|
InvalidAddress,
|
|
5
8
|
MyAddress
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K4SBN5ZT.js";
|
|
7
10
|
import {
|
|
8
11
|
RenderAddress
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NFPBS22O.js";
|
|
10
13
|
import {
|
|
11
14
|
convertCheckSum,
|
|
12
15
|
formatAddress,
|
|
13
16
|
isEvmAddress,
|
|
14
17
|
isZeroAddress
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
getLabelInfo
|
|
18
|
-
} from "./chunk-Q2DX6IDH.js";
|
|
18
|
+
} from "./chunk-6L4ZEJQI.js";
|
|
19
19
|
import {
|
|
20
20
|
getTranslations,
|
|
21
21
|
useGlobalData
|
|
@@ -27,37 +27,34 @@ import { withTranslation } from "react-i18next";
|
|
|
27
27
|
import _ from "lodash";
|
|
28
28
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
29
29
|
var parseProps = (props, globalData) => {
|
|
30
|
-
const {
|
|
30
|
+
const { t, showAddressLabel, showNametag, nametag, nameMap } = props;
|
|
31
31
|
const value = props.value || "";
|
|
32
32
|
const cfxAddress = formatAddress(value, "hex");
|
|
33
|
+
const nameInfo = getAddressNameInfo(cfxAddress, nameMap);
|
|
33
34
|
const translations = getTranslations();
|
|
34
|
-
let
|
|
35
|
-
if (!
|
|
36
|
-
|
|
35
|
+
let innerName = props.innerName;
|
|
36
|
+
if (!innerName && isZeroAddress(cfxAddress)) {
|
|
37
|
+
innerName = t(translations.general.zeroAddress);
|
|
37
38
|
}
|
|
38
39
|
let officalNametag = null;
|
|
39
40
|
let addressLabel = null;
|
|
40
41
|
if (cfxAddress && showAddressLabel) {
|
|
41
42
|
const addressLabels = globalData?.["CONFLUX_SCAN_ADDRESS_LABELS" /* addressLabel */];
|
|
42
|
-
|
|
43
|
-
if (gAddressLabel) {
|
|
44
|
-
const { label } = getLabelInfo(gAddressLabel, "tag");
|
|
45
|
-
addressLabel = label;
|
|
46
|
-
}
|
|
43
|
+
addressLabel = addressLabels?.[convertCheckSum(cfxAddress)] || addressLabels?.[cfxAddress.toLowerCase()];
|
|
47
44
|
}
|
|
48
45
|
if (cfxAddress && showNametag) {
|
|
49
|
-
|
|
50
|
-
if (nametags) {
|
|
51
|
-
const nametag = nametags?.nametag ?? "";
|
|
52
|
-
const { label } = getLabelInfo(nametag, "nametag");
|
|
53
|
-
officalNametag = label;
|
|
54
|
-
}
|
|
46
|
+
officalNametag = nametag || nameInfo?.nametag;
|
|
55
47
|
}
|
|
56
48
|
return {
|
|
57
|
-
|
|
49
|
+
innerName,
|
|
58
50
|
nametag: officalNametag,
|
|
59
51
|
addressLabel,
|
|
60
|
-
cfxAddress
|
|
52
|
+
cfxAddress,
|
|
53
|
+
tokenName: props.tokenName || nameInfo?.tokenName,
|
|
54
|
+
contractName: props.contractName || nameInfo?.contractName,
|
|
55
|
+
verificationName: props.verificationName || nameInfo?.verificationName,
|
|
56
|
+
verify: props.verify || nameInfo?.verify,
|
|
57
|
+
isContract: props.isContract || nameInfo?.isContract
|
|
61
58
|
};
|
|
62
59
|
};
|
|
63
60
|
var EVMAddressContainer = withTranslation()(
|
|
@@ -105,4 +102,4 @@ var EVMAddressContainer = withTranslation()(
|
|
|
105
102
|
export {
|
|
106
103
|
EVMAddressContainer
|
|
107
104
|
};
|
|
108
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-YKHDBNJD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/AddressContainer/EVMAddressContainer.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { WithTranslation, withTranslation } from 'react-i18next';\nimport _ from 'lodash';\nimport {\n formatAddress,\n isEvmAddress,\n isZeroAddress,\n convertCheckSum,\n} from '../../utils/address';\nimport { useGlobalData, getTranslations } from '../../store';\nimport { LOCALSTORAGE_KEYS_MAP } from '../../utils/constants';\n\nimport { RenderAddress } from './addressView';\nimport {\n ContractCreatedAddress,\n InvalidAddress,\n ContractAddress,\n MyAddress,\n} from './addressSwitcher';\nimport { GlobalDataType } from 'src/store/types';\nimport { EVMAddressContainerProps } from './types';\nimport { getAddressNameInfo } from './utils';\n\nconst parseProps = (\n props: EVMAddressContainerProps & WithTranslation,\n globalData: GlobalDataType,\n) => {\n const { t, showAddressLabel, showNametag, nametag, nameMap } = props;\n const value: string = props.value || '';\n const cfxAddress = formatAddress(value, 'hex');\n\n const nameInfo = getAddressNameInfo(cfxAddress, nameMap);\n\n const translations = getTranslations();\n\n let innerName = props.innerName;\n if (!innerName && isZeroAddress(cfxAddress)) {\n innerName = t(translations.general.zeroAddress);\n }\n\n // official name tag\n let officalNametag: React.ReactNode = null;\n // private name tag\n let addressLabel: React.ReactNode = null;\n\n if (cfxAddress && showAddressLabel) {\n // global private name tag\n const addressLabels = globalData?.[LOCALSTORAGE_KEYS_MAP.addressLabel];\n addressLabel =\n addressLabels?.[convertCheckSum(cfxAddress)] ||\n addressLabels?.[cfxAddress.toLowerCase()];\n }\n\n if (cfxAddress && showNametag) {\n officalNametag = nametag || nameInfo?.nametag;\n }\n\n return {\n innerName,\n nametag: officalNametag,\n addressLabel,\n cfxAddress,\n tokenName: props.tokenName || nameInfo?.tokenName,\n contractName: props.contractName || nameInfo?.contractName,\n verificationName: props.verificationName || nameInfo?.verificationName,\n verify: props.verify || nameInfo?.verify,\n isContract: props.isContract || nameInfo?.isContract,\n };\n};\n\nexport const EVMAddressContainer = withTranslation()(\n memo((props: EVMAddressContainerProps & WithTranslation) => {\n const { globalData } = useGlobalData();\n\n // If a txn receipt has no 'to' address or 'contractCreated', show -- for temp\n if (!props.value && !props.contractCreated) {\n return <>--</>;\n }\n\n const defaultProps = {\n isFull: false,\n isFullNameTag: false,\n link: true,\n isMe: false,\n showIcon: true,\n verify: false,\n showAddressLabel: true,\n showENSLabel: true,\n showNametag: true,\n };\n\n const mergeDefaultProps = _.assign({}, defaultProps, props);\n\n const mergeParseProps = _.merge(\n {},\n mergeDefaultProps,\n parseProps(mergeDefaultProps, globalData),\n );\n\n if (!mergeParseProps.value && mergeParseProps.contractCreated) {\n return ContractCreatedAddress({\n ...mergeParseProps,\n outputType: 'hex',\n });\n }\n\n if (!isEvmAddress(mergeParseProps.value)) {\n return InvalidAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isContract) {\n return ContractAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isMe) {\n return MyAddress(mergeParseProps);\n }\n\n return RenderAddress(mergeParseProps);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAA0B,uBAAuB;AACjD,OAAO,OAAO;AA0ED;AArDb,IAAM,aAAa,CACjB,OACA,eACG;AACH,QAAM,EAAE,GAAG,kBAAkB,aAAa,SAAS,QAAQ,IAAI;AAC/D,QAAM,QAAgB,MAAM,SAAS;AACrC,QAAM,aAAa,cAAc,OAAO,KAAK;AAE7C,QAAM,WAAW,mBAAmB,YAAY,OAAO;AAEvD,QAAM,eAAe,gBAAgB;AAErC,MAAI,YAAY,MAAM;AACtB,MAAI,CAAC,aAAa,cAAc,UAAU,GAAG;AAC3C,gBAAY,EAAE,aAAa,QAAQ,WAAW;AAAA,EAChD;AAGA,MAAI,iBAAkC;AAEtC,MAAI,eAAgC;AAEpC,MAAI,cAAc,kBAAkB;AAElC,UAAM,gBAAgB,6DAA+C;AACrE,mBACE,gBAAgB,gBAAgB,UAAU,CAAC,KAC3C,gBAAgB,WAAW,YAAY,CAAC;AAAA,EAC5C;AAEA,MAAI,cAAc,aAAa;AAC7B,qBAAiB,WAAW,UAAU;AAAA,EACxC;AAEA,SAAO;AAAA,IACL;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,WAAW,MAAM,aAAa,UAAU;AAAA,IACxC,cAAc,MAAM,gBAAgB,UAAU;AAAA,IAC9C,kBAAkB,MAAM,oBAAoB,UAAU;AAAA,IACtD,QAAQ,MAAM,UAAU,UAAU;AAAA,IAClC,YAAY,MAAM,cAAc,UAAU;AAAA,EAC5C;AACF;AAEO,IAAM,sBAAsB,gBAAgB;AAAA,EACjD,KAAK,CAAC,UAAsD;AAC1D,UAAM,EAAE,WAAW,IAAI,cAAc;AAGrC,QAAI,CAAC,MAAM,SAAS,CAAC,MAAM,iBAAiB;AAC1C,aAAO,gCAAE,gBAAE;AAAA,IACb;AAEA,UAAM,eAAe;AAAA,MACnB,QAAQ;AAAA,MACR,eAAe;AAAA,MACf,MAAM;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,kBAAkB;AAAA,MAClB,cAAc;AAAA,MACd,aAAa;AAAA,IACf;AAEA,UAAM,oBAAoB,EAAE,OAAO,CAAC,GAAG,cAAc,KAAK;AAE1D,UAAM,kBAAkB,EAAE;AAAA,MACxB,CAAC;AAAA,MACD;AAAA,MACA,WAAW,mBAAmB,UAAU;AAAA,IAC1C;AAEA,QAAI,CAAC,gBAAgB,SAAS,gBAAgB,iBAAiB;AAC7D,aAAO,uBAAuB;AAAA,QAC5B,GAAG;AAAA,QACH,YAAY;AAAA,MACd,CAAC;AAAA,IACH;AAEA,QAAI,CAAC,aAAa,gBAAgB,KAAK,GAAG;AACxC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,gBAAgB,YAAY;AAC9B,aAAO,gBAAgB,eAAe;AAAA,IACxC;AAEA,QAAI,gBAAgB,MAAM;AACxB,aAAO,UAAU,eAAe;AAAA,IAClC;AAEA,WAAO,cAAc,eAAe;AAAA,EACtC,CAAC;AACH;","names":[]}
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-BMO4IZHV.js";
|
|
30
30
|
import {
|
|
31
31
|
cn
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NM3BMITL.js";
|
|
33
33
|
|
|
34
34
|
// src/components/Popover/index.tsx
|
|
35
35
|
import { useRef } from "react";
|
|
@@ -2146,4 +2146,4 @@ focus-trap/dist/focus-trap.esm.js:
|
|
|
2146
2146
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2147
2147
|
*)
|
|
2148
2148
|
*/
|
|
2149
|
-
//# sourceMappingURL=chunk-
|
|
2149
|
+
//# sourceMappingURL=chunk-YVV32ON3.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AceEditor
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-YEAWH772.js";
|
|
4
|
+
import "../../chunk-GQRCW7WX.js";
|
|
5
5
|
import "../../chunk-BMO4IZHV.js";
|
|
6
6
|
import "../../chunk-LRCAKRPK.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-NM3BMITL.js";
|
|
8
8
|
import "../../chunk-WIB76E7O.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-VGYNHJFT.js";
|
|
10
10
|
import "../../chunk-J2I22Q2M.js";
|
|
11
11
|
import "../../chunk-YEINMVAR.js";
|
|
12
12
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import * as react_i18next from 'react-i18next';
|
|
3
3
|
import { WithTranslation } from 'react-i18next';
|
|
4
4
|
import { CoreAddressContainerProps } from './types.js';
|
|
5
|
+
import '../../utils/request.types.js';
|
|
5
6
|
|
|
6
7
|
declare const CoreAddressContainer: React.ComponentType<Omit<react_i18next.Subtract<CoreAddressContainerProps & WithTranslation<"translation", undefined>, react_i18next.WithTranslationProps>, keyof WithTranslation<N, undefined>> & react_i18next.WithTranslationProps>;
|
|
7
8
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CoreAddressContainer
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-GG7ROFBQ.js";
|
|
4
|
+
import "../../chunk-CMOP3BKX.js";
|
|
5
|
+
import "../../chunk-WZIT54AU.js";
|
|
6
|
+
import "../../chunk-K4SBN5ZT.js";
|
|
6
7
|
import "../../chunk-MWAD4CIG.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-NFPBS22O.js";
|
|
9
|
+
import "../../chunk-6L4ZEJQI.js";
|
|
10
|
+
import "../../chunk-C7OIVXE3.js";
|
|
10
11
|
import "../../chunk-TOKKKTFG.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-DF3PVTB5.js";
|
|
12
|
+
import "../../chunk-GQRCW7WX.js";
|
|
13
13
|
import "../../chunk-BMO4IZHV.js";
|
|
14
14
|
import "../../chunk-LRCAKRPK.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-NM3BMITL.js";
|
|
16
16
|
import "../../chunk-WIB76E7O.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-VGYNHJFT.js";
|
|
18
18
|
import "../../chunk-J2I22Q2M.js";
|
|
19
19
|
import "../../chunk-YEINMVAR.js";
|
|
20
20
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import * as react_i18next from 'react-i18next';
|
|
3
3
|
import { WithTranslation } from 'react-i18next';
|
|
4
4
|
import { EVMAddressContainerProps } from './types.js';
|
|
5
|
+
import '../../utils/request.types.js';
|
|
5
6
|
|
|
6
7
|
declare const EVMAddressContainer: React.ComponentType<Omit<react_i18next.Subtract<EVMAddressContainerProps & WithTranslation<"translation", undefined>, react_i18next.WithTranslationProps>, keyof WithTranslation<N, undefined>> & react_i18next.WithTranslationProps>;
|
|
7
8
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EVMAddressContainer
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-YKHDBNJD.js";
|
|
4
|
+
import "../../chunk-WZIT54AU.js";
|
|
5
|
+
import "../../chunk-K4SBN5ZT.js";
|
|
5
6
|
import "../../chunk-MWAD4CIG.js";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-NFPBS22O.js";
|
|
8
|
+
import "../../chunk-6L4ZEJQI.js";
|
|
9
|
+
import "../../chunk-C7OIVXE3.js";
|
|
9
10
|
import "../../chunk-TOKKKTFG.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-DF3PVTB5.js";
|
|
11
|
+
import "../../chunk-GQRCW7WX.js";
|
|
12
12
|
import "../../chunk-BMO4IZHV.js";
|
|
13
13
|
import "../../chunk-LRCAKRPK.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-NM3BMITL.js";
|
|
15
15
|
import "../../chunk-WIB76E7O.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-VGYNHJFT.js";
|
|
17
17
|
import "../../chunk-J2I22Q2M.js";
|
|
18
18
|
import "../../chunk-YEINMVAR.js";
|
|
19
19
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { WithTranslation } from 'react-i18next';
|
|
3
3
|
import { Props } from './types.js';
|
|
4
|
+
import '../../utils/request.types.js';
|
|
4
5
|
|
|
5
6
|
declare const ContractCreatedAddress: (props: Props & WithTranslation & {
|
|
6
7
|
outputType: 'hex' | 'base32';
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
InvalidAddress,
|
|
6
6
|
MyAddress,
|
|
7
7
|
PosAddress
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-K4SBN5ZT.js";
|
|
9
9
|
import "../../chunk-MWAD4CIG.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-NFPBS22O.js";
|
|
11
|
+
import "../../chunk-6L4ZEJQI.js";
|
|
12
|
+
import "../../chunk-C7OIVXE3.js";
|
|
13
13
|
import "../../chunk-TOKKKTFG.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-GQRCW7WX.js";
|
|
15
15
|
import "../../chunk-BMO4IZHV.js";
|
|
16
16
|
import "../../chunk-LRCAKRPK.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-NM3BMITL.js";
|
|
18
18
|
import "../../chunk-WIB76E7O.js";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-VGYNHJFT.js";
|
|
20
20
|
import "../../chunk-J2I22Q2M.js";
|
|
21
21
|
import "../../chunk-YEINMVAR.js";
|
|
22
22
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { RenderAddressProps } from './types.js';
|
|
3
|
+
import '../../utils/request.types.js';
|
|
3
4
|
|
|
4
|
-
declare const RenderAddress: ({ cfxAddress,
|
|
5
|
+
declare const RenderAddress: ({ cfxAddress, tokenName, contractName, showVerificationName, verificationName, hoverValue, hrefAddress, link, isFull, isFullNameTag, style, maxWidth, prefix, ENSIcon, suffix, type, addressLabel, ENSLabel, nametag, innerName, hideAliasPrefixInHover, }: RenderAddressProps) => react_jsx_runtime.JSX.Element;
|
|
5
6
|
|
|
6
7
|
export { RenderAddress };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RenderAddress
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-NFPBS22O.js";
|
|
4
|
+
import "../../chunk-6L4ZEJQI.js";
|
|
5
|
+
import "../../chunk-C7OIVXE3.js";
|
|
6
6
|
import "../../chunk-TOKKKTFG.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-GQRCW7WX.js";
|
|
8
8
|
import "../../chunk-BMO4IZHV.js";
|
|
9
9
|
import "../../chunk-LRCAKRPK.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-NM3BMITL.js";
|
|
11
11
|
import "../../chunk-WIB76E7O.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-VGYNHJFT.js";
|
|
13
13
|
import "../../chunk-J2I22Q2M.js";
|
|
14
14
|
import "../../chunk-YEINMVAR.js";
|
|
15
15
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -1,16 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-DF3PVTB5.js";
|
|
2
|
+
Tooltip
|
|
3
|
+
} from "../../chunk-GQRCW7WX.js";
|
|
5
4
|
import "../../chunk-BMO4IZHV.js";
|
|
6
5
|
import "../../chunk-LRCAKRPK.js";
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-NM3BMITL.js";
|
|
8
7
|
import "../../chunk-WIB76E7O.js";
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-VGYNHJFT.js";
|
|
10
9
|
import "../../chunk-J2I22Q2M.js";
|
|
11
10
|
import "../../chunk-YEINMVAR.js";
|
|
12
|
-
import
|
|
11
|
+
import {
|
|
12
|
+
getTranslations
|
|
13
|
+
} from "../../chunk-DQGLZCIG.js";
|
|
13
14
|
import "../../chunk-WQG2LZMB.js";
|
|
15
|
+
|
|
16
|
+
// src/components/AddressContainer/label.tsx
|
|
17
|
+
import { Translation } from "react-i18next";
|
|
18
|
+
import { Bookmark, Hash } from "@zeit-ui/react-icons";
|
|
19
|
+
import ICON_ENS from "../../logo-cns-7CXISC6I.svg";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
var getLabelInfo = (label, type) => {
|
|
22
|
+
const translations = getTranslations();
|
|
23
|
+
if (label) {
|
|
24
|
+
let trans = "";
|
|
25
|
+
let icon = null;
|
|
26
|
+
if (type === "tag") {
|
|
27
|
+
trans = translations.profile.tip.label;
|
|
28
|
+
icon = /* @__PURE__ */ jsx(Bookmark, { color: "var(--theme-color-gray2)", size: 16 });
|
|
29
|
+
} else if (type === "ens") {
|
|
30
|
+
trans = translations.ens.label;
|
|
31
|
+
icon = /* @__PURE__ */ jsx(
|
|
32
|
+
"img",
|
|
33
|
+
{
|
|
34
|
+
src: ICON_ENS,
|
|
35
|
+
className: "w-[16px] h-[16px] mb-[3px] mr-[2px]",
|
|
36
|
+
alt: ""
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
} else if (type === "nametag") {
|
|
40
|
+
trans = translations.nametag.label;
|
|
41
|
+
icon = /* @__PURE__ */ jsx(Hash, { color: "var(--theme-color-gray2)", size: 16 });
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
label,
|
|
45
|
+
icon: /* @__PURE__ */ jsx("span", { className: "mr-[2px]", children: /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(Translation, { children: (t) => t(trans) }), children: icon }) })
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
label: "",
|
|
50
|
+
icon: null
|
|
51
|
+
};
|
|
52
|
+
};
|
|
14
53
|
export {
|
|
15
54
|
getLabelInfo
|
|
16
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/AddressContainer/label.tsx"],"sourcesContent":["import { Translation } from 'react-i18next';\nimport { Bookmark, Hash } from '@zeit-ui/react-icons';\nimport { Tooltip } from '../Tooltip';\nimport { getTranslations } from '../../store';\nimport ICON_ENS from '../../images/logo-cns.svg';\n\nexport const getLabelInfo = (label: string, type: string) => {\n const translations = getTranslations();\n if (label) {\n let trans: string = '';\n let icon: React.ReactNode = null;\n\n if (type === 'tag') {\n trans = translations.profile.tip.label;\n icon = <Bookmark color=\"var(--theme-color-gray2)\" size={16} />;\n } else if (type === 'ens') {\n trans = (translations as any).ens.label;\n icon = (\n <img\n src={ICON_ENS}\n className=\"w-[16px] h-[16px] mb-[3px] mr-[2px]\"\n alt=\"\"\n />\n );\n // nametag from official operational staff\n } else if (type === 'nametag') {\n trans = translations.nametag.label;\n icon = <Hash color=\"var(--theme-color-gray2)\" size={16} />;\n }\n\n return {\n label,\n icon: (\n <span className=\"mr-[2px]\">\n <Tooltip title={<Translation>{t => t(trans)}</Translation>}>\n {icon}\n </Tooltip>\n </span>\n ),\n };\n }\n\n return {\n label: '',\n icon: null,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS,mBAAmB;AAC5B,SAAS,UAAU,YAAY;AAG/B,OAAO,cAAc;AAUR;AARN,IAAM,eAAe,CAAC,OAAe,SAAiB;AAC3D,QAAM,eAAe,gBAAgB;AACrC,MAAI,OAAO;AACT,QAAI,QAAgB;AACpB,QAAI,OAAwB;AAE5B,QAAI,SAAS,OAAO;AAClB,cAAQ,aAAa,QAAQ,IAAI;AACjC,aAAO,oBAAC,YAAS,OAAM,4BAA2B,MAAM,IAAI;AAAA,IAC9D,WAAW,SAAS,OAAO;AACzB,cAAS,aAAqB,IAAI;AAClC,aACE;AAAA,QAAC;AAAA;AAAA,UACC,KAAK;AAAA,UACL,WAAU;AAAA,UACV,KAAI;AAAA;AAAA,MACN;AAAA,IAGJ,WAAW,SAAS,WAAW;AAC7B,cAAQ,aAAa,QAAQ;AAC7B,aAAO,oBAAC,QAAK,OAAM,4BAA2B,MAAM,IAAI;AAAA,IAC1D;AAEA,WAAO;AAAA,MACL;AAAA,MACA,MACE,oBAAC,UAAK,WAAU,YACd,8BAAC,WAAQ,OAAO,oBAAC,eAAa,iBAAK,EAAE,KAAK,GAAE,GACzC,gBACH,GACF;AAAA,IAEJ;AAAA,EACF;AAEA,SAAO;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF;","names":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { AddressNameMap } from '../../utils/request.types.js';
|
|
2
|
+
|
|
1
3
|
type Props = CoreAddressContainerProps & EVMAddressContainerProps;
|
|
2
4
|
interface CoreAddressContainerProps {
|
|
3
5
|
value: string;
|
|
4
|
-
alias?: string;
|
|
5
6
|
contractCreated?: string;
|
|
6
7
|
maxWidth?: number;
|
|
7
8
|
isFull?: boolean;
|
|
@@ -14,28 +15,21 @@ interface CoreAddressContainerProps {
|
|
|
14
15
|
isEspaceAddress?: boolean;
|
|
15
16
|
showAddressLabel?: boolean;
|
|
16
17
|
showENSLabel?: boolean;
|
|
17
|
-
ensInfo?: {
|
|
18
|
-
[k: string]: {
|
|
19
|
-
address: string;
|
|
20
|
-
name: string;
|
|
21
|
-
expired?: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
18
|
showNametag?: boolean;
|
|
19
|
+
tokenName?: string | null;
|
|
20
|
+
contractName?: string | null;
|
|
21
|
+
showVerificationName?: boolean;
|
|
22
|
+
verificationName?: string | null;
|
|
23
|
+
innerName?: string | null;
|
|
25
24
|
nametag?: string | Iterable<React.ReactNode> | null;
|
|
26
|
-
|
|
27
|
-
[k: string]: {
|
|
28
|
-
address: string;
|
|
29
|
-
nametag: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
25
|
+
ensName?: string | null;
|
|
32
26
|
cfxAddress?: string;
|
|
33
27
|
isPosAddress?: boolean;
|
|
34
28
|
hideAliasPrefixInHover?: boolean;
|
|
29
|
+
nameMap?: Record<string, AddressNameMap>;
|
|
35
30
|
}
|
|
36
31
|
interface EVMAddressContainerProps {
|
|
37
32
|
value: string;
|
|
38
|
-
alias?: string;
|
|
39
33
|
contractCreated?: string;
|
|
40
34
|
maxWidth?: number;
|
|
41
35
|
isFull?: boolean;
|
|
@@ -46,23 +40,21 @@ interface EVMAddressContainerProps {
|
|
|
46
40
|
verify?: boolean;
|
|
47
41
|
showAddressLabel?: boolean;
|
|
48
42
|
showNametag?: boolean;
|
|
43
|
+
tokenName?: string | null;
|
|
44
|
+
contractName?: string | null;
|
|
45
|
+
showVerificationName?: boolean;
|
|
46
|
+
verificationName?: string | null;
|
|
47
|
+
innerName?: string | null;
|
|
49
48
|
nametag?: string | Iterable<React.ReactNode> | null;
|
|
50
|
-
nametagInfo?: {
|
|
51
|
-
[k: string]: {
|
|
52
|
-
address: string;
|
|
53
|
-
nametag: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
49
|
isContract?: boolean;
|
|
57
50
|
hideAliasPrefixInHover?: boolean;
|
|
51
|
+
nameMap?: Record<string, AddressNameMap>;
|
|
58
52
|
}
|
|
59
53
|
interface RenderAddressProps {
|
|
60
54
|
cfxAddress?: string;
|
|
61
|
-
alias?: string;
|
|
62
55
|
hoverValue?: string;
|
|
63
56
|
hrefAddress?: string;
|
|
64
57
|
isContract?: boolean;
|
|
65
|
-
content?: string;
|
|
66
58
|
isLink?: boolean;
|
|
67
59
|
link?: string | boolean;
|
|
68
60
|
isFull?: boolean;
|
|
@@ -74,6 +66,11 @@ interface RenderAddressProps {
|
|
|
74
66
|
ENSIcon?: React.ReactNode;
|
|
75
67
|
suffix?: React.ReactNode;
|
|
76
68
|
type?: 'pow' | 'pos';
|
|
69
|
+
tokenName?: string | null;
|
|
70
|
+
contractName?: string | null;
|
|
71
|
+
showVerificationName?: boolean;
|
|
72
|
+
verificationName?: string | null;
|
|
73
|
+
innerName?: string | null;
|
|
77
74
|
addressLabel?: string | Iterable<React.ReactNode> | null;
|
|
78
75
|
ENSLabel?: string | Iterable<React.ReactNode> | null;
|
|
79
76
|
nametag?: string | Iterable<React.ReactNode> | null;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import { Pocket } from '../../utils/request.types.js';
|
|
1
|
+
import { Pocket, AddressNameMap } from '../../utils/request.types.js';
|
|
2
2
|
|
|
3
3
|
declare const getPocketAlias: ({ type, address, pocket, }: {
|
|
4
4
|
type: 'from' | 'to';
|
|
5
5
|
address: string;
|
|
6
6
|
pocket?: Pocket | undefined;
|
|
7
7
|
}) => string | null;
|
|
8
|
+
declare const getAddressNameInfo: (address?: string, nameMap?: Record<string, AddressNameMap>) => {
|
|
9
|
+
tokenName: string | undefined;
|
|
10
|
+
tokenSymbol: string | undefined;
|
|
11
|
+
tokenDecimals: number | undefined;
|
|
12
|
+
tokenIconUrl: string | undefined;
|
|
13
|
+
isContract: boolean;
|
|
14
|
+
contractName: string | undefined;
|
|
15
|
+
verify: boolean;
|
|
16
|
+
verificationName: string | undefined;
|
|
17
|
+
nametag: string | undefined;
|
|
18
|
+
ensName: string | undefined;
|
|
19
|
+
isEspaceAddress: boolean;
|
|
20
|
+
alias: string | undefined;
|
|
21
|
+
originInfo: AddressNameMap;
|
|
22
|
+
} | null;
|
|
8
23
|
|
|
9
|
-
export { getPocketAlias };
|
|
24
|
+
export { getAddressNameInfo, getPocketAlias };
|
|
@@ -1,30 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
getAddressNameInfo,
|
|
3
|
+
getPocketAlias
|
|
4
|
+
} from "../../chunk-WZIT54AU.js";
|
|
5
|
+
import "../../chunk-6L4ZEJQI.js";
|
|
4
6
|
import "../../chunk-WIB76E7O.js";
|
|
5
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-VGYNHJFT.js";
|
|
6
8
|
import "../../chunk-J2I22Q2M.js";
|
|
7
9
|
import "../../chunk-YEINMVAR.js";
|
|
8
10
|
import "../../chunk-DQGLZCIG.js";
|
|
9
11
|
import "../../chunk-WQG2LZMB.js";
|
|
10
|
-
|
|
11
|
-
// src/components/AddressContainer/utils.ts
|
|
12
|
-
var getPocketAlias = ({
|
|
13
|
-
type,
|
|
14
|
-
address,
|
|
15
|
-
pocket
|
|
16
|
-
}) => {
|
|
17
|
-
if (!isZeroAddress(address))
|
|
18
|
-
return null;
|
|
19
|
-
if (pocket === "mint_or_burn") {
|
|
20
|
-
return type === "from" ? "System mint" : "System burn";
|
|
21
|
-
}
|
|
22
|
-
if (pocket === "gas_payment") {
|
|
23
|
-
return "System gas_payment";
|
|
24
|
-
}
|
|
25
|
-
return null;
|
|
26
|
-
};
|
|
27
12
|
export {
|
|
13
|
+
getAddressNameInfo,
|
|
28
14
|
getPocketAlias
|
|
29
15
|
};
|
|
30
16
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Text
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-C7OIVXE3.js";
|
|
4
4
|
import "../../chunk-TOKKKTFG.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-GQRCW7WX.js";
|
|
6
6
|
import "../../chunk-BMO4IZHV.js";
|
|
7
7
|
import "../../chunk-LRCAKRPK.js";
|
|
8
8
|
import {
|
|
9
9
|
getDuration
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NM3BMITL.js";
|
|
11
11
|
import "../../chunk-WIB76E7O.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-VGYNHJFT.js";
|
|
13
13
|
import "../../chunk-J2I22Q2M.js";
|
|
14
14
|
import "../../chunk-YEINMVAR.js";
|
|
15
15
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Popover
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-YVV32ON3.js";
|
|
4
4
|
import "../../chunk-BMO4IZHV.js";
|
|
5
5
|
import "../../chunk-LRCAKRPK.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-NM3BMITL.js";
|
|
7
7
|
import "../../chunk-WIB76E7O.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-VGYNHJFT.js";
|
|
9
9
|
import "../../chunk-J2I22Q2M.js";
|
|
10
10
|
import "../../chunk-YEINMVAR.js";
|
|
11
11
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "../../chunk-XGOIDR7R.js";
|
|
18
18
|
import {
|
|
19
19
|
sendRequestChart
|
|
20
|
-
} from "../../chunk-
|
|
20
|
+
} from "../../chunk-VGYNHJFT.js";
|
|
21
21
|
import "../../chunk-J2I22Q2M.js";
|
|
22
22
|
import "../../chunk-YEINMVAR.js";
|
|
23
23
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "../../chunk-XGOIDR7R.js";
|
|
23
23
|
import {
|
|
24
24
|
sendRequestChart
|
|
25
|
-
} from "../../chunk-
|
|
25
|
+
} from "../../chunk-VGYNHJFT.js";
|
|
26
26
|
import "../../chunk-J2I22Q2M.js";
|
|
27
27
|
import "../../chunk-YEINMVAR.js";
|
|
28
28
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tooltip
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-GQRCW7WX.js";
|
|
4
4
|
import "../../chunk-BMO4IZHV.js";
|
|
5
5
|
import "../../chunk-LRCAKRPK.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-NM3BMITL.js";
|
|
7
7
|
import "../../chunk-WIB76E7O.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-VGYNHJFT.js";
|
|
9
9
|
import "../../chunk-J2I22Q2M.js";
|
|
10
10
|
import "../../chunk-YEINMVAR.js";
|
|
11
11
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Popover
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-YVV32ON3.js";
|
|
4
4
|
import "../../chunk-BMO4IZHV.js";
|
|
5
5
|
import "../../chunk-LRCAKRPK.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-NM3BMITL.js";
|
|
7
7
|
import "../../chunk-WIB76E7O.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-VGYNHJFT.js";
|
|
9
9
|
import "../../chunk-J2I22Q2M.js";
|
|
10
10
|
import "../../chunk-YEINMVAR.js";
|
|
11
11
|
import "../../chunk-DQGLZCIG.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Modal
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-AYCHKB2Y.js";
|
|
4
4
|
import "../../chunk-XCKMXAL2.js";
|
|
5
5
|
import {
|
|
6
6
|
Link
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import "../../chunk-TGK5LP2H.js";
|
|
9
9
|
import {
|
|
10
10
|
Tooltip
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-GQRCW7WX.js";
|
|
12
12
|
import "../../chunk-BMO4IZHV.js";
|
|
13
13
|
import "../../chunk-LRCAKRPK.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-NM3BMITL.js";
|
|
15
15
|
import "../../chunk-WIB76E7O.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-VGYNHJFT.js";
|
|
17
17
|
import "../../chunk-J2I22Q2M.js";
|
|
18
18
|
import "../../chunk-YEINMVAR.js";
|
|
19
19
|
import {
|