#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

#975 in Magic Beans

Download history 13/week @ 2024-07-01 15/week @ 2024-07-22 18/week @ 2024-07-29 126/week @ 2024-08-26 264/week @ 2024-09-02 87/week @ 2024-09-09 213/week @ 2024-09-16 62/week @ 2024-09-23 219/week @ 2024-09-30 20/week @ 2024-10-07

516 downloads per month

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
~116K SLoC