ethereum-optimism / op-analytics

Onchain Data, Utilities, References, and other Analytics on Optimism
95 stars 41 forks source link

[Idea Discussion] Open-Source OP Chain & OP Stack Forks Metadata Source #249

Open MSilb7 opened 11 months ago

MSilb7 commented 11 months ago

Opening up discussion for requirements / ideas for creating an open-source registry for any and all OP Chains & OP Stack Forks.

Problem: Crypto data teams have a super hard time keeping track of deployed OP Chains & OP Stack Forks. Some chain deployers attempt to get in touch with OP Labs / OP Foundation, but otherwise this requires sleuthing through Twitter, blog posts, news aggregators, etc. Many people maintain their own lists with varying degrees of comprehensiveness (nobody knows how many production mainnet chains actually exist)

To solve for this, want to create a shared open-source resource for analysts, developers, educators, etc to identify OP Chains & OP Stack Forks with the relevant information about them.

See Key Definitions for Chain Segments

Goals:

Existing Version(s):

Other Inspiration / Attempts:

Open Questions:

mseidlx commented 11 months ago

This is super helpful for us (growthepie.xyz). It is tedious work to figure out the differences between OP chains and the current metadata proposal would already solve this for us. i.e. we want to make sure that we group chains correctly (superchain, op stack, bedrock, etc.) and this shared list will help as a single source of truth. Having important links like RPCs and explorers also make our lives easier. And just having a list of OP related chains is helpful - it's already hard to keep track of all of them.

Might be interesting to add mainnet_launch_date. Defining the mods in greater detail could also be helpful (block size, block time, etc.)

It seems like with the current level of complexity csv is sufficient as input. Might make sense to use yml anyway just to be prepared for more complexity. Output csv or json are both great.

The automation part of detecting new L2 contracts is interesting - we might be able to look closer into that in the coming months.

lgingerich commented 11 months ago

Fields:

Derive OP Chain data using the chain factory Would this handle partial automation of this, at least for those opted into the Superchain? You likely could determine some of this from onchain bytecode when a new chain gets deployed, but if there's any changes in their deployment, that wouldn't work anymore.

Given that it seems like potentially dynamic metadata is wanted to be included (which I agree with), I'm not sure that any of this needs to be onchain. Unless of course there's already a need for this that I'm not aware of.

For an OP Stack specific registry, unfortunately I think you or someone else at OP Labs will have to be the approver/denier. A more open solution would be great, but would likely lead to the list getting spammed with bad data.

While the ideal outcome is of course that projects always want to add themselves to the list, they may not care or know about the list. Of course make it as known as possible, but then maybe also tie in eligibility of going on the Superchain Eco website to first adding their data to this registry. There's never going to be a perfect solution here.

Saraeutsza commented 1 month ago

.