Skip to content

Commit

Permalink
Merge branch 'main' into config-testnet-funding-streams
Browse files Browse the repository at this point in the history
  • Loading branch information
mpguerra authored Jul 29, 2024
2 parents 7d7f606 + 14f473d commit 25b18ca
Show file tree
Hide file tree
Showing 19 changed files with 189 additions and 127 deletions.
146 changes: 73 additions & 73 deletions Cargo.lock

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions supply-chain/audits.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "0.16.3 -> 0.17.0"

[[audits.mio]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "0.8.11 -> 1.0.1"

[[audits.proptest-derive]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
Expand Down Expand Up @@ -161,6 +166,26 @@ who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "1.38.0 -> 1.38.1"

[[audits.tokio]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "1.38.1 -> 1.39.0"

[[audits.tokio-macros]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "2.3.0 -> 2.4.0"

[[audits.toml]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "0.8.14 -> 0.8.15"

[[audits.toml_edit]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "0.22.14 -> 0.22.16"

[[audits.tonic]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
Expand All @@ -171,6 +196,11 @@ who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "0.11.0 -> 0.12.0"

[[audits.tonic-reflection]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
delta = "0.12.0 -> 0.12.1"

[[audits.vergen]]
who = "Alfredo Garcia <oxarbitrage@gmail.com>"
criteria = "safe-to-deploy"
Expand Down
31 changes: 25 additions & 6 deletions supply-chain/imports.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ user-login = "emilio"
user-name = "Emilio Cobos Álvarez"

[[publisher.clap]]
version = "4.5.9"
when = "2024-07-09"
version = "4.5.10"
when = "2024-07-23"
user-id = 6743
user-login = "epage"
user-name = "Ed Page"

[[publisher.clap_builder]]
version = "4.5.9"
when = "2024-07-09"
version = "4.5.10"
when = "2024-07-23"
user-id = 6743
user-login = "epage"
user-name = "Ed Page"
Expand Down Expand Up @@ -58,8 +58,8 @@ user-login = "dtolnay"
user-name = "David Tolnay"

[[publisher.syn]]
version = "2.0.71"
when = "2024-07-12"
version = "2.0.72"
when = "2024-07-21"
user-id = 3618
user-login = "dtolnay"
user-name = "David Tolnay"
Expand Down Expand Up @@ -1205,6 +1205,12 @@ criteria = "safe-to-deploy"
delta = "0.1.2 -> 1.0.1"
aggregated-from = "https://raw.githubusercontent.com/zcash/librustzcash/main/supply-chain/audits.toml"

[[audits.zcash.audits.thiserror]]
who = "Jack Grigg <jack@electriccoin.co>"
criteria = "safe-to-deploy"
delta = "1.0.61 -> 1.0.63"
aggregated-from = "https://raw.githubusercontent.com/zcash/librustzcash/main/supply-chain/audits.toml"

[[audits.zcash.audits.thiserror-impl]]
who = "Jack Grigg <jack@electriccoin.co>"
criteria = "safe-to-deploy"
Expand All @@ -1230,6 +1236,13 @@ criteria = "safe-to-deploy"
delta = "0.10.2 -> 0.11.0"
aggregated-from = "https://raw.githubusercontent.com/zcash/librustzcash/main/supply-chain/audits.toml"

[[audits.zcash.audits.tonic]]
who = "Jack Grigg <jack@electriccoin.co>"
criteria = "safe-to-deploy"
delta = "0.12.0 -> 0.12.1"
notes = "Changes to generics bounds look fine"
aggregated-from = "https://raw.githubusercontent.com/zcash/librustzcash/main/supply-chain/audits.toml"

[[audits.zcash.audits.tonic-build]]
who = "Daira-Emma Hopwood <daira@jacaranda.org>"
criteria = "safe-to-deploy"
Expand All @@ -1242,6 +1255,12 @@ criteria = "safe-to-deploy"
delta = "0.11.0 -> 0.12.0"
aggregated-from = "https://raw.githubusercontent.com/zcash/librustzcash/main/supply-chain/audits.toml"

[[audits.zcash.audits.tonic-build]]
who = "Jack Grigg <jack@electriccoin.co>"
criteria = "safe-to-deploy"
delta = "0.12.0 -> 0.12.1"
aggregated-from = "https://raw.githubusercontent.com/zcash/librustzcash/main/supply-chain/audits.toml"

[[audits.zcash.audits.wagyu-zcash-parameters]]
who = "Sean Bowe <ewillbefull@gmail.com>"
criteria = "safe-to-deploy"
Expand Down
4 changes: 2 additions & 2 deletions tower-batch-control/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ futures = "0.3.30"
futures-core = "0.3.28"
pin-project = "1.1.5"
rayon = "1.10.0"
tokio = { version = "1.38.1", features = ["time", "sync", "tracing", "macros"] }
tokio = { version = "1.39.0", features = ["time", "sync", "tracing", "macros"] }
tokio-util = "0.7.11"
tower = { version = "0.4.13", features = ["util", "buffer"] }
tracing = "0.1.39"
Expand All @@ -41,7 +41,7 @@ tinyvec = { version = "1.8.0", features = ["rustc_1_55"] }
ed25519-zebra = "4.0.3"
rand = "0.8.5"

tokio = { version = "1.38.1", features = ["full", "tracing", "test-util"] }
tokio = { version = "1.39.0", features = ["full", "tracing", "test-util"] }
tokio-test = "0.4.4"
tower-fallback = { path = "../tower-fallback/", version = "0.2.41-beta.14" }
tower-test = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion tower-fallback/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ futures-core = "0.3.28"
tracing = "0.1.39"

[dev-dependencies]
tokio = { version = "1.38.1", features = ["full", "tracing", "test-util"] }
tokio = { version = "1.39.0", features = ["full", "tracing", "test-util"] }

zebra-test = { path = "../zebra-test/", version = "1.0.0-beta.38" }
6 changes: 3 additions & 3 deletions zebra-chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ humantime = "2.1.0"

# Error Handling & Formatting
static_assertions = "1.1.0"
thiserror = "1.0.62"
thiserror = "1.0.63"
tracing = "0.1.39"

# Serialization
Expand All @@ -131,7 +131,7 @@ reddsa = "0.5.1"
serde_json = { version = "1.0.120", optional = true }

# Production feature async-error and testing feature proptest-impl
tokio = { version = "1.38.1", optional = true }
tokio = { version = "1.39.0", optional = true }

# Experimental feature shielded-scan
zcash_client_backend = { version = "0.12.1", optional = true }
Expand Down Expand Up @@ -164,7 +164,7 @@ proptest-derive = "0.5.0"
rand = "0.8.5"
rand_chacha = "0.3.1"

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

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

Expand Down
6 changes: 3 additions & 3 deletions zebra-consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ serde = { version = "1.0.204", features = ["serde_derive"] }
futures = "0.3.30"
futures-util = "0.3.28"
metrics = "0.23.0"
thiserror = "1.0.62"
tokio = { version = "1.38.1", features = ["time", "sync", "tracing", "rt-multi-thread"] }
thiserror = "1.0.63"
tokio = { version = "1.39.0", features = ["time", "sync", "tracing", "rt-multi-thread"] }
tower = { version = "0.4.13", features = ["timeout", "util", "buffer"] }
tracing = "0.1.39"
tracing-futures = "0.2.5"
Expand Down Expand Up @@ -90,7 +90,7 @@ proptest = "1.4.0"
proptest-derive = "0.5.0"
spandoc = "0.2.2"

tokio = { version = "1.38.1", features = ["full", "tracing", "test-util"] }
tokio = { version = "1.39.0", features = ["full", "tracing", "test-util"] }
tracing-error = "0.2.0"
tracing-subscriber = "0.3.18"

Expand Down
8 changes: 4 additions & 4 deletions zebra-grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ categories = ["cryptography::cryptocurrencies"]
[dependencies]

futures-util = "0.3.28"
tonic = "0.12.0"
tonic-reflection = "0.12.0"
tonic = "0.12.1"
tonic-reflection = "0.12.1"
prost = "0.13.1"
serde = { version = "1.0.204", features = ["serde_derive"] }
tokio = { version = "1.38.1", features = ["macros", "rt-multi-thread"] }
tokio = { version = "1.39.0", features = ["macros", "rt-multi-thread"] }
tokio-stream = "0.1.15"
tower = { version = "0.4.13", features = ["util", "buffer", "timeout"] }
color-eyre = "0.6.3"
Expand All @@ -32,7 +32,7 @@ zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.3
zebra-chain = { path = "../zebra-chain" , version = "1.0.0-beta.38" }

[build-dependencies]
tonic-build = "0.12.0"
tonic-build = "0.12.1"

[dev-dependencies]
insta = { version = "1.39.0", features = ["redactions", "json", "ron"] }
Expand Down
10 changes: 8 additions & 2 deletions zebra-grpc/src/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ async fn start_server_and_get_client() -> (
MockService<ScanRequest, ScanResponse, PanicAssertion>,
) {
// get a mocked scan service
let mock_scan_service = MockService::build().for_unit_tests();
let mock_scan_service = MockService::build()
.with_max_request_delay(Duration::from_secs(2))
.for_unit_tests();

// start the gRPC server
let listen_addr: std::net::SocketAddr = "127.0.0.1:0"
Expand All @@ -246,8 +248,12 @@ async fn start_server_and_get_client() -> (
// wait for the server to start
sleep(Duration::from_secs(1));

let endpoint = tonic::transport::channel::Endpoint::new(format!("http://{listen_addr}"))
.unwrap()
.timeout(Duration::from_secs(2));

// connect to the gRPC server
let client = ScannerClient::connect(format!("http://{listen_addr}"))
let client = ScannerClient::connect(endpoint)
.await
.expect("server should receive connection");

Expand Down
8 changes: 4 additions & 4 deletions zebra-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ rayon = "1.10.0"
regex = "1.10.4"
serde = { version = "1.0.204", features = ["serde_derive"] }
tempfile = "3.10.1"
thiserror = "1.0.62"
thiserror = "1.0.63"

futures = "0.3.30"
tokio = { version = "1.38.1", features = ["fs", "io-util", "net", "time", "tracing", "macros", "rt-multi-thread"] }
tokio = { version = "1.39.0", features = ["fs", "io-util", "net", "time", "tracing", "macros", "rt-multi-thread"] }
tokio-stream = { version = "0.1.15", features = ["sync", "time"] }
tokio-util = { version = "0.7.11", features = ["codec"] }
tower = { version = "0.4.13", features = ["retry", "discover", "load", "load-shed", "timeout", "util", "buffer"] }
Expand Down Expand Up @@ -90,8 +90,8 @@ proptest = "1.4.0"
proptest-derive = "0.5.0"

static_assertions = "1.1.0"
tokio = { version = "1.38.1", features = ["full", "tracing", "test-util"] }
toml = "0.8.13"
tokio = { version = "1.39.0", features = ["full", "tracing", "test-util"] }
toml = "0.8.15"

zebra-chain = { path = "../zebra-chain", features = ["proptest-impl"] }
zebra-test = { path = "../zebra-test/" }
2 changes: 1 addition & 1 deletion zebra-node-services/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jsonrpc-core = { version = "18.0.0", optional = true }
reqwest = { version = "0.11.26", default-features = false, features = ["rustls-tls"], optional = true }
serde = { version = "1.0.204", optional = true }
serde_json = { version = "1.0.120", optional = true }
tokio = { version = "1.38.1", features = ["time"], optional = true }
tokio = { version = "1.39.0", features = ["time"], optional = true }

[dev-dependencies]

Expand Down
12 changes: 6 additions & 6 deletions zebra-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jsonrpc-http-server = "18.0.0"
serde_json = { version = "1.0.120", features = ["preserve_order"] }
indexmap = { version = "2.2.6", features = ["serde"] }

tokio = { version = "1.38.1", features = [
tokio = { version = "1.39.0", features = [
"time",
"rt-multi-thread",
"macros",
Expand All @@ -77,8 +77,8 @@ tokio = { version = "1.38.1", features = [
tower = "0.4.13"

# indexer-rpcs dependencies
tonic = { version = "0.12.0", optional = true }
tonic-reflection = { version = "0.12.0", optional = true }
tonic = { version = "0.12.1", optional = true }
tonic-reflection = { version = "0.12.1", optional = true }
prost = { version = "0.13.1", optional = true }
tokio-stream = { version = "0.1.15", optional = true }

Expand Down Expand Up @@ -110,15 +110,15 @@ zebra-script = { path = "../zebra-script", version = "1.0.0-beta.38" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.38" }

[build-dependencies]
tonic-build = { version = "0.12.0", optional = true }
tonic-build = { version = "0.12.1", optional = true }

[dev-dependencies]
insta = { version = "1.39.0", features = ["redactions", "json", "ron"] }

proptest = "1.4.0"

thiserror = "1.0.62"
tokio = { version = "1.38.1", features = ["full", "tracing", "test-util"] }
thiserror = "1.0.63"
tokio = { version = "1.39.0", features = ["full", "tracing", "test-util"] }

zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.38", features = [
"proptest-impl",
Expand Down
11 changes: 9 additions & 2 deletions zebra-rpc/src/indexer/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ async fn start_server_and_get_client() -> Result<(
.parse()
.expect("hard-coded IP and u16 port should parse successfully");

let mock_read_service = MockService::build().for_unit_tests();
let mock_read_service = MockService::build()
.with_max_request_delay(Duration::from_secs(2))
.for_unit_tests();

let (mock_chain_tip_change, mock_chain_tip_change_sender) = MockChainTip::new();

let (server_task, listen_addr) =
Expand All @@ -67,8 +70,12 @@ async fn start_server_and_get_client() -> Result<(
// wait for the server to start
tokio::time::sleep(Duration::from_secs(1)).await;

let endpoint = tonic::transport::channel::Endpoint::new(format!("http://{listen_addr}"))
.unwrap()
.timeout(Duration::from_secs(2));

// connect to the gRPC server
let client = IndexerClient::connect(format!("http://{listen_addr}"))
let client = IndexerClient::connect(endpoint)
.await
.expect("server should receive connection");

Expand Down
8 changes: 4 additions & 4 deletions zebra-scan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ indexmap = { version = "2.2.6", features = ["serde"] }
itertools = "0.13.0"
semver = "1.0.23"
serde = { version = "1.0.204", features = ["serde_derive"] }
tokio = { version = "1.38.1", features = ["time"] }
tokio = { version = "1.39.0", features = ["time"] }
tower = "0.4.13"
tracing = "0.1.39"
futures = "0.3.30"
Expand Down Expand Up @@ -110,7 +110,7 @@ zebrad = { path = "../zebrad", version = "1.8.0" }

[dev-dependencies]
insta = { version = "1.39.0", features = ["ron", "redactions"] }
tokio = { version = "1.38.1", features = ["test-util"] }
tokio = { version = "1.39.0", features = ["test-util"] }

proptest = "1.4.0"
proptest-derive = "0.5.0"
Expand All @@ -121,8 +121,8 @@ jubjub = "0.10.0"
rand = "0.8.5"
tempfile = "3.10.1"
zcash_note_encryption = "0.4.0"
toml = "0.8.13"
tonic = "0.12.0"
toml = "0.8.15"
tonic = "0.12.1"

zebra-state = { path = "../zebra-state", version = "1.0.0-beta.38", features = ["proptest-impl"] }
zebra-test = { path = "../zebra-test", version = "1.0.0-beta.38" }
Expand Down
2 changes: 1 addition & 1 deletion zebra-script/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ categories = ["api-bindings", "cryptography::cryptocurrencies"]
zcash_script = "0.2.0"
zebra-chain = { path = "../zebra-chain", version = "1.0.0-beta.38" }

thiserror = "1.0.62"
thiserror = "1.0.63"

[dev-dependencies]
hex = "0.4.3"
Expand Down
Loading

0 comments on commit 25b18ca

Please sign in to comment.