From 5b3e127cd0ceae4b11a4ac92e9782013abcddd01 Mon Sep 17 00:00:00 2001
From: jfldde <168934971+jfldde@users.noreply.github.com>
Date: Fri, 8 Nov 2024 09:18:28 +0000
Subject: [PATCH] Remove circular dependency on citrea
---
Cargo.toml | 4 ----
src/client.rs | 50 +++---------------------------------------
src/full_node.rs | 57 +-----------------------------------------------
src/node.rs | 2 +-
tests/docker.rs | 6 ++---
5 files changed, 7 insertions(+), 112 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index a323b4c..80f2b3f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,9 +22,5 @@ toml = "0.8.0"
tracing = { version = "0.1.40", default-features = false }
tracing-subscriber = { version = "0.3.17", features = ["env-filter", "json", "fmt"] }
-# Citrea dependencies
-sov-ledger-rpc = { git = "https://github.com/chainwayxyz/citrea", rev = "962e125", default-features = false, features = ["client"] }
-sov-rollup-interface = { git = "https://github.com/chainwayxyz/citrea", rev = "962e125"}
-
[patch.crates-io]
bitcoincore-rpc = { version = "0.18.0", git = "https://github.com/chainwayxyz/rust-bitcoincore-rpc.git", rev = "5ce1bed" }
diff --git a/src/client.rs b/src/client.rs
index 7f29991..92216bd 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -6,10 +6,6 @@ use jsonrpsee::{
http_client::{HttpClient, HttpClientBuilder},
rpc_params,
};
-use sov_ledger_rpc::client::RpcClient;
-use sov_rollup_interface::rpc::{
- SequencerCommitmentResponse, SoftConfirmationResponse, VerifiedBatchProofResponse,
-};
use tokio::time::sleep;
use tracing::trace;
@@ -51,59 +47,19 @@ impl Client {
.await?)
}
- pub async fn ledger_get_head_soft_confirmation(
- &self,
- ) -> Result