Skip to content

refactor!: cleaning up public call and tx phase related oracles (#21209) [v4 backport]#21317

Closed
AztecBot wants to merge 1 commit into
backport-to-v4-stagingfrom
claudebox/backport-21209-to-v4
Closed

refactor!: cleaning up public call and tx phase related oracles (#21209) [v4 backport]#21317
AztecBot wants to merge 1 commit into
backport-to-v4-stagingfrom
claudebox/backport-21209-to-v4

Conversation

@AztecBot

@AztecBot AztecBot commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backport of #21209 to v4.

  • Replaces enqueue_public_function_call module with two focused modules: public_call (calldata validation) and tx_phase (revertible phase tracking)
  • Simplifies validate_public_calldata: the old enqueue/teardown oracles both did the same thing (validate calldata) but received unused parameters
  • Renames phase-related oracles for clarity: notifySetMinRevertibleSideEffectCounternotifyRevertiblePhaseStart, isSideEffectCounterRevertibleinRevertiblePhase
  • Bumps ORACLE_VERSION from 12 to 13

Adapted to v4's private oracle name prefix convention (vs aztec_prv_ on next).

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 10, 2026
Backport of #21209 to v4. Replaces `enqueue_public_function_call` module
with `public_call` (calldata validation) and `tx_phase` (revertible phase
tracking). Renames oracle functions for clarity:
- notifyEnqueuedPublicFunctionCall/notifySetPublicTeardownFunctionCall → validatePublicCalldata
- notifySetMinRevertibleSideEffectCounter → notifyRevertiblePhaseStart
- isSideEffectCounterRevertible → inRevertiblePhase
@AztecBot AztecBot force-pushed the claudebox/backport-21209-to-v4 branch from 92125ba to eca6316 Compare March 10, 2026 17:18
@benesjan

Copy link
Copy Markdown
Contributor

Closing this because Nico's other PR with modified oracle prefixes was not backported yet due to an issue with oracle version checks. Will backport this again once that's resolved.

@benesjan benesjan closed this Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants