feat: Update Cosmos SDK to CometBFT v2 (#24837)
Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
co-authored by
aljo242
parent
b78a6c660e
commit
fd170b5140
@@ -2,8 +2,8 @@
|
||||
package abciv1beta1
|
||||
|
||||
import (
|
||||
v1 "cosmossdk.io/api/cometbft/abci/v1"
|
||||
v11 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/abci/v2"
|
||||
v21 "cosmossdk.io/api/cometbft/types/v2"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||||
@@ -71,7 +71,7 @@ func (x *_TxResponse_7_list) IsValid() bool {
|
||||
var _ protoreflect.List = (*_TxResponse_13_list)(nil)
|
||||
|
||||
type _TxResponse_13_list struct {
|
||||
list *[]*v1.Event
|
||||
list *[]*v2.Event
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) Len() int {
|
||||
@@ -87,18 +87,18 @@ func (x *_TxResponse_13_list) Get(i int) protoreflect.Value {
|
||||
|
||||
func (x *_TxResponse_13_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
@@ -111,7 +111,7 @@ func (x *_TxResponse_13_list) Truncate(n int) {
|
||||
}
|
||||
|
||||
func (x *_TxResponse_13_list) NewElement() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
@@ -524,7 +524,7 @@ func (x *fastReflection_TxResponse) Mutable(fd protoreflect.FieldDescriptor) pro
|
||||
return protoreflect.ValueOfMessage(x.Tx.ProtoReflect())
|
||||
case "cosmos.base.abci.v1beta1.TxResponse.events":
|
||||
if x.Events == nil {
|
||||
x.Events = []*v1.Event{}
|
||||
x.Events = []*v2.Event{}
|
||||
}
|
||||
value := &_TxResponse_13_list{list: &x.Events}
|
||||
return protoreflect.ValueOfList(value)
|
||||
@@ -588,7 +588,7 @@ func (x *fastReflection_TxResponse) NewField(fd protoreflect.FieldDescriptor) pr
|
||||
case "cosmos.base.abci.v1beta1.TxResponse.timestamp":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cosmos.base.abci.v1beta1.TxResponse.events":
|
||||
list := []*v1.Event{}
|
||||
list := []*v2.Event{}
|
||||
return protoreflect.ValueOfList(&_TxResponse_13_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -1264,7 +1264,7 @@ func (x *fastReflection_TxResponse) ProtoMethods() *protoiface.Methods {
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.Events = append(x.Events, &v1.Event{})
|
||||
x.Events = append(x.Events, &v2.Event{})
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
}
|
||||
@@ -3407,7 +3407,7 @@ func (x *fastReflection_GasInfo) ProtoMethods() *protoiface.Methods {
|
||||
var _ protoreflect.List = (*_Result_3_list)(nil)
|
||||
|
||||
type _Result_3_list struct {
|
||||
list *[]*v1.Event
|
||||
list *[]*v2.Event
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) Len() int {
|
||||
@@ -3423,18 +3423,18 @@ func (x *_Result_3_list) Get(i int) protoreflect.Value {
|
||||
|
||||
func (x *_Result_3_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v1.Event)
|
||||
concreteValue := valueUnwrapped.Interface().(*v2.Event)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
@@ -3447,7 +3447,7 @@ func (x *_Result_3_list) Truncate(n int) {
|
||||
}
|
||||
|
||||
func (x *_Result_3_list) NewElement() protoreflect.Value {
|
||||
v := new(v1.Event)
|
||||
v := new(v2.Event)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
@@ -3747,7 +3747,7 @@ func (x *fastReflection_Result) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.abci.v1beta1.Result.events":
|
||||
if x.Events == nil {
|
||||
x.Events = []*v1.Event{}
|
||||
x.Events = []*v2.Event{}
|
||||
}
|
||||
value := &_Result_3_list{list: &x.Events}
|
||||
return protoreflect.ValueOfList(value)
|
||||
@@ -3779,7 +3779,7 @@ func (x *fastReflection_Result) NewField(fd protoreflect.FieldDescriptor) protor
|
||||
case "cosmos.base.abci.v1beta1.Result.log":
|
||||
return protoreflect.ValueOfString("")
|
||||
case "cosmos.base.abci.v1beta1.Result.events":
|
||||
list := []*v1.Event{}
|
||||
list := []*v2.Event{}
|
||||
return protoreflect.ValueOfList(&_Result_3_list{list: &list})
|
||||
case "cosmos.base.abci.v1beta1.Result.msg_responses":
|
||||
list := []*anypb.Any{}
|
||||
@@ -4092,7 +4092,7 @@ func (x *fastReflection_Result) ProtoMethods() *protoiface.Methods {
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.Events = append(x.Events, &v1.Event{})
|
||||
x.Events = append(x.Events, &v2.Event{})
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Events[len(x.Events)-1]); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
}
|
||||
@@ -6535,7 +6535,7 @@ func (x *fastReflection_SearchTxsResult) ProtoMethods() *protoiface.Methods {
|
||||
var _ protoreflect.List = (*_SearchBlocksResult_6_list)(nil)
|
||||
|
||||
type _SearchBlocksResult_6_list struct {
|
||||
list *[]*v11.Block
|
||||
list *[]*v21.Block
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) Len() int {
|
||||
@@ -6551,18 +6551,18 @@ func (x *_SearchBlocksResult_6_list) Get(i int) protoreflect.Value {
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) Set(i int, value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v11.Block)
|
||||
concreteValue := valueUnwrapped.Interface().(*v21.Block)
|
||||
(*x.list)[i] = concreteValue
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) Append(value protoreflect.Value) {
|
||||
valueUnwrapped := value.Message()
|
||||
concreteValue := valueUnwrapped.Interface().(*v11.Block)
|
||||
concreteValue := valueUnwrapped.Interface().(*v21.Block)
|
||||
*x.list = append(*x.list, concreteValue)
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) AppendMutable() protoreflect.Value {
|
||||
v := new(v11.Block)
|
||||
v := new(v21.Block)
|
||||
*x.list = append(*x.list, v)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
@@ -6575,7 +6575,7 @@ func (x *_SearchBlocksResult_6_list) Truncate(n int) {
|
||||
}
|
||||
|
||||
func (x *_SearchBlocksResult_6_list) NewElement() protoreflect.Value {
|
||||
v := new(v11.Block)
|
||||
v := new(v21.Block)
|
||||
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||||
}
|
||||
|
||||
@@ -6853,7 +6853,7 @@ func (x *fastReflection_SearchBlocksResult) Mutable(fd protoreflect.FieldDescrip
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks":
|
||||
if x.Blocks == nil {
|
||||
x.Blocks = []*v11.Block{}
|
||||
x.Blocks = []*v21.Block{}
|
||||
}
|
||||
value := &_SearchBlocksResult_6_list{list: &x.Blocks}
|
||||
return protoreflect.ValueOfList(value)
|
||||
@@ -6891,7 +6891,7 @@ func (x *fastReflection_SearchBlocksResult) NewField(fd protoreflect.FieldDescri
|
||||
case "cosmos.base.abci.v1beta1.SearchBlocksResult.limit":
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
case "cosmos.base.abci.v1beta1.SearchBlocksResult.blocks":
|
||||
list := []*v11.Block{}
|
||||
list := []*v21.Block{}
|
||||
return protoreflect.ValueOfList(&_SearchBlocksResult_6_list{list: &list})
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -7226,7 +7226,7 @@ func (x *fastReflection_SearchBlocksResult) ProtoMethods() *protoiface.Methods {
|
||||
if postIndex > l {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
x.Blocks = append(x.Blocks, &v11.Block{})
|
||||
x.Blocks = append(x.Blocks, &v21.Block{})
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Blocks[len(x.Blocks)-1]); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
}
|
||||
@@ -7317,7 +7317,7 @@ type TxResponse struct {
|
||||
// these events include those emitted by processing all the messages and those
|
||||
// emitted from the ante. Whereas Logs contains the events, with
|
||||
// additional metadata, emitted only by processing the messages.
|
||||
Events []*v1.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"`
|
||||
Events []*v2.Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TxResponse) Reset() {
|
||||
@@ -7424,7 +7424,7 @@ func (x *TxResponse) GetTimestamp() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TxResponse) GetEvents() []*v1.Event {
|
||||
func (x *TxResponse) GetEvents() []*v2.Event {
|
||||
if x != nil {
|
||||
return x.Events
|
||||
}
|
||||
@@ -7638,7 +7638,7 @@ type Result struct {
|
||||
Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
|
||||
// Events contains a slice of Event objects that were emitted during message
|
||||
// or handler execution.
|
||||
Events []*v1.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
|
||||
Events []*v2.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
|
||||
// msg_responses contains the Msg handler responses type packed in Anys.
|
||||
MsgResponses []*anypb.Any `protobuf:"bytes,4,rep,name=msg_responses,json=msgResponses,proto3" json:"msg_responses,omitempty"`
|
||||
}
|
||||
@@ -7678,7 +7678,7 @@ func (x *Result) GetLog() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Result) GetEvents() []*v1.Event {
|
||||
func (x *Result) GetEvents() []*v2.Event {
|
||||
if x != nil {
|
||||
return x.Events
|
||||
}
|
||||
@@ -7933,7 +7933,7 @@ type SearchBlocksResult struct {
|
||||
// Max count blocks per page
|
||||
Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
// List of blocks in current page
|
||||
Blocks []*v11.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
Blocks []*v21.Block `protobuf:"bytes,6,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SearchBlocksResult) Reset() {
|
||||
@@ -7991,7 +7991,7 @@ func (x *SearchBlocksResult) GetLimit() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *SearchBlocksResult) GetBlocks() []*v11.Block {
|
||||
func (x *SearchBlocksResult) GetBlocks() []*v21.Block {
|
||||
if x != nil {
|
||||
return x.Blocks
|
||||
}
|
||||
@@ -8007,9 +8007,9 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a,
|
||||
0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f,
|
||||
0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
|
||||
0x61, 0x62, 0x63, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79,
|
||||
0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63,
|
||||
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d,
|
||||
@@ -8040,7 +8040,7 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x48, 0x0a, 0x06, 0x65,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x42, 0x17, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xb4, 0x2d, 0x0f, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x30, 0x2e, 0x34, 0x35, 0x52, 0x06, 0x65,
|
||||
0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0xa9, 0x01, 0x0a, 0x0e,
|
||||
@@ -8074,7 +8074,7 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x18, 0x01, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x76,
|
||||
0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76,
|
||||
0x65, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74,
|
||||
0x73, 0x12, 0x4e, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||
@@ -8131,7 +8131,7 @@ var file_cosmos_base_abci_v1beta1_abci_proto_rawDesc = []byte{
|
||||
0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c,
|
||||
0x69, 0x6d, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x06,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e,
|
||||
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06,
|
||||
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06,
|
||||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x3a, 0x04, 0x80, 0xdc, 0x20, 0x01, 0x42, 0xe7, 0x01, 0xd8,
|
||||
0xe1, 0x1e, 0x00, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x62, 0x61, 0x73, 0x65, 0x2e, 0x61, 0x62, 0x63, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||||
@@ -8176,23 +8176,23 @@ var file_cosmos_base_abci_v1beta1_abci_proto_goTypes = []interface{}{
|
||||
(*SearchTxsResult)(nil), // 9: cosmos.base.abci.v1beta1.SearchTxsResult
|
||||
(*SearchBlocksResult)(nil), // 10: cosmos.base.abci.v1beta1.SearchBlocksResult
|
||||
(*anypb.Any)(nil), // 11: google.protobuf.Any
|
||||
(*v1.Event)(nil), // 12: cometbft.abci.v1.Event
|
||||
(*v11.Block)(nil), // 13: cometbft.types.v1.Block
|
||||
(*v2.Event)(nil), // 12: cometbft.abci.v2.Event
|
||||
(*v21.Block)(nil), // 13: cometbft.types.v2.Block
|
||||
}
|
||||
var file_cosmos_base_abci_v1beta1_abci_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.base.abci.v1beta1.TxResponse.logs:type_name -> cosmos.base.abci.v1beta1.ABCIMessageLog
|
||||
11, // 1: cosmos.base.abci.v1beta1.TxResponse.tx:type_name -> google.protobuf.Any
|
||||
12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> cometbft.abci.v1.Event
|
||||
12, // 2: cosmos.base.abci.v1beta1.TxResponse.events:type_name -> cometbft.abci.v2.Event
|
||||
2, // 3: cosmos.base.abci.v1beta1.ABCIMessageLog.events:type_name -> cosmos.base.abci.v1beta1.StringEvent
|
||||
3, // 4: cosmos.base.abci.v1beta1.StringEvent.attributes:type_name -> cosmos.base.abci.v1beta1.Attribute
|
||||
12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> cometbft.abci.v1.Event
|
||||
12, // 5: cosmos.base.abci.v1beta1.Result.events:type_name -> cometbft.abci.v2.Event
|
||||
11, // 6: cosmos.base.abci.v1beta1.Result.msg_responses:type_name -> google.protobuf.Any
|
||||
4, // 7: cosmos.base.abci.v1beta1.SimulationResponse.gas_info:type_name -> cosmos.base.abci.v1beta1.GasInfo
|
||||
5, // 8: cosmos.base.abci.v1beta1.SimulationResponse.result:type_name -> cosmos.base.abci.v1beta1.Result
|
||||
7, // 9: cosmos.base.abci.v1beta1.TxMsgData.data:type_name -> cosmos.base.abci.v1beta1.MsgData
|
||||
11, // 10: cosmos.base.abci.v1beta1.TxMsgData.msg_responses:type_name -> google.protobuf.Any
|
||||
0, // 11: cosmos.base.abci.v1beta1.SearchTxsResult.txs:type_name -> cosmos.base.abci.v1beta1.TxResponse
|
||||
13, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cometbft.types.v1.Block
|
||||
13, // 12: cosmos.base.abci.v1beta1.SearchBlocksResult.blocks:type_name -> cometbft.types.v2.Block
|
||||
13, // [13:13] is the sub-list for method output_type
|
||||
13, // [13:13] is the sub-list for method input_type
|
||||
13, // [13:13] is the sub-list for extension type_name
|
||||
|
||||
@@ -3,8 +3,8 @@ package tendermintv1beta1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
v11 "cosmossdk.io/api/cometbft/p2p/v1"
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v1 "cosmossdk.io/api/cometbft/p2p/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
|
||||
fmt "fmt"
|
||||
_ "github.com/cosmos/cosmos-proto"
|
||||
@@ -3366,9 +3366,9 @@ func (x *fastReflection_GetBlockByHeightResponse) Get(descriptor protoreflect.Fi
|
||||
func (x *fastReflection_GetBlockByHeightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id":
|
||||
x.BlockId = value.Message().Interface().(*v1.BlockID)
|
||||
x.BlockId = value.Message().Interface().(*v2.BlockID)
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block":
|
||||
x.Block = value.Message().Interface().(*v1.Block)
|
||||
x.Block = value.Message().Interface().(*v2.Block)
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block":
|
||||
x.SdkBlock = value.Message().Interface().(*Block)
|
||||
default:
|
||||
@@ -3393,12 +3393,12 @@ func (x *fastReflection_GetBlockByHeightResponse) Mutable(fd protoreflect.FieldD
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id":
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = new(v1.BlockID)
|
||||
x.BlockId = new(v2.BlockID)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block":
|
||||
if x.Block == nil {
|
||||
x.Block = new(v1.Block)
|
||||
x.Block = new(v2.Block)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Block.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block":
|
||||
@@ -3420,10 +3420,10 @@ func (x *fastReflection_GetBlockByHeightResponse) Mutable(fd protoreflect.FieldD
|
||||
func (x *fastReflection_GetBlockByHeightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id":
|
||||
m := new(v1.BlockID)
|
||||
m := new(v2.BlockID)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block":
|
||||
m := new(v1.Block)
|
||||
m := new(v2.Block)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block":
|
||||
m := new(Block)
|
||||
@@ -3659,7 +3659,7 @@ func (x *fastReflection_GetBlockByHeightResponse) ProtoMethods() *protoiface.Met
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = &v1.BlockID{}
|
||||
x.BlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -3695,7 +3695,7 @@ func (x *fastReflection_GetBlockByHeightResponse) ProtoMethods() *protoiface.Met
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Block == nil {
|
||||
x.Block = &v1.Block{}
|
||||
x.Block = &v2.Block{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -4315,9 +4315,9 @@ func (x *fastReflection_GetLatestBlockResponse) Get(descriptor protoreflect.Fiel
|
||||
func (x *fastReflection_GetLatestBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id":
|
||||
x.BlockId = value.Message().Interface().(*v1.BlockID)
|
||||
x.BlockId = value.Message().Interface().(*v2.BlockID)
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block":
|
||||
x.Block = value.Message().Interface().(*v1.Block)
|
||||
x.Block = value.Message().Interface().(*v2.Block)
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block":
|
||||
x.SdkBlock = value.Message().Interface().(*Block)
|
||||
default:
|
||||
@@ -4342,12 +4342,12 @@ func (x *fastReflection_GetLatestBlockResponse) Mutable(fd protoreflect.FieldDes
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id":
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = new(v1.BlockID)
|
||||
x.BlockId = new(v2.BlockID)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.BlockId.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block":
|
||||
if x.Block == nil {
|
||||
x.Block = new(v1.Block)
|
||||
x.Block = new(v2.Block)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Block.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block":
|
||||
@@ -4369,10 +4369,10 @@ func (x *fastReflection_GetLatestBlockResponse) Mutable(fd protoreflect.FieldDes
|
||||
func (x *fastReflection_GetLatestBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id":
|
||||
m := new(v1.BlockID)
|
||||
m := new(v2.BlockID)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block":
|
||||
m := new(v1.Block)
|
||||
m := new(v2.Block)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block":
|
||||
m := new(Block)
|
||||
@@ -4608,7 +4608,7 @@ func (x *fastReflection_GetLatestBlockResponse) ProtoMethods() *protoiface.Metho
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.BlockId == nil {
|
||||
x.BlockId = &v1.BlockID{}
|
||||
x.BlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.BlockId); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -4644,7 +4644,7 @@ func (x *fastReflection_GetLatestBlockResponse) ProtoMethods() *protoiface.Metho
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Block == nil {
|
||||
x.Block = &v1.Block{}
|
||||
x.Block = &v2.Block{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Block); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -6015,7 +6015,7 @@ func (x *fastReflection_GetNodeInfoResponse) Get(descriptor protoreflect.FieldDe
|
||||
func (x *fastReflection_GetNodeInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info":
|
||||
x.DefaultNodeInfo = value.Message().Interface().(*v11.DefaultNodeInfo)
|
||||
x.DefaultNodeInfo = value.Message().Interface().(*v1.DefaultNodeInfo)
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version":
|
||||
x.ApplicationVersion = value.Message().Interface().(*VersionInfo)
|
||||
default:
|
||||
@@ -6040,7 +6040,7 @@ func (x *fastReflection_GetNodeInfoResponse) Mutable(fd protoreflect.FieldDescri
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info":
|
||||
if x.DefaultNodeInfo == nil {
|
||||
x.DefaultNodeInfo = new(v11.DefaultNodeInfo)
|
||||
x.DefaultNodeInfo = new(v1.DefaultNodeInfo)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.DefaultNodeInfo.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version":
|
||||
@@ -6062,7 +6062,7 @@ func (x *fastReflection_GetNodeInfoResponse) Mutable(fd protoreflect.FieldDescri
|
||||
func (x *fastReflection_GetNodeInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info":
|
||||
m := new(v11.DefaultNodeInfo)
|
||||
m := new(v1.DefaultNodeInfo)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version":
|
||||
m := new(VersionInfo)
|
||||
@@ -6280,7 +6280,7 @@ func (x *fastReflection_GetNodeInfoResponse) ProtoMethods() *protoiface.Methods
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.DefaultNodeInfo == nil {
|
||||
x.DefaultNodeInfo = &v11.DefaultNodeInfo{}
|
||||
x.DefaultNodeInfo = &v1.DefaultNodeInfo{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DefaultNodeInfo); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -10687,9 +10687,9 @@ type GetBlockByHeightResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
BlockId *v1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *v1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
|
||||
@@ -10713,14 +10713,14 @@ func (*GetBlockByHeightResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *GetBlockByHeightResponse) GetBlockId() *v1.BlockID {
|
||||
func (x *GetBlockByHeightResponse) GetBlockId() *v2.BlockID {
|
||||
if x != nil {
|
||||
return x.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetBlockByHeightResponse) GetBlock() *v1.Block {
|
||||
func (x *GetBlockByHeightResponse) GetBlock() *v2.Block {
|
||||
if x != nil {
|
||||
return x.Block
|
||||
}
|
||||
@@ -10767,9 +10767,9 @@ type GetLatestBlockResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
BlockId *v1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
BlockId *v2.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
|
||||
// Deprecated: please use `sdk_block` instead
|
||||
Block *v1.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
Block *v2.Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
|
||||
SdkBlock *Block `protobuf:"bytes,3,opt,name=sdk_block,json=sdkBlock,proto3" json:"sdk_block,omitempty"`
|
||||
}
|
||||
|
||||
@@ -10793,14 +10793,14 @@ func (*GetLatestBlockResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *GetLatestBlockResponse) GetBlockId() *v1.BlockID {
|
||||
func (x *GetLatestBlockResponse) GetBlockId() *v2.BlockID {
|
||||
if x != nil {
|
||||
return x.BlockId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetLatestBlockResponse) GetBlock() *v1.Block {
|
||||
func (x *GetLatestBlockResponse) GetBlock() *v2.Block {
|
||||
if x != nil {
|
||||
return x.Block
|
||||
}
|
||||
@@ -10910,8 +10910,8 @@ type GetNodeInfoResponse struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
DefaultNodeInfo *v11.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
|
||||
ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
|
||||
DefaultNodeInfo *v1.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
|
||||
ApplicationVersion *VersionInfo `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetNodeInfoResponse) Reset() {
|
||||
@@ -10934,7 +10934,7 @@ func (*GetNodeInfoResponse) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_query_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *GetNodeInfoResponse) GetDefaultNodeInfo() *v11.DefaultNodeInfo {
|
||||
func (x *GetNodeInfoResponse) GetDefaultNodeInfo() *v1.DefaultNodeInfo {
|
||||
if x != nil {
|
||||
return x.DefaultNodeInfo
|
||||
}
|
||||
@@ -11367,7 +11367,7 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x6d,
|
||||
0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x70, 0x32, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70,
|
||||
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62,
|
||||
0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65,
|
||||
0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65,
|
||||
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
|
||||
0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||||
0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
|
||||
@@ -11376,7 +11376,7 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
|
||||
0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f,
|
||||
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65,
|
||||
0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c,
|
||||
0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x62, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f,
|
||||
0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a,
|
||||
0x1e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74,
|
||||
@@ -11440,10 +11440,10 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08,
|
||||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
|
||||
0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c,
|
||||
0x6f, 0x63, 0x6b, 0x12, 0x57, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||||
0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2e,
|
||||
@@ -11455,10 +11455,10 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x65, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x35, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x52, 0x07,
|
||||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66,
|
||||
0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
|
||||
0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x57, 0x0a, 0x09, 0x73, 0x64, 0x6b, 0x5f, 0x62,
|
||||
0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73,
|
||||
0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d,
|
||||
@@ -11681,10 +11681,10 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_goTypes = []interface{}{
|
||||
(*v1beta1.PageRequest)(nil), // 19: cosmos.base.query.v1beta1.PageRequest
|
||||
(*v1beta1.PageResponse)(nil), // 20: cosmos.base.query.v1beta1.PageResponse
|
||||
(*anypb.Any)(nil), // 21: google.protobuf.Any
|
||||
(*v1.BlockID)(nil), // 22: cometbft.types.v1.BlockID
|
||||
(*v1.Block)(nil), // 23: cometbft.types.v1.Block
|
||||
(*v2.BlockID)(nil), // 22: cometbft.types.v2.BlockID
|
||||
(*v2.Block)(nil), // 23: cometbft.types.v2.Block
|
||||
(*Block)(nil), // 24: cosmos.base.tendermint.v1beta1.Block
|
||||
(*v11.DefaultNodeInfo)(nil), // 25: cometbft.p2p.v1.DefaultNodeInfo
|
||||
(*v1.DefaultNodeInfo)(nil), // 25: cometbft.p2p.v1.DefaultNodeInfo
|
||||
}
|
||||
var file_cosmos_base_tendermint_v1beta1_query_proto_depIdxs = []int32{
|
||||
19, // 0: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||||
@@ -11694,11 +11694,11 @@ var file_cosmos_base_tendermint_v1beta1_query_proto_depIdxs = []int32{
|
||||
4, // 4: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.validators:type_name -> cosmos.base.tendermint.v1beta1.Validator
|
||||
20, // 5: cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||||
21, // 6: cosmos.base.tendermint.v1beta1.Validator.pub_key:type_name -> google.protobuf.Any
|
||||
22, // 7: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id:type_name -> cometbft.types.v1.BlockID
|
||||
23, // 8: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block:type_name -> cometbft.types.v1.Block
|
||||
22, // 7: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block_id:type_name -> cometbft.types.v2.BlockID
|
||||
23, // 8: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.block:type_name -> cometbft.types.v2.Block
|
||||
24, // 9: cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse.sdk_block:type_name -> cosmos.base.tendermint.v1beta1.Block
|
||||
22, // 10: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id:type_name -> cometbft.types.v1.BlockID
|
||||
23, // 11: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block:type_name -> cometbft.types.v1.Block
|
||||
22, // 10: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block_id:type_name -> cometbft.types.v2.BlockID
|
||||
23, // 11: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.block:type_name -> cometbft.types.v2.Block
|
||||
24, // 12: cosmos.base.tendermint.v1beta1.GetLatestBlockResponse.sdk_block:type_name -> cosmos.base.tendermint.v1beta1.Block
|
||||
25, // 13: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.default_node_info:type_name -> cometbft.p2p.v1.DefaultNodeInfo
|
||||
13, // 14: cosmos.base.tendermint.v1beta1.GetNodeInfoResponse.application_version:type_name -> cosmos.base.tendermint.v1beta1.VersionInfo
|
||||
|
||||
@@ -3,8 +3,8 @@ package tendermintv1beta1
|
||||
|
||||
import (
|
||||
_ "cosmossdk.io/api/amino"
|
||||
v1 "cosmossdk.io/api/cometbft/types/v1"
|
||||
v11 "cosmossdk.io/api/cometbft/version/v1"
|
||||
v2 "cosmossdk.io/api/cometbft/types/v2"
|
||||
v1 "cosmossdk.io/api/cometbft/version/v1"
|
||||
fmt "fmt"
|
||||
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||||
_ "github.com/cosmos/gogoproto/gogoproto"
|
||||
@@ -221,11 +221,11 @@ func (x *fastReflection_Block) Set(fd protoreflect.FieldDescriptor, value protor
|
||||
case "cosmos.base.tendermint.v1beta1.Block.header":
|
||||
x.Header = value.Message().Interface().(*Header)
|
||||
case "cosmos.base.tendermint.v1beta1.Block.data":
|
||||
x.Data = value.Message().Interface().(*v1.Data)
|
||||
x.Data = value.Message().Interface().(*v2.Data)
|
||||
case "cosmos.base.tendermint.v1beta1.Block.evidence":
|
||||
x.Evidence = value.Message().Interface().(*v1.EvidenceList)
|
||||
x.Evidence = value.Message().Interface().(*v2.EvidenceList)
|
||||
case "cosmos.base.tendermint.v1beta1.Block.last_commit":
|
||||
x.LastCommit = value.Message().Interface().(*v1.Commit)
|
||||
x.LastCommit = value.Message().Interface().(*v2.Commit)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.base.tendermint.v1beta1.Block"))
|
||||
@@ -253,17 +253,17 @@ func (x *fastReflection_Block) Mutable(fd protoreflect.FieldDescriptor) protoref
|
||||
return protoreflect.ValueOfMessage(x.Header.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.data":
|
||||
if x.Data == nil {
|
||||
x.Data = new(v1.Data)
|
||||
x.Data = new(v2.Data)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Data.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.evidence":
|
||||
if x.Evidence == nil {
|
||||
x.Evidence = new(v1.EvidenceList)
|
||||
x.Evidence = new(v2.EvidenceList)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Evidence.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.last_commit":
|
||||
if x.LastCommit == nil {
|
||||
x.LastCommit = new(v1.Commit)
|
||||
x.LastCommit = new(v2.Commit)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect())
|
||||
default:
|
||||
@@ -283,13 +283,13 @@ func (x *fastReflection_Block) NewField(fd protoreflect.FieldDescriptor) protore
|
||||
m := new(Header)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.data":
|
||||
m := new(v1.Data)
|
||||
m := new(v2.Data)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.evidence":
|
||||
m := new(v1.EvidenceList)
|
||||
m := new(v2.EvidenceList)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Block.last_commit":
|
||||
m := new(v1.Commit)
|
||||
m := new(v2.Commit)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
@@ -576,7 +576,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Data == nil {
|
||||
x.Data = &v1.Data{}
|
||||
x.Data = &v2.Data{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -612,7 +612,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Evidence == nil {
|
||||
x.Evidence = &v1.EvidenceList{}
|
||||
x.Evidence = &v2.EvidenceList{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Evidence); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -648,7 +648,7 @@ func (x *fastReflection_Block) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.LastCommit == nil {
|
||||
x.LastCommit = &v1.Commit{}
|
||||
x.LastCommit = &v2.Commit{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCommit); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1041,7 +1041,7 @@ func (x *fastReflection_Header) Get(descriptor protoreflect.FieldDescriptor) pro
|
||||
func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.Header.version":
|
||||
x.Version = value.Message().Interface().(*v11.Consensus)
|
||||
x.Version = value.Message().Interface().(*v1.Consensus)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.chain_id":
|
||||
x.ChainId = value.Interface().(string)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.height":
|
||||
@@ -1049,7 +1049,7 @@ func (x *fastReflection_Header) Set(fd protoreflect.FieldDescriptor, value proto
|
||||
case "cosmos.base.tendermint.v1beta1.Header.time":
|
||||
x.Time = value.Message().Interface().(*timestamppb.Timestamp)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_block_id":
|
||||
x.LastBlockId = value.Message().Interface().(*v1.BlockID)
|
||||
x.LastBlockId = value.Message().Interface().(*v2.BlockID)
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_commit_hash":
|
||||
x.LastCommitHash = value.Bytes()
|
||||
case "cosmos.base.tendermint.v1beta1.Header.data_hash":
|
||||
@@ -1090,7 +1090,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.Header.version":
|
||||
if x.Version == nil {
|
||||
x.Version = new(v11.Consensus)
|
||||
x.Version = new(v1.Consensus)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.Version.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.time":
|
||||
@@ -1100,7 +1100,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
return protoreflect.ValueOfMessage(x.Time.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_block_id":
|
||||
if x.LastBlockId == nil {
|
||||
x.LastBlockId = new(v1.BlockID)
|
||||
x.LastBlockId = new(v2.BlockID)
|
||||
}
|
||||
return protoreflect.ValueOfMessage(x.LastBlockId.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.chain_id":
|
||||
@@ -1139,7 +1139,7 @@ func (x *fastReflection_Header) Mutable(fd protoreflect.FieldDescriptor) protore
|
||||
func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.base.tendermint.v1beta1.Header.version":
|
||||
m := new(v11.Consensus)
|
||||
m := new(v1.Consensus)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.chain_id":
|
||||
return protoreflect.ValueOfString("")
|
||||
@@ -1149,7 +1149,7 @@ func (x *fastReflection_Header) NewField(fd protoreflect.FieldDescriptor) protor
|
||||
m := new(timestamppb.Timestamp)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_block_id":
|
||||
m := new(v1.BlockID)
|
||||
m := new(v2.BlockID)
|
||||
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||||
case "cosmos.base.tendermint.v1beta1.Header.last_commit_hash":
|
||||
return protoreflect.ValueOfBytes(nil)
|
||||
@@ -1518,7 +1518,7 @@ func (x *fastReflection_Header) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.Version == nil {
|
||||
x.Version = &v11.Consensus{}
|
||||
x.Version = &v1.Consensus{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Version); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -1641,7 +1641,7 @@ func (x *fastReflection_Header) ProtoMethods() *protoiface.Methods {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
||||
}
|
||||
if x.LastBlockId == nil {
|
||||
x.LastBlockId = &v1.BlockID{}
|
||||
x.LastBlockId = &v2.BlockID{}
|
||||
}
|
||||
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastBlockId); err != nil {
|
||||
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||||
@@ -2007,9 +2007,9 @@ type Block struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
Data *v1.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Evidence *v1.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
LastCommit *v1.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
|
||||
Data *v2.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||||
Evidence *v2.EvidenceList `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
LastCommit *v2.Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Block) Reset() {
|
||||
@@ -2039,21 +2039,21 @@ func (x *Block) GetHeader() *Header {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Block) GetData() *v1.Data {
|
||||
func (x *Block) GetData() *v2.Data {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Block) GetEvidence() *v1.EvidenceList {
|
||||
func (x *Block) GetEvidence() *v2.EvidenceList {
|
||||
if x != nil {
|
||||
return x.Evidence
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Block) GetLastCommit() *v1.Commit {
|
||||
func (x *Block) GetLastCommit() *v2.Commit {
|
||||
if x != nil {
|
||||
return x.LastCommit
|
||||
}
|
||||
@@ -2067,12 +2067,12 @@ type Header struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// basic block info
|
||||
Version *v11.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
Version *v1.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
|
||||
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
Time *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
|
||||
// prev block info
|
||||
LastBlockId *v1.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"`
|
||||
LastBlockId *v2.BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id,omitempty"`
|
||||
// hashes of block data
|
||||
LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` // commit from validators from the last block
|
||||
DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // transactions
|
||||
@@ -2110,7 +2110,7 @@ func (*Header) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_base_tendermint_v1beta1_types_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Header) GetVersion() *v11.Consensus {
|
||||
func (x *Header) GetVersion() *v1.Consensus {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
@@ -2138,7 +2138,7 @@ func (x *Header) GetTime() *timestamppb.Timestamp {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Header) GetLastBlockId() *v1.BlockID {
|
||||
func (x *Header) GetLastBlockId() *v2.BlockID {
|
||||
if x != nil {
|
||||
return x.LastBlockId
|
||||
}
|
||||
@@ -2218,9 +2218,9 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_rawDesc = []byte{
|
||||
0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x14, 0x67, 0x6f,
|
||||
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70,
|
||||
0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x65, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65,
|
||||
0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x73, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x76, 0x65,
|
||||
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
|
||||
@@ -2233,16 +2233,16 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_rawDesc = []byte{
|
||||
0x74, 0x61, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00,
|
||||
0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x36, 0x0a,
|
||||
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6f,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e,
|
||||
0x44, 0x61, 0x74, 0x61, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52,
|
||||
0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63,
|
||||
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62,
|
||||
0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x69, 0x64,
|
||||
0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x69, 0x64,
|
||||
0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7,
|
||||
0xb0, 0x2a, 0x01, 0x52, 0x08, 0x65, 0x76, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3a, 0x0a,
|
||||
0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x6c,
|
||||
0x70, 0x65, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x0a, 0x6c,
|
||||
0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0xf7, 0x04, 0x0a, 0x06, 0x48, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74,
|
||||
@@ -2259,7 +2259,7 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_rawDesc = []byte{
|
||||
0x2a, 0x01, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74,
|
||||
0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x1a, 0x2e, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
|
||||
0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x09, 0xc8, 0xde, 0x1f,
|
||||
0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x44, 0x42, 0x09, 0xc8, 0xde, 0x1f,
|
||||
0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x63,
|
||||
0x6b, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d,
|
||||
0x69, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6c,
|
||||
@@ -2319,21 +2319,21 @@ var file_cosmos_base_tendermint_v1beta1_types_proto_msgTypes = make([]protoimpl.
|
||||
var file_cosmos_base_tendermint_v1beta1_types_proto_goTypes = []interface{}{
|
||||
(*Block)(nil), // 0: cosmos.base.tendermint.v1beta1.Block
|
||||
(*Header)(nil), // 1: cosmos.base.tendermint.v1beta1.Header
|
||||
(*v1.Data)(nil), // 2: cometbft.types.v1.Data
|
||||
(*v1.EvidenceList)(nil), // 3: cometbft.types.v1.EvidenceList
|
||||
(*v1.Commit)(nil), // 4: cometbft.types.v1.Commit
|
||||
(*v11.Consensus)(nil), // 5: cometbft.version.v1.Consensus
|
||||
(*v2.Data)(nil), // 2: cometbft.types.v2.Data
|
||||
(*v2.EvidenceList)(nil), // 3: cometbft.types.v2.EvidenceList
|
||||
(*v2.Commit)(nil), // 4: cometbft.types.v2.Commit
|
||||
(*v1.Consensus)(nil), // 5: cometbft.version.v1.Consensus
|
||||
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
|
||||
(*v1.BlockID)(nil), // 7: cometbft.types.v1.BlockID
|
||||
(*v2.BlockID)(nil), // 7: cometbft.types.v2.BlockID
|
||||
}
|
||||
var file_cosmos_base_tendermint_v1beta1_types_proto_depIdxs = []int32{
|
||||
1, // 0: cosmos.base.tendermint.v1beta1.Block.header:type_name -> cosmos.base.tendermint.v1beta1.Header
|
||||
2, // 1: cosmos.base.tendermint.v1beta1.Block.data:type_name -> cometbft.types.v1.Data
|
||||
3, // 2: cosmos.base.tendermint.v1beta1.Block.evidence:type_name -> cometbft.types.v1.EvidenceList
|
||||
4, // 3: cosmos.base.tendermint.v1beta1.Block.last_commit:type_name -> cometbft.types.v1.Commit
|
||||
2, // 1: cosmos.base.tendermint.v1beta1.Block.data:type_name -> cometbft.types.v2.Data
|
||||
3, // 2: cosmos.base.tendermint.v1beta1.Block.evidence:type_name -> cometbft.types.v2.EvidenceList
|
||||
4, // 3: cosmos.base.tendermint.v1beta1.Block.last_commit:type_name -> cometbft.types.v2.Commit
|
||||
5, // 4: cosmos.base.tendermint.v1beta1.Header.version:type_name -> cometbft.version.v1.Consensus
|
||||
6, // 5: cosmos.base.tendermint.v1beta1.Header.time:type_name -> google.protobuf.Timestamp
|
||||
7, // 6: cosmos.base.tendermint.v1beta1.Header.last_block_id:type_name -> cometbft.types.v1.BlockID
|
||||
7, // 6: cosmos.base.tendermint.v1beta1.Header.last_block_id:type_name -> cometbft.types.v2.BlockID
|
||||
7, // [7:7] is the sub-list for method output_type
|
||||
7, // [7:7] is the sub-list for method input_type
|
||||
7, // [7:7] is the sub-list for extension type_name
|
||||
|
||||
Reference in New Issue
Block a user