Skip to content

Commit

Permalink
fix: move proto file to proto/cosmwasm/wasm/v1beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
shiki-tak committed Jul 20, 2021
1 parent 51ccedc commit 44f7140
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ syntax = "proto3";
package cosmwasm.wasm.v1beta1;

import "gogoproto/gogo.proto";
import "types.proto";
import "tx.proto";
import "cosmwasm/wasm/v1beta1/types.proto";
import "cosmwasm/wasm/v1beta1/tx.proto";

option go_package = "github.com/line/lfb-sdk/x/wasm/types";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cosmwasm.wasm.v1beta1;

import "gogoproto/gogo.proto";
import "lfb/base/v1beta1/coin.proto";
import "types.proto";
import "cosmwasm/wasm/v1beta1/types.proto";

option go_package = "github.com/line/lfb-sdk/x/wasm/types";
option (gogoproto.goproto_stringer_all) = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";
package cosmwasm.wasm.v1beta1;

import "gogoproto/gogo.proto";
import "types.proto";
import "cosmwasm/wasm/v1beta1/types.proto";
import "google/api/annotations.proto";
import "lfb/base/query/v1beta1/pagination.proto";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cosmwasm.wasm.v1beta1;

import "lfb/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";
import "types.proto";
import "cosmwasm/wasm/v1beta1/types.proto";

option go_package = "github.com/line/lfb-sdk/x/wasm/types";
option (gogoproto.goproto_getters_all) = false;
Expand All @@ -14,6 +14,7 @@ service Msg {
rpc StoreCode(MsgStoreCode) returns (MsgStoreCodeResponse);
// Instantiate creates a new smart contract instance for the given code id.
rpc InstantiateContract(MsgInstantiateContract) returns (MsgInstantiateContractResponse);
// StoreCodeAndInstantiatecontract upload code and instantiate a contract using it.
rpc StoreCodeAndInstantiateContract(MsgStoreCodeAndInstantiateContract)
returns (MsgStoreCodeAndInstantiateContractResponse);
// Execute submits the given message data to a smart contract
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ protoc_gen_gocosmos() {

protoc_gen_gocosmos

proto_dirs=$(find ./proto ./x/wasm/types -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
for dir in $proto_dirs; do
buf protoc \
-I "proto" \
-I "third_party/proto" \
-I "x/wasm/types" \
--gocosmos_out=plugins=interfacetype+grpc,\
Mgoogle/protobuf/any.proto=github.com/line/lfb-sdk/codec/types:. \
--grpc-gateway_out=logtostderr=true:. \
Expand Down

0 comments on commit 44f7140

Please sign in to comment.