chore: backport #20893 feat: offchain reception to v4-next#21359
Merged
mverzilli merged 7 commits intobackport-to-v4-next-stagingfrom Mar 13, 2026
Merged
chore: backport #20893 feat: offchain reception to v4-next#21359mverzilli merged 7 commits intobackport-to-v4-next-stagingfrom
mverzilli merged 7 commits intobackport-to-v4-next-stagingfrom
Conversation
mverzilli
approved these changes
Mar 11, 2026
4ff264b to
2d467c9
Compare
Cherry-pick of b1ada99 onto v4-next. This commit contains conflict markers for reviewer visibility.
Resolved conflicts by keeping v4-next naming conventions (utility-prefixed oracle names) while integrating the new offchain reception oracle methods and macro changes. Oracle version bumped from 12 to 13.
…te signature CustomMessageHandler is a next-only feature not present in v4-next. Removed it from the macro and do_sync_state, keeping only the offchain inbox sync which is the actual feature being backported.
8ea42c1 to
2727a73
Compare
## Summary Fixes flaky `deploy_method.test.ts` failure on `merge-train/spartan` caused by interaction with PR #21279 (priority fee capping). The test used `GasFees(1n, 0n)` to give the deploy tx higher priority, but DA gas fees are zero in the test environment. Since priority fees are now capped by `maxFeesPerGas`, `min(0, 1) = 0` made both txs have equal priority — the deploy tx was no longer guaranteed to be ordered first. Switched to `GasFees(0n, 1n)` so the L2 priority fee is effective (L2 gas fees are non-zero). Full analysis: https://gist.github.com/AztecBot/6ac6f06f68d7507d726c596a67ae350b ## Test plan - All 11 tests in `deploy_method.test.ts` pass locally (ran twice) ClaudeBox log: https://claudebox.work/s/e9857814f97604f8?run=3
Collaborator
Author
Flakey Tests🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #20893 (feat: offchain reception) to
v4-next.This adds offchain message reception to Aztec.nr contracts, including:
offchain_receiveutility function auto-generated by the Aztec macrooffchain::sync_inboxfor processing messages duringsync_stateutilityResolveMessageContextsoracle methodBackport details
Commit 1: Raw cherry-pick with conflict markers (for reviewer visibility)
Commit 2: Conflict resolution — kept v4-next's
utility-prefixed oracle naming convention while integrating new offchain methodsCommit 3: Updated
ORACLE_INTERFACE_HASHfor the new oracle method and bumpedORACLE_VERSIONfrom 12 to 13Conflicts resolved in:
docs/netlify.toml— added error code 7 redirectnoir-projects/aztec-nr/aztec/src/macros/aztec.nr— integratedAztecConfig,#[varargs], offchain inbox syncnoir-projects/aztec-nr/aztec/src/messages/discovery/mod.nr— added offchain imports, kept v4-next's genericEnvtypenoir-projects/aztec-nr/aztec/src/oracle/version.nr— bumped to version 13yarn-project/pxe/src/contract_function_simulator/oracle/interfaces.ts— addedutilityResolveMessageContextsyarn-project/pxe/src/contract_function_simulator/oracle/oracle.ts— added oracle methodyarn-project/pxe/src/contract_function_simulator/oracle/oracle_version_is_checked.test.ts— added messageContextService mockyarn-project/pxe/src/contract_function_simulator/oracle/utility_execution_oracle.ts— added implementationyarn-project/pxe/src/oracle_version.ts— version 13, new hashyarn-project/txe/src/rpc_translator.ts— added RPC translationClaudeBox log: https://claudebox.work/s/f28700a7ecac0c5f?run=1