Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.2.4"
version = "0.3.0"
edition = "2021"
rust-version = "1.81"
authors = ["init4"]
Expand Down Expand Up @@ -34,16 +34,16 @@ debug = false
incremental = false

[workspace.dependencies]
signet-bundle = { version = "0.2.0", path = "crates/bundle" }
signet-constants = { version = "0.2.0", path = "crates/constants" }
signet-evm = { version = "0.2.0", path = "crates/evm" }
signet-extract = { version = "0.2.0", path = "crates/extract" }
signet-node = { version = "0.2.0", path = "crates/node" }
signet-rpc = { version = "0.2.0", path = "crates/rpc" }
signet-sim = { version = "0.2.0", path = "crates/sim" }
signet-types = { version = "0.2.0", path = "crates/types" }
signet-tx-cache = { version = "0.2.0", path = "crates/tx-cache" }
signet-zenith = { version = "0.2.0", path = "crates/zenith" }
signet-bundle = { version = "0.3.0", path = "crates/bundle" }
signet-constants = { version = "0.3.0", path = "crates/constants" }
signet-evm = { version = "0.3.0", path = "crates/evm" }
signet-extract = { version = "0.3.0", path = "crates/extract" }
signet-node = { version = "0.3.0", path = "crates/node" }
signet-rpc = { version = "0.3.0", path = "crates/rpc" }
signet-sim = { version = "0.3.0", path = "crates/sim" }
signet-types = { version = "0.3.0", path = "crates/types" }
signet-tx-cache = { version = "0.3.0", path = "crates/tx-cache" }
signet-zenith = { version = "0.3.0", path = "crates/zenith" }

# ajj
ajj = { version = "0.3.4" }
Expand Down
20 changes: 2 additions & 18 deletions crates/tx-cache/src/client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::types::{
TxCacheBundle, TxCacheBundleResponse, TxCacheBundlesResponse, TxCacheOrdersResponse,
TxCacheSendBundleResponse, TxCacheSendTransactionResponse, TxCacheTransactionsResponse,
TxCacheOrdersResponse, TxCacheSendBundleResponse, TxCacheSendTransactionResponse,
TxCacheTransactionsResponse,
};
use alloy::consensus::TxEnvelope;
use eyre::Error;
Expand Down Expand Up @@ -135,22 +135,6 @@ impl TxCache {
Ok(response.transactions)
}

/// Get bundles from the URL.
#[instrument(skip_all)]
pub async fn get_bundles(&self) -> Result<Vec<TxCacheBundle>, Error> {
let response: TxCacheBundlesResponse =
self.get_inner::<TxCacheBundlesResponse>(BUNDLES).await?;
Ok(response.bundles)
}

/// Get a bundle from the URL.
#[instrument(skip_all)]
pub async fn get_bundle(&self) -> Result<TxCacheBundle, Error> {
let response: TxCacheBundleResponse =
self.get_inner::<TxCacheBundleResponse>(BUNDLES).await?;
Ok(response.bundle)
}

/// Get signed orders from the URL.
#[instrument(skip_all)]
pub async fn get_orders(&self) -> Result<Vec<SignedOrder>, Error> {
Expand Down
Loading