protobuf & gRPC for Cosmos based chains
convert .proto files for other languages(java, swift, etc)
- cosmos default
- iris native & mode
- akash
- …
How to generate target files for each languages
install protoc
http://google.github.io/proto-lens/installing-protoc.html
simple convert for Java
protoc --java_out=output_java \
--plugin=protoc-gen-grpc-java \
--grpc-java_out=output_java \
-Iproto/ \
$(find proto/* -iname "*.proto")
simple convert for Swift
protoc --swift_out=output_swift \
--swift_opt=FileNaming=PathToUnderscores \
--plugin=protoc-gen-grpc-swift \
--grpc-swift_out=output_swift \
--grpc-swift_opt=FileNaming=PathToUnderscores \
-Iproto/ \
$(find proto/* -iname "*.proto")