Skip to content

chore: backport #22084 (feat: add RPC endpoints to manipulate time) to v4-next#22460

Merged
benesjan merged 4 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-22084-time-rpc
Apr 10, 2026
Merged

chore: backport #22084 (feat: add RPC endpoints to manipulate time) to v4-next#22460
benesjan merged 4 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-22084-time-rpc

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

Backport of #22084 to v4-next.

Adds RPC endpoints for manipulating time in test environments (sandbox/local-network), including:

  • AztecNodeDebug interface with mineBlock() method gated behind AZTEC_NODE_DEBUG env var
  • New warpL2TimeAtLeastBy / warpL2TimeAtLeastTo cheat codes for time manipulation
  • Composed e2e test for cheat codes over JSON-RPC boundary

Conflicts resolved

Two files had merge conflicts during cherry-pick:

  1. yarn-project/aztec/src/cli/aztec_start_action.ts: Added AztecNodeAdminApiSchema and AztecNodeDebugApiSchema imports + service registrations for local-network mode (v4-next already had AztecNodeAdminApiSchema available but it wasn't imported in the local-network path).

  2. yarn-project/end-to-end/src/e2e_contract_updates.test.ts: Removed dead maybeSequencer/sequencer code that referenced undeclared variables, and kept the PR's simplified deploy destructuring pattern.

Commits

  1. Cherry-pick with conflict markers (preserves original diff)
  2. Conflict resolution (only resolves markers)

Backport of #22084

ClaudeBox log: https://claudebox.work/s/035d79073509cd20?run=1

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 10, 2026
v4-next has a single proofVerifier constructor param (not two as on next),
so only one TestCircuitVerifier is needed.
On v4-next, send({ wait: { returnReceipt: true } }) returns
{ receipt: { contract, instance } }, not { contract, instance } directly.
@AztecBot

Copy link
Copy Markdown
Collaborator Author

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/babdad6e2f2926dd�babdad6e2f2926dd8;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_l1_reorgs.parallel.test.ts "updates L1 to L2 messages changed due to an L1 reorg" (67s) (code: 0) group:e2e-p2p-epoch-flakes

@benesjan benesjan marked this pull request as ready for review April 10, 2026 11:34
@benesjan benesjan merged commit bccebf9 into backport-to-v4-next-staging Apr 10, 2026
13 checks passed
@benesjan benesjan deleted the claudebox/backport-22084-time-rpc branch April 10, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. 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