Skip to content

Commit 94333d8

Browse files
authored
chore(tx-cache): remove permissioned endpoints (#72)
These endpoints are never really used by normal SDK consumers. We should remove them.
1 parent dbf1832 commit 94333d8

File tree

2 files changed

+13
-29
lines changed

2 files changed

+13
-29
lines changed

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.2.4"
6+
version = "0.3.0"
77
edition = "2021"
88
rust-version = "1.81"
99
authors = ["init4"]
@@ -34,16 +34,16 @@ debug = false
3434
incremental = false
3535

3636
[workspace.dependencies]
37-
signet-bundle = { version = "0.2.0", path = "crates/bundle" }
38-
signet-constants = { version = "0.2.0", path = "crates/constants" }
39-
signet-evm = { version = "0.2.0", path = "crates/evm" }
40-
signet-extract = { version = "0.2.0", path = "crates/extract" }
41-
signet-node = { version = "0.2.0", path = "crates/node" }
42-
signet-rpc = { version = "0.2.0", path = "crates/rpc" }
43-
signet-sim = { version = "0.2.0", path = "crates/sim" }
44-
signet-types = { version = "0.2.0", path = "crates/types" }
45-
signet-tx-cache = { version = "0.2.0", path = "crates/tx-cache" }
46-
signet-zenith = { version = "0.2.0", path = "crates/zenith" }
37+
signet-bundle = { version = "0.3.0", path = "crates/bundle" }
38+
signet-constants = { version = "0.3.0", path = "crates/constants" }
39+
signet-evm = { version = "0.3.0", path = "crates/evm" }
40+
signet-extract = { version = "0.3.0", path = "crates/extract" }
41+
signet-node = { version = "0.3.0", path = "crates/node" }
42+
signet-rpc = { version = "0.3.0", path = "crates/rpc" }
43+
signet-sim = { version = "0.3.0", path = "crates/sim" }
44+
signet-types = { version = "0.3.0", path = "crates/types" }
45+
signet-tx-cache = { version = "0.3.0", path = "crates/tx-cache" }
46+
signet-zenith = { version = "0.3.0", path = "crates/zenith" }
4747

4848
# ajj
4949
ajj = { version = "0.3.4" }

crates/tx-cache/src/client.rs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::types::{
2-
TxCacheBundle, TxCacheBundleResponse, TxCacheBundlesResponse, TxCacheOrdersResponse,
3-
TxCacheSendBundleResponse, TxCacheSendTransactionResponse, TxCacheTransactionsResponse,
2+
TxCacheOrdersResponse, TxCacheSendBundleResponse, TxCacheSendTransactionResponse,
3+
TxCacheTransactionsResponse,
44
};
55
use alloy::consensus::TxEnvelope;
66
use eyre::Error;
@@ -135,22 +135,6 @@ impl TxCache {
135135
Ok(response.transactions)
136136
}
137137

138-
/// Get bundles from the URL.
139-
#[instrument(skip_all)]
140-
pub async fn get_bundles(&self) -> Result<Vec<TxCacheBundle>, Error> {
141-
let response: TxCacheBundlesResponse =
142-
self.get_inner::<TxCacheBundlesResponse>(BUNDLES).await?;
143-
Ok(response.bundles)
144-
}
145-
146-
/// Get a bundle from the URL.
147-
#[instrument(skip_all)]
148-
pub async fn get_bundle(&self) -> Result<TxCacheBundle, Error> {
149-
let response: TxCacheBundleResponse =
150-
self.get_inner::<TxCacheBundleResponse>(BUNDLES).await?;
151-
Ok(response.bundle)
152-
}
153-
154138
/// Get signed orders from the URL.
155139
#[instrument(skip_all)]
156140
pub async fn get_orders(&self) -> Result<Vec<SignedOrder>, Error> {

0 commit comments

Comments
 (0)