Repository navigation
60 update network connectors - #85
Merged
MatiasOS merged 14 commits intoDec 10, 2025
Merged
Conversation
|
🚀 Preview: https://pr-85--openscan.netlify.app |
MatiasOS
force-pushed
the
60-update-network-connectors
branch
from
December 10, 2025 13:16
ae2621b to
8e60684
Compare
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
This PR introduces the network connectors architecture - a major refactoring that extracts blockchain data fetching logic into a modular adapter system with the new
explorer-network-connectorspackage. This enables better maintainability, easier network additions, and cleaner separation of concerns.Key Changes
Network Connectors Architecture
explorer-network-connectors@0.0.2- Modular network adapter systeml1BlockNumber,sendCount)Code Removal (Replaced by network connectors)
Total Removed: ~2,120 lines of legacy fetcher/adapter code
🔧 Service Layer Updates
⚙️ Configuration
Architecture Benefits
Advantages:
Technical Details
Adapter Structure:
Each adapter extends
NetworkAdapterand implements:getBlock(blockNumber)- Fetch block datagetTransaction(txHash)- Fetch transaction with receiptgetAddress(address)- Fetch address data, balance, codegetNetworkStats()- Gas price, latest block, sync statusNetwork-Specific Customizations:
l1BlockNumber,sendCount,requestIdfieldsl1Fee,l1GasPrice,l1GasUsed)RPC Strategy Support:
fallbackandparallelRPC strategies work with new connectorsBreaking Changes
None - this is an internal refactoring that maintains full API compatibility.
File Statistics