feat: Add proto annotations for Amino JSON (#13501)
* add legacy_amino_name * make-proto-gen * remove useless omitempty * add annotations * Add proto annotations * Add more annotations * update cosmos-proto * Add message scalar? * Add comments * Fix comment * lint proto files * proto-gen * go mod tidy * Add multisig encoding * Add field name * Format proto * proto-gen * Update proto/cosmos/msg/v1/msg.proto Co-authored-by: Aaron Craelius <aaron@regen.network> * Add dont_omitempty whenever we have nullable=false * proto-gen * Remove problematic annotations * put legacy_amino in subpackage * proto-gen * Fixes * legacy_amino.v1 * add non-working proto * Generate in separate package * Remove `cosmos.msg` prefix * make proto-gen * remove v1 too * make proto-format * Add field option * format * proto-gen * Use underscores * update legacy_amino -> amino * update to `key_field` * make proto-format * make proto-gen Co-authored-by: Aaron Craelius <aaron@regen.network>
This commit is contained in:
@@ -8,7 +8,7 @@ set -e
|
||||
|
||||
echo "Generating gogo proto code"
|
||||
cd proto
|
||||
proto_dirs=$(find ./cosmos -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
|
||||
proto_dirs=$(find ./cosmos ./amino -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
|
||||
for dir in $proto_dirs; do
|
||||
for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do
|
||||
# this regex checks if a proto file has its go_package set to cosmossdk.io/api/...
|
||||
|
||||
Reference in New Issue
Block a user