Simple and high-quality subgraph for Optimism's L1 contracts.
Not every hackathon project need to be revolutionary, sometimes there's just a small gap that needs filling! This project fills a small gap in the Optimism ecosystem by publishing and indexing a simple, high-quality subgraph for Optimism's core (pre-bedrock) contracts.
Notably, the subgraph includes events on core Optimism contracts such as bridge events (deposits and withdrawals) and state commitments.
In the spirit of simplicity, building this was fairly simple too ;)
I dove into the core Optimism contracts on mainnet using Otterscan (a local block explorer developed at a previous ETHGlobal event) and on Optimism using Optimistic Etherscan. I extracted the events that I cared about and that I saw tools using the most to build a map of the Optimism ecosystem.
From there I ported the events to The Graph schema, fiddled around with handling Optimism's proxy contracts, and generated a high-quality subgraph for Optimism infrastructure.
To wrap it up, I published the subgraph to mainnet and seeded it with curation signal to get some distributed indexers to pick it up.