Skip to content

feat: Release v28 #1473

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

Open
wants to merge 166 commits into
base: main
Choose a base branch
from
Open

feat: Release v28 #1473

wants to merge 166 commits into from

Conversation

koloz193
Copy link
Contributor

@koloz193 koloz193 commented May 14, 2025

What ❔

Contract changes required for protocol version v28. Some key highlights are:

  • Adding precompiles for ecadd, ecmul, ecpairing, and modexp

Why ❔

Moving from solidity based implementations to precompiles boosts the performance of these operations when run in our zkvm.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

NikitaMasych and others added 30 commits September 11, 2024 17:38
Merge release-v27 into ec precompiles
Co-authored-by: Vladislav Volosnikov <[email protected]>
Fixed hashes, calculated with correct Foundry version.
Added check of Foundry version to recompute_hashes.sh.
Raid5594 and others added 23 commits April 15, 2025 23:13
Co-authored-by: Raid Ateir <[email protected]>
Co-authored-by: Raid5594 <[email protected]>
…ith-upgrades

Add test for the default upgrade with gateway
Co-authored-by: Raid Ateir <[email protected]>
Co-authored-by: Raid5594 <[email protected]>
Comment on lines 73 to 104
run: yarn

- name: Run lint
run: yarn lint:check

# FIXME: recover when used multivm is updated
# test-bootloader:
# needs: [build, lint]
# runs-on: ubuntu-latest

# steps:
# - name: Checkout the repository
# uses: actions/checkout@v4

# - name: Install rust
# uses: actions-rust-lang/setup-rust-toolchain@v1
# with:
# toolchain: nightly-2024-08-01

# - name: Restore artifacts cache
# uses: actions/cache/restore@v3
# with:
# fail-on-cache-miss: true
# key: artifacts-system-${{ github.sha }}
# path: |
# system-contracts/zkout
# system-contracts/cache-forge
# system-contracts/bootloader/build
# system-contracts/artifacts-zk
# system-contracts/cache-zk
# system-contracts/typechain
# system-contracts/contracts-preprocessed

# - name: Run bootloader tests
# run: |
# cd system-contracts/bootloader/test_infra
# cargo run
test-bootloader:
needs: [build, lint]
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2024-08-01

- name: Restore artifacts cache
uses: actions/cache/restore@v3
with:
fail-on-cache-miss: true
key: artifacts-system-${{ github.sha }}
path: |
system-contracts/zkout
system-contracts/cache-forge
system-contracts/bootloader/build
system-contracts/artifacts-zk
system-contracts/cache-zk
system-contracts/typechain
system-contracts/contracts-preprocessed
l1-contracts/zkout

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions

Copilot Autofix

AI 11 days ago

To fix the issue, we will add a permissions key at the workflow level to define the least privileges required for all jobs. Based on the actions used in the workflow:

  • contents: read is sufficient for most steps, such as actions/checkout and actions/cache.
  • No write permissions are required since the workflow does not modify repository contents or interact with features like issues or pull requests.

The permissions key will be added at the top level of the workflow to apply to all jobs.


Suggested changeset 1
.github/workflows/system-contracts-ci.yaml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/system-contracts-ci.yaml b/.github/workflows/system-contracts-ci.yaml
--- a/.github/workflows/system-contracts-ci.yaml
+++ b/.github/workflows/system-contracts-ci.yaml
@@ -5,2 +5,5 @@
 
+permissions:
+  contents: read
+
 jobs:
EOF
@@ -5,2 +5,5 @@

permissions:
contents: read

jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
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.