The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/rust/ethers-prometheus/src/lib.rs

19 lines
514 B

//! A prometheus middleware to collect metrics.
#![forbid(unsafe_code)]
#![warn(missing_docs)]
mod contracts;
pub mod json_rpc_client;
pub mod middleware;
/// Some basic information about a chain.
#[derive(Clone, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(tag = "type", rename_all = "camelCase"))]
pub struct ChainInfo {
/// A human-friendly name for the chain. This should be a short string like
/// "kovan".
pub name: Option<String>,
}