Skip to content

Commit

Permalink
refactor(proto): renamed generated code output
Browse files Browse the repository at this point in the history
  • Loading branch information
aelesbao committed May 22, 2024
1 parent 9c45626 commit 92858ac
Show file tree
Hide file tree
Showing 145 changed files with 14 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 13 additions & 7 deletions packages/proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@
#![forbid(unsafe_code)]
#![warn(trivial_casts, trivial_numeric_casts, unused_import_braces)]

mod proto;
mod gen;

pub use proto::*;
pub use gen::*;

pub use prost;
pub use prost_types::Any;

pub use tendermint_proto as tendermint;

/// The version (commit hash) of the Archway protocol used when generating this library.
pub const ARCHWAY_VERSION: &str = include_str!("proto/ARCHWAY_COMMIT");
pub const COSMOS_SDK_VERSION: &str = include_str!("proto/COSMOS_SDK_COMMIT");
pub const IBC_VERSION: &str = include_str!("proto/IBC_COMMIT");
pub const WASMD_VERSION: &str = include_str!("proto/WASMD_COMMIT");
/// The Archway protocol version (or commit hash) used when generating this library.
pub const ARCHWAY_VERSION: &str = include_str!("gen/ARCHWAY_COMMIT");

/// The Cosmos SDK version (or commit hash) used when generating this library.
pub const COSMOS_SDK_VERSION: &str = include_str!("gen/COSMOS_SDK_COMMIT");

/// The ibc-go version (or commit hash) used when generating this library.
pub const IBC_VERSION: &str = include_str!("gen/IBC_COMMIT");

/// The wasmd version (or commit hash) of the used when generating this library.
pub const WASMD_VERSION: &str = include_str!("gen/WASMD_COMMIT");
2 changes: 1 addition & 1 deletion proto-build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const WASMD_REV: &str = "v0.45.0";
const WASMD_DIR: &str = "wasmd";

const PROTO_DIR: &str = "proto";
const OUT_DIR: &str = "packages/proto/src/proto";
const OUT_DIR: &str = "packages/proto/src/gen";

const EXCLUDED_PROTO_PACKAGES: &[&str] = &["gogoproto", "google", "tendermint"];

Expand Down

0 comments on commit 92858ac

Please sign in to comment.