Skip to content

Commit

Permalink
chore: Release v2.0.0 (#8974)
Browse files Browse the repository at this point in the history
* Update `CHANGELOG.md`

* Update EOS

* Update CHANGELOG.md

Co-authored-by: Arya <[email protected]>

* Update `release crates` script

* chore: Release

---------

Co-authored-by: Arya <[email protected]>
  • Loading branch information
upbqdn and arya2 authored Oct 25, 2024
1 parent 8b4ecc6 commit f45f6f2
Show file tree
Hide file tree
Showing 20 changed files with 125 additions and 103 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/scripts/release-crates-dry-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -ex

# Check if necessary tools are installed
if ! command -v git &> /dev/null || ! command -v cargo &> /dev/null; then
if ! command -v git &>/dev/null || ! command -v cargo &>/dev/null; then
echo "ERROR: Required tools (git, cargo) are not installed."
exit 1
fi
Expand All @@ -11,7 +11,7 @@ git config --global user.email "[email protected]"
git config --global user.name "Automated Release Test"

# Ensure cargo-release is installed
if ! cargo release --version &> /dev/null; then
if ! cargo release --version &>/dev/null; then
echo "ERROR: cargo release must be installed."
exit 1
fi
Expand All @@ -23,12 +23,11 @@ fi
cargo release version --verbose --execute --no-confirm --allow-branch '*' --workspace --exclude zebrad --exclude zebra-scan --exclude zebra-grpc patch

# Due to a bug in cargo-release, we need to pass exact versions for alpha crates:
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.9
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.7
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-scan 0.1.0-alpha.10
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebra-grpc 0.1.0-alpha.8

# Update zebrad:
# TODO: Revert `2.0.0-rc.0` to `patch` in the next release candidate.
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad 2.0.0-rc.0
cargo release version --verbose --execute --no-confirm --allow-branch '*' --package zebrad patch
# Continue with the release process:
cargo release replace --verbose --execute --no-confirm --allow-branch '*' --package zebrad
cargo release commit --verbose --execute --no-confirm --allow-branch '*'
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,29 @@ All notable changes to Zebra are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org).

## [Zebra 2.0.0](https://github.com/ZcashFoundation/zebra/releases/tag/v2.0.0) - 2024-10-25

This release brings full support for NU6.

### Breaking Changes

- Zebra now supports NU6 on Mainnet.
- The JSON RPC endpoint has a cookie-based authentication enabled by default.

### Added

- NU6-related documentation ([#8949](https://github.com/ZcashFoundation/zebra/pull/8949))
- A cookie-based authentication system for the JSON RPC endpoint ([#8900](https://github.com/ZcashFoundation/zebra/pull/8900), [#8965](https://github.com/ZcashFoundation/zebra/pull/8965))

### Changed

- Set the activation height of NU6 for Mainnet and bumped Zebra's current network protocol version ([#8960](https://github.com/ZcashFoundation/zebra/pull/8960))

### Contributors

Thank you to everyone who contributed to this release, we couldn't make Zebra without you:
@arya2, @gustavovalverde, @oxarbitrage and @upbqdn.

## [Zebra 2.0.0-rc.0](https://github.com/ZcashFoundation/zebra/releases/tag/v2.0.0-rc.0) - 2024-10-11

This version is a release candidate for the Zcash NU6 network upgrade on the Mainnet. While this version does not yet include the NU6 Mainnet activation height or current protocol version, all required functionality and tests are in place.
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4962,7 +4962,7 @@ dependencies = [

[[package]]
name = "tower-batch-control"
version = "0.2.41-beta.16"
version = "0.2.41-beta.17"
dependencies = [
"color-eyre",
"ed25519-zebra",
Expand All @@ -4985,7 +4985,7 @@ dependencies = [

[[package]]
name = "tower-fallback"
version = "0.2.41-beta.16"
version = "0.2.41-beta.17"
dependencies = [
"futures-core",
"pin-project",
Expand Down Expand Up @@ -6137,7 +6137,7 @@ dependencies = [

[[package]]
name = "zebra-chain"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"bitflags 2.6.0",
"bitflags-serde-legacy",
Expand Down Expand Up @@ -6202,7 +6202,7 @@ dependencies = [

[[package]]
name = "zebra-consensus"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"bellman",
"blake2b_simd",
Expand Down Expand Up @@ -6248,7 +6248,7 @@ dependencies = [

[[package]]
name = "zebra-grpc"
version = "0.1.0-alpha.7"
version = "0.1.0-alpha.8"
dependencies = [
"color-eyre",
"futures-util",
Expand All @@ -6270,7 +6270,7 @@ dependencies = [

[[package]]
name = "zebra-network"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"bitflags 2.6.0",
"byteorder",
Expand Down Expand Up @@ -6311,7 +6311,7 @@ dependencies = [

[[package]]
name = "zebra-node-services"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"color-eyre",
"jsonrpc-core",
Expand All @@ -6324,7 +6324,7 @@ dependencies = [

[[package]]
name = "zebra-rpc"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"base64 0.22.1",
"chrono",
Expand Down Expand Up @@ -6363,7 +6363,7 @@ dependencies = [

[[package]]
name = "zebra-scan"
version = "0.1.0-alpha.9"
version = "0.1.0-alpha.10"
dependencies = [
"bls12_381",
"chrono",
Expand Down Expand Up @@ -6409,7 +6409,7 @@ dependencies = [

[[package]]
name = "zebra-script"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"hex",
"lazy_static",
Expand All @@ -6421,7 +6421,7 @@ dependencies = [

[[package]]
name = "zebra-state"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"bincode",
"chrono",
Expand Down Expand Up @@ -6466,7 +6466,7 @@ dependencies = [

[[package]]
name = "zebra-test"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"color-eyre",
"futures",
Expand Down Expand Up @@ -6494,7 +6494,7 @@ dependencies = [

[[package]]
name = "zebra-utils"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
dependencies = [
"color-eyre",
"hex",
Expand Down Expand Up @@ -6525,7 +6525,7 @@ dependencies = [

[[package]]
name = "zebrad"
version = "2.0.0-rc.0"
version = "2.0.0"
dependencies = [
"abscissa_core",
"atty",
Expand Down
2 changes: 1 addition & 1 deletion book/src/user/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ docker run -d --platform linux/amd64 \
### Build it locally

```shell
git clone --depth 1 --branch v1.9.0 https://github.com/ZcashFoundation/zebra.git
git clone --depth 1 --branch v2.0.0 https://github.com/ZcashFoundation/zebra.git
docker build --file docker/Dockerfile --target runtime --tag zebra:local .
docker run --detach zebra:local
```
Expand Down
4 changes: 2 additions & 2 deletions book/src/user/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ To compile Zebra directly from GitHub, or from a GitHub release source archive:
```sh
git clone https://github.com/ZcashFoundation/zebra.git
cd zebra
git checkout v1.9.0
git checkout v2.0.0
```

3. Build and Run `zebrad`
Expand All @@ -89,7 +89,7 @@ target/release/zebrad start
### Compiling from git using cargo install

```sh
cargo install --git https://github.com/ZcashFoundation/zebra --tag v1.9.0 zebrad
cargo install --git https://github.com/ZcashFoundation/zebra --tag v2.0.0 zebrad
```

### Compiling on ARM
Expand Down
6 changes: 3 additions & 3 deletions tower-batch-control/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tower-batch-control"
version = "0.2.41-beta.16"
version = "0.2.41-beta.17"
authors = ["Zcash Foundation <[email protected]>", "Tower Maintainers <[email protected]>"]
description = "Tower middleware for batch request processing"
# # Legal
Expand Down Expand Up @@ -43,10 +43,10 @@ rand = "0.8.5"

tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }
tokio-test = "0.4.4"
tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.16" }
tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.17" }
tower-test = "0.4.0"

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.40" }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.41" }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] }
4 changes: 2 additions & 2 deletions tower-fallback/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tower-fallback"
version = "0.2.41-beta.16"
version = "0.2.41-beta.17"
authors = ["Zcash Foundation <[email protected]>"]
description = "A Tower service combinator that sends requests to a first service, then retries processing on a second fallback service if the first service errors."
license = "MIT OR Apache-2.0"
Expand All @@ -24,4 +24,4 @@ tracing = "0.1.39"
[dev-dependencies]
tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.40" }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.41" }
6 changes: 3 additions & 3 deletions zebra-chain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-chain"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
authors = ["Zcash Foundation <[email protected]>"]
description = "Core Zcash data structures"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -145,7 +145,7 @@ proptest-derive = { version = "0.5.0", optional = true }
rand = { version = "0.8.5", optional = true }
rand_chacha = { version = "0.3.1", optional = true }

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.40", optional = true }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.41", optional = true }

[dev-dependencies]
# Benchmarks
Expand All @@ -168,7 +168,7 @@ rand_chacha = "0.3.1"

tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.40" }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.41" }

[[bench]]
name = "block"
Expand Down
20 changes: 10 additions & 10 deletions zebra-consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-consensus"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
authors = ["Zcash Foundation <[email protected]>"]
description = "Implementation of Zcash consensus checks"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -63,13 +63,13 @@ orchard.workspace = true
zcash_proofs = { workspace = true, features = ["multicore" ] }
wagyu-zcash-parameters = "0.2.0"

tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.16" }
tower-batch-control = { path = "../tower-batch-control/", version = "0.2.41-beta.16" }
tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.17" }
tower-batch-control = { path = "../tower-batch-control/", version = "0.2.41-beta.17" }

zebra-script = { path = "../zebra-script", version = "1.0.0-beta.40" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.40" }
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.40" }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.40" }
zebra-script = { path = "../zebra-script", version = "1.0.0-beta.41" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.41" }
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.41" }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.41" }

# prod feature progress-bar
howudoin = { version = "0.1.2", optional = true }
Expand All @@ -94,6 +94,6 @@ tokio = { version = "1.41.0", features = ["full", "tracing", "test-util"] }
tracing-error = "0.2.0"
tracing-subscriber = "0.3.18"

zebra-state = { path = "../zebra-state", version = "1.0.0-beta.40", features = ["proptest-impl"] }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.40", features = ["proptest-impl"] }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.40" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.41", features = ["proptest-impl"] }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.41", features = ["proptest-impl"] }
zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.41" }
6 changes: 3 additions & 3 deletions zebra-grpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-grpc"
version = "0.1.0-alpha.7"
version = "0.1.0-alpha.8"
authors = ["Zcash Foundation <[email protected]>"]
description = "Zebra gRPC interface"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -28,8 +28,8 @@ color-eyre = "0.6.3"

zcash_primitives.workspace = true

zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.40", features = ["shielded-scan"] }
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.40" }
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.41", features = ["shielded-scan"] }
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.41" }

[build-dependencies]
tonic-build = "0.12.3"
Expand Down
4 changes: 2 additions & 2 deletions zebra-network/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-network"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
authors = ["Zcash Foundation <[email protected]>", "Tower Maintainers <[email protected]>"]
description = "Networking code for Zebra"
# # Legal
Expand Down Expand Up @@ -83,7 +83,7 @@ howudoin = { version = "0.1.2", optional = true }
proptest = { version = "1.4.0", optional = true }
proptest-derive = { version = "0.5.0", optional = true }

zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.40", features = ["async-error"] }
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.41", features = ["async-error"] }

[dev-dependencies]
proptest = "1.4.0"
Expand Down
4 changes: 2 additions & 2 deletions zebra-node-services/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zebra-node-services"
version = "1.0.0-beta.40"
version = "1.0.0-beta.41"
authors = ["Zcash Foundation <[email protected]>"]
description = "The interfaces of some Zebra node services"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -37,7 +37,7 @@ rpc-client = [
shielded-scan = []

[dependencies]
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.40" }
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.41" }

# Optional dependencies

Expand Down
Loading

0 comments on commit f45f6f2

Please sign in to comment.