blockscout / blockscout-rs

Microservices for blockscout indexer
MIT License
157 stars 113 forks source link

A service to search all existing contracts inside eth-bytecode-db for new chains #622

Open rimrakhimov opened 1 year ago

rimrakhimov commented 1 year ago

When a chain runs blockscout instance on existing data, the number of verified contracts is zero initially. Even though some of the contracts may be verified through eth-bytecode-db search.

We want to create a script that will look for all existing non-verified contracts and tries to verify them via eth-bytecode-db lookup. That may be enhanced further to make a search for all newly indexed contracts.

rimrakhimov commented 9 months ago

Implemented in https://github.com/blockscout/blockscout-rs/tree/rimrakhimov/eth-bytecode-db-extractors/contracts-lookup. Tried on Optimism Mainnet (https://optimism.blockscout.com/stats) - resulted in ~1.5 million of verified contracts

Need to create an instruction how to use the script, and merge it into main branch

rimrakhimov commented 9 months ago

https://www.notion.so/blockscout/Existing-contracts-lookup-for-new-chains-f51c56d38fa0401f9ea251eea16284cf