#solana #protobuf #protos #geyser #jito #storage #block

jito-geyser-protos

Jito's Solana geyser protobufs and helper libraries

2 releases

0.0.2 Feb 24, 2023
0.0.1 Feb 24, 2023

#2 in #jito

Apache-2.0

87KB
2K SLoC

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

Dependencies

~35–49MB
~847K SLoC