Skip to content

Commit

Permalink
fix: Ensure proto defaults in JSON (#133)
Browse files Browse the repository at this point in the history
* fix: Ensure proto defaults in JSON

* chore: add generated .ts
  • Loading branch information
clockworkgr authored Jun 26, 2024
1 parent bf6dec7 commit 02313b6
Show file tree
Hide file tree
Showing 4 changed files with 543 additions and 786 deletions.
2 changes: 1 addition & 1 deletion scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ for x in ${FILES}; do
--plugin="./node_modules/.bin/protoc-gen-ts_proto" \
--ts_proto_out="${OUT_DIR}" \
--proto_path="${PROTO_PATH}" \
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages,useDate=false,snakeToCamel=false" \
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages,useDate=false,snakeToCamel=false,emitDefaultValues=json-methods" \
${x}
done
24 changes: 16 additions & 8 deletions src/proto/gno/bank.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 39 additions & 31 deletions src/proto/gno/vm.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 02313b6

Please sign in to comment.