Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cosmos/cosmos-sdk into aaronc/x-g…
Browse files Browse the repository at this point in the history
…ov-proto-any
  • Loading branch information
aaronc committed May 14, 2020
2 parents 0ff09a4 + 49ae880 commit 7b632fa
Show file tree
Hide file tree
Showing 5 changed files with 3,299 additions and 1 deletion.
361 changes: 361 additions & 0 deletions crypto/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions crypto/types/types.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";
package cosmos_sdk.crypto.v1;

//import "third_party/proto/gogoproto/gogo.proto";

option go_package = "github.com/cosmos/cosmos-sdk/crypto/types";

// CompactBitArray is an implementation of a space efficient bit array.
// This is used to ensure that the encoded data takes up a minimal amount of
// space after proto encoding.
// This is not thread safe, and is not intended for concurrent usage.
message CompactBitArray {
// TODO: re-enable these when the actual implementation is added
// option (gogoproto.sizer) = false;
// option (gogoproto.goproto_stringer) = false;

uint32 extra_bits_stored = 1;
bytes elems = 2;
}
2 changes: 1 addition & 1 deletion scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ for dir in $proto_dirs; do
-I. \
--gocosmos_out=plugins=interfacetype,paths=source_relative,\
Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \
$(find "${dir}" -name '*.proto')
$(find "${dir}" -depth 1 -name '*.proto')
done
Loading

0 comments on commit 7b632fa

Please sign in to comment.