jito-restaking-client-common 0.0.5

Jito Client Common Crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub trait PrettyDisplay {
    fn pretty_display(&self) -> String;
}

pub fn account_header(title: &str) -> String {
    format!("\n{}\n", title)
}

pub fn section_header(title: &str) -> String {
    format!("\n━━━ {} ━━━\n", title)
}

pub fn field(name: &str, value: impl std::fmt::Display) -> String {
    format!("  {}: {}\n", name, value)
}