pyth-lazer-agent 0.16.0

Pyth Lazer Agent
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::lazer_publisher::LazerPublisher;

pub use crate::config::{Config, load_config};

mod config;
mod http_server;
mod jrpc_handle;
mod lazer_publisher;
mod legacy_handle;
mod metadata;
mod publisher_handle;
mod relayer_session;
mod websocket_utils;

pub async fn run(config: Config) -> anyhow::Result<()> {
    let lazer_publisher = LazerPublisher::new(&config).await;
    http_server::run(config, lazer_publisher).await
}