#proto #cosmos #blockchain #tendermint

gravity_proto

Protobuf stuct defintions for interacting with Gravity Bridge Chain

15 unstable releases (5 breaking)

0.6.0 Oct 3, 2024
0.5.0 Aug 29, 2024
0.4.5 Mar 18, 2024
0.4.3 Oct 18, 2023
0.1.0 Apr 21, 2023

#24 in #tendermint

Apache-2.0

1MB
19K SLoC

gravity_proto

Crate Apache 2.0 Licensed

Rust crate for interacting with compiled Protobufs used by Gravity Bridge Chain.

This crate also provides the Cosmos Protobufs by exporting the Cosmos SDK Proto crate, purely for convenience.


lib.rs:

This crate provides Gravity proto definitions in Rust and also re-exports cosmos_sdk_proto for use by downstream crates. By default around a dozen proto files are generated and places into the prost folder. We could then proceed to fix up all these files and use them as the required dependencies to the Gravity file, but we chose instead to replace those paths with references ot upstream cosmos-sdk-proto and delete the other files. This reduces cruft in this repo even if it does make for a somewhat more confusing proto generation process.

Dependencies

~5–11MB
~114K SLoC