Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tx, SignDoc, etc. proto types from 6111 #6214

Merged
merged 19 commits into from
May 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";
aaronc marked this conversation as resolved.
Show resolved Hide resolved

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;
aaronc marked this conversation as resolved.
Show resolved Hide resolved
// 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