From c68b177b414be397af2ef2469fcb5129d11d3e3f Mon Sep 17 00:00:00 2001 From: cong_wang Date: Mon, 8 Apr 2024 10:21:31 +0800 Subject: [PATCH] feat: Updated Phalcon Explorer, added zkSync support to Blockscout, switched to snowscan.xyz, and fixed bugs --- CHANGELOG.md | 7 ++ README.md | 2 +- manifest.config.ts | 6 +- package.json | 2 +- .../components/BscModal/index.module.less | 2 +- src/common/components/Cell/cell.tsx | 2 +- .../components/DrawerSimulation/index.tsx | 17 ++-- .../index.module.less | 6 +- .../ModalContractVariableLogs/index.tsx | 2 +- .../ModalFundFlow/index.module.less | 12 +-- src/common/components/ModalFundFlow/index.tsx | 38 +++++---- .../components/ModalProxyLog/columns.tsx | 2 +- .../ModalProxyLog/index.module.less | 4 +- src/common/components/ModalProxyLog/index.tsx | 2 +- .../components/RarityLabel/index.module.less | 4 +- .../components/icon/IconMetaDock/index.tsx | 4 +- .../components/icon/IconMetaSleuth/index.tsx | 47 +++++++++++ src/common/components/icon/index.ts | 1 + src/common/config/allowlist.ts | 4 +- src/common/config/uri.ts | 13 ++- src/common/constants/support.ts | 23 +++-- src/common/styles/common.less | 2 +- .../message.module.less | 2 +- .../blockscout/feat-scripts/quick2parsers.tsx | 4 +- .../index.module.less | 2 +- .../components/Button/index.module.less | 2 +- .../ComplianceScoreLabel/index.module.less | 2 +- .../FortaAlertLabel/index.module.less | 2 +- .../FortaAlertTip/index.module.less | 2 +- .../FortaAlertWarningSymbol/index.module.less | 2 +- .../components/FundFromTag/index.module.less | 4 +- .../components/ParsersBtn/index.module.less | 2 +- .../etherscan/components/ParsersBtn/index.tsx | 3 +- .../ReadContractAccordionItem/index.tsx | 4 +- .../TokenMarketplacesBtn/index.module.less | 2 +- .../TransactionExplanation/index.module.less | 2 +- .../TransactionExplanation/index.tsx | 2 +- .../feat-scripts/transaction-simulator.tsx | 2 +- src/content/index.ts | 3 - .../index.module.less | 2 +- .../scans/components/Button/index.module.less | 2 +- .../ComplianceScoreLabel/index.module.less | 2 +- .../FortaAlertLabel/index.module.less | 2 +- .../FortaAlertTip/index.module.less | 2 +- .../FortaAlertWarningSymbol/index.module.less | 4 +- .../components/FundFromTag/index.module.less | 4 +- .../components/ParsersBtn/index.module.less | 2 +- .../scans/components/ParsersBtn/index.tsx | 3 +- .../ReadContractAccordionItem/index.tsx | 4 +- .../TransactionExplanation/index.module.less | 2 +- .../TransactionExplanation/index.tsx | 2 +- .../ComplianceScoreLabel/index.module.less | 24 ------ .../components/ComplianceScoreLabel/index.tsx | 59 ------------- .../snowtrace/components/DeBankBtn/index.tsx | 41 --------- .../components/FundFlowBtn/index.tsx | 46 ---------- .../components/ParsersBtn/index.module.less | 17 ---- .../snowtrace/components/ParsersBtn/index.tsx | 83 ------------------- src/content/snowtrace/components/index.ts | 4 - .../feat-scripts/compliance-score.tsx | 35 -------- src/content/snowtrace/feat-scripts/debank.tsx | 19 ----- .../snowtrace/feat-scripts/fund-flow.tsx | 24 ------ src/content/snowtrace/feat-scripts/index.ts | 4 - .../snowtrace/feat-scripts/quick2parsers.tsx | 18 ---- src/content/snowtrace/index.tsx | 16 ---- src/content/snowtrace/main.tsx | 50 ----------- .../snowtrace/page-scripts/address.tsx | 34 -------- src/content/snowtrace/page-scripts/index.ts | 3 - src/content/snowtrace/page-scripts/token.tsx | 34 -------- src/content/snowtrace/page-scripts/tx.tsx | 11 --- .../components/ApprovalDiagnosisBtn/index.tsx | 2 +- .../ComplianceScoreLabel/index.module.less | 2 +- .../DecompileInEthervmBtn/index.tsx | 2 +- .../components/ExportTableDataBtn/index.tsx | 2 +- .../tronscan/components/FundFlowBtn/index.tsx | 2 +- .../components/FundFromTag/index.module.less | 4 +- .../tronscan/components/ParsersBtn/index.tsx | 2 +- .../tronscan/feat-scripts/enhanced-labels.tsx | 4 +- src/popup/components/Brand/index.module.less | 2 +- .../components/Shortcuts/index.module.less | 4 +- src/popup/components/Shortcuts/index.tsx | 2 +- 80 files changed, 185 insertions(+), 640 deletions(-) create mode 100644 src/common/components/icon/IconMetaSleuth/index.tsx delete mode 100644 src/content/snowtrace/components/ComplianceScoreLabel/index.module.less delete mode 100644 src/content/snowtrace/components/ComplianceScoreLabel/index.tsx delete mode 100644 src/content/snowtrace/components/DeBankBtn/index.tsx delete mode 100644 src/content/snowtrace/components/FundFlowBtn/index.tsx delete mode 100644 src/content/snowtrace/components/ParsersBtn/index.module.less delete mode 100644 src/content/snowtrace/components/ParsersBtn/index.tsx delete mode 100644 src/content/snowtrace/components/index.ts delete mode 100644 src/content/snowtrace/feat-scripts/compliance-score.tsx delete mode 100644 src/content/snowtrace/feat-scripts/debank.tsx delete mode 100644 src/content/snowtrace/feat-scripts/fund-flow.tsx delete mode 100644 src/content/snowtrace/feat-scripts/index.ts delete mode 100644 src/content/snowtrace/feat-scripts/quick2parsers.tsx delete mode 100644 src/content/snowtrace/index.tsx delete mode 100644 src/content/snowtrace/main.tsx delete mode 100644 src/content/snowtrace/page-scripts/address.tsx delete mode 100644 src/content/snowtrace/page-scripts/index.ts delete mode 100644 src/content/snowtrace/page-scripts/token.tsx delete mode 100644 src/content/snowtrace/page-scripts/tx.tsx diff --git a/CHANGELOG.md b/CHANGELOG.md index 3449bb6..0d2c72f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +### v4.8.0 + +- [update] Update the domain for Phalcon Explorer +- [feat] Added support for zkSync on Blockscout +- [feat] Adapted to snowscan.xyz as a replacement for the previous snowtrace.io +- [fix] Fixed various bugs + ### v4.7.0 - [feat] Integration with Blockscout explorer diff --git a/README.md b/README.md index 08b6f65..af4132a 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ For up to the minute news, follow our [Twitter](https://twitter.com/MetaDockTeam - arbiscan.io - cronoscan.com - moonscan.io -- snowtrace.io +- snowscan.xyz - optimistic.etherscan.io - nova.arbiscan.io - bttcscan.com diff --git a/manifest.config.ts b/manifest.config.ts index 67158c1..4687f74 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -38,7 +38,8 @@ export default defineManifest((env: ConfigEnv) => { '*://gnosisscan.io/*', '*://*.celoscan.io/*', '*://*.bttcscan.com/*', - '*://era.zksync.network/*' + '*://era.zksync.network/*', + '*://snowscan.xyz/*' ] : [''], js: ['src/content/index.all_frames.ts'], @@ -49,8 +50,7 @@ export default defineManifest((env: ConfigEnv) => { ? [ '*://explorer.btc.com/*', '*://*.opensea.io/*', - '*://*.tronscan.org/*', - '*://*.snowtrace.io/*' + '*://*.tronscan.org/*' ] : [''], js: ['src/content/index.ts'], diff --git a/package.json b/package.json index aeb8b18..a0e8cf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metasuites", - "version": "4.7.0", + "version": "4.8.0", "repository": { "type": "git", "url": "https://github.com/blocksecteam/metasuites.git" diff --git a/src/common/components/BscModal/index.module.less b/src/common/components/BscModal/index.module.less index 5093f58..98680ad 100644 --- a/src/common/components/BscModal/index.module.less +++ b/src/common/components/BscModal/index.module.less @@ -7,7 +7,7 @@ font-size: 15px; padding-left: 20px; .justify-between; - .align-center; + .items-center; .closeIcon { padding: 20px; cursor: pointer; diff --git a/src/common/components/Cell/cell.tsx b/src/common/components/Cell/cell.tsx index 876ef08..9e00ab8 100644 --- a/src/common/components/Cell/cell.tsx +++ b/src/common/components/Cell/cell.tsx @@ -38,7 +38,7 @@ const Cell: FC = props => { style={style} onClick={onClick} > -
+
{icon && }
{title} diff --git a/src/common/components/DrawerSimulation/index.tsx b/src/common/components/DrawerSimulation/index.tsx index f9bbfbc..cb3cad6 100644 --- a/src/common/components/DrawerSimulation/index.tsx +++ b/src/common/components/DrawerSimulation/index.tsx @@ -34,7 +34,10 @@ import type { Arguments, SimulateTxParams } from '@common/api/types' -import { PHALCON_EXPLORER_DOMAIN } from '@common/config/uri' +import { + PHALCON_EXPLORER_DOMAIN, + PHALCON_FORK_DOMAIN +} from '@common/config/uri' import styles from './index.module.less' import type { @@ -321,7 +324,7 @@ const DrawerSimulation: FC = ({ width={isMobile() ? '100%' : 530} closable={false} title={ -
+
setVisible(false)} /> Simulator = ({ destroyOnClose extra={
{SLEUTH_SUPPORT_LIST.includes(chain) && ( - + + )}
{fundFlow?.nodes && (