Skip to content

Commit

Permalink
Add basic cosmwasm support (#96)
Browse files Browse the repository at this point in the history
This pull request introduces basic support for wasmd.

It includes compilation of the protobuf files and conversion of Msg types
into something that can be more easily put into Tx Body.
  • Loading branch information
jstuczyn authored Jul 18, 2021
1 parent 6a68efc commit 4299b75
Show file tree
Hide file tree
Showing 13 changed files with 1,379 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "cosmos-sdk"]
path = cosmos-sdk-go
url = https://github.com/cosmos/cosmos-sdk.git
[submodule "wasmd"]
path = wasmd
url = https://github.com/CosmWasm/wasmd.git
1 change: 1 addition & 0 deletions cosmos-sdk-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ version = "0.20"
[features]
default = ["grpc"]
grpc = ["tonic"]
cosmwasm = []

[package.metadata.docs.rs]
all-features = true
Expand Down
11 changes: 11 additions & 0 deletions cosmos-sdk-proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,17 @@ pub mod cosmos {
}
}

#[cfg(feature = "cosmwasm")]
/// CosmWasm protobuf definitions.
pub mod cosmwasm {
/// Messages and services handling CosmWasm.
pub mod wasm {
pub mod v1beta1 {
include!("prost/cosmwasm.wasm.v1beta1.rs");
}
}
}

/// IBC protobuf definitions.
pub mod ibc {
/// IBC applications.
Expand Down
1 change: 1 addition & 0 deletions cosmos-sdk-proto/src/prost/WASMD_COMMIT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.17.0
Loading

0 comments on commit 4299b75

Please sign in to comment.