2023-02-18 06:24:56 -08:00
|
|
|
pub mod account_write_filter;
|
2022-09-02 07:26:44 -07:00
|
|
|
pub mod cli;
|
2023-02-18 06:24:56 -08:00
|
|
|
pub mod chain_data;
|
2023-02-15 08:08:55 -08:00
|
|
|
pub mod confirmation_strategies;
|
2023-02-18 06:24:56 -08:00
|
|
|
pub mod crank;
|
|
|
|
pub mod grpc_plugin_source;
|
2023-02-15 08:08:55 -08:00
|
|
|
pub mod helpers;
|
2023-02-21 00:49:20 -08:00
|
|
|
pub mod keeper;
|
2022-09-02 07:26:44 -07:00
|
|
|
pub mod mango;
|
2023-02-18 06:24:56 -08:00
|
|
|
pub mod mango_v3_perp_crank_sink;
|
2023-02-15 08:08:55 -08:00
|
|
|
pub mod market_markers;
|
2023-02-18 06:24:56 -08:00
|
|
|
pub mod metrics;
|
2023-02-15 08:08:55 -08:00
|
|
|
pub mod rotating_queue;
|
|
|
|
pub mod states;
|
2023-03-09 07:08:03 -08:00
|
|
|
pub mod websocket_source;
|
2023-02-18 06:24:56 -08:00
|
|
|
|
|
|
|
trait AnyhowWrap {
|
|
|
|
type Value;
|
|
|
|
fn map_err_anyhow(self) -> anyhow::Result<Self::Value>;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T, E: std::fmt::Debug> AnyhowWrap for Result<T, E> {
|
|
|
|
type Value = T;
|
|
|
|
fn map_err_anyhow(self) -> anyhow::Result<Self::Value> {
|
|
|
|
self.map_err(|err| anyhow::anyhow!("{:?}", err))
|
|
|
|
}
|
|
|
|
}
|