mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 13:26:23 +00:00
closes: #8039 This pull request updates the new ABCI++ protos to use `enum`s in place of `bool`s. `enums` may be preferred over `bool` because an `enum` can be udpated to include new statuses in the future, whereas a `bool` cannot and is fixed as just `true` or `false` over the whole lifecycle of the API.
30 lines
1.0 KiB
Bash
Executable File
30 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This file was added during development of ABCI++. This file is a script to allow
|
|
# the intermediate proto files to be built while active development proceeds
|
|
# on ABCI++.
|
|
# This file should be removed when work on ABCI++ is complete.
|
|
# For more information, see https://github.com/tendermint/tendermint/issues/8066.
|
|
set -euo pipefail
|
|
|
|
cp ./proto/tendermint/abci/types.proto.intermediate ./proto/tendermint/abci/types.proto
|
|
cp ./proto/tendermint/types/types.proto.intermediate ./proto/tendermint/types/types.proto
|
|
|
|
MODNAME="$(go list -m)"
|
|
find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/types.proto" \
|
|
-exec sh ./scripts/protopackage.sh {} "$MODNAME" ';'
|
|
|
|
sh ./scripts/protopackage.sh ./proto/tendermint/abci/types.proto $MODNAME "abci/types"
|
|
|
|
make proto-gen
|
|
|
|
echo "proto files have been compiled"
|
|
|
|
echo "checking out copied files"
|
|
|
|
find proto/tendermint/ -name '*.proto' -not -path "*.intermediate"\
|
|
| xargs -I {} git checkout {}
|
|
|
|
find proto/tendermint/ -name '*.pb.go' \
|
|
| xargs -I {} git checkout {}
|