From 02404771ae01a697650af0cbf3322c7760f93807 Mon Sep 17 00:00:00 2001 From: 0xEthan Date: Fri, 14 Nov 2025 09:55:58 +0800 Subject: [PATCH] feat: add hoodi support for etherscan and remove goerli support --- src/common/config/allowlist.ts | 2 +- src/common/config/feature.support.ts | 12 ++++++------ src/common/constants/support.ts | 28 ++++++++++++++-------------- src/tests/isMatchURL.test.ts | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/common/config/allowlist.ts b/src/common/config/allowlist.ts index 58d6494..9ea5c7e 100644 --- a/src/common/config/allowlist.ts +++ b/src/common/config/allowlist.ts @@ -5,7 +5,7 @@ export default { '*://cn.etherscan.com/*', '*://goto.etherscan.com/*', '*://sepolia.etherscan.io/*', - '*://goerli.etherscan.io/*', + '*://hoodi.etherscan.io/*', '*://cn.etherscan.com/*', '*://etherscan.io/*', '*://bscscan.com/*', diff --git a/src/common/config/feature.support.ts b/src/common/config/feature.support.ts index e49146f..a7c616d 100644 --- a/src/common/config/feature.support.ts +++ b/src/common/config/feature.support.ts @@ -154,8 +154,8 @@ export class FeatureActiveSupport { url: 'https://ethervm.io/decompile/binance' }, { - chain: 'gor.eth', - url: 'https://ethervm.io/decompile/goerli' + chain: 'hoodi.eth', + url: 'https://ethervm.io/decompile/hoodi' }, { chain: 'sepolia.eth', @@ -297,8 +297,8 @@ export class FeatureActiveSupport { chain: 'gnosis' }, { - pathname: 'goerli', - chain: 'gor.eth' + pathname: 'hoodi', + chain: 'hoodi.eth' }, { pathname: 'fantom-testnet', @@ -369,8 +369,8 @@ export class FeatureActiveSupport { supportSimulator: false }, { - pathname: 'goerli', - chain: 'gor.eth', + pathname: 'hoodi', + chain: 'hoodi.eth', supportSimulator: false }, { diff --git a/src/common/constants/support.ts b/src/common/constants/support.ts index cf5be59..ec0d0da 100644 --- a/src/common/constants/support.ts +++ b/src/common/constants/support.ts @@ -46,10 +46,10 @@ export const EXT_SUPPORT_WEB_LIST: ExtSupportWebsite[] = [ logo: 'https://assets.blocksec.com/image/1671685360787-7.png' }, { - name: 'Goerli', - domains: ['goerli.etherscan.io'], - chainID: 5, - chain: 'gor.eth', + name: 'Hoodi', + domains: ['hoodi.etherscan.io'], + chainID: 560048, + chain: 'hoodi.eth', siteName: 'ETHERSCAN', logo: 'https://assets.blocksec.com/image/1671685360787-7.png' } @@ -72,10 +72,10 @@ export const EXT_SUPPORT_WEB_LIST: ExtSupportWebsite[] = [ logo: 'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/meta-suites-logos/ethereum.png' }, { - name: 'Goerli (Blockscout)', - domains: ['eth-goerli.blockscout.com'], - chainID: 5, - chain: 'gor.eth', + name: 'Hoodi (Blockscout)', + domains: ['eth-hoodi.blockscout.com'], + chainID: 560048, + chain: 'hoodi.eth', siteName: 'BLOCKSCOUT', logo: 'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/meta-suites-logos/ethereum.png' } @@ -505,8 +505,8 @@ export const PHALCON_SUPPORT_LIST = [ supportSimulator: false }, { - pathname: 'goerli', - chain: 'gor.eth', + pathname: 'hoodi', + chain: 'hoodi.eth', supportSimulator: false }, { @@ -622,8 +622,8 @@ export const TENDERLY_SUPPORT_LIST = [ chain: 'gnosis' }, { - pathname: 'goerli', - chain: 'gor.eth' + pathname: 'hoodi', + chain: 'hoodi.eth' }, { pathname: 'fantom-testnet', @@ -749,8 +749,8 @@ export const ETHERVM_SUPPORT_DIRECT_LIST = [ url: 'https://ethervm.io/decompile/binance' }, { - chain: 'gor.eth', - url: 'https://ethervm.io/decompile/goerli' + chain: 'hoodi.eth', + url: 'https://ethervm.io/decompile/hoodi' }, { chain: 'sepolia.eth', diff --git a/src/tests/isMatchURL.test.ts b/src/tests/isMatchURL.test.ts index 71a8387..6c50a9e 100644 --- a/src/tests/isMatchURL.test.ts +++ b/src/tests/isMatchURL.test.ts @@ -52,7 +52,7 @@ test('should match URL with query parameters', () => { '*://cn.etherscan.com/*', '*://goto.etherscan.com/*', '*://sepolia.etherscan.io/*', - '*://goerli.etherscan.io/*', + '*://hoodi.etherscan.io/*', '*://cn.etherscan.com/*', '*://etherscan.io/*', '*://bscscan.com/*',