jito-geyser-protos

Crates.iojito-geyser-protos
lib.rsjito-geyser-protos
version0.0.2
sourcesrc
created_at2023-02-24 21:38:08.436854
updated_at2023-02-24 21:54:51.665649
descriptionJito's Solana geyser protobufs and helper libraries
homepage
repository
max_upload_size
id793948
size98,376
buffalu (buffalu)

documentation

README

About

  • Most of these protobufs are copied from Solana Lab's repository.

Using the library

Adding to Cargo.toml

jito-geyser-protos = "0.0.2"

Importing

use jito_geyser_protos::solana::storage::confirmed_block::ConfirmedBlock;

Note:

  • Supports any solana library ~v1.14.

How to pull in Solana Labs changes

Pulling in updates

  • confirmed_block.proto and transaction_by_addr.proto are untouched.
  • Added the following to lib.rs (previously under generated in convert.rs)
pub mod solana {
    pub mod geyser {
        tonic::include_proto!("solana.geyser");
    }
    pub mod storage {
        pub mod confirmed_block {
            tonic::include_proto!("solana.storage.confirmed_block");
        }
    }
}
  • Moved the tx_by_addr to canonical include_proto! in lib.rs
pub mod tx_by_addr {
    tonic::include_proto!("solana.storage.transaction_by_addr");
}
  • Rename convert.rs modules where necessary
Commit count: 0

cargo fmt