mango-simulation/src/lib.rs

27 lines
618 B
Rust
Raw Normal View History

2023-02-18 06:24:56 -08:00
pub mod account_write_filter;
pub mod cli;
2023-02-18 06:24:56 -08:00
pub mod chain_data;
pub mod confirmation_strategies;
2023-02-18 06:24:56 -08:00
pub mod crank;
pub mod grpc_plugin_source;
pub mod helpers;
pub mod keeper;
pub mod mango;
2023-02-18 06:24:56 -08:00
pub mod mango_v3_perp_crank_sink;
pub mod market_markers;
2023-02-18 06:24:56 -08:00
pub mod metrics;
pub mod rotating_queue;
pub mod states;
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))
}
}