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

Add template shape matching criteria #5914

Merged
merged 22 commits into from
Nov 28, 2024
Merged

Add template shape matching criteria #5914

merged 22 commits into from
Nov 28, 2024

Conversation

adamiak
Copy link
Member

@adamiak adamiak commented Nov 22, 2024

Resolves L2B-8058

A new file can be added to template's shape/ folder called criteria.json. The only supported key is validAddresses.

When criteria.json is present, the template must match not only an implementation, but also the criteria. If mutliple templates match, the more specific match wins (like in CSS selectors).

This solves the issue with SuperchainConfig where we have one template for the correct one (deployed under canonical address) and a different template for "fake" deployments, where implementation is exactly the same, but address is different.

Side note: refresh-discovery and related test were significantly enhanced and a few previously unknown bugs fixed.

Copy link

linear bot commented Nov 22, 2024

Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
l2beat-production ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 11:01am
l2beat-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 11:01am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
protocolbeat ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 11:01am
tx-decoder ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 11:01am
uops-dashboard ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 11:01am

@vercel vercel bot temporarily deployed to Preview – uops-dashboard November 22, 2024 13:47 Inactive
@vercel vercel bot temporarily deployed to Preview – uops-dashboard November 22, 2024 13:48 Inactive
@vercel vercel bot temporarily deployed to Preview – uops-dashboard November 22, 2024 13:49 Inactive
@vercel vercel bot temporarily deployed to Preview – uops-dashboard November 22, 2024 14:06 Inactive
@vercel vercel bot temporarily deployed to Preview – uops-dashboard November 27, 2024 16:42 Inactive
@vercel vercel bot temporarily deployed to Preview – uops-dashboard November 28, 2024 10:49 Inactive
@adamiak adamiak enabled auto-merge November 28, 2024 10:49
@adamiak adamiak added this pull request to the merge queue Nov 28, 2024
Merged via the queue into main with commit 4e06450 Nov 28, 2024
16 of 18 checks passed
@adamiak adamiak deleted the add-shape-criteria branch November 28, 2024 10:55
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.

2 participants