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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ Cargo.lock.bak*
# OS
.DS_Store
Thumbs.db
compose.env
docker-compose.override.yml
20 changes: 15 additions & 5 deletions Cargo.lock

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

15 changes: 6 additions & 9 deletions crates/chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ rust-version.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
build = "build.rs"

[dependencies]
indexer-domain = { path = "../domain", version = "0.2.4" }
Expand All @@ -17,10 +16,13 @@ alloy-provider.workspace = true
alloy-rpc-types.workspace = true
alloy-transport-http.workspace = true

# tonic: gRPC client (generated from proto).
# tonic: gRPC transport (generated types live in sentrix-proto).
tonic.workspace = true
tonic-prost.workspace = true
prost.workspace = true

# Single source of truth for the sentrix.v1 schema. Replaces the local
# proto/ + build.rs codegen we used to ship inside this crate; bumps to
# the schema now flow through `cargo update -p sentrix-proto`.
sentrix-proto = "0.1.1"

# REST client for native `/tx/<hash>` fetch.
reqwest = { workspace = true }
Expand All @@ -37,10 +39,5 @@ futures.workspace = true
tracing.workspace = true
thiserror.workspace = true

[build-dependencies]
tonic-build.workspace = true
tonic-prost-build.workspace = true
prost-build.workspace = true

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt", "test-util"] }
25 changes: 0 additions & 25 deletions crates/chain/build.rs

This file was deleted.

257 changes: 0 additions & 257 deletions crates/chain/proto/sentrix.proto

This file was deleted.

10 changes: 4 additions & 6 deletions crates/chain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ pub mod provider;
pub mod rest;
pub mod retry;

/// Generated tonic / prost types for `sentrix.v1.*`. The build script writes
/// `sentrix.v1.rs` into `OUT_DIR`; this module simply includes it.
#[allow(missing_docs, clippy::all)]
pub mod pb {
tonic::include_proto!("sentrix.v1");
}
/// Re-export of the canonical `sentrix.v1` protobuf types from the
/// `sentrix-proto` crate (single source of truth, published on crates.io).
/// Existing `crate::pb::Foo` call sites keep working unchanged.
pub use sentrix_proto as pb;

pub use error::{ChainError, ChainResult};
pub use grpc::GrpcClient;
Expand Down
Loading