pyth_lazer_agent/lib.rs
1use crate::lazer_publisher::LazerPublisher;
2
3pub use crate::config::{Config, load_config};
4
5mod config;
6mod http_server;
7mod jrpc_handle;
8mod lazer_publisher;
9mod legacy_handle;
10mod metadata;
11mod publisher_handle;
12mod relayer_session;
13mod websocket_utils;
14
15pub async fn run(config: Config) -> anyhow::Result<()> {
16 let lazer_publisher = LazerPublisher::new(&config).await;
17 http_server::run(config, lazer_publisher).await
18}