Skip to content

Commit

Permalink
update jf/hotshot deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mrain committed May 10, 2024
1 parent c4f0433 commit 5ce231b
Show file tree
Hide file tree
Showing 12 changed files with 174 additions and 289 deletions.
426 changes: 155 additions & 271 deletions Cargo.lock

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ derivative = "2.2"
derive_more = "0.99"
either = "1.11"
futures = "0.3"
hotshot = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.50" }
hotshot-testing = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.50" }
hotshot-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.50" }
hotshot = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.51" }
hotshot-testing = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.51" }
hotshot-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.51" }
itertools = "0.12.1"
jf-primitives = { git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.4" }
jf-merkle-tree = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = ["std"] }
jf-vid = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = ["std", "parallel"] }
prometheus = "0.13"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down Expand Up @@ -110,7 +111,7 @@ tokio-postgres = { version = "0.7", optional = true, default-features = false, f

# Dependencies enabled by feature "testing".
espresso-macros = { git = "https://github.com/EspressoSystems/espresso-macros.git", tag = "0.1.0", optional = true }
hotshot-example-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.50", optional = true }
hotshot-example-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.51", optional = true }
portpicker = { version = "0.1", optional = true }
rand = { version = "0.8", optional = true }
spin_sleep = { version = "1.2", optional = true }
Expand All @@ -131,7 +132,7 @@ backtrace-on-stack-overflow = { version = "0.3", optional = true }
clap = { version = "4.5", features = ["derive", "env"] }
espresso-macros = { git = "https://github.com/EspressoSystems/espresso-macros.git", tag = "0.1.0" }
generic-array = "0.14"
hotshot-example-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.50" }
hotshot-example-types = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.51" }
portpicker = "0.1"
rand = "0.8"
reqwest = "0.12.3"
Expand Down
2 changes: 1 addition & 1 deletion src/availability/query_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use hotshot_types::{
},
vid::{vid_scheme, VidCommitment},
};
use jf_primitives::vid::VidScheme;
use jf_vid::VidScheme;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use snafu::{ensure, Snafu};
use std::fmt::Debug;
Expand Down
2 changes: 1 addition & 1 deletion src/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ pub mod node_tests {
traits::block_contents::{vid_commitment, BlockPayload},
vid::{vid_scheme, VidSchemeType},
};
use jf_primitives::vid::VidScheme;
use jf_vid::VidScheme;

#[async_std::test]
pub async fn test_sync_status<D: TestableDataSource>() {
Expand Down
2 changes: 1 addition & 1 deletion src/data_source/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use crate::{
};
use async_trait::async_trait;
use hotshot_types::traits::node_implementation::NodeType;
use jf_primitives::merkle_tree::prelude::MerkleProof;
use jf_merkle_tree::prelude::MerkleProof;
use std::ops::RangeBounds;

/// Wrapper to add extensibility to an existing data source.
Expand Down
2 changes: 1 addition & 1 deletion src/data_source/fetching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ use futures::{
stream::{self, BoxStream, Stream, StreamExt},
};
use hotshot_types::traits::node_implementation::NodeType;
use jf_primitives::merkle_tree::{prelude::MerkleProof, MerkleTreeScheme};
use jf_merkle_tree::{prelude::MerkleProof, MerkleTreeScheme};

use std::{
cmp::min,
Expand Down
2 changes: 1 addition & 1 deletion src/data_source/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ mod test {
};
use hotshot_example_types::state_types::TestInstanceState;
use hotshot_types::vid::vid_scheme;
use jf_primitives::vid::VidScheme;
use jf_vid::VidScheme;

type D = SqlDataSource<MockTypes, NoFetching>;

Expand Down
6 changes: 3 additions & 3 deletions src/data_source/storage/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ use hotshot_types::{
},
};
use itertools::{izip, Itertools};
use jf_primitives::merkle_tree::{
use jf_merkle_tree::{
prelude::{MerkleNode, MerkleProof},
DigestAlgorithm, MerkleCommitment, ToTraversalPath,
};
Expand Down Expand Up @@ -3207,7 +3207,7 @@ pub mod testing {
mod test {

use hotshot_example_types::state_types::TestInstanceState;
use jf_primitives::merkle_tree::{
use jf_merkle_tree::{
universal_merkle_tree::UniversalMerkleTree, LookupResult, UniversalMerkleTreeScheme,
};
use rand::{seq::IteratorRandom, RngCore};
Expand Down Expand Up @@ -3454,7 +3454,7 @@ mod test {

use crate::data_source::VersionedDataSource;

use jf_primitives::merkle_tree::MerkleTreeScheme;
use jf_merkle_tree::MerkleTreeScheme;

#[async_std::test]
async fn test_merklized_state_storage() {
Expand Down
2 changes: 1 addition & 1 deletion src/data_source/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use hotshot_types::{
},
vid::vid_scheme,
};
use jf_primitives::vid::VidScheme;
use jf_vid::VidScheme;
use std::{error::Error, fmt::Debug, iter::once};

/// An extension trait for types which implement the update trait for each API module.
Expand Down
2 changes: 1 addition & 1 deletion src/fetching/provider/query_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use hotshot_types::{
traits::{node_implementation::NodeType, BlockPayload},
vid::{vid_scheme, VidSchemeType},
};
use jf_primitives::vid::VidScheme;
use jf_vid::VidScheme;
use surf_disco::{Client, Url};
use vbs::version::StaticVersionType;

Expand Down
2 changes: 1 addition & 1 deletion src/merklized_state/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use derivative::Derivative;
use derive_more::Display;
use hotshot_types::traits::node_implementation::NodeType;

use jf_primitives::merkle_tree::{
use jf_merkle_tree::{
prelude::MerkleProof, DigestAlgorithm, Element, ForgetableMerkleTreeScheme, Index,
MerkleCommitment, NodeValue, ToTraversalPath,
};
Expand Down
2 changes: 1 addition & 1 deletion src/testing/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use hotshot_types::{
traits::node_implementation::NodeType,
};

use jf_primitives::merkle_tree::{
use jf_merkle_tree::{
prelude::{MerkleProof, Sha3Digest, Sha3Node},
universal_merkle_tree::UniversalMerkleTree,
ForgetableMerkleTreeScheme, ForgetableUniversalMerkleTreeScheme,
Expand Down

0 comments on commit 5ce231b

Please sign in to comment.