#proto #cosmos #blockchain #tendermint

gravity_proto

Protobuf stuct defintions for interacting with Gravity Bridge Chain

13 unstable releases (3 breaking)

0.4.5 Mar 18, 2024
0.4.4 Mar 18, 2024
0.4.3 Oct 18, 2023
0.4.1 Sep 21, 2023
0.1.0 Apr 21, 2023

#2303 in Magic Beans

Download history 29/week @ 2024-02-18 16/week @ 2024-02-25 1/week @ 2024-03-03 86/week @ 2024-03-10 235/week @ 2024-03-17 4/week @ 2024-03-24 77/week @ 2024-03-31

97 downloads per month

Apache-2.0

1MB
18K 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

~4–6MB
~101K SLoC