-
Notifications
You must be signed in to change notification settings - Fork 160
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently when I do make proto-all
I get:
$ make proto-all
Formatting Protobuf files
/usr/bin/docker run --rm -v /home/elizabeth/go/src/github.com/cosmos/ethermint:/workspace \
--workdir /workspace tendermintdev/docker-build-proto \
find ./ -not -path "./third_party/*" -name *.proto -exec clang-format -i {} \;
Unable to find image 'tendermintdev/docker-build-proto:latest' locally
latest: Pulling from tendermintdev/docker-build-proto
7597eaba0060: Pull complete
c7720d71f785: Pull complete
2c258b1fe3ea: Pull complete
2d8f0dc37fcf: Pull complete
52f1f95728be: Pull complete
Digest: sha256:4e37e90ed47b62ccf8268fcf9d6948179aad98da3a4feaf7fe42696861f26070
Status: Downloaded newer image for tendermintdev/docker-build-proto:latest
Unable to find image 'bufbuild/buf:latest' locally
latest: Pulling from bufbuild/buf
df20fa9351a1: Already exists
90930e25fd19: Pull complete
97bea53d2d20: Pull complete
Digest: sha256:acfe0dca8ffaad3723f1936de3d8b04202eaae3e4f67f7d2449ebc02ccca9b2f
Status: Downloaded newer image for bufbuild/buf:latest
Command "lint" is deprecated, "buf check lint" has been moved to "buf lint", use "buf lint" instead.
We recommend migrating, however this command continues to work.
See https://docs.buf.build/faq for more details.
WARN File "buf.yaml" has no version set. Please add "version: v1beta1". See https://docs.buf.build/faq for more details.
{"path":"proto/ethermint/crypto/v1alpha1/ethsecp256k1/keys.proto","start_line":4,"start_column":8,"end_line":4,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
{"path":"proto/ethermint/evm/v1alpha1/evm.proto","start_line":4,"start_column":8,"end_line":4,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
{"path":"proto/ethermint/evm/v1alpha1/genesis.proto","start_line":4,"start_column":8,"end_line":4,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
{"path":"proto/ethermint/evm/v1alpha1/query.proto","start_line":4,"start_column":8,"end_line":4,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
{"path":"proto/ethermint/evm/v1alpha1/tx.proto","start_line":4,"start_column":8,"end_line":4,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
{"path":"proto/ethermint/types/v1alpha1/account.proto","start_line":4,"start_column":8,"end_line":4,"end_column":8,"type":"COMPILE","message":"cosmos/auth/v1beta1/auth.proto: does not exist"}
{"path":"third_party/proto/tendermint/abci/types.proto","start_line":8,"start_column":8,"end_line":8,"end_column":8,"type":"COMPILE","message":"tendermint/crypto/proof.proto: does not exist"}
{"path":"third_party/proto/tendermint/crypto/keys.proto","start_line":6,"start_column":8,"end_line":6,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
{"path":"third_party/proto/tendermint/crypto/proof.proto","start_line":6,"start_column":8,"end_line":6,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
{"path":"third_party/proto/tendermint/types/types.proto","start_line":6,"start_column":8,"end_line":6,"end_column":8,"type":"COMPILE","message":"gogoproto/gogo.proto: does not exist"}
Makefile:367: recipe for target 'proto-lint' failed
make: *** [proto-lint] Error 1
is this expected?
I am also getting this:
|
for
for
|
the |
@araskachoi @noot can you give this another review? |
extend google.protobuf.MessageOptions { | ||
string interface_type = 93001; | ||
|
||
string implements_interface = 93002; | ||
} | ||
|
||
extend google.protobuf.FieldOptions { | ||
string accepts_interface = 93001; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did these come from somewhere? where are they defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
third party dependencies for the other protobuf files
# combine swagger files | ||
# uses nodejs package `swagger-combine`. | ||
# all the individual swagger files need to be configured in `config.json` for merging | ||
swagger-combine ./client/docs/config.json -o ./client/docs/swagger-ui/swagger.yaml -f yaml --continueOnConflictingPaths true --includeDefinitions true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this file for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generates a swagger file like this one https://cosmos.network/rpc/master
// Tendermint's PubKey interface. It represents the 33-byte compressed public | ||
// key format. | ||
message PubKey { | ||
option (gogoproto.goproto_stringer) = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this option do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it allows you to create your custom String() string
function instead of the default one. This is to add the ethereum address when printing the account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since the proto files are going to be compiled into go files with the defined types, are we going to end up using the types that are in the pb.go files, or the types that are currently defined in the codebase?
we will be using the ones defined defined on the |
… into protobuf-stargate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work!
This PR contains the protobuf messages for the evm module types, keys and account type. It also contains the required Makefile instructions to generate the golang types from the
.proto
files. Currently doesn't work because of the required dependencies from SDK v0.40 (i.e still needs the final wiring that will be completed with #546).