Skip to content

Commit

Permalink
Update proto builder
Browse files Browse the repository at this point in the history
  • Loading branch information
fbsobreira committed May 3, 2020
1 parent 5990d88 commit 8394fbe
Show file tree
Hide file tree
Showing 29 changed files with 17,860 additions and 6,419 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[submodule "protocol"]
path = protocol
[submodule "proto/tron"]
path = proto/tron
url = https://github.com/tronprotocol/protocol.git
branch = master
ignore = dirty
ignore = dirty
8 changes: 4 additions & 4 deletions gen-proto.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
protoc -I=./protocol -I/usr/lib -I./third_party/googleapis --go_out=plugins=grpc,paths=source_relative:. ./protocol/core/*.proto ./protocol/core/contract/*.proto
protoc -I=./protocol -I/usr/lib -I./third_party/googleapis --go_out=plugins=grpc,paths=source_relative:. ./protocol/api/*.proto

protoc -I=./protocol -I./protocol_util -I/usr/lib -I./third_party/googleapis --go_out=plugins=grpc,paths=source_relative:./protocol_util ./protocol_util/*.proto
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
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
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ require (
golang.org/x/crypto v0.0.0-20200429183012-4b2356b1ed79
google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84
google.golang.org/grpc v1.29.1
google.golang.org/protobuf v1.21.0
)
Loading

0 comments on commit 8394fbe

Please sign in to comment.