gravity_proto/
lib.rs

1//! This crate provides Gravity proto definitions in Rust and also re-exports cosmos_sdk_proto for use by downstream
2//! crates. By default around a dozen proto files are generated and places into the prost folder. We could then proceed
3//! to fix up all these files and use them as the required dependencies to the Gravity file, but we chose instead to replace
4//! those paths with references ot upstream cosmos-sdk-proto and delete the other files. This reduces cruft in this repo even
5//! if it does make for a somewhat more confusing proto generation process.
6
7pub use cosmos_sdk_proto;
8pub mod gravity {
9    pub mod v1 {
10        include!("prost/gravity.v1.rs");
11        include!("ethereum_claim.rs");
12    }
13    pub mod v2 {
14        include!("prost/gravity.v2.rs");
15    }
16}
17pub mod auction {
18    include!("prost/auction.v1.rs");
19}
20/// note to future readers I have hand copied the RegisteredInterchainAccount file from ibc.applications.interchain_accounts.v1.rs which is compiled
21/// but not checked in into gaia.icaauth.v1.rs
22pub mod gravity_test {
23    pub mod gaia {
24        pub mod globalfee {
25            pub mod v1beta1 {
26                include!("prost/gaia.globalfee.v1beta1.rs");
27            }
28        }
29        pub mod icaauth {
30            pub mod v1 {
31                include!("prost/gaia.icaauth.v1.rs");
32            }
33        }
34    }
35}