Skip to content

Commit c15f732

Browse files
committed
update script
1 parent c15d3c7 commit c15f732

File tree

8 files changed

+513
-566
lines changed

8 files changed

+513
-566
lines changed

.github/workflows/update-nightly.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Update to Latest Nightly
22

33
on:
44
schedule:
5-
# Run daily at 2 AM UTC
6-
- cron: '0 2 * * *'
5+
# Run daily at 6 AM UTC (after nextnet deploys at 5 AM)
6+
- cron: '0 6 * * *'
77
workflow_dispatch:
88
inputs:
99
version:
@@ -38,17 +38,6 @@ jobs:
3838
- name: Enable Corepack
3939
run: corepack enable
4040

41-
- name: Install jq
42-
run: sudo apt-get update && sudo apt-get install -y jq
43-
44-
- name: Fetch rollup version from nextnet
45-
id: rollup
46-
if: inputs.rollup_version == ''
47-
run: |
48-
ROLLUP_VERSION=$(curl -s https://nextnet.aztec-labs.com/status | jq -r '.l2ContractAddresses.rollupAddress.version')
49-
echo "version=$ROLLUP_VERSION" >> $GITHUB_OUTPUT
50-
echo "Fetched rollup version: $ROLLUP_VERSION"
51-
5241
- name: Run update script
5342
env:
5443
CI: 1
@@ -59,21 +48,16 @@ jobs:
5948
ARGS="$ARGS --version ${{ inputs.version }}"
6049
fi
6150
62-
ROLLUP_VERSION="${{ inputs.rollup_version }}"
63-
if [ -z "$ROLLUP_VERSION" ]; then
64-
ROLLUP_VERSION="${{ steps.rollup.outputs.version }}"
65-
fi
66-
67-
if [ -n "$ROLLUP_VERSION" ]; then
68-
ARGS="$ARGS --rollup-version $ROLLUP_VERSION"
51+
if [ -n "${{ inputs.rollup_version }}" ]; then
52+
ARGS="$ARGS --rollup-version ${{ inputs.rollup_version }}"
6953
fi
7054
7155
node scripts/update-to-nightly.js $ARGS
7256
7357
- name: Get updated version
7458
id: version
7559
run: |
76-
VERSION=$(jq -r '.dependencies["@aztec/wallet-sdk"]' app/package.json)
60+
VERSION=$(node -e "const p = JSON.parse(require('fs').readFileSync('app/package.json','utf-8')); console.log(p.dependencies['@aztec/wallet-sdk'])")
7761
echo "version=$VERSION" >> $GITHUB_OUTPUT
7862
7963
- name: Create Pull Request
@@ -87,7 +71,7 @@ jobs:
8771
**Changes:**
8872
- Updated all @aztec/* dependencies in app/package.json
8973
- Updated @aztec/wallet-sdk in extension/package.json
90-
- Updated nextnet rollup version: ${{ steps.rollup.outputs.version || inputs.rollup_version }}
74+
- Updated nextnet rollup version (auto-fetched from nextnet node)
9175
9276
**Note:** This PR was created automatically by the update-nightly workflow.
9377
branch: automated-nightly-update-${{ steps.version.outputs.version }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ node scripts/update-to-nightly.js --version 4.0.0-nightly.20260206 #
2525
node scripts/update-to-nightly.js --rollup-version 3863723750 # set nextnet rollup version
2626
```
2727

28-
Updates `@aztec/*` deps in `app/` and `extension/`, runs `yarn install`, and optionally updates the nextnet rollup version in `networks.ts`. Use `--skip-aztec-up` to skip Aztec CLI installation. In CI (`CI=1`), installs Aztec via curl instead of aztec-up.
28+
Updates `@aztec/*` deps in `app/` and `extension/`, runs `yarn install`, and auto-fetches the nextnet rollup version to update `networks.ts`.
2929

3030
## Development Setup
3131

app/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@
5858
"vite-plugin-static-copy": "^3.1.2"
5959
},
6060
"dependencies": {
61-
"@aztec/accounts": "v4.0.0-nightly.20260205",
62-
"@aztec/aztec.js": "v4.0.0-nightly.20260205",
63-
"@aztec/bb.js": "v4.0.0-nightly.20260205",
64-
"@aztec/blob-lib": "v4.0.0-nightly.20260205",
65-
"@aztec/constants": "v4.0.0-nightly.20260205",
66-
"@aztec/entrypoints": "v4.0.0-nightly.20260205",
67-
"@aztec/ethereum": "v4.0.0-nightly.20260205",
68-
"@aztec/foundation": "v4.0.0-nightly.20260205",
69-
"@aztec/kv-store": "v4.0.0-nightly.20260205",
70-
"@aztec/noir-contracts.js": "v4.0.0-nightly.20260205",
71-
"@aztec/noir-noirc_abi": "v4.0.0-nightly.20260205",
72-
"@aztec/protocol-contracts": "v4.0.0-nightly.20260205",
73-
"@aztec/pxe": "v4.0.0-nightly.20260205",
74-
"@aztec/stdlib": "v4.0.0-nightly.20260205",
75-
"@aztec/wallet-sdk": "v4.0.0-nightly.20260205",
61+
"@aztec/accounts": "v4.0.0-nightly.20260206",
62+
"@aztec/aztec.js": "v4.0.0-nightly.20260206",
63+
"@aztec/bb.js": "v4.0.0-nightly.20260206",
64+
"@aztec/blob-lib": "v4.0.0-nightly.20260206",
65+
"@aztec/constants": "v4.0.0-nightly.20260206",
66+
"@aztec/entrypoints": "v4.0.0-nightly.20260206",
67+
"@aztec/ethereum": "v4.0.0-nightly.20260206",
68+
"@aztec/foundation": "v4.0.0-nightly.20260206",
69+
"@aztec/kv-store": "v4.0.0-nightly.20260206",
70+
"@aztec/noir-contracts.js": "v4.0.0-nightly.20260206",
71+
"@aztec/noir-noirc_abi": "v4.0.0-nightly.20260206",
72+
"@aztec/protocol-contracts": "v4.0.0-nightly.20260206",
73+
"@aztec/pxe": "v4.0.0-nightly.20260206",
74+
"@aztec/stdlib": "v4.0.0-nightly.20260206",
75+
"@aztec/wallet-sdk": "v4.0.0-nightly.20260206",
7676
"@emotion/react": "^11.14.0",
7777
"@emotion/styled": "^11.14.0",
7878
"@fontsource/roboto": "^5.1.1",

app/src/config/networks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const NETWORKS: NetworkConfig[] = [
3333
id: "nextnet",
3434
name: "Nextnet",
3535
chainId: 11155111,
36-
version: 3863723750,
36+
version: 91328418,
3737
description: "Aztec Labs Nextnet",
3838
color: "#f321c9",
3939
nodeUrl: "https://nextnet.aztec-labs.com/",

0 commit comments

Comments
 (0)