github.com/supragya/TendermintConnector@v0.0.0-20210619045051-113e32b84fb1/chains/cosmos/protocgen.sh (about) 1 #!/usr/bin/env bash 2 3 set -eo pipefail 4 5 proto_dirs=$(find chains/cosmos/proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) 6 for dir in $proto_dirs; do 7 buf protoc \ 8 -I "chains/cosmos/proto" \ 9 -I "chains/cosmos/third_party/proto" \ 10 --gogofaster_out=\ 11 Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,\ 12 Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration,\ 13 plugins=grpc,paths=source_relative:. \ 14 $(find "${dir}" -maxdepth 1 -name '*.proto') 15 done 16 17 cp -r ./tendermint/* ./chains/cosmos/proto/* 18 rm -rf tendermint