From e5800f8551ede316c4e663a8aa314bd6c71f1cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Sch=C3=B6ll?= Date: Tue, 12 Dec 2023 16:38:16 +0100 Subject: [PATCH] remove unused proto dependency on generate (#106) --- types/pb/generate.sh | 6 ++---- types/pb/last_generate.txt | 5 ++--- types/pb/sf/antelope/type/v1/type.pb.go | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/types/pb/generate.sh b/types/pb/generate.sh index d2f3ff5..9ae48eb 100755 --- a/types/pb/generate.sh +++ b/types/pb/generate.sh @@ -16,7 +16,6 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../.. && pwd )" # Protobuf definitions -PROTO=${1:-"$ROOT/../proto"} PROTO_ANTELOPE=${2:-"$ROOT/proto"} function main() { @@ -28,7 +27,6 @@ function main() { generate "sf/antelope/type/v1/type.proto" echo "generate.sh - `date` - `whoami`" > ./last_generate.txt - echo "streamingfast/proto revision: `GIT_DIR=$PROTO/.git git rev-parse HEAD`" >> ./last_generate.txt echo "streamingfast/firehose-antelope/proto revision: `GIT_DIR=$ROOT/.git git log -n 1 --pretty=format:%h -- proto`" >> ./last_generate.txt } @@ -42,7 +40,7 @@ function generate() { fi for file in "$@"; do - protoc -I$PROTO -I$PROTO_ANTELOPE \ + protoc -I$PROTO_ANTELOPE \ --go_out=. --go_opt=paths=source_relative \ --go-grpc_out=. --go-grpc_opt=paths=source_relative,require_unimplemented_servers=false \ $base$file @@ -72,4 +70,4 @@ function checks() { fi } -main "$@" \ No newline at end of file +main "$@" diff --git a/types/pb/last_generate.txt b/types/pb/last_generate.txt index 7fd59ee..118c401 100644 --- a/types/pb/last_generate.txt +++ b/types/pb/last_generate.txt @@ -1,3 +1,2 @@ -generate.sh - Tue Jan 31 14:24:11 CET 2023 - work -streamingfast/proto revision: 086dc4643579c0102b2a198bc40b89854dc50111 -streamingfast/firehose-antelope/proto revision: c023c3e +generate.sh - Tue Dec 12 16:34:49 CET 2023 - work +streamingfast/firehose-antelope/proto revision: 9565470 diff --git a/types/pb/sf/antelope/type/v1/type.pb.go b/types/pb/sf/antelope/type/v1/type.pb.go index 98bb421..59311c1 100644 --- a/types/pb/sf/antelope/type/v1/type.pb.go +++ b/types/pb/sf/antelope/type/v1/type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v3.21.12 +// protoc v4.25.1 // source: sf/antelope/type/v1/type.proto package pbantelope @@ -901,7 +901,7 @@ type Block struct { // Number is the block's height at which this block was mined. Number uint32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` - // Header contain's the block's header information like its parent hash, the merkel root hash + // Header contains the block's header information like its parent hash, the merkel root hash // and all other information the form a block. Header *BlockHeader `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"` ProducerSignature string `protobuf:"bytes,5,opt,name=producer_signature,json=producerSignature,proto3" json:"producer_signature,omitempty"`