Skip to content

feat: merge-train/fairies#24994

Open
AztecBot wants to merge 9 commits into
nextfrom
merge-train/fairies
Open

feat: merge-train/fairies#24994
AztecBot wants to merge 9 commits into
nextfrom
merge-train/fairies

Conversation

@AztecBot

@AztecBot AztecBot commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

BEGIN_COMMIT_OVERRIDE
chore: remove constant generation call for languages other than TS from yarn-project/constants (#24730)
chore: consumer driven constant selection (#24734)
chore: turn constants codegen into a formal dependency (#24958)
chore!: move protocol contracts out of noir-contracts.js (#24998)
END_COMMIT_OVERRIDE

…om yarn-project/constants (#24730)

Adds remake-constants scripts to barretenberg and l1-contracts so they
control which constants are generated for themselves.

Conversely removes those from `yarn-projects/constants`.

Removes generated constant files from git, regenerating them on build
based on constants.nr as the source of truth.

Closes F-817, F-813, F-818, F-820, F-816
mverzilli and others added 4 commits July 27, 2026 12:41
- Make constant output selection configurable via a simple `json` file
- Make constant consumers maintain the list of constants they consume
(input to the generator)

Decouples knowledge of specific consumers from the constants-codegen
itself
Embeds constants.nr as default input to the constants-codegen package,
and adds some bash conveniences to encapsulate references to it, to make
it easier to flip the switch when the actual repo split is executed.

Closes F-822, F-823

Co-authored-by: Facundo <fcarreiro@users.noreply.github.com>
@fcarreiro
fcarreiro requested a review from LeilaWang as a code owner July 27, 2026 13:30
@socket-security

socket-security Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​aztec/​constants-codegen@​0.0.0-use.localN/AN/AN/AN/AN/A

View full report

AztecBot and others added 4 commits July 27, 2026 15:24
With this change, these files are served instead through the protocol
contracts package (where they already existed). I changed the generation
of noir-contracts.js so that only non-protocol non-test contracts go
there, so it is now ready for the noir side of things to also be split.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants