Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 19 additions & 30 deletions .github/workflows/note-send-proof-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
env:
AZTEC_ENV: local-network
AZTEC_VERSION: 3.0.0-devnet.6-patch.1
AZTEC_VERSION: 4.0.0-nightly.20260211

steps:
- name: Checkout repository
Expand All @@ -32,39 +32,34 @@ jobs:
- name: Enable Corepack for Yarn
run: corepack enable

- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} NON_INTERACTIVE=1 bash tmp.sh
rm tmp.sh
INSTALL_URL="https://install.aztec.network/${{ env.AZTEC_VERSION }}/"
curl -sL $INSTALL_URL > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"

- name: Update path
run: echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Set Aztec version and start local network
run: |
aztec-up ${{ env.AZTEC_VERSION }}
docker tag aztecprotocol/aztec:${{ env.AZTEC_VERSION }} aztecprotocol/aztec:latest
aztec start --local-network &
echo "$HOME/.aztec/current/bin" >> $GITHUB_PATH
echo "$HOME/.aztec/current/node_modules/.bin" >> $GITHUB_PATH
echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Start local Aztec network
run: aztec start --local-network &

- name: Wait for local network to be ready
run: |
echo "Waiting for local network to start..."
MAX_RETRIES=60
for i in $(seq 1 $MAX_RETRIES); do
for i in {1..30}; do
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
echo "Local network is ready!"
echo "Local network is ready!"
break
fi
if [ $i -eq $MAX_RETRIES ]; then
echo "❌ Local network failed to start after $MAX_RETRIES attempts"
exit 1
fi
echo "Waiting... ($i/$MAX_RETRIES)"
sleep 2
echo "Waiting... ($i/30)"
sleep 5
done

- name: Install project dependencies
Expand All @@ -73,7 +68,9 @@ jobs:

- name: Compile contract and generate artifacts
working-directory: note-send-proof
run: yarn ccc
run: |
ulimit -s unlimited
script -e -c "yarn ccc"

- name: Generate note hash data
working-directory: note-send-proof
Expand All @@ -98,11 +95,3 @@ jobs:
note-send-proof/tests/**/*.log
note-send-proof/data.json
retention-days: 7

- name: Cleanup
if: always()
run: |
echo "Stopping Aztec local network..."
pkill -f "aztec" || true
docker stop $(docker ps -q) || true
docker rm $(docker ps -a -q) || true
54 changes: 22 additions & 32 deletions .github/workflows/prediction-market-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
env:
AZTEC_ENV: local-network
AZTEC_VERSION: 3.0.0-devnet.6-patch.1
AZTEC_VERSION: 4.0.0-nightly.20260211

steps:
- name: Checkout repository
Expand All @@ -34,39 +34,34 @@ jobs:
with:
bun-version: 1.1.36

- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} NON_INTERACTIVE=1 bash tmp.sh
rm tmp.sh
INSTALL_URL="https://install.aztec.network/${{ env.AZTEC_VERSION }}/"
curl -sL $INSTALL_URL > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"

- name: Update path
run: echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Set Aztec version and start local network
run: |
aztec-up ${{ env.AZTEC_VERSION }}
docker tag aztecprotocol/aztec:${{ env.AZTEC_VERSION }} aztecprotocol/aztec:latest
aztec start --local-network &
echo "$HOME/.aztec/current/bin" >> $GITHUB_PATH
echo "$HOME/.aztec/current/node_modules/.bin" >> $GITHUB_PATH
echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Start local Aztec network
run: aztec start --local-network &

- name: Wait for local network to be ready
run: |
echo "Waiting for local network to start..."
MAX_RETRIES=60
for i in $(seq 1 $MAX_RETRIES); do
for i in {1..30}; do
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
echo "Local network is ready!"
echo "Local network is ready!"
break
fi
if [ $i -eq $MAX_RETRIES ]; then
echo "❌ Local network failed to start after $MAX_RETRIES attempts"
exit 1
fi
echo "Waiting... ($i/$MAX_RETRIES)"
sleep 2
echo "Waiting... ($i/30)"
sleep 5
done

- name: Install project dependencies
Expand All @@ -75,14 +70,17 @@ jobs:

- name: Run Noir unit tests
working-directory: prediction-market
run: aztec test
run: |
ulimit -s unlimited
script -e -c "aztec test"
timeout-minutes: 10

- name: Compile contract and generate artifacts
working-directory: prediction-market
run: |
aztec compile
aztec codegen target -o artifacts
ulimit -s unlimited
script -e -c "aztec compile"
script -e -c "aztec codegen target -o artifacts"

- name: Run end-to-end tests
working-directory: prediction-market
Expand All @@ -97,11 +95,3 @@ jobs:
path: |
prediction-market/tests/**/*.log
retention-days: 7

- name: Cleanup
if: always()
run: |
echo "Stopping Aztec local network..."
pkill -f "aztec" || true
docker stop $(docker ps -q) || true
docker rm $(docker ps -a -q) || true
74 changes: 31 additions & 43 deletions .github/workflows/recursive-verification-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
env:
AZTEC_ENV: local-network
AZTEC_VERSION: 3.0.0-devnet.6-patch.1
AZTEC_VERSION: 4.0.0-nightly.20260211

steps:
- name: Checkout repository
Expand All @@ -31,57 +31,38 @@ jobs:
cache: "yarn"
cache-dependency-path: recursive_verification/yarn.lock

- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} NON_INTERACTIVE=1 bash tmp.sh
rm tmp.sh
INSTALL_URL="https://install.aztec.network/${{ env.AZTEC_VERSION }}/"
curl -sL $INSTALL_URL > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"

- name: Update path
run: echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Set Aztec version and start local network
run: |
aztec-up ${{ env.AZTEC_VERSION }}
docker tag aztecprotocol/aztec:${{ env.AZTEC_VERSION }} aztecprotocol/aztec:latest
aztec start --local-network &

- name: Wait for local network to be ready
run: |
echo "Waiting for local network to start..."
MAX_RETRIES=60
for i in $(seq 1 $MAX_RETRIES); do
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
echo "✅ Local network is ready!"
break
fi
if [ $i -eq $MAX_RETRIES ]; then
echo "❌ Local network failed to start after $MAX_RETRIES attempts"
exit 1
fi
echo "Waiting... ($i/$MAX_RETRIES)"
sleep 2
done
echo "$HOME/.aztec/current/bin" >> $GITHUB_PATH
echo "$HOME/.aztec/current/node_modules/.bin" >> $GITHUB_PATH
echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Install project dependencies
working-directory: recursive_verification
run: yarn install --frozen-lockfile

- name: Install Nargo
uses: noir-lang/noirup@v0.1.4
with:
toolchain: 1.0.0-beta.15

- name: Compile Noir circuit
working-directory: recursive_verification/circuit
run: nargo compile

- name: Change ownership for nargo files
run: sudo chown -R $(whoami) ~/nargo || true

- name: Compile contract and generate artifacts
working-directory: recursive_verification
run: yarn ccc
run: |
ulimit -s unlimited
script -e -c "yarn ccc"
timeout-minutes: 15

- name: Generate proof data
working-directory: recursive_verification
Expand All @@ -94,6 +75,21 @@ jobs:
yarn data
timeout-minutes: 30

- name: Start local Aztec network
run: aztec start --local-network &

- name: Wait for local network to be ready
run: |
echo "Waiting for local network to start..."
for i in {1..30}; do
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
echo "Local network is ready!"
break
fi
echo "Waiting... ($i/30)"
sleep 5
done

- name: Run tests
working-directory: recursive_verification
run: yarn test
Expand All @@ -108,11 +104,3 @@ jobs:
recursive_verification/tests/**/*.log
recursive_verification/data.json
retention-days: 7

- name: Cleanup
if: always()
run: |
echo "Stopping Aztec local network..."
pkill -f "aztec" || true
docker stop $(docker ps -q) || true
docker rm $(docker ps -a -q) || true
45 changes: 16 additions & 29 deletions .github/workflows/test-wallet-webapp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Test Wallet Webapp Tests
runs-on: ubuntu-latest
env:
AZTEC_VERSION: 3.0.0-devnet.6-patch.1
AZTEC_VERSION: 4.0.0-nightly.20260211

steps:
- name: Checkout repository
Expand All @@ -31,39 +31,34 @@ jobs:
- name: Enable Corepack
run: corepack enable

- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} NON_INTERACTIVE=1 bash tmp.sh
rm tmp.sh
INSTALL_URL="https://install.aztec.network/${{ env.AZTEC_VERSION }}/"
curl -sL $INSTALL_URL > tmp.sh
VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"

- name: Update path
run: echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Set Aztec version and start local network
run: |
aztec-up ${{ env.AZTEC_VERSION }}
docker tag aztecprotocol/aztec:${{ env.AZTEC_VERSION }} aztecprotocol/aztec:latest
aztec start --local-network &
echo "$HOME/.aztec/current/bin" >> $GITHUB_PATH
echo "$HOME/.aztec/current/node_modules/.bin" >> $GITHUB_PATH
echo "$HOME/.aztec/bin" >> $GITHUB_PATH

- name: Start local Aztec network
run: aztec start --local-network &

- name: Wait for local network to be ready
run: |
echo "Waiting for local network to start..."
MAX_RETRIES=60
for i in $(seq 1 $MAX_RETRIES); do
for i in {1..30}; do
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
echo "Local network is ready!"
echo "Local network is ready!"
break
fi
if [ $i -eq $MAX_RETRIES ]; then
echo "❌ Local network failed to start after $MAX_RETRIES attempts"
exit 1
fi
echo "Waiting... ($i/$MAX_RETRIES)"
sleep 2
echo "Waiting... ($i/30)"
sleep 5
done

- name: Install project dependencies
Expand All @@ -87,11 +82,3 @@ jobs:
test-wallet-webapp/dist/
test-wallet-webapp/node_modules/.vite/
retention-days: 7

- name: Cleanup
if: always()
run: |
echo "Stopping Aztec local network..."
pkill -f "aztec" || true
docker stop $(docker ps -q) || true
docker rm $(docker ps -a -q) || true
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ aztec-examples/
bash -i <(curl -s https://install.aztec.network)

# Set specific version (examples may require different versions)
aztec-up 3.0.0-devnet.6-patch.1 # For recursive_verification
aztec-up 4.0.0-devnet.1-patch.0 # For recursive_verification
```

### Building Contracts
Expand Down Expand Up @@ -261,7 +261,7 @@ easy_private_state = { git = "https://github.com/AztecProtocol/aztec-packages/",

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

- All examples: v3.0.0-devnet.6-patch.1
- All examples: v4.0.0-devnet.1-patch.0

### JavaScript/TypeScript Dependencies

Expand Down
Loading