Skip to content

fix: complete legacy oracle mappings for all pinned contracts (backport #21404)#21455

Closed
AztecBot wants to merge 3 commits intobackport-to-v4-next-stagingfrom
claudebox/backport-21404-legacy-oracle-v4-next
Closed

fix: complete legacy oracle mappings for all pinned contracts (backport #21404)#21455
AztecBot wants to merge 3 commits intobackport-to-v4-next-stagingfrom
claudebox/backport-21404-legacy-oracle-v4-next

Conversation

@AztecBot
Copy link
Collaborator

Summary

Backport of #21404 to v4-next.

  • Replaces isActualProtocolContract (only checked 3 contracts) with isProtocolContract (checks all) for oracle version check skip
  • Adds LEGACY_ORACLE_VERSION check to allow pinned protocol contracts with old oracle versions to work alongside current ones
  • Adds buildLegacyOracleCallbacks infrastructure (currently empty on v4-next since oracle methods still use the utilityXxx/privateXxx naming that matches pinned artifacts)

Adaptation notes

On v4-next, oracle methods still use the utilityXxx/privateXxx naming convention which matches the pinned contract artifacts directly. On next, these were renamed to aztec_utl_xxx/aztec_prv_xxx, which is why the original PR needed extensive legacy mappings. On v4-next, the legacy mappings return an empty object since no remapping is needed yet, but the infrastructure is in place.

Commits

  1. Cherry-pick with conflict markers — raw cherry-pick of 1019f2a
  2. Conflict resolution — resolved naming convention conflicts (kept v4-next utilityXxx/privateXxx names)
  3. Build fix — adapted legacy_oracle_mappings.ts for v4-next (empty mappings since names haven't changed)

Test plan

  • Build compiles cleanly (./bootstrap.sh passes)
  • Changes are minimal and well-understood adaptations of the original PR

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

benesjan and others added 3 commits March 12, 2026 21:41
…racts (#21404)

Cherry-pick of 1019f2a from next. Contains conflict markers.
Adapted oracle method names to v4-next naming convention (utilityXxx/privateXxx
instead of aztec_utl_xxx/aztec_prv_xxx). Kept isProtocolContract import and
LEGACY_ORACLE_VERSION check from the original PR.
On v4-next, oracle methods still use the utilityXxx/privateXxx naming convention
which matches the pinned contract artifacts directly, so no legacy remappings are
needed. The infrastructure is in place for when oracle methods are renamed to the
aztec_utl_/aztec_prv_ prefix convention (as has happened on next).
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 12, 2026
@nventuro
Copy link
Contributor

Closing, this is incorrectly done. The actual backport is #21403.

@nventuro nventuro closed this Mar 12, 2026
@nventuro nventuro deleted the claudebox/backport-21404-legacy-oracle-v4-next branch March 13, 2026 15:03
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.

3 participants