Skip to content

Commit

Permalink
Cleanup primitives to prevent cyclic deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Jul 13, 2024
1 parent 971bdc9 commit 23bd581
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bin/citrea/provers/risc0/guest-bitcoin/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ publish = false
# Sov SDK deps
sov-db = { path = "../sovereign-sdk/full-node/db/sov-db", optional = true }
sov-rollup-interface = { path = "../sovereign-sdk/rollup-interface" }
sov-stf-runner = { path = "../sovereign-sdk/full-node/sov-stf-runner" }

# 3rd-party deps
anyhow = { workspace = true }
Expand Down
7 changes: 0 additions & 7 deletions crates/primitives/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use sov_db::schema::types::BatchNumber;
use sov_stf_runner::ProverServiceError;

#[derive(Debug)]
pub enum SyncError {
Expand All @@ -12,9 +11,3 @@ impl From<anyhow::Error> for SyncError {
Self::Error(e)
}
}

impl From<ProverServiceError> for SyncError {
fn from(e: ProverServiceError) -> Self {
Self::Error(e.into())
}
}
16 changes: 10 additions & 6 deletions crates/sequencer-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,25 @@ readme = "README.md"
resolver = "2"

[dependencies]
sov-rollup-interface = { path = "../sovereign-sdk/rollup-interface" }

# 3rd-party dependencies
anyhow = { workspace = true }
jsonrpsee = { workspace = true, features = ["http-client"] }
tracing = { workspace = true }

hex = { workspace = true }
jsonrpsee = { workspace = true, features = ["http-client"] }
serde = { workspace = true }
serde_json = { workspace = true }

tokio = { workspace = true }
tracing = { workspace = true }

# Reth Deps
reth-primitives = { workspace = true }
reth-rpc-types = { workspace = true }

# Sovereign-SDK deps
sov-rollup-interface = { path = "../sovereign-sdk/rollup-interface" }

# Citrea Deps
citrea-primitives = { path = "../primitives" }

[dev-dependencies]
tokio = { workspace = true }

Expand Down
5 changes: 3 additions & 2 deletions crates/sequencer-client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::ops::Range;

use citrea_primitives::types::SoftConfirmationHash;
use jsonrpsee::core::client::{ClientT, Error};
use jsonrpsee::http_client::{HttpClient, HttpClientBuilder};
use jsonrpsee::rpc_params;
Expand Down Expand Up @@ -104,9 +105,9 @@ impl SequencerClient {
#[serde(rename_all = "camelCase")]
pub struct GetSoftBatchResponse {
#[serde(with = "hex::serde")]
pub hash: [u8; 32],
pub hash: SoftConfirmationHash,
#[serde(with = "hex::serde")]
pub prev_hash: [u8; 32],
pub prev_hash: SoftConfirmationHash,
pub da_slot_height: u64,
#[serde(with = "hex::serde")]
pub da_slot_hash: [u8; 32],
Expand Down

0 comments on commit 23bd581

Please sign in to comment.