Skip to content
This repository was archived by the owner on Nov 26, 2026. It is now read-only.

Commit 6c96b4f

Browse files
authored
Merge pull request #262 from AztecProtocol/update/v5.0.0-rc.1
Update Aztec to v5.0.0-rc.1
2 parents 2311999 + fff001b commit 6c96b4f

14 files changed

Lines changed: 513 additions & 603 deletions

File tree

‎.devcontainer/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SHELL ["/bin/bash", "-c"]
33

44
ENV NVM_DIR=/root/.nvm
55
ENV NODE_VERSION=24.12.0
6-
ARG AZTEC_VERSION=4.3.0
6+
ARG AZTEC_VERSION=5.0.0-rc.1
77
ENV AZTEC_VERSION=$AZTEC_VERSION
88
ENV NON_INTERACTIVE=1
99
ENV BIN_PATH=/usr/local/bin

‎.github/workflows/local-network.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
env:
1919
AZTEC_ENV: local-network
20-
AZTEC_VERSION: 4.3.0
20+
AZTEC_VERSION: 5.0.0-rc.1
2121

2222
steps:
2323
- name: Checkout repository

‎CLAUDE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ When answering questions about the Aztec network, protocol, SDK, or tooling, fet
88

99
Aztec Starter — a Pod Racing game contract built with Noir on the Aztec network. Two players allocate points across 5 tracks over 3 rounds with private state; scores are revealed at the end (commit-reveal pattern). The player who wins more tracks (best of 5) wins.
1010

11-
**Aztec version: `4.3.0`** — pinned across `Nargo.toml`, `package.json`, `config/*.json`, and README. All must stay in sync when updating.
11+
**Aztec version: `5.0.0-rc.1`** — pinned across `Nargo.toml`, `package.json`, `config/*.json`, and README. All must stay in sync when updating.
1212

1313
## Build & Development Commands
1414

‎Nargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ authors = [ "" ]
55
compiler_version = ">=0.18.0"
66

77
[dependencies]
8-
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v4.3.0", directory = "aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v5.0.0-rc.1", directory = "aztec" }

‎ONBOARDING.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide takes you from "reading code in a browser" to "deploying contracts"
99
* **Phases 1-2** need only a browser (read code, compile in a Codespace)
1010
* **Phases 3-6** need local tools (deploy, interact, extend, advanced topics)
1111

12-
**Aztec version pinned in this repo:** `4.3.0` (check `Nargo.toml` and `package.json` for source of truth)
12+
**Aztec version pinned in this repo:** `5.0.0-rc.1` (check `Nargo.toml` and `package.json` for source of truth)
1313

1414
**Links:**
1515

@@ -522,7 +522,7 @@ The `.devcontainer/` configures:
522522

523523
* **Base image:** Ubuntu 24.04 with Node.js v22.15.0
524524
* **Docker-in-Docker** for running the Aztec local network
525-
* **Aztec CLI** installed via `curl -fsSL "https://install.aztec.network/4.3.0" | VERSION="4.3.0" bash -s`
525+
* **Aztec CLI** installed via `curl -fsSL "https://install.aztec.network/5.0.0-rc.1" | VERSION="5.0.0-rc.1" bash -s`
526526
* **VS Code extension:** `noir-lang.vscode-noir` for Noir syntax highlighting
527527
* **Dependencies:** `yarn install` runs automatically
528528

@@ -733,7 +733,7 @@ pub unconstrained fn setup() -> (TestEnvironment, AztecAddress, AztecAddress) {
733733
**Aztec toolkit:**
734734

735735
```bash
736-
export VERSION=4.3.0
736+
export VERSION=5.0.0-rc.1
737737
curl -fsSL "https://install.aztec.network/${VERSION}" | VERSION="${VERSION}" bash -s
738738
```
739739

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Use **Node.js version 22.15.0**.
5151
Install the **Aztec toolkit** (local network, CLI, and other tooling) at the correct version:
5252

5353
```bash
54-
export VERSION=4.3.0
54+
export VERSION=5.0.0-rc.1
5555
curl -fsSL "https://install.aztec.network/${VERSION}" | VERSION="${VERSION}" bash -s
5656
```
5757

‎config/local-network.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"settings": {
1010
"skipLocalNetwork": false,
11-
"version": "4.3.0"
11+
"version": "5.0.0-rc.1"
1212
},
1313
"timeouts": {
1414
"deployTimeout": 120000,

‎docs/ONBOARDING.src.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide takes you from "reading code in a browser" to "deploying contracts"
99
- **Phases 1-2** need only a browser (read code, compile in a Codespace)
1010
- **Phases 3-6** need local tools (deploy, interact, extend, advanced topics)
1111

12-
**Aztec version pinned in this repo:** `4.3.0` (check `Nargo.toml` and `package.json` for source of truth)
12+
**Aztec version pinned in this repo:** `5.0.0-rc.1` (check `Nargo.toml` and `package.json` for source of truth)
1313

1414
**Links:**
1515

@@ -262,7 +262,7 @@ The `.devcontainer/` configures:
262262

263263
- **Base image:** Ubuntu 24.04 with Node.js v22.15.0
264264
- **Docker-in-Docker** for running the Aztec local network
265-
- **Aztec CLI** installed via `curl -fsSL "https://install.aztec.network/4.3.0" | VERSION="4.3.0" bash -s`
265+
- **Aztec CLI** installed via `curl -fsSL "https://install.aztec.network/5.0.0-rc.1" | VERSION="5.0.0-rc.1" bash -s`
266266
- **VS Code extension:** `noir-lang.vscode-noir` for Noir syntax highlighting
267267
- **Dependencies:** `yarn install` runs automatically
268268

@@ -357,7 +357,7 @@ And higher-level helpers:
357357
**Aztec toolkit:**
358358

359359
```bash
360-
export VERSION=4.3.0
360+
export VERSION=5.0.0-rc.1
361361
curl -fsSL "https://install.aztec.network/${VERSION}" | VERSION="${VERSION}" bash -s
362362
```
363363

‎package.json‎

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,35 @@
88
"private": true,
99
"type": "module",
1010
"scripts": {
11-
"fees": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/fees.ts",
11+
"fees": "NODE_NO_WARNINGS=1 tsx scripts/fees.ts",
1212
"clean": "rm -rf ./src/artifacts ./target ./codegenCache.json",
1313
"clear-store": "rm -rf ./store",
1414
"codegen": "aztec codegen target --outdir src/artifacts",
1515
"compile": "aztec compile",
16-
"deploy": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/deploy_contract.ts",
17-
"deploy-account": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/deploy_account.ts",
18-
"interaction-existing-contract": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/interaction_existing_contract.ts",
19-
"multiple-wallet": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/multiple_wallet.ts",
20-
"get-block": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/get_block.ts",
21-
"profile": "NODE_NO_WARNINGS=1 node --loader ts-node/esm scripts/profile_deploy.ts",
22-
"read-logs": "NODE_NO_WARNINGS=1 LOG_LEVEL='info; debug:contract_log' node --loader ts-node/esm scripts/read_debug_logs.ts",
16+
"deploy": "NODE_NO_WARNINGS=1 tsx scripts/deploy_contract.ts",
17+
"deploy-account": "NODE_NO_WARNINGS=1 tsx scripts/deploy_account.ts",
18+
"interaction-existing-contract": "NODE_NO_WARNINGS=1 tsx scripts/interaction_existing_contract.ts",
19+
"multiple-wallet": "NODE_NO_WARNINGS=1 tsx scripts/multiple_wallet.ts",
20+
"get-block": "NODE_NO_WARNINGS=1 tsx scripts/get_block.ts",
21+
"profile": "NODE_NO_WARNINGS=1 tsx scripts/profile_deploy.ts",
22+
"read-logs": "NODE_NO_WARNINGS=1 LOG_LEVEL='info; debug:contract_log' tsx scripts/read_debug_logs.ts",
2323
"test": "yarn test:js && yarn test:nr",
2424
"test:js": "rm -rf store/pxe && NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json",
2525
"test:nr": "aztec test",
2626
"docs:build": "remark docs/ONBOARDING.src.md -o ONBOARDING.md",
2727
"update-readme-version": "node ./.github/scripts/update-readme-version.js"
2828
},
2929
"dependencies": {
30-
"@aztec/accounts": "4.3.0",
31-
"@aztec/aztec.js": "4.3.0",
32-
"@aztec/constants": "4.3.0",
33-
"@aztec/entrypoints": "4.3.0",
34-
"@aztec/noir-contracts.js": "4.3.0",
35-
"@aztec/protocol-contracts": "4.3.0",
36-
"@aztec/pxe": "4.3.0",
37-
"@aztec/stdlib": "4.3.0",
38-
"@aztec/wallet-sdk": "4.3.0",
39-
"@aztec/wallets": "4.3.0",
30+
"@aztec/accounts": "5.0.0-rc.1",
31+
"@aztec/aztec.js": "5.0.0-rc.1",
32+
"@aztec/constants": "5.0.0-rc.1",
33+
"@aztec/entrypoints": "5.0.0-rc.1",
34+
"@aztec/noir-contracts.js": "5.0.0-rc.1",
35+
"@aztec/protocol-contracts": "5.0.0-rc.1",
36+
"@aztec/pxe": "5.0.0-rc.1",
37+
"@aztec/stdlib": "5.0.0-rc.1",
38+
"@aztec/wallet-sdk": "5.0.0-rc.1",
39+
"@aztec/wallets": "5.0.0-rc.1",
4040
"dotenv": "^17.2.2"
4141
},
4242
"devDependencies": {
@@ -49,6 +49,7 @@
4949
"remark-cli": "^12.0.1",
5050
"ts-jest": "^29.1.1",
5151
"ts-node": "^10.9.2",
52+
"tsx": "^4.22.4",
5253
"typescript": "^5.4.4"
5354
},
5455
"jest": {

‎scripts/deploy_contract.ts‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ async function main() {
4646
await deployRequest.simulate({
4747
from: address,
4848
});
49-
const { contract: podRacingContract, receipt: deployReceipt } = await deployRequest.send({
49+
const { contract: podRacingContract, instance } = await deployRequest.send({
5050
from: address,
5151
fee: { paymentMethod: sponsoredPaymentMethod },
5252
wait: { timeout: timeouts.deployTimeout }
5353
});
54-
const instance = deployReceipt.instance;
5554
// docs:end:deploy-contract
5655

5756
logger.info(`🎉 Pod Racing Contract deployed successfully!`);
@@ -68,10 +67,10 @@ async function main() {
6867
logger.info(`Salt: ${instance.salt}`);
6968
logger.info(`Deployer: ${instance.deployer}`);
7069
if (instance.publicKeys) {
71-
logger.info(`Public Keys - Master Nullifier: ${instance.publicKeys.masterNullifierPublicKey}`);
72-
logger.info(`Public Keys - Master Incoming Viewing: ${instance.publicKeys.masterIncomingViewingPublicKey}`);
73-
logger.info(`Public Keys - Master Outgoing Viewing: ${instance.publicKeys.masterOutgoingViewingPublicKey}`);
74-
logger.info(`Public Keys - Master Tagging: ${instance.publicKeys.masterTaggingPublicKey}`);
70+
logger.info(`Public Keys - Master Nullifier: ${instance.publicKeys.npkMHash}`);
71+
logger.info(`Public Keys - Master Incoming Viewing: ${instance.publicKeys.ivpkM}`);
72+
logger.info(`Public Keys - Master Outgoing Viewing: ${instance.publicKeys.ovpkMHash}`);
73+
logger.info(`Public Keys - Master Tagging: ${instance.publicKeys.tpkMHash}`);
7574
}
7675
logger.info(`Constructor args: ${JSON.stringify([address.toString()])}`);
7776
}

0 commit comments

Comments
 (0)