Skip to content

feat: public data tree overrides for simulation (core)#22829

Closed
dbanks12 wants to merge 1 commit into
merge-train/fairiesfrom
db/public-data-overrides-core
Closed

feat: public data tree overrides for simulation (core)#22829
dbanks12 wants to merge 1 commit into
merge-train/fairiesfrom
db/public-data-overrides-core

Conversation

@dbanks12
Copy link
Copy Markdown
Contributor

@dbanks12 dbanks12 commented Apr 28, 2026

Summary

Implements the first half of the public data tree overrides at simulation time plan.

  • Adds PublicDataTreeOverride type and PublicDataTreeOverrideSchema to @aztec/stdlib/interfaces/client
  • Adds applyPublicDataOverrides helper that injects overrides into the ephemeral world-state fork via sequentialInsert, matching the simulator's real write path
  • Extends AztecNode.simulatePublicCalls with an optional publicDataOverrides parameter (backward compatible)
  • Wires the helper into AztecNodeService.simulatePublicCalls between fork creation and processor construction
  • Unit tests cover: empty/undefined input, single override, multiple overrides, and duplicate slot semantics

Overrides are injected only into the ephemeral fork and never reach block production.

Stacked on

merge-train/fairies

Test plan

Add PublicDataTreeOverride type, applyPublicDataOverrides helper, and wire
the optional publicDataOverrides param through AztecNode.simulatePublicCalls
and AztecNodeService.simulatePublicCalls. Overrides are injected into the
ephemeral world-state fork before simulation and never reach block production.
Copy link
Copy Markdown
Contributor Author

dbanks12 commented Apr 28, 2026

@dbanks12
Copy link
Copy Markdown
Contributor Author

Collapsing into #22830 — the second stacked PR was meant for contract class/instance overrides (appendix), not this plumbing layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant