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

Implement ISemver in all on-chain contracts #13567

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Abuchtela
Copy link

@Abuchtela Abuchtela commented Jan 2, 2025

Fixes #13508

Add ISemver implementation to RISCV.sol and semgrep rule for ISemver compliance.

  • RISCV.sol

    • Add ISemver to the list of inherited contracts.
    • Add the version() function from ISemver.
    • Set the version constant to "1.2.0-rc.1".
  • .semgrep/rules/sol-rules.yaml

    • Add a semgrep rule to ensure all on-chain contracts implement ISemver.

For more details, open the Copilot Workspace session.

Fixes ethereum-optimism#13508

Add `ISemver` implementation to `RISCV.sol` and semgrep rule for `ISemver` compliance.

* **RISCV.sol**
  - Add `ISemver` to the list of inherited contracts.
  - Add the `version()` function from `ISemver`.
  - Set the `version` constant to "1.2.0-rc.1".

* **.semgrep/rules/sol-rules.yaml**
  - Add a semgrep rule to ensure all on-chain contracts implement `ISemver`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ethereum-optimism/optimism/issues/13508?shareId=XXXX-XXXX-XXXX-XXXX).
@Abuchtela Abuchtela requested review from a team as code owners January 2, 2025 23:41
@Abuchtela Abuchtela requested a review from tynes January 2, 2025 23:41
}
}
}
1: // SPDX-License-Identifier: MIT
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a copy paste, there are prefix line numbers in the source

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.

ISemver policy
2 participants