feat: port noir-contracts pinning support from v4#21703
Draft
feat: port noir-contracts pinning support from v4#21703
Conversation
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
Ports the protocol contracts pinning mechanism from v4 to next, so we have the ability to pin the exact same things as v4.
What was already on next: Protocol circuits + mock circuits pinning (both extraction and
pin-build).What was missing: Noir contracts pinning — the ability to commit a
pinned-protocol-contracts.tar.gzthat skips recompilation of protocol contracts and SponsoredFPC during builds.Changes
noir-projects/noir-contracts/bootstrap.sh:pinned-protocol-contracts.tar.gzextraction inbuild()— skipsprotocol/*andfees/sponsored_fpc_contractwhen archive presentpin-buildfunction and command — builds protocol + fees contracts and bundles into tarballcompile()contract name extraction (bash parameter expansion instead of grep)compile()(direct pipe instead of temp files)Usage
Full analysis: https://gist.github.com/AztecBot/d32f0cf97649f4268152cfbe2c43410e
ClaudeBox log: https://claudebox.work/s/c3083833abe42243?run=1