-
Notifications
You must be signed in to change notification settings - Fork 4
chore: sync midnight deps and compiler to latest #108
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: OpenZeppelin/compact-tools
Length of output: 7868
🌐 Web query:
Midnight Network Compact Compiler version 0.31.0 release notes and breaking changes💡 Result:
As of June 8, 2026, Compact Compiler version 0.31.0 is the current version used in the Midnight Network ecosystem [1][2]. It utilizes Compact language version 0.23.0 [3]. Release Notes and Breaking Changes The official Midnight documentation provides a centralized location for release notes at https://docs.midnight.network/relnotes/compact [1]. While specific, granular breaking changes for the 0.31.0 release are bundled within the release artifacts themselves [4], developers are strongly advised to consult the Compatibility Matrix to ensure version alignment across the toolchain, runtime libraries, and SDKs [5][2]. Critical Integration Requirements For Compact Compiler 0.31.0, the following dependency versions are verified for compatibility [2]: - Compact Runtime: 0.16.0 - Ledger Version: 8.0.3 (Preprod/Mainnet) or 8.1.0 (Preview) - On-chain Runtime: 3.0.0 - Midnight.js: 4.1.1 Developers frequently encounter runtime errors when the generated contract code, the compiler version, and the runtime libraries (e.g.,
@midnight-ntwrk/compact-runtime) do not align [6][7]. To mitigate these issues: 1. Always verify your current version using the commandcompact --version[8]. 2. Align yourpackage.jsondependencies with the values specified in the official Compatibility Matrix [5][2]. 3. If errors persist, recompile your contracts using the specific compiler version that matches your environment's runtime [7]. You can manage your compiler version via the Compact toolchain CLI usingcompact updateto fetch the latest version orcompact update <version>for specific historical releases [1][8].Citations:
🏁 Script executed:
Repository: OpenZeppelin/compact-tools
Length of output: 15489
Confirm Compact toolchain 0.31.0 exists and highlight the breaking change to account for in CI
File: .github/actions/setup/action.yml (line 46)
convertBytesToUintsignature changed (breaking API). CI/tests that depend on generated output and/or the runtime API should ensure the matching runtime is used and contracts are recompiled with 0.31.0.🤖 Prompt for AI Agents