Skip to content

Commit

Permalink
update tron protocol (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbsobreira authored Feb 17, 2023
1 parent 3e50b8e commit ed66bde
Show file tree
Hide file tree
Showing 34 changed files with 26,379 additions and 21,293 deletions.
9 changes: 6 additions & 3 deletions gen-proto.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
protoc -I=./proto/tron -I/usr/lib -I./proto/googleapis --go_out=plugins=grpc,paths=source_relative:./pkg/proto ./proto/tron/core/*.proto ./proto/tron/core/contract/*.proto
protoc -I=./proto/tron -I/usr/lib -I./proto/googleapis --go_out=plugins=grpc,paths=source_relative:./pkg/proto ./proto/tron/api/*.proto

INCLUDES="-I=./proto/tron -I/usr/lib -I./proto/googleapis"
FLAGS="--go_out=./pkg/proto --go_opt paths=source_relative --go-grpc_out=./pkg/proto --go-grpc_opt=paths=source_relative"

protoc ${INCLUDES} ${FLAGS} ./proto/tron/core/*.proto ./proto/tron/core/contract/*.proto ./proto/tron/api/*.proto
mkdir -p ./pkg/proto/util
protoc -I=./proto/tron -I./proto/util -I/usr/lib -I./proto/googleapis --go_out=plugins=grpc,paths=source_relative:./pkg/proto/util ./proto/util/*.proto
protoc ${INCLUDES} -I=./proto/util --go_out=./pkg/proto/util --go_opt paths=source_relative ./proto/util/*.proto
Loading

0 comments on commit ed66bde

Please sign in to comment.