chore: upgrade Cairo 2.16.1, Foundry 0.57.0, bump garaga to 1.1.0#512
Merged
feltroidprime merged 11 commits intomainfrom Mar 18, 2026
Merged
chore: upgrade Cairo 2.16.1, Foundry 0.57.0, bump garaga to 1.1.0#512feltroidprime merged 11 commits intomainfrom
feltroidprime merged 11 commits intomainfrom
Conversation
Automates the mechanical steps of upgrading Cairo/Scarb versions across all config files, CI workflows, docs, and contract directories. Leverages `make rewrite` for autogenerated contracts. Also fix TypeScript constant generator to use `new Uint8Array([...])` instead of the deprecated `Buffer.from()` pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…0 → 0.57.0 Update all version references across config files, CI workflows, documentation, .tool-versions, and Scarb.toml manifests. Fix Cairo 2.16.x breaking change requiring explicit generic type parameters on const declarations by updating Python generators to emit Groth16VerifyingKey<T> and G2Line<T> with the appropriate field type (u288 for BN254, u384 for BLS12_381). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
…ting The new Cairo compiler produces a different Sierra class hash for the universal_ecip contract. Update the hardcoded hash and regenerate all autogenerated contracts. Also fix black formatting on generator files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pre-commit used black 25.1.0 while CI uses 26.1.0 from requirements.txt, causing formatting differences. Also add --target-version py310 since CI runs black on Python 3.10/3.12 which formats f-strings differently than the local Python 3.14. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update RISC_ZERO_VERIFIER_CLASS_HASH in fibonacci_sequencer to match the new Sierra class hash from Cairo 2.16.1. Also add missing steps to the /upgrade-cairo command: ECIP hash update, compilation fix guidance, and black formatting check. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add SHELL=bash and venv activation to makefile targets that need Python - Fix sed -i for macOS in update_risc0_class_hash.sh (BSD vs GNU sed) - Fix date +%s.%N in rewrite.sh (not supported on macOS) - Update upgrade-cairo command with risc0 class hash step Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Flatten profile-test nested if/else using JOBS default - Remove redundant scarb build from update_risc0_class_hash.sh (sncast triggers it) - Use portable sed -i.bak pattern instead of OS detection branch - Simplify rewrite.sh: remove redundant set -e/error handlers (set -e at top handles it), inline run_generators_with_tests - Use sncast for ECIP class hash in upgrade-cairo docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace raw PYTHONPATH/python commands with `make constants` and remove manual venv activation note (makefile handles it). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d105c69 to
94da501
Compare
Update version across all constants files (Python/Rust/TS), configs (pyproject.toml, Cargo.toml, package.json, Scarb.toml), documentation (12+ gitbook pages), and regenerated autogenerated contracts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Known issue
0x0396d5...) which hasn't been declared on Sepolia yet. Fork tests will pass once the new ECIP contract is declared on-chain. This is an infrastructure issue, not a code bug.Test plan
cargo test -p garaga_rs)🤖 Generated with Claude Code