Add gogoproto marshallers to proto files in order to make use of

gogoproto.nullable compatible with GRPC downstream of ABCI and libs
protbuf types
This commit is contained in:
Silas Davis
2018-07-17 11:51:38 +01:00
parent 71859f8f3b
commit 398f3779cc
12 changed files with 8724 additions and 249 deletions
+7474 -158
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -4,12 +4,17 @@ package types;
// For more information on gogo.proto, see:
// https://github.com/gogo/protobuf/blob/master/extensions.md
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/tendermint/tmlibs/common/types.proto";
import "github.com/tendermint/tendermint/libs/common/types.proto";
// This file is copied from http://github.com/tendermint/abci
// NOTE: When using custom types, mind the warnings.
// https://github.com/gogo/protobuf/blob/master/custom_types.md#warnings-and-issues
option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all) = true;
option (gogoproto.sizer_all) = true;
option (gogoproto.goproto_registration) = true;
//----------------------------------------
// Request types