diff --git a/.github/release-please/manifest.json b/.github/release-please/manifest.json index 461d94ac..0ee8c012 100644 --- a/.github/release-please/manifest.json +++ b/.github/release-please/manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.5" + ".": "0.3.0" } diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index 25f60243..d5ae9678 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -1,5 +1,12 @@ name: Build and push Docker image +permissions: + contents: write + pull-requests: write + id-token: write + attestations: write + packages: write + on: workflow_dispatch: inputs: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b65c650b..f53069c1 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -7,6 +7,7 @@ permissions: pull-requests: write id-token: write attestations: write + packages: write # Run the workflow on push to the main branch and manually on: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 902e8766..016eeb01 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,8 +61,9 @@ jobs: - name: Pack anvil-zksync run: | - tar -czf anvil-zksync-${{ inputs.tag || inputs.prerelease_name }}-${{ matrix.arch }}.tar.gz \ - ./target/${{ matrix.arch }}/release/anvil-zksync + tar -C ./target/${{ matrix.arch }}/release -czf \ + anvil-zksync-${{ inputs.tag || inputs.prerelease_name }}-${{ matrix.arch }}.tar.gz \ + anvil-zksync - name: Upload artifact uses: actions/upload-artifact@v4 @@ -93,7 +94,7 @@ jobs: shell: 'bash -ex {0}' run: | [ ! -z "${{ inputs.tag }}" ] && TAG="${{ inputs.tag }}" \ - || TAG="$(git rev-parse --short HEAD)" + || TAG="$(git rev-parse --short HEAD)" echo "tag=${TAG}" >> "${GITHUB_OUTPUT}" - name: Download artifacts diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..c3246c4c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,20 @@ +# Changelog + +## [0.3.0](https://github.com/matter-labs/anvil-zksync/compare/v0.2.5...v0.3.0) (2025-02-04) + + +### ⚠ BREAKING CHANGES + +* upgrade to protocol v26 (gateway) ([#567](https://github.com/matter-labs/anvil-zksync/issues/567)) +* **cli:** replay transactions when forking at a tx hash ([#557](https://github.com/matter-labs/anvil-zksync/issues/557)) + +### Features + +* **cli:** replay transactions when forking at a tx hash ([#557](https://github.com/matter-labs/anvil-zksync/issues/557)) ([a955a9b](https://github.com/matter-labs/anvil-zksync/commit/a955a9bad062046d17aac47c0c5d86738af3f538)) +* upgrade to protocol v26 (gateway) ([#567](https://github.com/matter-labs/anvil-zksync/issues/567)) ([94da53c](https://github.com/matter-labs/anvil-zksync/commit/94da53c8fab17423d7f4280f1df3139ee0d4db95)) + + +### Bug Fixes + +* add protocol version 26 ([#580](https://github.com/matter-labs/anvil-zksync/issues/580)) ([7465bc7](https://github.com/matter-labs/anvil-zksync/commit/7465bc7f50de819caf909907d129f5f3e575a159)) +* make `anvil_reset` follow the same logic as main ([#569](https://github.com/matter-labs/anvil-zksync/issues/569)) ([0000e7d](https://github.com/matter-labs/anvil-zksync/commit/0000e7ddf3585c395b3e68e57dd29e0e6c294713)) diff --git a/Cargo.lock b/Cargo.lock index ef940bef..85b024ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1042,7 +1042,7 @@ dependencies = [ [[package]] name = "anvil-zksync" -version = "0.2.5" +version = "0.3.0" dependencies = [ "alloy", "anvil_zksync_api_server", @@ -1072,7 +1072,7 @@ dependencies = [ [[package]] name = "anvil_zksync_api_decl" -version = "0.2.5" +version = "0.3.0" dependencies = [ "anvil_zksync_types", "jsonrpsee", @@ -1082,7 +1082,7 @@ dependencies = [ [[package]] name = "anvil_zksync_api_server" -version = "0.2.5" +version = "0.3.0" dependencies = [ "anvil_zksync_api_decl", "anvil_zksync_core", @@ -1103,7 +1103,7 @@ dependencies = [ [[package]] name = "anvil_zksync_config" -version = "0.2.5" +version = "0.3.0" dependencies = [ "alloy", "anvil_zksync_types", @@ -1120,7 +1120,7 @@ dependencies = [ [[package]] name = "anvil_zksync_core" -version = "0.2.5" +version = "0.3.0" dependencies = [ "alloy", "anvil_zksync_config", @@ -1179,7 +1179,7 @@ dependencies = [ [[package]] name = "anvil_zksync_types" -version = "0.2.5" +version = "0.3.0" dependencies = [ "clap", "serde", diff --git a/Cargo.toml b/Cargo.toml index 5249ae82..15501eee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ strip = "debuginfo" # Automatically strip symbols from the binary. lto = "thin" # Enable link-time optimization. [workspace.package] -version = "0.2.5" # x-release-please-version +version = "0.3.0" # x-release-please-version edition = "2021" authors = ["The Matter Labs Team "] homepage = "https://zksync.io/" diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index 4aa35d1f..9e84e66a 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -49,4 +49,4 @@ maplit.workspace = true httptest.workspace = true tempdir.workspace = true test-case.workspace = true -backon.workspace = true \ No newline at end of file +backon.workspace = true diff --git a/crates/core/src/node/inner/fork.rs b/crates/core/src/node/inner/fork.rs index acc6cba1..f242c826 100644 --- a/crates/core/src/node/inner/fork.rs +++ b/crates/core/src/node/inner/fork.rs @@ -931,7 +931,7 @@ impl ForkSource for Fork { struct SupportedProtocolVersions; impl SupportedProtocolVersions { - const SUPPORTED_VERSIONS: [ProtocolVersionId; 17] = [ + const SUPPORTED_VERSIONS: [ProtocolVersionId; 18] = [ ProtocolVersionId::Version9, ProtocolVersionId::Version10, ProtocolVersionId::Version11, @@ -949,6 +949,7 @@ impl SupportedProtocolVersions { ProtocolVersionId::Version23, ProtocolVersionId::Version24, ProtocolVersionId::Version25, + ProtocolVersionId::Version26, ]; fn is_supported(version: ProtocolVersionId) -> bool { diff --git a/e2e-tests-rust/Cargo.lock b/e2e-tests-rust/Cargo.lock index fae5d42c..b2d9cf74 100644 --- a/e2e-tests-rust/Cargo.lock +++ b/e2e-tests-rust/Cargo.lock @@ -869,7 +869,7 @@ dependencies = [ [[package]] name = "anvil_zksync_config" -version = "0.2.5" +version = "0.3.0" dependencies = [ "alloy", "anvil_zksync_types", @@ -886,7 +886,7 @@ dependencies = [ [[package]] name = "anvil_zksync_core" -version = "0.2.5" +version = "0.3.0" dependencies = [ "alloy", "anvil_zksync_config", @@ -921,7 +921,7 @@ dependencies = [ [[package]] name = "anvil_zksync_types" -version = "0.2.5" +version = "0.3.0" dependencies = [ "clap", "serde",