Skip to content

Commit 09e5bd6

Browse files
committed
Reapply "Update all examples to Aztec v4.0.0-devnet.2-patch.1"
This reverts commit ca6a1c3.
1 parent ca6a1c3 commit 09e5bd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+10263
-9881
lines changed

.github/workflows/note-send-proof-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
AZTEC_ENV: local-network
21-
AZTEC_VERSION: 4.0.0-nightly.20260211
21+
AZTEC_VERSION: 4.0.0-devnet.2-patch.1
2222

2323
steps:
2424
- name: Checkout repository

.github/workflows/prediction-market-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
AZTEC_ENV: local-network
21-
AZTEC_VERSION: 4.0.0-nightly.20260211
21+
AZTEC_VERSION: 4.0.0-devnet.2-patch.1
2222

2323
steps:
2424
- name: Checkout repository

.github/workflows/recursive-verification-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
AZTEC_ENV: local-network
21-
AZTEC_VERSION: 4.0.0-nightly.20260211
21+
AZTEC_VERSION: 4.0.0-devnet.2-patch.1
2222

2323
steps:
2424
- name: Checkout repository

.github/workflows/test-wallet-webapp-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Test Wallet Webapp Tests
1818
runs-on: ubuntu-latest
1919
env:
20-
AZTEC_VERSION: 4.0.0-nightly.20260211
20+
AZTEC_VERSION: 4.0.0-devnet.2-patch.1
2121

2222
steps:
2323
- name: Checkout repository

CLAUDE.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ aztec-examples/
5252
bash -i <(curl -s https://install.aztec.network)
5353

5454
# Set specific version (examples may require different versions)
55-
aztec-up 4.0.0-devnet.1-patch.0 # For recursive_verification
55+
aztec-up 4.0.0-devnet.2-patch.1 # For recursive_verification
5656
```
5757

5858
### Building Contracts
@@ -69,12 +69,11 @@ yarn ccc # Compiles contract and generates TypeScript bindings
6969

7070
### Building Vanilla Noir Circuits
7171

72-
For vanilla Noir circuits (not Aztec contracts), install nargo separately:
72+
The compatible `nargo` (version 1.0.0-beta.18) is bundled with the Aztec CLI at `~/.aztec/current/bin/nargo`. Ensure `~/.aztec/current/bin` is on your `PATH` (the Aztec installer adds this automatically).
7373

7474
```bash
75-
# Install nargo via noirup
76-
curl -L https://raw.githubusercontent.com/noir-lang/noirup/refs/heads/main/install | bash
77-
noirup -v 1.0.0-beta.15
75+
# Verify nargo is available
76+
~/.aztec/current/bin/nargo --version
7877

7978
# Compile a vanilla Noir circuit
8079
nargo compile
@@ -151,8 +150,8 @@ Complete workflow for the proof verification example:
151150
cd recursive_verification
152151
yarn install
153152

154-
# 2. Install nargo for vanilla Noir circuit compilation
155-
noirup -v 1.0.0-beta.15
153+
# 2. Verify nargo is available (bundled with Aztec CLI)
154+
~/.aztec/current/bin/nargo --version
156155

157156
# 3. Compile the Noir circuit
158157
cd circuit && nargo compile && cd ..
@@ -261,7 +260,7 @@ easy_private_state = { git = "https://github.com/AztecProtocol/aztec-packages/",
261260

262261
**Version Compatibility**: All examples use the same Aztec version:
263262

264-
- All examples: v4.0.0-devnet.1-patch.0
263+
- All examples: v4.0.0-devnet.2-patch.1
265264

266265
### JavaScript/TypeScript Dependencies
267266

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can find additional examples in the Aztec monorepo [docs examples folder](ht
1616

1717
### 1. [Recursive Verification](./recursive_verification)
1818

19-
**Aztec Version**: 4.0.0-devnet.1-patch.0
19+
**Aztec Version**: 4.0.0-devnet.2-patch.1
2020

2121
Demonstrates how to verify Noir circuit proofs within Aztec smart contracts using the UltraHonk proving system. This example showcases:
2222

@@ -43,33 +43,11 @@ Demonstrates how to verify Noir circuit proofs within Aztec smart contracts usin
4343
bash -i <(curl -s https://install.aztec.network)
4444

4545
# Set specific Aztec version (if needed)
46-
aztec-up 4.0.0-devnet.1-patch.0
46+
aztec-up 4.0.0-devnet.2-patch.1
4747
```
4848

4949
## Development Workflow
5050

51-
### Common Commands
52-
53-
```bash
54-
# Compile Aztec contracts
55-
aztec-nargo compile
56-
57-
# Start local Aztec network
58-
aztec start --local-network
59-
60-
# Run tests with Testing Execution Environment (TXE)
61-
aztec test
62-
63-
# Deploy contracts (using aztec-wallet)
64-
aztec-wallet deploy --no-init target/<contract>.json --from test0 --alias <alias>
65-
66-
# Interact with contracts
67-
aztec-wallet send <function> --args <args> --contract-address <alias> -f test0
68-
69-
# Profile gas/gates usage
70-
aztec-wallet profile <function> --args <args> --contract-address <alias> -f test0
71-
```
72-
7351
## Testing
7452

7553
### Continuous Integration

account-contract/Nargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ compiler_version = ">=1.0.0"
55
type = "contract"
66

77
[dependencies]
8-
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v4.0.0-devnet.1-patch.0", directory = "aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v4.0.0-devnet.2-patch.1", directory = "aztec" }

account-contract/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,25 +172,25 @@ When implementing custom account contracts in Aztec, be aware of these critical
172172

173173
## Aztec Version Compatibility
174174

175-
This example is compatible with **Aztec v4.0.0-devnet.1-patch.0**.
175+
This example is compatible with **Aztec v4.0.0-devnet.2-patch.1**.
176176

177177
To set this version:
178178

179179
```bash
180-
aztec-up 4.0.0-devnet.1-patch.0
180+
aztec-up 4.0.0-devnet.2-patch.1
181181
```
182182

183183
## Dependencies
184184

185185
### Noir Dependencies
186186

187-
- **aztec**: v4.0.0-devnet.1-patch.0
187+
- **aztec**: v4.0.0-devnet.2-patch.1
188188

189189
### TypeScript Dependencies
190190

191-
- **@aztec/aztec.js**: 4.0.0-devnet.1-patch.0
192-
- **@aztec/accounts**: 4.0.0-devnet.1-patch.0
193-
- **@aztec/stdlib**: 4.0.0-devnet.1-patch.0
191+
- **@aztec/aztec.js**: 4.0.0-devnet.2-patch.1
192+
- **@aztec/accounts**: 4.0.0-devnet.2-patch.1
193+
- **@aztec/stdlib**: 4.0.0-devnet.2-patch.1
194194
- **@aztec/entrypoints**: Included in aztec.js
195195

196196
## Project Structure

account-contract/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"typescript": "^5.0.0"
1313
},
1414
"dependencies": {
15-
"@aztec/accounts": "4.0.0-devnet.1-patch.0",
16-
"@aztec/aztec.js": "4.0.0-devnet.1-patch.0",
17-
"@aztec/foundation": "4.0.0-devnet.1-patch.0",
18-
"@aztec/noir-contracts.js": "4.0.0-devnet.1-patch.0",
19-
"@aztec/stdlib": "4.0.0-devnet.1-patch.0",
20-
"@aztec/test-wallet": "4.0.0-devnet.1-patch.0",
15+
"@aztec/accounts": "4.0.0-devnet.2-patch.1",
16+
"@aztec/aztec.js": "4.0.0-devnet.2-patch.1",
17+
"@aztec/foundation": "4.0.0-devnet.2-patch.1",
18+
"@aztec/noir-contracts.js": "4.0.0-devnet.2-patch.1",
19+
"@aztec/stdlib": "4.0.0-devnet.2-patch.1",
20+
"@aztec/wallets": "4.0.0-devnet.2-patch.1",
2121
"tsx": "^4.20.6"
2222
}
2323
}

account-contract/ts/deploy-account-contract.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import { getContractInstanceFromInstantiationParams } from '@aztec/stdlib/contra
88
import { SponsoredFPCContractArtifact } from '@aztec/noir-contracts.js/SponsoredFPC';
99
import { SPONSORED_FPC_SALT } from '@aztec/constants';
1010
import { PasswordAccountContract } from './password-account-entrypoint';
11-
import { TestWallet } from '@aztec/test-wallet/server';
11+
import { EmbeddedWallet } from '@aztec/wallets/embedded';
12+
import { AccountManager } from '@aztec/aztec.js/wallet';
1213

1314
async function getSponsoredPFCContract() {
1415
const instance = await getContractInstanceFromInstantiationParams(
@@ -45,7 +46,7 @@ console.log(constructorName, constructorArgs);
4546
const secretKey = Fr.random();
4647
// const salt = Fr.random();
4748
const { publicKeys } = await deriveKeys(secretKey);
48-
const wallet = await TestWallet.create(createAztecNodeClient('http://localhost:8080'));
49+
const wallet = await EmbeddedWallet.create(createAztecNodeClient('http://localhost:8080'), { ephemeral: true });
4950

5051
// This doesn't work due to a strange bug in fee payment
5152
// const deployPasswordAccountMethod = new DeployAccountMethod(
@@ -79,5 +80,5 @@ const deployedAccountContract = await accountContractDeployMethod.send(deployAcc
7980
console.log('PasswordAccount contract deployed at:', deployedAccountContract.address);
8081

8182
// Create and register an account using the deployed contract
82-
const account = await wallet.createAccount({ secret: Fr.random(), contract: passwordAccountContract, salt: Fr.random() });
83-
console.log('Account registered at:', account.address.toString());
83+
const accountManager = await AccountManager.create(wallet, Fr.random(), passwordAccountContract, Fr.random());
84+
console.log('Account registered at:', accountManager.address.toString());

0 commit comments

Comments
 (0)