Skip to content

Update Aztec to v5.0.0-rc.1#262

Merged
critesjosh merged 2 commits into
nextfrom
update/v5.0.0-rc.1
Jun 22, 2026
Merged

Update Aztec to v5.0.0-rc.1#262
critesjosh merged 2 commits into
nextfrom
update/v5.0.0-rc.1

Conversation

@critesjosh

Copy link
Copy Markdown
Collaborator

Summary

Updates the starter from 4.3.0 to 5.0.0-rc.1.

Version bumps

  • All @aztec/* packages in package.json5.0.0-rc.1
  • Nargo.toml aztec-nr dependency → tag = "v5.0.0-rc.1"
  • Toolchain version in .devcontainer/Dockerfile and .github/workflows/local-network.yaml (AZTEC_VERSION) → 5.0.0-rc.1
  • Docs (README.md, ONBOARDING.md, docs/ONBOARDING.src.md, CLAUDE.md) and config/local-network.json5.0.0-rc.1

Code changes for 5.0.0-rc.1 breaking changes

  • Noir (src/main.nr): MessageDelivery moved to aztec::messages::delivery and now uses constructor syntax — MessageDelivery::onchain_constrained() instead of MessageDelivery.ONCHAIN_CONSTRAINED.
  • scripts/deploy_contract.ts: read the deployed instance from the send result (DeployResultMined.instance) instead of off the receipt, and log the new PublicKeys hash fields (npkMHash / ivpkM / ovpkMHash / tpkMHash).
  • scripts/fees.ts: GasSettings.fallback now requires explicit gasLimits; derived from the node's per-tx admission limit (txsLimits.gas).
  • src/test/e2e/accounts.test.ts: read the deployed contract from the send result rather than off the receipt.

Testing

  • tsc --noEmit ✅ clean
  • aztec compile + aztec codegen
  • Noir TXE tests (aztec test) ✅ 16/16
  • JS e2e tests (yarn test:js, local network) ✅ 16/16 across 3 suites

Opening as a draft to let CI run.

Bump all @aztec/* packages, the aztec-nr dependency, the toolchain
version (Dockerfile/CI), and docs from 4.3.0 to 5.0.0-rc.1.

Code changes for 5.0.0-rc.1 breaking changes:
- Noir: MessageDelivery moved to `aztec::messages::delivery` and now
  uses constructor syntax (`MessageDelivery::onchain_constrained()`).
- deploy_contract.ts: read the deployed instance from the send result
  (`DeployResultMined.instance`) and log the new PublicKeys hash fields
  (npkMHash / ivpkM / ovpkMHash / tpkMHash).
- fees.ts: `GasSettings.fallback` now requires explicit `gasLimits`;
  derive them from the node's per-tx admission limit (`txsLimits.gas`).
- accounts.test.ts: read the deployed contract from the send result
  rather than off the receipt.
@critesjosh critesjosh marked this pull request as ready for review June 22, 2026 16:33
ts-node's ESM loader does not resolve the `./*/lazy` subpath-pattern
export of `@aztec/standard-contracts`, which `@aztec/pxe` now imports at
runtime in 5.0.0-rc.1 (auth_registry / multi_call_entrypoint were demoted
to standard contracts). It mis-resolves `auth-registry/lazy` to
`auth-registry/lazy/index.js` and crashes every script.

Switch the package.json script runner to tsx, which resolves package
`exports` correctly. The Jest e2e tests already use their own resolver
and are unaffected.
@critesjosh critesjosh marked this pull request as draft June 22, 2026 16:54
@critesjosh critesjosh marked this pull request as ready for review June 22, 2026 17:31
@critesjosh critesjosh merged commit 6c96b4f into next Jun 22, 2026
1 check passed
@critesjosh critesjosh deleted the update/v5.0.0-rc.1 branch June 22, 2026 17:36
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