Skip to content

feat: port noir-contracts pinning support from v4#21703

Draft
AztecBot wants to merge 1 commit intonextfrom
claudebox/sync-v4-pinning-to-next
Draft

feat: port noir-contracts pinning support from v4#21703
AztecBot wants to merge 1 commit intonextfrom
claudebox/sync-v4-pinning-to-next

Conversation

@AztecBot
Copy link
Collaborator

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.gz that skips recompilation of protocol contracts and SponsoredFPC during builds.

Changes

  • noir-projects/noir-contracts/bootstrap.sh:
    • Added pinned-protocol-contracts.tar.gz extraction in build() — skips protocol/* and fees/sponsored_fpc_contract when archive present
    • Added pin-build function and command — builds protocol + fees contracts and bundles into tarball
    • Simplified compile() contract name extraction (bash parameter expansion instead of grep)
    • Simplified parallel piping in compile() (direct pipe instead of temp files)

Usage

cd noir-projects/noir-contracts && ./bootstrap.sh pin-build
git add pinned-protocol-contracts.tar.gz && git commit

Full analysis: https://gist.github.com/AztecBot/d32f0cf97649f4268152cfbe2c43410e

ClaudeBox log: https://claudebox.work/s/c3083833abe42243?run=1

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant