Skip to content

feat(monitorism): Add ETH conservation invariant monitor #135

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

Merged
merged 6 commits into from
Apr 21, 2025

Conversation

clabby
Copy link
Member

@clabby clabby commented Mar 26, 2025

Overview

Adds a new invariant monitor for the ETH conservation invariant. This is intended to serve alerts to the team if anything goes wrong with respect to fee calculation in the EVM.

@clabby clabby added the enhancement New feature or request label Mar 26, 2025
@clabby clabby self-assigned this Mar 26, 2025
@clabby clabby force-pushed the cl/eth-conservation branch from 5b5edc6 to 5c54481 Compare March 26, 2025 22:04
@@ -35,7 +34,7 @@ func newCli(GitCommit string, GitDate string) *cli.App {
Usage: "OP Stack Monitoring",
Description: "OP Stack Monitoring",
EnableBashCompletion: true,
Version: params.VersionWithCommit(GitCommit, GitDate),
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to reviewer - this doesn't exist anymore.

@clabby clabby marked this pull request as ready for review March 26, 2025 22:18
@clabby clabby requested review from raffaele-oplabs and a team as code owners March 26, 2025 22:18
@clabby clabby force-pushed the cl/eth-conservation branch 2 times, most recently from 88e9e9e to ee4661a Compare March 26, 2025 22:34
Copy link
Contributor

@smartcontracts smartcontracts left a comment

Choose a reason for hiding this comment

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

Looking good, would be ideal if we can also add anvil tests like the ones that exist for transaction_monitor. Just one comment about accounting for selfdestruct

@clabby clabby force-pushed the cl/eth-conservation branch from ee4661a to 9ac41de Compare March 27, 2025 16:49
smartcontracts
smartcontracts previously approved these changes Mar 27, 2025
Copy link
Contributor

@smartcontracts smartcontracts left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work.

@smartcontracts
Copy link
Contributor

Accepting the lack of tests because our testing infra isn't so good and anvil doesn't support the debug namespaces

@Ethnical
Copy link
Collaborator

Okay need to investigate why the CI is not triggering here @raffaele-oplabs tomorrow one of us got time there :)

raffaele-oplabs
raffaele-oplabs previously approved these changes Apr 2, 2025
@raffaele-oplabs raffaele-oplabs dismissed stale reviews from smartcontracts and themself via 207efae April 2, 2025 10:49
forcing circleci
forcing circleci
@Ethnical
Copy link
Collaborator

Ethnical commented Apr 11, 2025

Interesting that the linter seems broken next week we should have a look and would go for the deployment around next week.

https://app.circleci.com/pipelines/github/ethereum-optimism/monitorism/672/workflows/3bfcdd35-cb10-4522-ad2c-29184c8b016e/jobs/2299

Copy link

wiz-inc-a178a98b5d bot commented Apr 21, 2025

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 1 High 2 Medium
Data Finding Sensitive Data
Secret Finding Secrets
IaC Misconfiguration IaC Misconfigurations
Total 1 High 2 Medium

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

Copy link
Collaborator

@Ethnical Ethnical left a comment

Choose a reason for hiding this comment

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

Thanks for the work we will make follow up, and deploy this one in the infra next week fully.

@Ethnical Ethnical enabled auto-merge (squash) April 21, 2025 10:03
@Ethnical Ethnical disabled auto-merge April 21, 2025 10:26
@Ethnical Ethnical enabled auto-merge (squash) April 21, 2025 10:29
@Ethnical Ethnical merged commit 9e0b1cf into main Apr 21, 2025
12 checks passed
@Ethnical Ethnical deleted the cl/eth-conservation branch April 21, 2025 10:32
Ethnical added a commit that referenced this pull request Apr 21, 2025
* feat(monitorism): Add ETH conservation invariant monitor

* Update README.md

* Update README.md

forcing circleci

* Update README.md

forcing circleci

* chore: fix ci

---------

Co-authored-by: Raffaele <[email protected]>
Co-authored-by: ethnical <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants