diff --git a/examples/golang/README.md b/examples/golang/README.md index 736a5f08..ebd6fb80 100644 --- a/examples/golang/README.md +++ b/examples/golang/README.md @@ -24,7 +24,22 @@ go run ./cmd/grpc-client/ -endpoint http://api.rpcpool.com:80 -x-token - ## Updating protofiles -Make sure you have the Protocol Buffer compiler (protoc) and its plugins installed for Go: +Make sure you have protoc installed: +```bash +$ protoc --version +libprotoc 28.3 +``` + +And the golang plugins: + +```bash +$ go list -f '{{.Path}} {{.Version}}' -m google.golang.org/protobuf +google.golang.org/protobuf v1.35.1 +$ go list -f '{{.Path}} {{.Version}}' -m google.golang.org/grpc +google.golang.org/grpc v1.67.1 +``` + +If you don't have the protobuf go plugins installed, you can install them with: ``` $ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.35.1 diff --git a/examples/golang/go.mod b/examples/golang/go.mod index 2795fd11..aec4eac2 100644 --- a/examples/golang/go.mod +++ b/examples/golang/go.mod @@ -3,13 +3,13 @@ module github.com/rpcpool/yellowstone-grpc/examples/golang go 1.21 require ( - golang.org/x/net v0.28.0 // indirect - google.golang.org/genproto v0.0.0-20230202175211-008b39050e57 // indirect google.golang.org/grpc v1.67.1 google.golang.org/protobuf v1.35.1 ) require ( + golang.org/x/net v0.28.0 // indirect golang.org/x/sys v0.24.0 // indirect golang.org/x/text v0.17.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect ) diff --git a/examples/golang/go.sum b/examples/golang/go.sum index 47d8ffc9..a8432dc8 100644 --- a/examples/golang/go.sum +++ b/examples/golang/go.sum @@ -6,8 +6,8 @@ golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= -google.golang.org/genproto v0.0.0-20230202175211-008b39050e57 h1:vArvWooPH749rNHpBGgVl+U9B9dATjiEhJzcWGlovNs= -google.golang.org/genproto v0.0.0-20230202175211-008b39050e57/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= diff --git a/examples/golang/proto/geyser.pb.go b/examples/golang/proto/geyser.pb.go index df88e476..0c52b4a4 100644 --- a/examples/golang/proto/geyser.pb.go +++ b/examples/golang/proto/geyser.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc v5.28.3 // source: geyser.proto package proto diff --git a/examples/golang/proto/geyser_grpc.pb.go b/examples/golang/proto/geyser_grpc.pb.go index a7b2516f..50be7e24 100644 --- a/examples/golang/proto/geyser_grpc.pb.go +++ b/examples/golang/proto/geyser_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.28.2 +// - protoc v5.28.3 // source: geyser.proto package proto diff --git a/examples/golang/proto/solana-storage.pb.go b/examples/golang/proto/solana-storage.pb.go index c8ca308f..6d3fb797 100644 --- a/examples/golang/proto/solana-storage.pb.go +++ b/examples/golang/proto/solana-storage.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc v5.28.3 // source: solana-storage.proto package proto