From a0b51c72ba661dbc4ec0a4c57fcb510c9bc0343e Mon Sep 17 00:00:00 2001 From: James Date: Mon, 16 Feb 2026 14:40:19 -0500 Subject: [PATCH 1/2] chore(deps): bump SDK dependencies to 0.16.0-rc.11 Updates signet-constants and signet-tx-cache from 0.16.0-rc.7 to 0.16.0-rc.11 and adapts to the refactored tx-cache API. Changes: - Bump signet-constants to 0.16.0-rc.11 - Bump signet-tx-cache to 0.16.0-rc.11 - Update tx_cache.rs to use new type names (CachedBundle, BundleList, CacheResponse) - Update get_bundles() to return CacheResponse for pagination support - Update get_bundle() to directly deserialize CachedBundle since TxCacheBundleResponse wrapper was removed in SDK The SDK refactored tx-cache types for clarity and better pagination support. All deprecated type aliases are supported for backward compatibility, but we've migrated to the new canonical names. Co-Authored-By: Claude Sonnet 4.5 --- Cargo.toml | 4 ++-- src/perms/tx_cache.rs | 24 +++++++++++++++++------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9fbdd85..5016a12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,8 +15,8 @@ repository = "https://github.com/init4tech/bin-base" init4-from-env-derive = { version = "0.2.0", path = "from-env-derive" } # Signet -signet-constants = { version = "0.16.0-rc.7" } -signet-tx-cache = { version = "0.16.0-rc.7", optional = true } +signet-constants = { version = "0.16.0-rc.11" } +signet-tx-cache = { version = "0.16.0-rc.11", optional = true } # alloy alloy = { version = "1.0.35", optional = true, default-features = false, features = ["std", "signer-local", "consensus", "network"] } diff --git a/src/perms/tx_cache.rs b/src/perms/tx_cache.rs index 67cd42a..1cb4902 100644 --- a/src/perms/tx_cache.rs +++ b/src/perms/tx_cache.rs @@ -2,7 +2,7 @@ use crate::perms::oauth::SharedToken; use serde::de::DeserializeOwned; use signet_tx_cache::{ error::TxCacheError, - types::{BundleKey, CacheObject, TxCacheBundle, TxCacheBundleResponse, TxCacheBundlesResponse}, + types::{BundleKey, BundleList, CacheObject, CacheResponse, CachedBundle}, TxCache, }; use thiserror::Error; @@ -139,8 +139,8 @@ impl BuilderTxCache { /// Returns an error if the request fails or the builder is not permissioned /// for the current slot. #[instrument(skip_all)] - pub async fn get_bundles(&self, query: Option) -> Result { - self.get_inner_with_token::(BUNDLES, query) + pub async fn get_bundles(&self, query: Option) -> Result> { + self.get_inner_with_token::>(BUNDLES, query) .await } @@ -151,10 +151,20 @@ impl BuilderTxCache { /// Get a bundle from the cache by its UUID. For convenience, this method /// takes a string reference, which is expected to be a valid UUID. #[instrument(skip_all)] - pub async fn get_bundle(&self, bundle_id: &str) -> Result { - let url = self.get_bundle_url_path(bundle_id); - self.get_inner_with_token::(&url, None) + pub async fn get_bundle(&self, bundle_id: &str) -> Result { + let url_path = self.get_bundle_url_path(bundle_id); + let url = self.tx_cache.url().join(&url_path)?; + let secret = self.token.secret().await?; + + self.tx_cache + .client() + .get(url) + .bearer_auth(secret) + .send() + .await? + .error_for_status()? + .json::() .await - .map(|response| response.bundle) + .map_err(Into::into) } } From b77ab5c581016cd3dd8b6c0971a7d6986d964f01 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 16 Feb 2026 14:41:03 -0500 Subject: [PATCH 2/2] chore: bump version to 0.18.0-rc.10 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5016a12..0b96ce5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "init4-bin-base" description = "Internal utilities for binaries produced by the init4 team" keywords = ["init4", "bin", "base"] -version = "0.18.0-rc.9" +version = "0.18.0-rc.10" edition = "2021" rust-version = "1.85" authors = ["init4", "James Prestwich", "evalir"]