Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accurately display L2/L3 status #482

Open
tessr opened this issue Aug 15, 2024 · 1 comment
Open

accurately display L2/L3 status #482

tessr opened this issue Aug 15, 2024 · 1 comment

Comments

@tessr
Copy link
Contributor

tessr commented Aug 15, 2024

Right now, all chains are listed as L2s. This value is hardcoded into the generated files. However, we should accurately reflect whether a chain is an L2 or L3, and for L3s display their parent chain.

Constraints

We don’t want to introduce the concept of “new Superchains” within the Registry. Although there is the concept of separate Superchains (e.g. Sepolia vs mainnet) today, an L3 on Base is still part of the same Superchain as Base or OP Mainnet. (And from a marcomms perspective, there’s really only one Superchain anyways.)

Proposed Solution

Don’t enshrine L3 status in the directory structure, since this implies that these are separate Superchains. Rather, include a parent chain / layer

The information in the generated files is quite a nice and accurate way to describe this, I think:

    "parent": {
      "type": "L2",
      "chain": "mainnet"
    }
@geoknee
Copy link
Collaborator

geoknee commented Aug 23, 2024

As discussed in slack, we feel it would be better to place L3s in a subdirectory named after their parent chain. The folder hierarchy then represents the parent/child relationship between chains.

We should consider renaming "superchain target" to "parent chain", and updating instructions on how to add a new directory for L2s with L3 children (or LNs with LN+1 children). We also need to update the bindings to traverse deeper into the directory tree to load all of the chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants