refactor: bump gogoproto (#19869)
This commit is contained in:
@@ -7,14 +7,14 @@ import (
|
||||
context "context"
|
||||
fmt "fmt"
|
||||
p2p "github.com/cometbft/cometbft/proto/tendermint/p2p"
|
||||
types1 "github.com/cometbft/cometbft/proto/tendermint/types"
|
||||
types "github.com/cometbft/cometbft/proto/tendermint/types"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
types "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
query "github.com/cosmos/cosmos-sdk/types/query"
|
||||
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
||||
grpc1 "github.com/cosmos/gogoproto/grpc"
|
||||
proto "github.com/cosmos/gogoproto/proto"
|
||||
any "github.com/cosmos/gogoproto/types/any"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -261,10 +261,10 @@ func (m *GetLatestValidatorSetResponse) GetPagination() *query.PageResponse {
|
||||
|
||||
// Validator is the type for the validator-set.
|
||||
type Validator struct {
|
||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||
PubKey *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
|
||||
VotingPower int64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
|
||||
ProposerPriority int64 `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
|
||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||
PubKey *any.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
|
||||
VotingPower int64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
|
||||
ProposerPriority int64 `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Validator) Reset() { *m = Validator{} }
|
||||
@@ -307,7 +307,7 @@ func (m *Validator) GetAddress() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Validator) GetPubKey() *types.Any {
|
||||
func (m *Validator) GetPubKey() *any.Any {
|
||||
if m != nil {
|
||||
return m.PubKey
|
||||
}
|
||||
@@ -375,9 +375,9 @@ func (m *GetBlockByHeightRequest) GetHeight() int64 {
|
||||
|
||||
// GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
|
||||
type GetBlockByHeightResponse struct {
|
||||
BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *types1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
// Since: cosmos-sdk 0.47
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
@@ -415,14 +415,14 @@ func (m *GetBlockByHeightResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_GetBlockByHeightResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetBlockByHeightResponse) GetBlockId() *types1.BlockID {
|
||||
func (m *GetBlockByHeightResponse) GetBlockId() *types.BlockID {
|
||||
if m != nil {
|
||||
return m.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetBlockByHeightResponse) GetBlock() *types1.Block {
|
||||
func (m *GetBlockByHeightResponse) GetBlock() *types.Block {
|
||||
if m != nil {
|
||||
return m.Block
|
||||
}
|
||||
@@ -475,9 +475,9 @@ var xxx_messageInfo_GetLatestBlockRequest proto.InternalMessageInfo
|
||||
|
||||
// GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
|
||||
type GetLatestBlockResponse struct {
|
||||
BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *types.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *types1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *types.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
// Since: cosmos-sdk 0.47
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
@@ -515,14 +515,14 @@ func (m *GetLatestBlockResponse) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_GetLatestBlockResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *GetLatestBlockResponse) GetBlockId() *types1.BlockID {
|
||||
func (m *GetLatestBlockResponse) GetBlockId() *types.BlockID {
|
||||
if m != nil {
|
||||
return m.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GetLatestBlockResponse) GetBlock() *types1.Block {
|
||||
func (m *GetLatestBlockResponse) GetBlock() *types.Block {
|
||||
if m != nil {
|
||||
return m.Block
|
||||
}
|
||||
@@ -3429,7 +3429,7 @@ func (m *Validator) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.PubKey == nil {
|
||||
m.PubKey = &types.Any{}
|
||||
m.PubKey = &any.Any{}
|
||||
}
|
||||
if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -3622,7 +3622,7 @@ func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.BlockId == nil {
|
||||
m.BlockId = &types1.BlockID{}
|
||||
m.BlockId = &types.BlockID{}
|
||||
}
|
||||
if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -3658,7 +3658,7 @@ func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Block == nil {
|
||||
m.Block = &types1.Block{}
|
||||
m.Block = &types.Block{}
|
||||
}
|
||||
if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -3830,7 +3830,7 @@ func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.BlockId == nil {
|
||||
m.BlockId = &types1.BlockID{}
|
||||
m.BlockId = &types.BlockID{}
|
||||
}
|
||||
if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
@@ -3866,7 +3866,7 @@ func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Block == nil {
|
||||
m.Block = &types1.Block{}
|
||||
m.Block = &types.Block{}
|
||||
}
|
||||
if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user