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

Enshrine standard vs frontier chains in yaml enum #140

Merged
merged 18 commits into from
Apr 1, 2024
Merged

Conversation

geoknee
Copy link
Collaborator

@geoknee geoknee commented Mar 20, 2024

Closes https://github.com/ethereum-optimism/security-pod/issues/82

I considered and discarded the alternative approach of having an even more deeply nested folder structure here #137.
This is a pretty lightweight way of demarcating the two types of chains, which:

  • should be sufficient to switch the validation checks and so on easily between the two types
  • minimizes conflicts with in flight PRs
  • minimizes overall diff and chances of introducing a bug
  • minimizes change to API of the Go module and repo more generally.

superchain/init.go Outdated Show resolved Hide resolved
superchain/superchain.go Outdated Show resolved Hide resolved
@geoknee geoknee marked this pull request as ready for review March 21, 2024 14:58
@geoknee geoknee requested review from a team as code owners March 21, 2024 14:58
@geoknee geoknee requested a review from tynes March 21, 2024 14:58
Copy link
Contributor

@blmalone blmalone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few nitpicks from me.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Show resolved Hide resolved
scripts/add-chain.sh Outdated Show resolved Hide resolved
superchain/superchain.go Outdated Show resolved Hide resolved
@geoknee geoknee changed the title Enshrine standard vs frontier chains in yaml string enum Enshrine standard vs frontier chains in yaml enum Mar 27, 2024
@geoknee geoknee requested a review from mds1 March 27, 2024 20:18
@zchn zchn assigned mds1 and unassigned zchn Mar 28, 2024
Copy link

@axelKingsley axelKingsley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the Go and Yaml changes only, as a go-reviewer.

Looks like we've added a single enum field, and set the chains as

Zora-main: Frontier
PGN-main: Frontier
Orderly-main: Frontier
OP-main: Standard
Mode-main: Standard
Lyra-main: Frontier
Base-main: Standard

Zora-sepolia: Standard
PGN-sepolia: Frontier
OP-sepolia: Standard
Base-sepolia: Standard

OP-dev: Standard
Base-dev: Standard

That makes sense to me!

@geoknee geoknee merged commit 6558fda into main Apr 1, 2024
10 checks passed
@geoknee geoknee deleted the gk/frontier-flag branch April 1, 2024 19:44
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

Successfully merging this pull request may close these issues.

5 participants