Skip to content

Commit

Permalink
feat: Generate types for cosmwasm
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo-sturdy committed Apr 5, 2023
1 parent 765f391 commit 7616cb6
Show file tree
Hide file tree
Showing 9 changed files with 2,108 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
[submodule "dependencies/osmosis"]
path = dependencies/osmosis
url = https://github.com/osmosis-labs/osmosis.git
branch = v13.x
branch = v13.x
[submodule "wasmd"]
path = dependencies/wasmd
url = https://github.com/CosmWasm/wasmd.git
1 change: 1 addition & 0 deletions dependencies/wasmd
Submodule wasmd added at a347ac
4 changes: 2 additions & 2 deletions packages/osmosis-std/src/types/cosmos/base/query/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use osmosis_std_derive::CosmwasmExt;
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageRequestPageRequest")]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageRequestPageRequestPageRequest")]
pub struct PageRequest {
/// key is a value returned in PageResponse.next_key to begin
/// querying the next page most efficiently. Only one of offset or key
Expand Down Expand Up @@ -71,7 +71,7 @@ pub struct PageRequest {
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageResponsePageResponse")]
#[proto_message(type_url = "/cosmos.base.query.v1beta1.PageResponsePageResponsePageResponse")]
pub struct PageResponse {
/// next_key is the key to be passed to PageRequest.key to
/// query the next page most efficiently
Expand Down
8 changes: 4 additions & 4 deletions packages/osmosis-std/src/types/cosmos/base/v1beta1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use osmosis_std_derive::CosmwasmExt;
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/cosmos.base.v1beta1.CoinCoin")]
#[proto_message(type_url = "/cosmos.base.v1beta1.CoinCoinCoin")]
pub struct Coin {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
Expand All @@ -36,7 +36,7 @@ pub struct Coin {
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecCoinDecCoin")]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecCoinDecCoinDecCoin")]
pub struct DecCoin {
#[prost(string, tag = "1")]
pub denom: ::prost::alloc::string::String,
Expand All @@ -55,7 +55,7 @@ pub struct DecCoin {
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/cosmos.base.v1beta1.IntProtoIntProto")]
#[proto_message(type_url = "/cosmos.base.v1beta1.IntProtoIntProtoIntProto")]
pub struct IntProto {
#[prost(string, tag = "1")]
pub int: ::prost::alloc::string::String,
Expand All @@ -72,7 +72,7 @@ pub struct IntProto {
::schemars::JsonSchema,
CosmwasmExt,
)]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecProtoDecProto")]
#[proto_message(type_url = "/cosmos.base.v1beta1.DecProtoDecProtoDecProto")]
pub struct DecProto {
#[prost(string, tag = "1")]
pub dec: ::prost::alloc::string::String,
Expand Down
1 change: 1 addition & 0 deletions packages/osmosis-std/src/types/cosmwasm/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod wasm;
1 change: 1 addition & 0 deletions packages/osmosis-std/src/types/cosmwasm/wasm/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod v1;
Loading

0 comments on commit 7616cb6

Please sign in to comment.