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
3 changes: 3 additions & 0 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion crates/foreign-chain-health-check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ clap = { workspace = true, optional = true }
foreign-chain-inspector = { workspace = true }
foreign-chain-rpc-auth = { workspace = true }
foreign-chain-rpc-interfaces = { workspace = true }
futures = { workspace = true }
hex = { workspace = true }
http = { workspace = true }
mpc-node-config = { workspace = true }
near-mpc-bounded-collections = { workspace = true }
near-mpc-contract-interface = { workspace = true }
tokio = { workspace = true }

[dev-dependencies]
assert_matches = { workspace = true }
httpmock = { workspace = true }
near-mpc-bounded-collections = { workspace = true }
serde_json = { workspace = true }

[lints]
Expand Down
12 changes: 9 additions & 3 deletions crates/foreign-chain-health-check/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//! Foreign-chain RPC provider health checks: probe every configured provider
//! with a fixed golden request and report a per-provider result. Sui is the
//! exception — see `run_sui`.
//! Foreign-chain RPC provider health checks, in two independent routes:
//!
//! * [`check_all_providers`] replays a fixed golden transaction per chain.
//! * [`probe::probe_all_providers`] asks each provider for the network it serves and compares that
//! against the operator's configured expectation.

pub mod probe;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made me think of https://linux.die.net/man/8/modprobe 😅


mod checks;
mod golden;
Expand Down Expand Up @@ -35,6 +39,8 @@ use crate::golden::{AptosVector, BlockHashVector, SuiVector};
/// Chains with no reference for `network`, or configured but unsupported, are
/// [`Status::Skipped`]; a chain absent from the config still yields a single
/// placeholder `Skipped` result so its absence stays visible.
///
/// TODO(#3969): retire this route in favour of [`probe::probe_all_providers`].
pub async fn check_all_providers(
fc: &ForeignChainsConfig,
network: Network,
Expand Down
Loading
Loading