2023-03-09 07:20:49 -08:00
|
|
|
pub mod cli;
|
2023-02-15 08:08:55 -08:00
|
|
|
pub mod confirmation_strategies;
|
2023-02-18 06:24:56 -08:00
|
|
|
pub mod crank;
|
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-04-14 05:04:35 -07:00
|
|
|
pub mod noop;
|
2023-03-14 05:39:19 -07:00
|
|
|
pub mod result_writer;
|
2023-02-15 08:08:55 -08:00
|
|
|
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))
|
|
|
|
}
|
|
|
|
}
|