diff --git a/.github/workflows/check-generated.yml b/.github/workflows/check-generated.yml index ef1ba49dfe..6399d97576 100644 --- a/.github/workflows/check-generated.yml +++ b/.github/workflows/check-generated.yml @@ -75,7 +75,7 @@ jobs: export GOBIN="${tools}/bin" go install github.com/bufbuild/buf/cmd/buf - go install github.com/gogo/protobuf/protoc-gen-gogofaster@latest + go install github.com/cosmos/gogoproto/protoc-gen-gogofaster@latest make proto-gen diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bfa56bea64..4744088a58 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -106,7 +106,7 @@ specify exactly the dependency you want to update, eg. ## Protobuf We use [Protocol Buffers](https://developers.google.com/protocol-buffers) along -with [`gogoproto`](https://github.com/gogo/protobuf) to generate code for use +with [`gogoproto`](https://github.com/cosmos/gogoproto) to generate code for use across Tendermint Core. To generate proto stubs, lint, and check protos for breaking changes, you will @@ -283,8 +283,8 @@ cd test/e2e && \ ### Model-based tests (ADVANCED) -*NOTE: if you're just submitting your first PR, you won't need to touch these -most probably (99.9%)*. +_NOTE: if you're just submitting your first PR, you won't need to touch these +most probably (99.9%)_. For components, that have been [formally verified](https://en.wikipedia.org/wiki/Formal_verification) using @@ -304,8 +304,8 @@ Run: `cd light/mbt && go test` ### Fuzz tests (ADVANCED) -*NOTE: if you're just submitting your first PR, you won't need to touch these -most probably (99.9%)*. +_NOTE: if you're just submitting your first PR, you won't need to touch these +most probably (99.9%)_. [Fuzz tests](https://en.wikipedia.org/wiki/Fuzzing) can be found inside the `./test/fuzz` directory. See [README.md](./test/fuzz/README.md) for details. @@ -314,8 +314,8 @@ Run: `cd test/fuzz && make fuzz-{PACKAGE-COMPONENT}` ### Jepsen tests (ADVANCED) -*NOTE: if you're just submitting your first PR, you won't need to touch these -most probably (99.9%)*. +_NOTE: if you're just submitting your first PR, you won't need to touch these +most probably (99.9%)_. [Jepsen](http://jepsen.io/) tests are used to verify the [linearizability](https://jepsen.io/consistency/models/linearizable) property diff --git a/Makefile b/Makefile index bece30ccc5..10c3ab29e6 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ BUILD_IMAGE := ghcr.io/tendermint/docker-build-proto BASE_BRANCH ?= v0.8-dev DOCKER_PROTO := docker run -v $(shell pwd):/workspace --workdir /workspace $(BUILD_IMAGE) CGO_ENABLED ?= 1 -GOGOPROTO_PATH = $(shell go list -m -f '{{.Dir}}' github.com/gogo/protobuf) +GOGOPROTO_PATH = $(shell go list -m -f '{{.Dir}}' github.com/cosmos/gogoproto) MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) CURR_DIR := $(dir $(MAKEFILE_PATH)) @@ -114,7 +114,7 @@ proto: proto-format proto-lint proto-doc proto-gen check-proto-deps: ifeq (,$(shell which protoc-gen-gogofaster)) - $(error "gogofaster plugin for protoc is required. Run 'go install github.com/gogo/protobuf/protoc-gen-gogofaster@latest' to install") + $(error "gogofaster plugin for protoc is required. Run 'go install github.com/cosmos/gogoproto/protoc-gen-gogofaster@latest' to install") endif .PHONY: check-proto-deps diff --git a/abci/example/kvstore/config.go b/abci/example/kvstore/config.go index e064954350..abb050679d 100644 --- a/abci/example/kvstore/config.go +++ b/abci/example/kvstore/config.go @@ -8,7 +8,7 @@ import ( "sort" "strconv" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" abci "github.com/dashpay/tenderdash/abci/types" "github.com/dashpay/tenderdash/crypto" diff --git a/abci/example/kvstore/kvstore.go b/abci/example/kvstore/kvstore.go index bf952d5ab4..6c322ade1f 100644 --- a/abci/example/kvstore/kvstore.go +++ b/abci/example/kvstore/kvstore.go @@ -13,8 +13,8 @@ import ( sync "github.com/sasha-s/go-deadlock" dbm "github.com/cometbft/cometbft-db" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/dashd-go/btcjson" - "github.com/gogo/protobuf/proto" "github.com/dashpay/tenderdash/abci/example/code" abci "github.com/dashpay/tenderdash/abci/types" diff --git a/abci/types/messages.go b/abci/types/messages.go index 4a749fc83a..fed82db198 100644 --- a/abci/types/messages.go +++ b/abci/types/messages.go @@ -3,7 +3,7 @@ package types import ( "io" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/internal/libs/protoio" ) diff --git a/abci/types/messages_test.go b/abci/types/messages_test.go index 7e79f1d353..1f5ca58eb9 100644 --- a/abci/types/messages_test.go +++ b/abci/types/messages_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" tmproto "github.com/dashpay/tenderdash/proto/tendermint/types" diff --git a/abci/types/types.go b/abci/types/types.go index f9623c9709..1a5025e057 100644 --- a/abci/types/types.go +++ b/abci/types/types.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/gogo/protobuf/jsonpb" + "github.com/cosmos/gogoproto/jsonpb" "github.com/rs/zerolog" "github.com/dashpay/tenderdash/crypto" diff --git a/abci/types/types.pb.go b/abci/types/types.pb.go index f60329ec91..178d8b1c57 100644 --- a/abci/types/types.pb.go +++ b/abci/types/types.pb.go @@ -6,13 +6,14 @@ package types import ( context "context" fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/gogoproto/types" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" crypto "github.com/dashpay/tenderdash/proto/tendermint/crypto" types1 "github.com/dashpay/tenderdash/proto/tendermint/types" version "github.com/dashpay/tenderdash/proto/tendermint/version" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -4638,10 +4639,10 @@ type ABCIApplicationClient interface { } type aBCIApplicationClient struct { - cc *grpc.ClientConn + cc grpc1.ClientConn } -func NewABCIApplicationClient(cc *grpc.ClientConn) ABCIApplicationClient { +func NewABCIApplicationClient(cc grpc1.ClientConn) ABCIApplicationClient { return &aBCIApplicationClient{cc} } @@ -4850,7 +4851,7 @@ func (*UnimplementedABCIApplicationServer) FinalizeBlock(ctx context.Context, re return nil, status.Errorf(codes.Unimplemented, "method FinalizeBlock not implemented") } -func RegisterABCIApplicationServer(s *grpc.Server, srv ABCIApplicationServer) { +func RegisterABCIApplicationServer(s grpc1.Server, srv ABCIApplicationServer) { s.RegisterService(&_ABCIApplication_serviceDesc, srv) } @@ -5124,6 +5125,7 @@ func _ABCIApplication_FinalizeBlock_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } +var ABCIApplication_serviceDesc = _ABCIApplication_serviceDesc var _ABCIApplication_serviceDesc = grpc.ServiceDesc{ ServiceName: "tendermint.abci.ABCIApplication", HandlerType: (*ABCIApplicationServer)(nil), @@ -5716,7 +5718,7 @@ func (m *RequestInitChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - n18, err18 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + n18, err18 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time):]) if err18 != nil { return 0, err18 } @@ -6031,7 +6033,7 @@ func (m *RequestPrepareProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x3a } - n21, err21 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + n21, err21 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time):]) if err21 != nil { return 0, err21 } @@ -6160,7 +6162,7 @@ func (m *RequestProcessProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x42 } - n25, err25 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + n25, err25 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time):]) if err25 != nil { return 0, err25 } @@ -7003,7 +7005,7 @@ func (m *ResponseInitChain_GenesisTime) MarshalTo(dAtA []byte) (int, error) { func (m *ResponseInitChain_GenesisTime) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.GenesisTime != nil { - n49, err49 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.GenesisTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.GenesisTime):]) + n49, err49 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.GenesisTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.GenesisTime):]) if err49 != nil { return 0, err49 } @@ -8285,7 +8287,7 @@ func (m *Misbehavior) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x28 } - n62, err62 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + n62, err62 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time):]) if err62 != nil { return 0, err62 } @@ -8617,7 +8619,7 @@ func (m *RequestInitChain) Size() (n int) { } var l int _ = l - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time) n += 1 + l + sovTypes(uint64(l)) l = len(m.ChainId) if l > 0 { @@ -8775,7 +8777,7 @@ func (m *RequestPrepareProposal) Size() (n int) { if m.Height != 0 { n += 1 + sovTypes(uint64(m.Height)) } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time) n += 1 + l + sovTypes(uint64(l)) l = len(m.NextValidatorsHash) if l > 0 { @@ -8835,7 +8837,7 @@ func (m *RequestProcessProposal) Size() (n int) { if m.Round != 0 { n += 1 + sovTypes(uint64(m.Round)) } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time) n += 1 + l + sovTypes(uint64(l)) l = len(m.NextValidatorsHash) if l > 0 { @@ -9251,7 +9253,7 @@ func (m *ResponseInitChain_GenesisTime) Size() (n int) { var l int _ = l if m.GenesisTime != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.GenesisTime) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.GenesisTime) n += 1 + l + sovTypes(uint64(l)) } return n @@ -9818,7 +9820,7 @@ func (m *Misbehavior) Size() (n int) { if m.Height != 0 { n += 1 + sovTypes(uint64(m.Height)) } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time) n += 1 + l + sovTypes(uint64(l)) if m.TotalVotingPower != 0 { n += 1 + sovTypes(uint64(m.TotalVotingPower)) @@ -10772,7 +10774,7 @@ func (m *RequestInitChain) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11868,7 +11870,7 @@ func (m *RequestPrepareProposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12317,7 +12319,7 @@ func (m *RequestProcessProposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14354,7 +14356,7 @@ func (m *ResponseInitChain) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } v := new(time.Time) - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(v, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(v, dAtA[iNdEx:postIndex]); err != nil { return err } m.XGenesisTime = &ResponseInitChain_GenesisTime{v} @@ -18098,7 +18100,7 @@ func (m *Misbehavior) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/buf.gen.yaml b/buf.gen.yaml index d972360bbd..9b2523d8c6 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,9 +1,9 @@ -version: v1 +version: v2 plugins: - - name: gogofaster + - local: protoc-gen-gogofaster out: ./proto/ opt: - - Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types + - Mgoogle/protobuf/timestamp.proto=github.com/cosmos/gogoproto/types - Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration - plugins=grpc - paths=source_relative diff --git a/buf.lock b/buf.lock new file mode 100644 index 0000000000..dcd25a3205 --- /dev/null +++ b/buf.lock @@ -0,0 +1,6 @@ +# Generated by buf. DO NOT EDIT. +version: v2 +deps: + - name: buf.build/cosmos/gogo-proto + commit: 88ef6483f90f478fb938c37dde52ece3 + digest: b5:f0c69202c9bca9672dc72a9737ea9bc83744daaed2b3da77e3a95b0e53b86dee76b5a7405b993181d6c863fd64afaca0976a302f700d6c4912eb1692a1782c0a diff --git a/buf.work.yaml b/buf.work.yaml deleted file mode 100644 index 1878b341be..0000000000 --- a/buf.work.yaml +++ /dev/null @@ -1,3 +0,0 @@ -version: v1 -directories: - - proto diff --git a/buf.yaml b/buf.yaml new file mode 100644 index 0000000000..9d91c26fa6 --- /dev/null +++ b/buf.yaml @@ -0,0 +1,20 @@ +version: v2 +modules: + - path: proto +deps: + - buf.build/cosmos/gogo-proto +lint: + use: + - BASIC + - FILE_LOWER_SNAKE_CASE + - UNARY_RPC + except: + - FIELD_NOT_REQUIRED + - PACKAGE_NO_IMPORT_CYCLE + disallow_comment_ignores: true +breaking: + use: + - FILE + except: + - EXTENSION_NO_DELETE + - FIELD_SAME_DEFAULT diff --git a/cmd/abcidump/cmd/parse_test.go b/cmd/abcidump/cmd/parse_test.go index 9e5ee5e839..943805e6ad 100644 --- a/cmd/abcidump/cmd/parse_test.go +++ b/cmd/abcidump/cmd/parse_test.go @@ -7,7 +7,7 @@ import ( "fmt" "testing" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/cmd/abcidump/parser/parser.go b/cmd/abcidump/parser/parser.go index e29e8b15ed..7836e81730 100644 --- a/cmd/abcidump/parser/parser.go +++ b/cmd/abcidump/parser/parser.go @@ -4,8 +4,8 @@ import ( "bytes" "io" - "github.com/gogo/protobuf/jsonpb" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/jsonpb" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/abci/types" ) diff --git a/cmd/abcidump/parser/parser_test.go b/cmd/abcidump/parser/parser_test.go index 871a63ecb7..3773f8ae70 100644 --- a/cmd/abcidump/parser/parser_test.go +++ b/cmd/abcidump/parser/parser_test.go @@ -5,7 +5,7 @@ import ( "strconv" "testing" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" "github.com/dashpay/tenderdash/abci/types" diff --git a/cmd/abcidump/parser/types.go b/cmd/abcidump/parser/types.go index 15fb4447ff..2e8f5f5bfa 100644 --- a/cmd/abcidump/parser/types.go +++ b/cmd/abcidump/parser/types.go @@ -5,7 +5,7 @@ import ( "io" "reflect" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" protoAbci "github.com/dashpay/tenderdash/abci/types" protoP2p "github.com/dashpay/tenderdash/proto/tendermint/p2p" diff --git a/go.mod b/go.mod index cdf75b062a..f1da512b8e 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/fortytw2/leaktest v1.3.0 github.com/fxamacker/cbor/v2 v2.4.0 github.com/go-kit/kit v0.13.0 - github.com/gogo/protobuf v1.3.2 + github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.4 github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/golangci/golangci-lint v1.63.4 @@ -369,6 +369,7 @@ require ( require ( github.com/cometbft/cometbft-db v1.0.3 + github.com/cosmos/gogoproto v1.7.0 github.com/creachadair/tomledit v0.0.27 github.com/jonboulle/clockwork v0.5.0 github.com/oasisprotocol/oasis-core/go v0.2500.0 diff --git a/go.sum b/go.sum index 5fcb4645d0..97dbd6d660 100644 --- a/go.sum +++ b/go.sum @@ -201,6 +201,8 @@ github.com/containerd/ttrpc v1.2.7/go.mod h1:YCXHsb32f+Sq5/72xHubdiJRQY9inL4a4ZQ github.com/containerd/typeurl/v2 v2.2.3 h1:yNA/94zxWdvYACdYO8zofhrTVuQY73fFU1y++dYSw40= github.com/containerd/typeurl/v2 v2.2.3/go.mod h1:95ljDnPfD3bAbDJRugOiShd/DlAAsxGtUBhJxIn7SCk= github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro= +github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= diff --git a/internal/blocksync/p2p_msg_handler.go b/internal/blocksync/p2p_msg_handler.go index babb5966de..9ef926e385 100644 --- a/internal/blocksync/p2p_msg_handler.go +++ b/internal/blocksync/p2p_msg_handler.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/internal/p2p" "github.com/dashpay/tenderdash/internal/p2p/client" diff --git a/internal/blocksync/p2p_msg_handler_test.go b/internal/blocksync/p2p_msg_handler_test.go index 2e85d1c1e0..3ff7f3fbd7 100644 --- a/internal/blocksync/p2p_msg_handler_test.go +++ b/internal/blocksync/p2p_msg_handler_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/google/uuid" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" diff --git a/internal/consensus/gossip_msg_sender.go b/internal/consensus/gossip_msg_sender.go index 21a544a92a..db08373bfb 100644 --- a/internal/consensus/gossip_msg_sender.go +++ b/internal/consensus/gossip_msg_sender.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/internal/p2p" "github.com/dashpay/tenderdash/libs/log" diff --git a/internal/consensus/gossip_msg_sender_test.go b/internal/consensus/gossip_msg_sender_test.go index 15684d9520..25e68cc439 100644 --- a/internal/consensus/gossip_msg_sender_test.go +++ b/internal/consensus/gossip_msg_sender_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" "github.com/dashpay/tenderdash/internal/p2p" diff --git a/internal/consensus/gossiper.go b/internal/consensus/gossiper.go index fda600cced..e3269c1cd4 100644 --- a/internal/consensus/gossiper.go +++ b/internal/consensus/gossiper.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/hashicorp/go-multierror" cstypes "github.com/dashpay/tenderdash/internal/consensus/types" diff --git a/internal/consensus/gossiper_test.go b/internal/consensus/gossiper_test.go index fdfb30e440..3c2c4a7fd8 100644 --- a/internal/consensus/gossiper_test.go +++ b/internal/consensus/gossiper_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" "github.com/dashpay/tenderdash/crypto" diff --git a/internal/consensus/msgs.go b/internal/consensus/msgs.go index bde6a81353..929baed69e 100644 --- a/internal/consensus/msgs.go +++ b/internal/consensus/msgs.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" cstypes "github.com/dashpay/tenderdash/internal/consensus/types" "github.com/dashpay/tenderdash/internal/jsontypes" diff --git a/internal/consensus/msgs_test.go b/internal/consensus/msgs_test.go index 2dea8c9bed..de48a7057d 100644 --- a/internal/consensus/msgs_test.go +++ b/internal/consensus/msgs_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/consensus/reactor.go b/internal/consensus/reactor.go index 3b6e165290..de4492485d 100644 --- a/internal/consensus/reactor.go +++ b/internal/consensus/reactor.go @@ -9,7 +9,7 @@ import ( sync "github.com/sasha-s/go-deadlock" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" cstypes "github.com/dashpay/tenderdash/internal/consensus/types" "github.com/dashpay/tenderdash/internal/eventbus" diff --git a/internal/consensus/replay_test.go b/internal/consensus/replay_test.go index 4f12f9d8ca..4b9e9ef875 100644 --- a/internal/consensus/replay_test.go +++ b/internal/consensus/replay_test.go @@ -13,9 +13,9 @@ import ( "time" dbm "github.com/cometbft/cometbft-db" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/dashd-go/btcjson" "github.com/fortytw2/leaktest" - "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/consensus/state_add_prop_block.go b/internal/consensus/state_add_prop_block.go index 31fbffce00..4a13c744c2 100644 --- a/internal/consensus/state_add_prop_block.go +++ b/internal/consensus/state_add_prop_block.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" cstypes "github.com/dashpay/tenderdash/internal/consensus/types" tmstrings "github.com/dashpay/tenderdash/internal/libs/strings" diff --git a/internal/consensus/wal.go b/internal/consensus/wal.go index 1c3c249801..444c2155f6 100644 --- a/internal/consensus/wal.go +++ b/internal/consensus/wal.go @@ -10,7 +10,7 @@ import ( "path/filepath" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/internal/jsontypes" auto "github.com/dashpay/tenderdash/internal/libs/autofile" diff --git a/internal/evidence/pool.go b/internal/evidence/pool.go index 128fa85cbe..705a604d93 100644 --- a/internal/evidence/pool.go +++ b/internal/evidence/pool.go @@ -11,8 +11,8 @@ import ( sync "github.com/sasha-s/go-deadlock" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" - gogotypes "github.com/gogo/protobuf/types" + "github.com/cosmos/gogoproto/proto" + gogotypes "github.com/cosmos/gogoproto/types" "github.com/google/orderedcode" "github.com/dashpay/tenderdash/internal/eventbus" diff --git a/internal/libs/protoio/io.go b/internal/libs/protoio/io.go index b12a1d4822..cd5846b943 100644 --- a/internal/libs/protoio/io.go +++ b/internal/libs/protoio/io.go @@ -1,7 +1,7 @@ // Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. -// http://github.com/gogo/protobuf +// http://github.com/cosmos/gogoproto // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -33,7 +33,7 @@ package protoio import ( "io" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" ) type Writer interface { diff --git a/internal/libs/protoio/io_test.go b/internal/libs/protoio/io_test.go index 4c57005e47..0183a53722 100644 --- a/internal/libs/protoio/io_test.go +++ b/internal/libs/protoio/io_test.go @@ -1,7 +1,7 @@ // Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. -// http://github.com/gogo/protobuf +// http://github.com/cosmos/gogoproto // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -37,8 +37,8 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/test" + "github.com/cosmos/gogoproto/proto" + "github.com/cosmos/gogoproto/test" "github.com/stretchr/testify/require" "github.com/dashpay/tenderdash/internal/libs/protoio" diff --git a/internal/libs/protoio/reader.go b/internal/libs/protoio/reader.go index 66eed707cc..7a49f9e4d9 100644 --- a/internal/libs/protoio/reader.go +++ b/internal/libs/protoio/reader.go @@ -1,7 +1,7 @@ // Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. -// http://github.com/gogo/protobuf +// http://github.com/cosmos/gogoproto // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -36,7 +36,7 @@ import ( "fmt" "io" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" ) // NewDelimitedReader reads varint-delimited Protobuf messages from a reader. diff --git a/internal/libs/protoio/writer.go b/internal/libs/protoio/writer.go index c2305fa2e6..929830744b 100644 --- a/internal/libs/protoio/writer.go +++ b/internal/libs/protoio/writer.go @@ -1,7 +1,7 @@ // Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. -// http://github.com/gogo/protobuf +// http://github.com/cosmos/gogoproto // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -37,7 +37,7 @@ import ( "sync" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" ) // NewDelimitedWriter writes a varint-delimited Protobuf message to a writer. It is diff --git a/internal/libs/protoio/writer_test.go b/internal/libs/protoio/writer_test.go index d1a3a8cee0..3a3300b646 100644 --- a/internal/libs/protoio/writer_test.go +++ b/internal/libs/protoio/writer_test.go @@ -3,7 +3,7 @@ package protoio_test import ( "testing" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" "github.com/dashpay/tenderdash/crypto" diff --git a/internal/p2p/channel.go b/internal/p2p/channel.go index c77b4f39f9..3185bb5a9b 100644 --- a/internal/p2p/channel.go +++ b/internal/p2p/channel.go @@ -8,8 +8,8 @@ import ( "fmt" "reflect" - "github.com/gogo/protobuf/jsonpb" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/jsonpb" + "github.com/cosmos/gogoproto/proto" "github.com/rs/zerolog" sync "github.com/sasha-s/go-deadlock" "golang.org/x/time/rate" diff --git a/internal/p2p/channel_params.go b/internal/p2p/channel_params.go index d9580e2479..cf4cf48d84 100644 --- a/internal/p2p/channel_params.go +++ b/internal/p2p/channel_params.go @@ -3,7 +3,7 @@ package p2p import ( "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/config" "github.com/dashpay/tenderdash/proto/tendermint/blocksync" diff --git a/internal/p2p/client/client.go b/internal/p2p/client/client.go index ea6d4a08b8..82fabaa233 100644 --- a/internal/p2p/client/client.go +++ b/internal/p2p/client/client.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/google/uuid" "github.com/hashicorp/go-multierror" "github.com/jonboulle/clockwork" diff --git a/internal/p2p/client/client_test.go b/internal/p2p/client/client_test.go index 5fa0150b4b..43c4438dc0 100644 --- a/internal/p2p/client/client_test.go +++ b/internal/p2p/client/client_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/google/uuid" "github.com/jonboulle/clockwork" "github.com/stretchr/testify/mock" diff --git a/internal/p2p/conn/connection.go b/internal/p2p/conn/connection.go index 7ff317a1e9..ab0ca03b44 100644 --- a/internal/p2p/conn/connection.go +++ b/internal/p2p/conn/connection.go @@ -15,7 +15,7 @@ import ( sync "github.com/sasha-s/go-deadlock" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/internal/libs/flowrate" "github.com/dashpay/tenderdash/internal/libs/protoio" diff --git a/internal/p2p/conn/connection_test.go b/internal/p2p/conn/connection_test.go index 55c2460c65..c2e34046b6 100644 --- a/internal/p2p/conn/connection_test.go +++ b/internal/p2p/conn/connection_test.go @@ -10,8 +10,8 @@ import ( sync "github.com/sasha-s/go-deadlock" + "github.com/cosmos/gogoproto/proto" "github.com/fortytw2/leaktest" - "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/p2p/conn/evil_secret_connection_test.go b/internal/p2p/conn/evil_secret_connection_test.go index 08d426e9bd..967e84945e 100644 --- a/internal/p2p/conn/evil_secret_connection_test.go +++ b/internal/p2p/conn/evil_secret_connection_test.go @@ -6,7 +6,7 @@ import ( "io" "testing" - gogotypes "github.com/gogo/protobuf/types" + gogotypes "github.com/cosmos/gogoproto/types" "github.com/oasisprotocol/curve25519-voi/primitives/merlin" "github.com/stretchr/testify/assert" "golang.org/x/crypto/chacha20poly1305" diff --git a/internal/p2p/conn/secret_connection.go b/internal/p2p/conn/secret_connection.go index 222fc1b69a..d932ee6fc4 100644 --- a/internal/p2p/conn/secret_connection.go +++ b/internal/p2p/conn/secret_connection.go @@ -15,7 +15,7 @@ import ( sync "github.com/sasha-s/go-deadlock" - gogotypes "github.com/gogo/protobuf/types" + gogotypes "github.com/cosmos/gogoproto/types" pool "github.com/libp2p/go-buffer-pool" "github.com/oasisprotocol/curve25519-voi/primitives/merlin" "golang.org/x/crypto/chacha20poly1305" diff --git a/internal/p2p/p2ptest/require.go b/internal/p2p/p2ptest/require.go index 16804ae81a..323e2d36ea 100644 --- a/internal/p2p/p2ptest/require.go +++ b/internal/p2p/p2ptest/require.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/p2p/peermanager.go b/internal/p2p/peermanager.go index c692753bad..4ce0c3011d 100644 --- a/internal/p2p/peermanager.go +++ b/internal/p2p/peermanager.go @@ -11,8 +11,8 @@ import ( "time" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/jsonpb" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/jsonpb" + "github.com/cosmos/gogoproto/proto" "github.com/google/orderedcode" "github.com/rs/zerolog" sync "github.com/sasha-s/go-deadlock" diff --git a/internal/p2p/pqueue.go b/internal/p2p/pqueue.go index eea4ea2142..0a05150e99 100644 --- a/internal/p2p/pqueue.go +++ b/internal/p2p/pqueue.go @@ -9,7 +9,7 @@ import ( sync "github.com/sasha-s/go-deadlock" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/libs/log" ) diff --git a/internal/p2p/pqueue_test.go b/internal/p2p/pqueue_test.go index 7058b7e4cc..33a4f5911a 100644 --- a/internal/p2p/pqueue_test.go +++ b/internal/p2p/pqueue_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - gogotypes "github.com/gogo/protobuf/types" + gogotypes "github.com/cosmos/gogoproto/types" "github.com/dashpay/tenderdash/libs/log" ) diff --git a/internal/p2p/router.go b/internal/p2p/router.go index 4ac248e1d6..d626001fbf 100644 --- a/internal/p2p/router.go +++ b/internal/p2p/router.go @@ -12,7 +12,7 @@ import ( sync "github.com/sasha-s/go-deadlock" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/crypto" tmstrings "github.com/dashpay/tenderdash/internal/libs/strings" diff --git a/internal/p2p/router_test.go b/internal/p2p/router_test.go index d3a81cd54d..da7db4a65a 100644 --- a/internal/p2p/router_test.go +++ b/internal/p2p/router_test.go @@ -12,8 +12,8 @@ import ( "time" dbm "github.com/cometbft/cometbft-db" + gogotypes "github.com/cosmos/gogoproto/types" "github.com/fortytw2/leaktest" - gogotypes "github.com/gogo/protobuf/types" sync "github.com/sasha-s/go-deadlock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" diff --git a/internal/p2p/rqueue.go b/internal/p2p/rqueue.go index a46eefe50f..e55a144e75 100644 --- a/internal/p2p/rqueue.go +++ b/internal/p2p/rqueue.go @@ -6,7 +6,7 @@ import ( "sort" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" ) type simpleQueue struct { diff --git a/internal/state/indexer/sink/kv/kv_test.go b/internal/state/indexer/sink/kv/kv_test.go index bc85895021..ae1d598b48 100644 --- a/internal/state/indexer/sink/kv/kv_test.go +++ b/internal/state/indexer/sink/kv/kv_test.go @@ -7,7 +7,7 @@ import ( dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/state/indexer/sink/psql/psql.go b/internal/state/indexer/sink/psql/psql.go index dd1c46a206..162c5b4cfa 100644 --- a/internal/state/indexer/sink/psql/psql.go +++ b/internal/state/indexer/sink/psql/psql.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/gogo/protobuf/jsonpb" + "github.com/cosmos/gogoproto/jsonpb" abci "github.com/dashpay/tenderdash/abci/types" "github.com/dashpay/tenderdash/internal/pubsub/query" diff --git a/internal/state/indexer/sink/psql/psql_test.go b/internal/state/indexer/sink/psql/psql_test.go index 92549c2e77..001684c1f6 100644 --- a/internal/state/indexer/sink/psql/psql_test.go +++ b/internal/state/indexer/sink/psql/psql_test.go @@ -13,7 +13,7 @@ import ( "time" "github.com/adlio/schema" - "github.com/gogo/protobuf/jsonpb" + "github.com/cosmos/gogoproto/jsonpb" "github.com/ory/dockertest" "github.com/ory/dockertest/docker" "github.com/stretchr/testify/assert" diff --git a/internal/state/indexer/tx/kv/kv.go b/internal/state/indexer/tx/kv/kv.go index 411edf5dcc..0de45ade91 100644 --- a/internal/state/indexer/tx/kv/kv.go +++ b/internal/state/indexer/tx/kv/kv.go @@ -8,7 +8,7 @@ import ( "strings" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/google/orderedcode" abci "github.com/dashpay/tenderdash/abci/types" diff --git a/internal/state/indexer/tx/kv/kv_test.go b/internal/state/indexer/tx/kv/kv_test.go index 047f09e18d..b93e1fb54e 100644 --- a/internal/state/indexer/tx/kv/kv_test.go +++ b/internal/state/indexer/tx/kv/kv_test.go @@ -6,7 +6,7 @@ import ( "testing" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/state/state.go b/internal/state/state.go index cbffe452e3..3b3605e393 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/dash" selectproposer "github.com/dashpay/tenderdash/internal/consensus/versioned/selectproposer" diff --git a/internal/state/store.go b/internal/state/store.go index bbfad95a1e..5a4c6c9a5a 100644 --- a/internal/state/store.go +++ b/internal/state/store.go @@ -6,7 +6,7 @@ import ( "fmt" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/google/orderedcode" abci "github.com/dashpay/tenderdash/abci/types" diff --git a/internal/store/store.go b/internal/store/store.go index e5d52e665a..64b5f856f0 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -7,7 +7,7 @@ import ( "strconv" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/google/orderedcode" tmproto "github.com/dashpay/tenderdash/proto/tendermint/types" diff --git a/privval/msgs.go b/privval/msgs.go index b0056ad4ba..1f2bcb0e07 100644 --- a/privval/msgs.go +++ b/privval/msgs.go @@ -3,7 +3,7 @@ package privval import ( "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" privvalproto "github.com/dashpay/tenderdash/proto/tendermint/privval" ) diff --git a/privval/msgs_test.go b/privval/msgs_test.go index 32ba1354e3..d49775f9e7 100644 --- a/privval/msgs_test.go +++ b/privval/msgs_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/privval/secret_connection.go b/privval/secret_connection.go index 3095125804..84f028b025 100644 --- a/privval/secret_connection.go +++ b/privval/secret_connection.go @@ -15,7 +15,7 @@ import ( sync "github.com/sasha-s/go-deadlock" - gogotypes "github.com/gogo/protobuf/types" + gogotypes "github.com/cosmos/gogoproto/types" pool "github.com/libp2p/go-buffer-pool" "github.com/oasisprotocol/curve25519-voi/primitives/merlin" "golang.org/x/crypto/chacha20poly1305" diff --git a/privval/signer_requestHandler.go b/privval/signer_requestHandler.go index 61c9dc06df..cc6230050d 100644 --- a/privval/signer_requestHandler.go +++ b/privval/signer_requestHandler.go @@ -6,7 +6,7 @@ import ( "github.com/dashpay/dashd-go/btcjson" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/crypto" cryptoenc "github.com/dashpay/tenderdash/crypto/encoding" diff --git a/proto/buf.lock b/proto/buf.lock deleted file mode 100644 index 8c415e1af0..0000000000 --- a/proto/buf.lock +++ /dev/null @@ -1,7 +0,0 @@ -# Generated by buf. DO NOT EDIT. -version: v1 -deps: - - remote: buf.build - owner: gogo - repository: protobuf - commit: 4df00b267f944190a229ce3695781e99 diff --git a/proto/buf.yaml b/proto/buf.yaml deleted file mode 100644 index 816db10f76..0000000000 --- a/proto/buf.yaml +++ /dev/null @@ -1,11 +0,0 @@ -version: v1 -deps: - - buf.build/gogo/protobuf -breaking: - use: - - FILE -lint: - use: - - BASIC - - FILE_LOWER_SNAKE_CASE - - UNARY_RPC diff --git a/proto/tendermint/abci/types.proto b/proto/tendermint/abci/types.proto index 3453c1ce4a..c9f6eeabc3 100644 --- a/proto/tendermint/abci/types.proto +++ b/proto/tendermint/abci/types.proto @@ -15,7 +15,7 @@ import "gogoproto/gogo.proto"; // NOTE: When using custom types, mind the warnings. // -// https://github.com/gogo/protobuf/blob/master/custom_types.md#warnings-and-issues +// https://github.com/cosmos/gogoproto/blob/master/custom_types.md#warnings-and-issues // //---------------------------------------- diff --git a/proto/tendermint/blocksync/types.pb.go b/proto/tendermint/blocksync/types.pb.go index b969b4abd4..ba8a002f3f 100644 --- a/proto/tendermint/blocksync/types.pb.go +++ b/proto/tendermint/blocksync/types.pb.go @@ -5,8 +5,8 @@ package blocksync import ( fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" types "github.com/dashpay/tenderdash/proto/tendermint/types" - proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/consensus/message.go b/proto/tendermint/consensus/message.go index 7c3f4ef992..34d384abc2 100644 --- a/proto/tendermint/consensus/message.go +++ b/proto/tendermint/consensus/message.go @@ -3,7 +3,7 @@ package consensus import ( "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" ) // Wrap implements the p2p Wrapper interface and wraps a consensus proto message. diff --git a/proto/tendermint/consensus/message_test.go b/proto/tendermint/consensus/message_test.go index 8c1a2c9a97..23ea7a9c04 100644 --- a/proto/tendermint/consensus/message_test.go +++ b/proto/tendermint/consensus/message_test.go @@ -5,7 +5,7 @@ import ( "math" "testing" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/require" tmcons "github.com/dashpay/tenderdash/proto/tendermint/consensus" diff --git a/proto/tendermint/consensus/types.pb.go b/proto/tendermint/consensus/types.pb.go index 076ffe4a37..d8db55ed93 100644 --- a/proto/tendermint/consensus/types.pb.go +++ b/proto/tendermint/consensus/types.pb.go @@ -5,10 +5,10 @@ package consensus import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" bits "github.com/dashpay/tenderdash/proto/tendermint/libs/bits" types "github.com/dashpay/tenderdash/proto/tendermint/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/consensus/wal.pb.go b/proto/tendermint/consensus/wal.pb.go index c4722100f2..52dac8deaf 100644 --- a/proto/tendermint/consensus/wal.pb.go +++ b/proto/tendermint/consensus/wal.pb.go @@ -5,11 +5,11 @@ package consensus import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/gogoproto/types" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" types "github.com/dashpay/tenderdash/proto/tendermint/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" _ "github.com/golang/protobuf/ptypes/duration" io "io" math "math" @@ -485,7 +485,7 @@ func (m *TimeoutInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - n2, err2 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Duration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration):]) + n2, err2 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.Duration, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.Duration):]) if err2 != nil { return 0, err2 } @@ -672,7 +672,7 @@ func (m *TimedWALMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + n8, err8 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time):]) if err8 != nil { return 0, err8 } @@ -715,7 +715,7 @@ func (m *TimeoutInfo) Size() (n int) { } var l int _ = l - l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.Duration) n += 1 + l + sovWal(uint64(l)) if m.Height != 0 { n += 1 + sovWal(uint64(m.Height)) @@ -807,7 +807,7 @@ func (m *TimedWALMessage) Size() (n int) { } var l int _ = l - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time) n += 1 + l + sovWal(uint64(l)) if m.Msg != nil { l = m.Msg.Size() @@ -995,7 +995,7 @@ func (m *TimeoutInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Duration, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.Duration, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1394,7 +1394,7 @@ func (m *TimedWALMessage) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/tendermint/crypto/keys.pb.go b/proto/tendermint/crypto/keys.pb.go index f1b862ea75..62b06df7ab 100644 --- a/proto/tendermint/crypto/keys.pb.go +++ b/proto/tendermint/crypto/keys.pb.go @@ -6,8 +6,8 @@ package crypto import ( bytes "bytes" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/crypto/proof.pb.go b/proto/tendermint/crypto/proof.pb.go index 5ece1e5579..1831de7236 100644 --- a/proto/tendermint/crypto/proof.pb.go +++ b/proto/tendermint/crypto/proof.pb.go @@ -5,8 +5,8 @@ package crypto import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/libs/bits/types.pb.go b/proto/tendermint/libs/bits/types.pb.go index 29bb8e901d..97445df26e 100644 --- a/proto/tendermint/libs/bits/types.pb.go +++ b/proto/tendermint/libs/bits/types.pb.go @@ -5,7 +5,7 @@ package bits import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/mempool/types.pb.go b/proto/tendermint/mempool/types.pb.go index ab074c9c35..b38e602520 100644 --- a/proto/tendermint/mempool/types.pb.go +++ b/proto/tendermint/mempool/types.pb.go @@ -5,7 +5,7 @@ package mempool import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/p2p/conn.pb.go b/proto/tendermint/p2p/conn.pb.go index 3a2727cd08..1b57bf3cc5 100644 --- a/proto/tendermint/p2p/conn.pb.go +++ b/proto/tendermint/p2p/conn.pb.go @@ -5,9 +5,9 @@ package p2p import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" crypto "github.com/dashpay/tenderdash/proto/tendermint/crypto" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/p2p/envelope.go b/proto/tendermint/p2p/envelope.go index de9d60414f..310d0547f5 100644 --- a/proto/tendermint/p2p/envelope.go +++ b/proto/tendermint/p2p/envelope.go @@ -3,7 +3,7 @@ package p2p import ( "fmt" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/proto/tendermint/blocksync" "github.com/dashpay/tenderdash/proto/tendermint/consensus" diff --git a/proto/tendermint/p2p/pex.pb.go b/proto/tendermint/p2p/pex.pb.go index 750596fa0a..ff6f3fc496 100644 --- a/proto/tendermint/p2p/pex.pb.go +++ b/proto/tendermint/p2p/pex.pb.go @@ -5,8 +5,8 @@ package p2p import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/p2p/types.pb.go b/proto/tendermint/p2p/types.pb.go index 0f1e210ac6..de977db334 100644 --- a/proto/tendermint/p2p/types.pb.go +++ b/proto/tendermint/p2p/types.pb.go @@ -5,15 +5,15 @@ package p2p import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/gogoproto/types" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" blocksync "github.com/dashpay/tenderdash/proto/tendermint/blocksync" consensus "github.com/dashpay/tenderdash/proto/tendermint/consensus" mempool "github.com/dashpay/tenderdash/proto/tendermint/mempool" statesync "github.com/dashpay/tenderdash/proto/tendermint/statesync" types1 "github.com/dashpay/tenderdash/proto/tendermint/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" io "io" math "math" math_bits "math/bits" @@ -1208,7 +1208,7 @@ func (m *PeerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x20 } if m.LastConnected != nil { - n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastConnected, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastConnected):]) + n5, err5 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.LastConnected, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.LastConnected):]) if err5 != nil { return 0, err5 } @@ -1267,7 +1267,7 @@ func (m *PeerAddressInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x20 } if m.LastDialFailure != nil { - n6, err6 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastDialFailure, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastDialFailure):]) + n6, err6 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.LastDialFailure, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.LastDialFailure):]) if err6 != nil { return 0, err6 } @@ -1277,7 +1277,7 @@ func (m *PeerAddressInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } if m.LastDialSuccess != nil { - n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.LastDialSuccess, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastDialSuccess):]) + n7, err7 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(*m.LastDialSuccess, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.LastDialSuccess):]) if err7 != nil { return 0, err7 } @@ -2123,7 +2123,7 @@ func (m *PeerInfo) Size() (n int) { } } if m.LastConnected != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastConnected) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.LastConnected) n += 1 + l + sovTypes(uint64(l)) } if m.Inactive { @@ -2147,11 +2147,11 @@ func (m *PeerAddressInfo) Size() (n int) { n += 1 + l + sovTypes(uint64(l)) } if m.LastDialSuccess != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastDialSuccess) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.LastDialSuccess) n += 1 + l + sovTypes(uint64(l)) } if m.LastDialFailure != nil { - l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.LastDialFailure) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(*m.LastDialFailure) n += 1 + l + sovTypes(uint64(l)) } if m.DialFailures != 0 { @@ -3282,7 +3282,7 @@ func (m *PeerInfo) Unmarshal(dAtA []byte) error { if m.LastConnected == nil { m.LastConnected = new(time.Time) } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastConnected, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.LastConnected, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3454,7 +3454,7 @@ func (m *PeerAddressInfo) Unmarshal(dAtA []byte) error { if m.LastDialSuccess == nil { m.LastDialSuccess = new(time.Time) } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastDialSuccess, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.LastDialSuccess, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3490,7 +3490,7 @@ func (m *PeerAddressInfo) Unmarshal(dAtA []byte) error { if m.LastDialFailure == nil { m.LastDialFailure = new(time.Time) } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.LastDialFailure, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(m.LastDialFailure, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/tendermint/privval/service.pb.go b/proto/tendermint/privval/service.pb.go index 7b0d696549..7099e6b8a0 100644 --- a/proto/tendermint/privval/service.pb.go +++ b/proto/tendermint/privval/service.pb.go @@ -6,7 +6,8 @@ package privval import ( context "context" fmt "fmt" - proto "github.com/gogo/protobuf/proto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -70,10 +71,10 @@ type PrivValidatorAPIClient interface { } type privValidatorAPIClient struct { - cc *grpc.ClientConn + cc grpc1.ClientConn } -func NewPrivValidatorAPIClient(cc *grpc.ClientConn) PrivValidatorAPIClient { +func NewPrivValidatorAPIClient(cc grpc1.ClientConn) PrivValidatorAPIClient { return &privValidatorAPIClient{cc} } @@ -151,7 +152,7 @@ func (*UnimplementedPrivValidatorAPIServer) SignProposal(ctx context.Context, re return nil, status.Errorf(codes.Unimplemented, "method SignProposal not implemented") } -func RegisterPrivValidatorAPIServer(s *grpc.Server, srv PrivValidatorAPIServer) { +func RegisterPrivValidatorAPIServer(s grpc1.Server, srv PrivValidatorAPIServer) { s.RegisterService(&_PrivValidatorAPI_serviceDesc, srv) } @@ -245,6 +246,7 @@ func _PrivValidatorAPI_SignProposal_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } +var PrivValidatorAPI_serviceDesc = _PrivValidatorAPI_serviceDesc var _PrivValidatorAPI_serviceDesc = grpc.ServiceDesc{ ServiceName: "tendermint.privval.PrivValidatorAPI", HandlerType: (*PrivValidatorAPIServer)(nil), diff --git a/proto/tendermint/privval/types.pb.go b/proto/tendermint/privval/types.pb.go index 7074783799..4a2697fee1 100644 --- a/proto/tendermint/privval/types.pb.go +++ b/proto/tendermint/privval/types.pb.go @@ -5,10 +5,10 @@ package privval import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" crypto "github.com/dashpay/tenderdash/proto/tendermint/crypto" types "github.com/dashpay/tenderdash/proto/tendermint/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/state/types.pb.go b/proto/tendermint/state/types.pb.go index dcd836a2a1..792516f9c9 100644 --- a/proto/tendermint/state/types.pb.go +++ b/proto/tendermint/state/types.pb.go @@ -5,13 +5,13 @@ package state import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/gogoproto/types" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" types "github.com/dashpay/tenderdash/abci/types" types1 "github.com/dashpay/tenderdash/proto/tendermint/types" version "github.com/dashpay/tenderdash/proto/tendermint/version" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" io "io" math "math" math_bits "math/bits" @@ -730,7 +730,7 @@ func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x3a } - n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.LastBlockTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.LastBlockTime):]) + n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.LastBlockTime, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastBlockTime):]) if err9 != nil { return 0, err9 } @@ -867,7 +867,7 @@ func (m *State) Size() (n int) { } l = m.LastBlockID.Size() n += 1 + l + sovTypes(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.LastBlockTime) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.LastBlockTime) n += 1 + l + sovTypes(uint64(l)) if m.Validators != nil { l = m.Validators.Size() @@ -1514,7 +1514,7 @@ func (m *State) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.LastBlockTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.LastBlockTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/tendermint/statesync/types.pb.go b/proto/tendermint/statesync/types.pb.go index bac29edb94..64ab0bb378 100644 --- a/proto/tendermint/statesync/types.pb.go +++ b/proto/tendermint/statesync/types.pb.go @@ -5,9 +5,9 @@ package statesync import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" types "github.com/dashpay/tenderdash/proto/tendermint/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/types/block.pb.go b/proto/tendermint/types/block.pb.go index 915151f4da..1c37a498bc 100644 --- a/proto/tendermint/types/block.pb.go +++ b/proto/tendermint/types/block.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/types/canonical.pb.go b/proto/tendermint/types/canonical.pb.go index 62114e67d9..db9b751d3a 100644 --- a/proto/tendermint/types/canonical.pb.go +++ b/proto/tendermint/types/canonical.pb.go @@ -6,10 +6,10 @@ package types import ( encoding_binary "encoding/binary" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/gogoproto/types" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" io "io" math "math" math_bits "math/bits" @@ -523,7 +523,7 @@ func (m *CanonicalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x3a } - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):]) + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) if err2 != nil { return 0, err2 } @@ -749,7 +749,7 @@ func (m *CanonicalProposal) Size() (n int) { l = m.BlockID.Size() n += 1 + l + sovCanonical(uint64(l)) } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) n += 1 + l + sovCanonical(uint64(l)) l = len(m.ChainID) if l > 0 { @@ -1192,7 +1192,7 @@ func (m *CanonicalProposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/tendermint/types/dash.pb.go b/proto/tendermint/types/dash.pb.go index ad693ce5ab..8e14ec95f0 100644 --- a/proto/tendermint/types/dash.pb.go +++ b/proto/tendermint/types/dash.pb.go @@ -6,8 +6,8 @@ package types import ( bytes "bytes" fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/types/events.pb.go b/proto/tendermint/types/events.pb.go index 0dc9c69941..ccd0cac04a 100644 --- a/proto/tendermint/types/events.pb.go +++ b/proto/tendermint/types/events.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/types/evidence.pb.go b/proto/tendermint/types/evidence.pb.go index 741a8bd40d..8fe8530e2f 100644 --- a/proto/tendermint/types/evidence.pb.go +++ b/proto/tendermint/types/evidence.pb.go @@ -5,10 +5,10 @@ package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/gogoproto/types" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" io "io" math "math" math_bits "math/bits" @@ -331,7 +331,7 @@ func (m *DuplicateVoteEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):]) + n2, err2 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) if err2 != nil { return 0, err2 } @@ -468,7 +468,7 @@ func (m *DuplicateVoteEvidence) Size() (n int) { if m.ValidatorPower != 0 { n += 1 + sovEvidence(uint64(m.ValidatorPower)) } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) n += 1 + l + sovEvidence(uint64(l)) return n } @@ -747,7 +747,7 @@ func (m *DuplicateVoteEvidence) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/tendermint/types/params.pb.go b/proto/tendermint/types/params.pb.go index 9f0460c1ac..910aecf9d0 100644 --- a/proto/tendermint/types/params.pb.go +++ b/proto/tendermint/types/params.pb.go @@ -5,9 +5,9 @@ package types import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" _ "github.com/golang/protobuf/ptypes/duration" io "io" math "math" @@ -1183,7 +1183,7 @@ func (m *EvidenceParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x18 } - n8, err8 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.MaxAgeDuration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.MaxAgeDuration):]) + n8, err8 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(m.MaxAgeDuration, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxAgeDuration):]) if err8 != nil { return 0, err8 } @@ -1323,7 +1323,7 @@ func (m *SynchronyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Precision != nil { - n9, err9 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.Precision, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Precision):]) + n9, err9 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.Precision, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.Precision):]) if err9 != nil { return 0, err9 } @@ -1333,7 +1333,7 @@ func (m *SynchronyParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x12 } if m.MessageDelay != nil { - n10, err10 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.MessageDelay, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.MessageDelay):]) + n10, err10 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.MessageDelay, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.MessageDelay):]) if err10 != nil { return 0, err10 } @@ -1366,7 +1366,7 @@ func (m *TimeoutParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.VoteDelta != nil { - n11, err11 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.VoteDelta, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.VoteDelta):]) + n11, err11 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.VoteDelta, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.VoteDelta):]) if err11 != nil { return 0, err11 } @@ -1376,7 +1376,7 @@ func (m *TimeoutParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x22 } if m.Vote != nil { - n12, err12 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.Vote, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Vote):]) + n12, err12 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.Vote, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.Vote):]) if err12 != nil { return 0, err12 } @@ -1386,7 +1386,7 @@ func (m *TimeoutParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x1a } if m.ProposeDelta != nil { - n13, err13 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ProposeDelta, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ProposeDelta):]) + n13, err13 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.ProposeDelta, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.ProposeDelta):]) if err13 != nil { return 0, err13 } @@ -1396,7 +1396,7 @@ func (m *TimeoutParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x12 } if m.Propose != nil { - n14, err14 := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.Propose, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Propose):]) + n14, err14 := github_com_cosmos_gogoproto_types.StdDurationMarshalTo(*m.Propose, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.Propose):]) if err14 != nil { return 0, err14 } @@ -1513,7 +1513,7 @@ func (m *EvidenceParams) Size() (n int) { if m.MaxAgeNumBlocks != 0 { n += 1 + sovParams(uint64(m.MaxAgeNumBlocks)) } - l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.MaxAgeDuration) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MaxAgeDuration) n += 1 + l + sovParams(uint64(l)) if m.MaxBytes != 0 { n += 1 + sovParams(uint64(m.MaxBytes)) @@ -1576,11 +1576,11 @@ func (m *SynchronyParams) Size() (n int) { var l int _ = l if m.MessageDelay != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.MessageDelay) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.MessageDelay) n += 1 + l + sovParams(uint64(l)) } if m.Precision != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Precision) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.Precision) n += 1 + l + sovParams(uint64(l)) } return n @@ -1593,19 +1593,19 @@ func (m *TimeoutParams) Size() (n int) { var l int _ = l if m.Propose != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Propose) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.Propose) n += 1 + l + sovParams(uint64(l)) } if m.ProposeDelta != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ProposeDelta) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.ProposeDelta) n += 1 + l + sovParams(uint64(l)) } if m.Vote != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.Vote) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.Vote) n += 1 + l + sovParams(uint64(l)) } if m.VoteDelta != nil { - l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.VoteDelta) + l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(*m.VoteDelta) n += 1 + l + sovParams(uint64(l)) } return n @@ -2096,7 +2096,7 @@ func (m *EvidenceParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.MaxAgeDuration, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(&m.MaxAgeDuration, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2478,7 +2478,7 @@ func (m *SynchronyParams) Unmarshal(dAtA []byte) error { if m.MessageDelay == nil { m.MessageDelay = new(time.Duration) } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.MessageDelay, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(m.MessageDelay, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2514,7 +2514,7 @@ func (m *SynchronyParams) Unmarshal(dAtA []byte) error { if m.Precision == nil { m.Precision = new(time.Duration) } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.Precision, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(m.Precision, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2600,7 +2600,7 @@ func (m *TimeoutParams) Unmarshal(dAtA []byte) error { if m.Propose == nil { m.Propose = new(time.Duration) } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.Propose, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(m.Propose, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2636,7 +2636,7 @@ func (m *TimeoutParams) Unmarshal(dAtA []byte) error { if m.ProposeDelta == nil { m.ProposeDelta = new(time.Duration) } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.ProposeDelta, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(m.ProposeDelta, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2672,7 +2672,7 @@ func (m *TimeoutParams) Unmarshal(dAtA []byte) error { if m.Vote == nil { m.Vote = new(time.Duration) } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.Vote, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(m.Vote, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2708,7 +2708,7 @@ func (m *TimeoutParams) Unmarshal(dAtA []byte) error { if m.VoteDelta == nil { m.VoteDelta = new(time.Duration) } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(m.VoteDelta, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdDurationUnmarshal(m.VoteDelta, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/tendermint/types/types.pb.go b/proto/tendermint/types/types.pb.go index 07ec7decc8..4897e23fca 100644 --- a/proto/tendermint/types/types.pb.go +++ b/proto/tendermint/types/types.pb.go @@ -6,12 +6,12 @@ package types import ( encoding_binary "encoding/binary" fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + _ "github.com/cosmos/gogoproto/types" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" crypto "github.com/dashpay/tenderdash/proto/tendermint/crypto" version "github.com/dashpay/tenderdash/proto/tendermint/version" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" io "io" math "math" math_bits "math/bits" @@ -1547,7 +1547,7 @@ func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x2a - n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):]) + n4, err4 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time):]) if err4 != nil { return 0, err4 } @@ -1808,7 +1808,7 @@ func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x3a } - n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):]) + n9, err9 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp):]) if err9 != nil { return 0, err9 } @@ -2164,7 +2164,7 @@ func (m *Header) Size() (n int) { if m.Height != 0 { n += 1 + sovTypes(uint64(m.Height)) } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Time) n += 1 + l + sovTypes(uint64(l)) l = m.LastBlockId.Size() n += 1 + l + sovTypes(uint64(l)) @@ -2320,7 +2320,7 @@ func (m *Proposal) Size() (n int) { } l = m.BlockID.Size() n += 1 + l + sovTypes(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.Timestamp) n += 1 + l + sovTypes(uint64(l)) l = len(m.Signature) if l > 0 { @@ -3078,7 +3078,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4247,7 +4247,7 @@ func (m *Proposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/proto/tendermint/types/validator.pb.go b/proto/tendermint/types/validator.pb.go index a37aacd837..ee9206fc34 100644 --- a/proto/tendermint/types/validator.pb.go +++ b/proto/tendermint/types/validator.pb.go @@ -5,9 +5,9 @@ package types import ( fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" crypto "github.com/dashpay/tenderdash/proto/tendermint/crypto" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" diff --git a/proto/tendermint/version/types.pb.go b/proto/tendermint/version/types.pb.go index 2d0162356b..7ba940c46a 100644 --- a/proto/tendermint/version/types.pb.go +++ b/proto/tendermint/version/types.pb.go @@ -5,8 +5,8 @@ package version import ( fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" io "io" math "math" math_bits "math/bits" diff --git a/scripts/scmigrate/migrate.go b/scripts/scmigrate/migrate.go index ac707dd4f9..c78172c734 100644 --- a/scripts/scmigrate/migrate.go +++ b/scripts/scmigrate/migrate.go @@ -14,7 +14,7 @@ import ( "sort" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/google/orderedcode" tmproto "github.com/dashpay/tenderdash/proto/tendermint/types" diff --git a/scripts/scmigrate/migrate_test.go b/scripts/scmigrate/migrate_test.go index 5f57c6173a..fded33727b 100644 --- a/scripts/scmigrate/migrate_test.go +++ b/scripts/scmigrate/migrate_test.go @@ -7,7 +7,7 @@ import ( "testing" dbm "github.com/cometbft/cometbft-db" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/types" ) diff --git a/test/e2e/runner/setup.go b/test/e2e/runner/setup.go index b15302408a..d149e042a1 100644 --- a/test/e2e/runner/setup.go +++ b/test/e2e/runner/setup.go @@ -16,7 +16,7 @@ import ( "time" "github.com/BurntSushi/toml" - "github.com/gogo/protobuf/proto" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/tenderdash/config" "github.com/dashpay/tenderdash/crypto" diff --git a/types/block.go b/types/block.go index 10901ca371..595a39aa44 100644 --- a/types/block.go +++ b/types/block.go @@ -13,8 +13,8 @@ import ( sync "github.com/sasha-s/go-deadlock" - "github.com/gogo/protobuf/proto" - gogotypes "github.com/gogo/protobuf/types" + "github.com/cosmos/gogoproto/proto" + gogotypes "github.com/cosmos/gogoproto/types" "github.com/rs/zerolog" "github.com/dashpay/tenderdash/abci/types" diff --git a/types/block_test.go b/types/block_test.go index 0b6139e585..bb5a84172d 100644 --- a/types/block_test.go +++ b/types/block_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" + gogotypes "github.com/cosmos/gogoproto/types" "github.com/dashpay/dashd-go/btcjson" - gogotypes "github.com/gogo/protobuf/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/types/encoding_helper.go b/types/encoding_helper.go index 28a238793a..aa038f688e 100644 --- a/types/encoding_helper.go +++ b/types/encoding_helper.go @@ -1,7 +1,7 @@ package types import ( - gogotypes "github.com/gogo/protobuf/types" + gogotypes "github.com/cosmos/gogoproto/types" "github.com/dashpay/tenderdash/libs/bytes" ) diff --git a/types/proposal_test.go b/types/proposal_test.go index 49ea38cff2..2d1d4a0844 100644 --- a/types/proposal_test.go +++ b/types/proposal_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" + "github.com/cosmos/gogoproto/proto" "github.com/dashpay/dashd-go/btcjson" - "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/types/vote_test.go b/types/vote_test.go index 044024b0d2..e800c2bedb 100644 --- a/types/vote_test.go +++ b/types/vote_test.go @@ -6,9 +6,9 @@ import ( "fmt" "testing" + "github.com/cosmos/gogoproto/proto" bls "github.com/dashpay/bls-signatures/go-bindings" "github.com/dashpay/dashd-go/btcjson" - "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require"