mango-simulation/src/lib.rs

27 lines
583 B
Rust
Raw Normal View History

2023-03-09 07:20:49 -08:00
pub mod cli;
pub mod confirmation_strategies;
2023-02-18 06:24:56 -08:00
pub mod crank;
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-04-14 05:04:35 -07:00
pub mod noop;
2023-03-14 05:39:19 -07:00
pub mod result_writer;
pub mod rotating_queue;
pub mod states;
2023-03-14 05:39:19 -07:00
pub mod stats;
pub mod tpu_manager;
2023-02-18 06:24:56 -08:00
trait AnyhowWrap {
2023-03-09 07:20:49 -08:00
type Value;
fn map_err_anyhow(self) -> anyhow::Result<Self::Value>;
2023-02-18 06:24:56 -08:00
}
impl<T, E: std::fmt::Debug> AnyhowWrap for Result<T, E> {
2023-03-09 07:20:49 -08:00
type Value = T;
fn map_err_anyhow(self) -> anyhow::Result<Self::Value> {
self.map_err(|err| anyhow::anyhow!("{:?}", err))
}
}