@@ -11,10 +11,13 @@ use proto_build::{
1111};
1212
1313/// The Cosmos SDK commit or tag to be cloned and used to build the proto files
14- const COSMOS_SDK_REV: &str = "origin/ osmosis-main";
14+ const COSMOS_SDK_REV: &str = "osmosis-main";
1515
1616/// The osmosis commit or tag to be cloned and used to build the proto files
17- const OSMOSIS_REV: &str = "origin/main";
17+ const OSMOSIS_REV: &str = "main";
18+
19+ /// The wasmd commit or tag to be cloned and used to build the proto files
20+ const WASMD_REV: &str = "v0.31.0-osmo-v16";
1821
1922// All paths must end with a / and either be absolute or include a ./ to reference the current
2023// working directory.
@@ -25,6 +28,8 @@ const OUT_DIR: &str = "../osmosis-std/src/types/";
2528const COSMOS_SDK_DIR: &str = "../../dependencies/cosmos-sdk/";
2629/// Directory where the osmosis submodule is located
2730const OSMOSIS_DIR: &str = "../../dependencies/osmosis/";
31+ /// Directory where the wasmd submodule is located
32+ const WASMD_DIR: &str = "../../dependencies/wasmd/";
2833
2934/// A temporary directory for proto building
3035const TMP_BUILD_DIR: &str = "/tmp/tmp-protobuf/";
@@ -34,6 +39,7 @@ pub fn generate() {
3439 if args.iter().any(|arg| arg == "--update-deps") {
3540 git::update_submodule(COSMOS_SDK_DIR, COSMOS_SDK_REV);
3641 git::update_submodule(OSMOSIS_DIR, OSMOSIS_REV);
42+ git::update_submodule(WASMD_DIR, WASMD_REV);
3743 }
3844
3945 let tmp_build_dir: PathBuf = TMP_BUILD_DIR.parse().unwrap();
@@ -45,6 +51,12 @@ pub fn generate() {
4551 project_dir: OSMOSIS_DIR.to_string(),
4652 include_mods: vec![],
4753 };
54+ let wasmd_project = CosmosProject {
55+ name: "wasmd".to_string(),
56+ version: WASMD_REV.to_string(),
57+ project_dir: WASMD_DIR.to_string(),
58+ include_mods: vec![],
59+ };
4860 let cosmos_project = CosmosProject {
4961 name: "cosmos".to_string(),
5062 version: COSMOS_SDK_REV.to_string(),
@@ -64,7 +76,7 @@ pub fn generate() {
6476 out_dir,
6577 tmp_build_dir,
6678 osmosis_project,
67- vec![cosmos_project],
79+ vec![cosmos_project, wasmd_project ],
6880 );
6981
7082 osmosis_code_generator.generate();
0 commit comments