Skip to content

Commit ca6a1c3

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

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

+9881
-10263
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-devnet.2-patch.1
21+
AZTEC_VERSION: 4.0.0-nightly.20260211
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-devnet.2-patch.1
21+
AZTEC_VERSION: 4.0.0-nightly.20260211
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-devnet.2-patch.1
21+
AZTEC_VERSION: 4.0.0-nightly.20260211
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-devnet.2-patch.1
20+
AZTEC_VERSION: 4.0.0-nightly.20260211
2121

2222
steps:
2323
- name: Checkout repository

CLAUDE.md

Lines changed: 8 additions & 7 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.2-patch.1 # For recursive_verification
55+
aztec-up 4.0.0-devnet.1-patch.0 # For recursive_verification
5656
```
5757

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

7070
### Building Vanilla Noir Circuits
7171

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).
72+
For vanilla Noir circuits (not Aztec contracts), install nargo separately:
7373

7474
```bash
75-
# Verify nargo is available
76-
~/.aztec/current/bin/nargo --version
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
7778

7879
# Compile a vanilla Noir circuit
7980
nargo compile
@@ -150,8 +151,8 @@ Complete workflow for the proof verification example:
150151
cd recursive_verification
151152
yarn install
152153

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

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

261262
**Version Compatibility**: All examples use the same Aztec version:
262263

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

265266
### JavaScript/TypeScript Dependencies
266267

README.md

Lines changed: 24 additions & 2 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.2-patch.1
19+
**Aztec Version**: 4.0.0-devnet.1-patch.0
2020

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

@@ -43,11 +43,33 @@ 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.2-patch.1
46+
aztec-up 4.0.0-devnet.1-patch.0
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+
5173
## Testing
5274

5375
### 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.2-patch.1", directory = "aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v4.0.0-devnet.1-patch.0", 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.2-patch.1**.
175+
This example is compatible with **Aztec v4.0.0-devnet.1-patch.0**.
176176

177177
To set this version:
178178

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

183183
## Dependencies
184184

185185
### Noir Dependencies
186186

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

189189
### TypeScript Dependencies
190190

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
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
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.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",
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",
2121
"tsx": "^4.20.6"
2222
}
2323
}

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ 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 { EmbeddedWallet } from '@aztec/wallets/embedded';
12-
import { AccountManager } from '@aztec/aztec.js/wallet';
11+
import { TestWallet } from '@aztec/test-wallet/server';
1312

1413
async function getSponsoredPFCContract() {
1514
const instance = await getContractInstanceFromInstantiationParams(
@@ -46,7 +45,7 @@ console.log(constructorName, constructorArgs);
4645
const secretKey = Fr.random();
4746
// const salt = Fr.random();
4847
const { publicKeys } = await deriveKeys(secretKey);
49-
const wallet = await EmbeddedWallet.create(createAztecNodeClient('http://localhost:8080'), { ephemeral: true });
48+
const wallet = await TestWallet.create(createAztecNodeClient('http://localhost:8080'));
5049

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

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

0 commit comments

Comments
 (0)