2022-10-06 09:01:56 +00:00
|
|
|
all:
|
|
|
|
protoc --proto_path=proto --go_out=lightrpc --go_opt=paths=source_relative proto/*.proto --go-grpc_out=lightrpc
|
|
|
|
|
|
|
|
protoc-go-inject-tag -input="lightrpc/*.pb.go"
|
|
|
|
sed -i 's/sszsize/ssz-size/g' lightrpc/*.pb.go
|
|
|
|
sed -i 's/sszmax/ssz-max/g' lightrpc/*.pb.go
|
2022-10-09 11:41:15 +00:00
|
|
|
go run github.com/ferranbt/fastssz/sszgen -path lightrpc/metadata.pb.go -exclude-objs {{range $key, $val := .Aliases}}{{$key}},{{end}}Ignore
|
|
|
|
go run github.com/ferranbt/fastssz/sszgen -path lightrpc/beacon_block.pb.go -exclude-objs {{range $key, $val := .Aliases}}{{$key}},{{end}}Ignore
|
2022-10-06 09:01:56 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm lightrpc/*.pb.go
|