feat: add Routescan-hosted explorer support#50
Open
iJaack wants to merge 1 commit intoblocksecteam:mainfrom
Open
feat: add Routescan-hosted explorer support#50iJaack wants to merge 1 commit intoblocksecteam:mainfrom
iJaack wants to merge 1 commit intoblocksecteam:mainfrom
Conversation
Add support for block explorers operated by Routescan (routescan.io): - Snowtrace (snowtrace.io) — Avalanche C-Chain (43114) + Fuji testnet - Flarescan (flarescan.com) — Flare (14) + Coston testnet - Songbird (songbird.flarescan.com) — Songbird (19) - Chiliscan (chiliscan.com) — Chiliz (88888) + Spicy testnet - Metis Explorer (explorer.metis.com) — Metis Andromeda (1088) + Sepolia testnet - Bobascan (bobascan.com) — Boba Ethereum (288) + testnet All explorers use Etherscan-compatible URL structures (/address/, /tx/, /block/) and are configured with siteName 'ETHERSCAN'. Snowtrace is added alongside the existing snowscan.xyz entry — both are valid Avalanche C-Chain explorers (Routescan-operated and Etherscan-operated respectively). Files changed: - src/common/config/allowlist.ts — URL patterns for content script injection - src/common/constants/support.ts — chain definitions in EXT_SUPPORT_WEB_LIST - manifest.config.ts — dev-mode content script matches Closes blocksecteam#14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for block explorers operated by Routescan, as requested in #14.
Explorers added
Implementation details
All Routescan explorers use Etherscan-compatible URL structures (
/address/,/tx/,/block/, etc.), so they are configured withsiteName: 'ETHERSCAN'— no new page parsers needed.Snowtrace (
snowtrace.io) is added alongside the existingsnowscan.xyzentry. Both are valid Avalanche C-Chain explorers (Routescan-operated and Etherscan-operated respectively).Files changed
src/common/config/allowlist.ts— URL patterns for content script injectionsrc/common/constants/support.ts— chain definitions inEXT_SUPPORT_WEB_LISTmanifest.config.ts— dev-mode content script matchesRoutescan API compatibility
Routescan offers both Etherscan-compatible APIs and REST APIs. The Etherscan-compatible API does not require sign-up or API keys for the free tier.
Closes #14