Skip to content

Commit f2532ec

Browse files
committed
Update from upstream
2 parents 71e3dbe + e984bfb commit f2532ec

File tree

49 files changed

+1115
-577
lines changed

Some content is hidden

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

49 files changed

+1115
-577
lines changed

.github/release-please/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"core": "24.27.0",
2+
"core": "24.28.0",
33
"prover": "16.5.0",
44
"zk_toolbox": "0.1.2"
55
}

.github/workflows/build-core-template.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,15 @@ jobs:
7171
if [ $(jq length <<<"$tags") -eq 0 ]; then
7272
echo "No tag found on all pages."
7373
echo "BUILD_CONTRACTS=true" >> "$GITHUB_ENV"
74+
# TODO Remove it when we migrate to foundry inside contracts repository
75+
mkdir -p contracts/l1-contracts/artifacts/
7476
exit 0
7577
fi
7678
filtered_tag=$(jq -r --arg commit_sha "$commit_sha" 'map(select(.commit.sha == $commit_sha)) | .[].name' <<<"$tags")
7779
if [[ ! -z "$filtered_tag" ]]; then
7880
echo "BUILD_CONTRACTS=false" >> "$GITHUB_ENV"
81+
# TODO Remove it when we migrate to foundry inside contracts repository
82+
mkdir -p contracts/l1-contracts/out
7983
break
8084
fi
8185
((page++))

.github/workflows/ci-core-reusable.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ jobs:
216216
--deploy-ecosystem --l1-rpc-url=http://localhost:8545 \
217217
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
218218
--server-db-name=zksync_server_localhost_era \
219-
--prover-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
220-
--prover-db-name=zksync_prover_localhost_era \
221219
--ignore-prerequisites --verbose \
222220
--observability=false
223221
@@ -246,8 +244,6 @@ jobs:
246244
--l1-rpc-url=http://localhost:8545 \
247245
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
248246
--server-db-name=zksync_server_localhost_validium \
249-
--prover-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
250-
--prover-db-name=zksync_prover_localhost_validium \
251247
--chain validium
252248
253249
- name: Create and initialize chain with Custom Token
@@ -269,8 +265,6 @@ jobs:
269265
--l1-rpc-url=http://localhost:8545 \
270266
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
271267
--server-db-name=zksync_server_localhost_custom_token \
272-
--prover-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
273-
--prover-db-name=zksync_prover_localhost_custom_token \
274268
--chain custom_token
275269
276270
- name: Create and register chain with transactions signed "offline"
@@ -327,8 +321,6 @@ jobs:
327321
--l1-rpc-url=http://localhost:8545 \
328322
--server-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
329323
--server-db-name=zksync_server_localhost_consensus \
330-
--prover-db-url=postgres://postgres:notsecurepassword@localhost:5432 \
331-
--prover-db-name=zksync_prover_localhost_consensus \
332324
--chain consensus
333325
334326
- name: Build test dependencies

.github/workflows/zk-environment-publish.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
# Workflow dispatch, to allow building and pushing new environments.
55
# It will NOT mark them as latest.
66
workflow_dispatch:
7+
inputs:
8+
build_cuda:
9+
description: "Build CUDA images or not"
10+
type: boolean
11+
required: false
12+
default: false
713

814
push:
915
branches:
@@ -202,45 +208,45 @@ jobs:
202208
echo "should_run=$changed_files_output" >> "$GITHUB_OUTPUT"
203209
204210
- name: Checkout code
205-
if: steps.condition.outputs.should_run == 'true'
211+
if: ${{ (steps.condition.outputs.should_run == 'true') || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
206212
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
207213
with:
208214
submodules: "recursive"
209215

210216
- name: Log in to US GAR
211-
if: steps.condition.outputs.should_run == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
217+
if: ${{ (steps.condition.outputs.should_run == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
212218
run: |
213219
gcloud auth print-access-token --lifetime=7200 --impersonate-service-account=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com | docker login -u oauth2accesstoken --password-stdin https://us-docker.pkg.dev
214220
215221
- name: Log in to Docker Hub
216-
if: steps.condition.outputs.should_run == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
222+
if: ${{ (steps.condition.outputs.should_run == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
217223
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
218224
with:
219225
username: ${{ secrets.DOCKERHUB_USER }}
220226
password: ${{ secrets.DOCKERHUB_TOKEN }}
221227

222228
- name: Login to GitHub Container Registry
223-
if: steps.condition.outputs.should_run == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
229+
if: ${{ (steps.condition.outputs.should_run == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
224230
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
225231
with:
226232
registry: ghcr.io
227233
username: ${{ github.actor }}
228234
password: ${{ secrets.GITHUB_TOKEN }}
229235

230236
- name: Set up QEMU
231-
if: steps.condition.outputs.should_run == 'true'
237+
if: ${{ (steps.condition.outputs.should_run == 'true') || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
232238
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
233239

234240
- name: Set up Docker Buildx
235-
if: steps.condition.outputs.should_run == 'true'
241+
if: ${{ (steps.condition.outputs.should_run == 'true') || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
236242
uses: docker/setup-buildx-action@aa33708b10e362ff993539393ff100fa93ed6a27 # v3.5.0
237243

238244
- name: Build and optionally push
239-
if: steps.condition.outputs.should_run == 'true'
245+
if: ${{ (steps.condition.outputs.should_run == 'true') || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
240246
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v6.5.0
241247
with:
242248
file: docker/zk-environment/20.04_amd64_cuda_${{ matrix.cuda_version }}.Dockerfile
243-
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
249+
push: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || (github.event_name == 'workflow_dispatch' && inputs.build_cuda) }}
244250
tags: |
245251
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/zk-environment-cuda-${{ matrix.cuda_version }}:latest
246252
matterlabs/zk-environment:cuda-${{ matrix.cuda_version }}-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ prover/data/keys/setup_*
114114

115115
# Zk Toolbox
116116
chains/era/configs/*
117+
chains/gateway/*
117118
configs/*
118119
era-observability/
119120
core/tests/ts-integration/deployments-zk

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## [24.28.0](https://github.com/matter-labs/zksync-era/compare/core-v24.27.0...core-v24.28.0) (2024-10-02)
4+
5+
6+
### Features
7+
8+
* **da-clients:** add secrets ([#2954](https://github.com/matter-labs/zksync-era/issues/2954)) ([f4631e4](https://github.com/matter-labs/zksync-era/commit/f4631e4466de620cc1401b326d864cdb8b48a05d))
9+
* **eth-sender:** add a cap to time_in_mempool ([#2978](https://github.com/matter-labs/zksync-era/issues/2978)) ([650d42f](https://github.com/matter-labs/zksync-era/commit/650d42fea6124d80b60a8270a303d72ad6ac741e))
10+
* **eth-watch:** redesign to support multiple chains ([#2867](https://github.com/matter-labs/zksync-era/issues/2867)) ([aa72d84](https://github.com/matter-labs/zksync-era/commit/aa72d849c24a664acd083eba73795ddc5d31d55f))
11+
* Expose http debug page ([#2952](https://github.com/matter-labs/zksync-era/issues/2952)) ([e0b6488](https://github.com/matter-labs/zksync-era/commit/e0b64888aae7324aec2d40fa0cd51ea7e1450cd9))
12+
* **zk_toolbox:** add fees integration test to toolbox ([#2898](https://github.com/matter-labs/zksync-era/issues/2898)) ([e7ead76](https://github.com/matter-labs/zksync-era/commit/e7ead760ce0417dd36af3839ac557f7e9ab238a4))
13+
* **zk_toolbox:** Add SQL format for zk supervisor ([#2950](https://github.com/matter-labs/zksync-era/issues/2950)) ([540e5d7](https://github.com/matter-labs/zksync-era/commit/540e5d7554f54e80d52f1bfae37e03ca8f787baf))
14+
15+
16+
### Bug Fixes
17+
18+
* **api:** Fix batch fee input for `debug` namespace ([#2948](https://github.com/matter-labs/zksync-era/issues/2948)) ([79b6fcf](https://github.com/matter-labs/zksync-era/commit/79b6fcf8b5d10a0ccdceb846370dd6870b6a32b5))
19+
* chainstack block limit exceeded ([#2974](https://github.com/matter-labs/zksync-era/issues/2974)) ([4ffbf42](https://github.com/matter-labs/zksync-era/commit/4ffbf426de166c11aaf5d7b5ed7d199644fba229))
20+
* **eth-watch:** add missing check that from_block is not larger than finalized_block ([#2969](https://github.com/matter-labs/zksync-era/issues/2969)) ([3f406c7](https://github.com/matter-labs/zksync-era/commit/3f406c7d0c0e76d798c2d838abde57ca692822c0))
21+
* ignore unknown fields in rpc json response ([#2962](https://github.com/matter-labs/zksync-era/issues/2962)) ([692ea73](https://github.com/matter-labs/zksync-era/commit/692ea73f75a5fb9db2b4ac33ad24d20568638742))
22+
23+
24+
### Performance Improvements
25+
26+
* **api:** More efficient gas estimation ([#2937](https://github.com/matter-labs/zksync-era/issues/2937)) ([3b69e37](https://github.com/matter-labs/zksync-era/commit/3b69e37e470dab859a55787f6cc971e7083de2fd))
27+
328
## [24.27.0](https://github.com/matter-labs/zksync-era/compare/core-v24.26.0...core-v24.27.0) (2024-09-25)
429

530

core/bin/external_node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "zksync_external_node"
33
description = "Non-validator ZKsync node"
4-
version = "24.27.0" # x-release-please-version
4+
version = "24.28.0" # x-release-please-version
55
edition.workspace = true
66
authors.workspace = true
77
homepage.workspace = true

core/bin/external_node/src/config/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ pub(crate) struct OptionalENConfig {
445445
/// Gateway RPC URL, needed for operating during migration.
446446
#[allow(dead_code)]
447447
pub gateway_url: Option<SensitiveUrl>,
448+
/// Interval for bridge addresses refreshing in seconds.
449+
bridge_addresses_refresh_interval_sec: Option<NonZeroU64>,
448450
}
449451

450452
impl OptionalENConfig {
@@ -675,6 +677,7 @@ impl OptionalENConfig {
675677
api_namespaces,
676678
contracts_diamond_proxy_addr: None,
677679
gateway_url: enconfig.gateway_url.clone(),
680+
bridge_addresses_refresh_interval_sec: enconfig.bridge_addresses_refresh_interval_sec,
678681
})
679682
}
680683

@@ -901,6 +904,11 @@ impl OptionalENConfig {
901904
Duration::from_secs(self.pruning_data_retention_sec)
902905
}
903906

907+
pub fn bridge_addresses_refresh_interval(&self) -> Option<Duration> {
908+
self.bridge_addresses_refresh_interval_sec
909+
.map(|n| Duration::from_secs(n.get()))
910+
}
911+
904912
#[cfg(test)]
905913
fn mock() -> Self {
906914
// Set all values to their defaults

core/bin/external_node/src/node_builder.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ impl ExternalNodeBuilder {
430430
response_body_size_limit: Some(self.config.optional.max_response_body_size()),
431431
with_extended_tracing: self.config.optional.extended_rpc_tracing,
432432
pruning_info_refresh_interval: Some(pruning_info_refresh_interval),
433+
bridge_addresses_refresh_interval: self
434+
.config
435+
.optional
436+
.bridge_addresses_refresh_interval(),
433437
polling_interval: Some(self.config.optional.polling_interval()),
434438
websocket_requests_per_minute_limit: None, // To be set by WS server layer method if required.
435439
replication_lag_limit: None, // TODO: Support replication lag limit

0 commit comments

Comments
 (0)