Skip to content

Commit

Permalink
Update somm_proto to include pubsub bindings and fix cosmos-sdk-versi…
Browse files Browse the repository at this point in the history
…on (#234)
  • Loading branch information
cbrit authored Nov 28, 2023
1 parent fd12f41 commit d98c3c9
Show file tree
Hide file tree
Showing 5 changed files with 920 additions and 3 deletions.
3 changes: 3 additions & 0 deletions prost_build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ fn compile_protos(out_dir: &Path, tmp_dir: &Path) {
incentives_proto_dir.push("proto/incentives/v1");
let mut auction_proto_dir = root.clone();
auction_proto_dir.push("proto/auction/v1");
let mut pubsub_proto_dir = root.clone();
pubsub_proto_dir.push("proto/pubsub/v1");

let mut somm_proto_include_dir = root.clone();
somm_proto_include_dir.push("proto");
Expand All @@ -64,6 +66,7 @@ fn compile_protos(out_dir: &Path, tmp_dir: &Path) {
cork_proto_dir,
incentives_proto_dir,
auction_proto_dir,
pubsub_proto_dir,
];
// we need to have an include which is just the folder of our protos to satisfy protoc
// which insists that any passed file be included in a directory passed as an include
Expand Down
2 changes: 1 addition & 1 deletion somm_proto/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions somm_proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "somm_proto"
version = "5.0.0"
version = "7.0.0"
authors = ["PeggyJV"]
edition = "2018"

Expand All @@ -10,6 +10,6 @@ edition = "2018"
prost = "0.7"
prost-types = "0.7"
bytes = "1"
cosmos-sdk-proto = {git="http://github.com/cosmos/cosmos-rust", branch="main"}
cosmos-sdk-proto = "0.6.3"
tonic = "0.4"
serde = "1.0"
5 changes: 5 additions & 0 deletions somm_proto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
pub use cosmos_sdk_proto;

pub mod cork {
include!("prost/cork.v2.rs");
}

pub mod pubsub {
include!("prost/pubsub.v1.rs");
}
Loading

0 comments on commit d98c3c9

Please sign in to comment.