-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cosmos_proto): add annotation to denote version (#133)
- Loading branch information
1 parent
1e5446b
commit 0748a2a
Showing
13 changed files
with
1,332 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: v1 | ||
directories: | ||
- testpb | ||
- proto |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
syntax="proto3"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-proto/testpb"; | ||
|
||
message ImportedMessage { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax="proto3"; | ||
|
||
import "cosmos_proto/cosmos.proto"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-proto/testpb"; | ||
|
||
// QueryService defines the gRPC querier service. | ||
service QueryService { | ||
// CounterQuery queries a counter. | ||
rpc CounterQuery(CounterQueryRequest) returns (CounterQueryResponse) { | ||
option (cosmos_proto.method_added_in) = "github.com/cosmos/cosmos-proto v1.0.1"; | ||
} | ||
} | ||
|
||
// CounterQueryRequest defines the request type used to query the counter. | ||
message CounterQueryRequest {} | ||
|
||
// CounterQueryResponse defines the response type for querying the counter. | ||
message CounterQueryResponse { | ||
option (cosmos_proto.message_added_in) = "github.com/cosmos/cosmos-proto v1.0.1"; | ||
|
||
uint64 counter = 1 [(cosmos_proto.field_added_in) = "github.com/cosmos/cosmos-proto v1.0.1"]; | ||
} |
Oops, something went wrong.