github.com/evdatsion/aphelion-dpos-bft@v0.32.1/types/proto3/block.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: types/proto3/block.proto 3 4 package proto3 5 6 import proto "github.com/gogo/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 // Reference imports to suppress errors if they are not otherwise used. 11 var _ = proto.Marshal 12 var _ = fmt.Errorf 13 var _ = math.Inf 14 15 // This is a compile-time assertion to ensure that this generated file 16 // is compatible with the proto package it is being compiled against. 17 // A compilation error at this line likely means your copy of the 18 // proto package needs to be updated. 19 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 20 21 type PartSetHeader struct { 22 Total int32 `protobuf:"varint,1,opt,name=Total,proto3" json:"Total,omitempty"` 23 Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"` 24 XXX_NoUnkeyedLiteral struct{} `json:"-"` 25 XXX_unrecognized []byte `json:"-"` 26 XXX_sizecache int32 `json:"-"` 27 } 28 29 func (m *PartSetHeader) Reset() { *m = PartSetHeader{} } 30 func (m *PartSetHeader) String() string { return proto.CompactTextString(m) } 31 func (*PartSetHeader) ProtoMessage() {} 32 func (*PartSetHeader) Descriptor() ([]byte, []int) { 33 return fileDescriptor_block_1ca6cebf74619a45, []int{0} 34 } 35 func (m *PartSetHeader) XXX_Unmarshal(b []byte) error { 36 return xxx_messageInfo_PartSetHeader.Unmarshal(m, b) 37 } 38 func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 39 return xxx_messageInfo_PartSetHeader.Marshal(b, m, deterministic) 40 } 41 func (dst *PartSetHeader) XXX_Merge(src proto.Message) { 42 xxx_messageInfo_PartSetHeader.Merge(dst, src) 43 } 44 func (m *PartSetHeader) XXX_Size() int { 45 return xxx_messageInfo_PartSetHeader.Size(m) 46 } 47 func (m *PartSetHeader) XXX_DiscardUnknown() { 48 xxx_messageInfo_PartSetHeader.DiscardUnknown(m) 49 } 50 51 var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo 52 53 func (m *PartSetHeader) GetTotal() int32 { 54 if m != nil { 55 return m.Total 56 } 57 return 0 58 } 59 60 func (m *PartSetHeader) GetHash() []byte { 61 if m != nil { 62 return m.Hash 63 } 64 return nil 65 } 66 67 type BlockID struct { 68 Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` 69 PartsHeader *PartSetHeader `protobuf:"bytes,2,opt,name=PartsHeader" json:"PartsHeader,omitempty"` 70 XXX_NoUnkeyedLiteral struct{} `json:"-"` 71 XXX_unrecognized []byte `json:"-"` 72 XXX_sizecache int32 `json:"-"` 73 } 74 75 func (m *BlockID) Reset() { *m = BlockID{} } 76 func (m *BlockID) String() string { return proto.CompactTextString(m) } 77 func (*BlockID) ProtoMessage() {} 78 func (*BlockID) Descriptor() ([]byte, []int) { 79 return fileDescriptor_block_1ca6cebf74619a45, []int{1} 80 } 81 func (m *BlockID) XXX_Unmarshal(b []byte) error { 82 return xxx_messageInfo_BlockID.Unmarshal(m, b) 83 } 84 func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 85 return xxx_messageInfo_BlockID.Marshal(b, m, deterministic) 86 } 87 func (dst *BlockID) XXX_Merge(src proto.Message) { 88 xxx_messageInfo_BlockID.Merge(dst, src) 89 } 90 func (m *BlockID) XXX_Size() int { 91 return xxx_messageInfo_BlockID.Size(m) 92 } 93 func (m *BlockID) XXX_DiscardUnknown() { 94 xxx_messageInfo_BlockID.DiscardUnknown(m) 95 } 96 97 var xxx_messageInfo_BlockID proto.InternalMessageInfo 98 99 func (m *BlockID) GetHash() []byte { 100 if m != nil { 101 return m.Hash 102 } 103 return nil 104 } 105 106 func (m *BlockID) GetPartsHeader() *PartSetHeader { 107 if m != nil { 108 return m.PartsHeader 109 } 110 return nil 111 } 112 113 type Header struct { 114 // basic block info 115 Version *Version `protobuf:"bytes,1,opt,name=Version" json:"Version,omitempty"` 116 ChainID string `protobuf:"bytes,2,opt,name=ChainID,proto3" json:"ChainID,omitempty"` 117 Height int64 `protobuf:"varint,3,opt,name=Height,proto3" json:"Height,omitempty"` 118 Time *Timestamp `protobuf:"bytes,4,opt,name=Time" json:"Time,omitempty"` 119 NumTxs int64 `protobuf:"varint,5,opt,name=NumTxs,proto3" json:"NumTxs,omitempty"` 120 TotalTxs int64 `protobuf:"varint,6,opt,name=TotalTxs,proto3" json:"TotalTxs,omitempty"` 121 // prev block info 122 LastBlockID *BlockID `protobuf:"bytes,7,opt,name=LastBlockID" json:"LastBlockID,omitempty"` 123 // hashes of block data 124 LastCommitHash []byte `protobuf:"bytes,8,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"` 125 DataHash []byte `protobuf:"bytes,9,opt,name=DataHash,proto3" json:"DataHash,omitempty"` 126 // hashes from the app output from the prev block 127 ValidatorsHash []byte `protobuf:"bytes,10,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"` 128 NextValidatorsHash []byte `protobuf:"bytes,11,opt,name=NextValidatorsHash,proto3" json:"NextValidatorsHash,omitempty"` 129 ConsensusHash []byte `protobuf:"bytes,12,opt,name=ConsensusHash,proto3" json:"ConsensusHash,omitempty"` 130 AppHash []byte `protobuf:"bytes,13,opt,name=AppHash,proto3" json:"AppHash,omitempty"` 131 LastResultsHash []byte `protobuf:"bytes,14,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"` 132 // consensus info 133 EvidenceHash []byte `protobuf:"bytes,15,opt,name=EvidenceHash,proto3" json:"EvidenceHash,omitempty"` 134 ProposerAddress []byte `protobuf:"bytes,16,opt,name=ProposerAddress,proto3" json:"ProposerAddress,omitempty"` 135 XXX_NoUnkeyedLiteral struct{} `json:"-"` 136 XXX_unrecognized []byte `json:"-"` 137 XXX_sizecache int32 `json:"-"` 138 } 139 140 func (m *Header) Reset() { *m = Header{} } 141 func (m *Header) String() string { return proto.CompactTextString(m) } 142 func (*Header) ProtoMessage() {} 143 func (*Header) Descriptor() ([]byte, []int) { 144 return fileDescriptor_block_1ca6cebf74619a45, []int{2} 145 } 146 func (m *Header) XXX_Unmarshal(b []byte) error { 147 return xxx_messageInfo_Header.Unmarshal(m, b) 148 } 149 func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 150 return xxx_messageInfo_Header.Marshal(b, m, deterministic) 151 } 152 func (dst *Header) XXX_Merge(src proto.Message) { 153 xxx_messageInfo_Header.Merge(dst, src) 154 } 155 func (m *Header) XXX_Size() int { 156 return xxx_messageInfo_Header.Size(m) 157 } 158 func (m *Header) XXX_DiscardUnknown() { 159 xxx_messageInfo_Header.DiscardUnknown(m) 160 } 161 162 var xxx_messageInfo_Header proto.InternalMessageInfo 163 164 func (m *Header) GetVersion() *Version { 165 if m != nil { 166 return m.Version 167 } 168 return nil 169 } 170 171 func (m *Header) GetChainID() string { 172 if m != nil { 173 return m.ChainID 174 } 175 return "" 176 } 177 178 func (m *Header) GetHeight() int64 { 179 if m != nil { 180 return m.Height 181 } 182 return 0 183 } 184 185 func (m *Header) GetTime() *Timestamp { 186 if m != nil { 187 return m.Time 188 } 189 return nil 190 } 191 192 func (m *Header) GetNumTxs() int64 { 193 if m != nil { 194 return m.NumTxs 195 } 196 return 0 197 } 198 199 func (m *Header) GetTotalTxs() int64 { 200 if m != nil { 201 return m.TotalTxs 202 } 203 return 0 204 } 205 206 func (m *Header) GetLastBlockID() *BlockID { 207 if m != nil { 208 return m.LastBlockID 209 } 210 return nil 211 } 212 213 func (m *Header) GetLastCommitHash() []byte { 214 if m != nil { 215 return m.LastCommitHash 216 } 217 return nil 218 } 219 220 func (m *Header) GetDataHash() []byte { 221 if m != nil { 222 return m.DataHash 223 } 224 return nil 225 } 226 227 func (m *Header) GetValidatorsHash() []byte { 228 if m != nil { 229 return m.ValidatorsHash 230 } 231 return nil 232 } 233 234 func (m *Header) GetNextValidatorsHash() []byte { 235 if m != nil { 236 return m.NextValidatorsHash 237 } 238 return nil 239 } 240 241 func (m *Header) GetConsensusHash() []byte { 242 if m != nil { 243 return m.ConsensusHash 244 } 245 return nil 246 } 247 248 func (m *Header) GetAppHash() []byte { 249 if m != nil { 250 return m.AppHash 251 } 252 return nil 253 } 254 255 func (m *Header) GetLastResultsHash() []byte { 256 if m != nil { 257 return m.LastResultsHash 258 } 259 return nil 260 } 261 262 func (m *Header) GetEvidenceHash() []byte { 263 if m != nil { 264 return m.EvidenceHash 265 } 266 return nil 267 } 268 269 func (m *Header) GetProposerAddress() []byte { 270 if m != nil { 271 return m.ProposerAddress 272 } 273 return nil 274 } 275 276 type Version struct { 277 Block uint64 `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"` 278 App uint64 `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"` 279 XXX_NoUnkeyedLiteral struct{} `json:"-"` 280 XXX_unrecognized []byte `json:"-"` 281 XXX_sizecache int32 `json:"-"` 282 } 283 284 func (m *Version) Reset() { *m = Version{} } 285 func (m *Version) String() string { return proto.CompactTextString(m) } 286 func (*Version) ProtoMessage() {} 287 func (*Version) Descriptor() ([]byte, []int) { 288 return fileDescriptor_block_1ca6cebf74619a45, []int{3} 289 } 290 func (m *Version) XXX_Unmarshal(b []byte) error { 291 return xxx_messageInfo_Version.Unmarshal(m, b) 292 } 293 func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 294 return xxx_messageInfo_Version.Marshal(b, m, deterministic) 295 } 296 func (dst *Version) XXX_Merge(src proto.Message) { 297 xxx_messageInfo_Version.Merge(dst, src) 298 } 299 func (m *Version) XXX_Size() int { 300 return xxx_messageInfo_Version.Size(m) 301 } 302 func (m *Version) XXX_DiscardUnknown() { 303 xxx_messageInfo_Version.DiscardUnknown(m) 304 } 305 306 var xxx_messageInfo_Version proto.InternalMessageInfo 307 308 func (m *Version) GetBlock() uint64 { 309 if m != nil { 310 return m.Block 311 } 312 return 0 313 } 314 315 func (m *Version) GetApp() uint64 { 316 if m != nil { 317 return m.App 318 } 319 return 0 320 } 321 322 // Timestamp wraps how amino encodes time. 323 // This is the protobuf well-known type protobuf/timestamp.proto 324 // See: 325 // https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 326 // NOTE/XXX: nanos do not get skipped if they are zero in amino. 327 type Timestamp struct { 328 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` 329 Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` 330 XXX_NoUnkeyedLiteral struct{} `json:"-"` 331 XXX_unrecognized []byte `json:"-"` 332 XXX_sizecache int32 `json:"-"` 333 } 334 335 func (m *Timestamp) Reset() { *m = Timestamp{} } 336 func (m *Timestamp) String() string { return proto.CompactTextString(m) } 337 func (*Timestamp) ProtoMessage() {} 338 func (*Timestamp) Descriptor() ([]byte, []int) { 339 return fileDescriptor_block_1ca6cebf74619a45, []int{4} 340 } 341 func (m *Timestamp) XXX_Unmarshal(b []byte) error { 342 return xxx_messageInfo_Timestamp.Unmarshal(m, b) 343 } 344 func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 345 return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic) 346 } 347 func (dst *Timestamp) XXX_Merge(src proto.Message) { 348 xxx_messageInfo_Timestamp.Merge(dst, src) 349 } 350 func (m *Timestamp) XXX_Size() int { 351 return xxx_messageInfo_Timestamp.Size(m) 352 } 353 func (m *Timestamp) XXX_DiscardUnknown() { 354 xxx_messageInfo_Timestamp.DiscardUnknown(m) 355 } 356 357 var xxx_messageInfo_Timestamp proto.InternalMessageInfo 358 359 func (m *Timestamp) GetSeconds() int64 { 360 if m != nil { 361 return m.Seconds 362 } 363 return 0 364 } 365 366 func (m *Timestamp) GetNanos() int32 { 367 if m != nil { 368 return m.Nanos 369 } 370 return 0 371 } 372 373 func init() { 374 proto.RegisterType((*PartSetHeader)(nil), "proto3.PartSetHeader") 375 proto.RegisterType((*BlockID)(nil), "proto3.BlockID") 376 proto.RegisterType((*Header)(nil), "proto3.Header") 377 proto.RegisterType((*Version)(nil), "proto3.Version") 378 proto.RegisterType((*Timestamp)(nil), "proto3.Timestamp") 379 } 380 381 func init() { proto.RegisterFile("types/proto3/block.proto", fileDescriptor_block_1ca6cebf74619a45) } 382 383 var fileDescriptor_block_1ca6cebf74619a45 = []byte{ 384 // 451 bytes of a gzipped FileDescriptorProto 385 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x5f, 0x6f, 0xd3, 0x30, 386 0x10, 0x57, 0x68, 0xda, 0xae, 0x97, 0x76, 0x1d, 0x27, 0x40, 0x16, 0x4f, 0x55, 0x04, 0xa8, 0xbc, 387 0x74, 0xda, 0xf6, 0x80, 0x10, 0x4f, 0xa5, 0x45, 0xda, 0x24, 0x34, 0x4d, 0xa6, 0xea, 0xbb, 0xd7, 388 0x58, 0x34, 0xa2, 0x89, 0xa3, 0x9c, 0x8b, 0xc6, 0x27, 0xe4, 0x6b, 0x21, 0x9f, 0x93, 0xd0, 0x44, 389 0x7b, 0xf3, 0xef, 0xcf, 0xfd, 0xce, 0xbe, 0x5c, 0x40, 0xd8, 0x3f, 0x85, 0xa6, 0xcb, 0xa2, 0x34, 390 0xd6, 0xdc, 0x5c, 0x3e, 0x1e, 0xcc, 0xee, 0xd7, 0x82, 0x01, 0x0e, 0x3c, 0x17, 0x7f, 0x86, 0xc9, 391 0x83, 0x2a, 0xed, 0x0f, 0x6d, 0x6f, 0xb5, 0x4a, 0x74, 0x89, 0xaf, 0xa0, 0xbf, 0x31, 0x56, 0x1d, 392 0x44, 0x30, 0x0b, 0xe6, 0x7d, 0xe9, 0x01, 0x22, 0x84, 0xb7, 0x8a, 0xf6, 0xe2, 0xc5, 0x2c, 0x98, 393 0x8f, 0x25, 0x9f, 0xe3, 0x2d, 0x0c, 0xbf, 0xba, 0xc4, 0xbb, 0x75, 0x23, 0x07, 0xff, 0x65, 0xfc, 394 0x04, 0x91, 0x4b, 0x26, 0x9f, 0xcb, 0x95, 0xd1, 0xf5, 0x6b, 0xdf, 0xfe, 0x66, 0xd1, 0x6a, 0x2a, 395 0x4f, 0x9d, 0xf1, 0xdf, 0x10, 0x06, 0xd5, 0x65, 0x3e, 0xc2, 0x70, 0xab, 0x4b, 0x4a, 0x4d, 0xce, 396 0xd1, 0xd1, 0xf5, 0xb4, 0xae, 0xaf, 0x68, 0x59, 0xeb, 0x28, 0x60, 0xb8, 0xda, 0xab, 0x34, 0xbf, 397 0x5b, 0x73, 0xab, 0x91, 0xac, 0x21, 0xbe, 0x71, 0x71, 0xe9, 0xcf, 0xbd, 0x15, 0xbd, 0x59, 0x30, 398 0xef, 0xc9, 0x0a, 0xe1, 0x7b, 0x08, 0x37, 0x69, 0xa6, 0x45, 0xc8, 0xc9, 0x2f, 0xeb, 0x64, 0xc7, 399 0x91, 0x55, 0x59, 0x21, 0x59, 0x76, 0xe5, 0xf7, 0xc7, 0x6c, 0xf3, 0x44, 0xa2, 0xef, 0xcb, 0x3d, 400 0xc2, 0xb7, 0x70, 0xc6, 0xb3, 0x71, 0xca, 0x80, 0x95, 0x06, 0xe3, 0x15, 0x44, 0xdf, 0x15, 0xd9, 401 0x6a, 0x3c, 0x62, 0xd8, 0xbe, 0x7b, 0x45, 0xcb, 0x53, 0x0f, 0x7e, 0x80, 0x73, 0x07, 0x57, 0x26, 402 0xcb, 0x52, 0xcb, 0xc3, 0x3c, 0xe3, 0x61, 0x76, 0x58, 0xd7, 0x76, 0xad, 0xac, 0x62, 0xc7, 0x88, 403 0x1d, 0x0d, 0x76, 0x19, 0x5b, 0x75, 0x48, 0x13, 0x65, 0x4d, 0x49, 0xec, 0x00, 0x9f, 0xd1, 0x66, 404 0x71, 0x01, 0x78, 0xaf, 0x9f, 0x6c, 0xc7, 0x1b, 0xb1, 0xf7, 0x19, 0x05, 0xdf, 0xc1, 0x64, 0x65, 405 0x72, 0xd2, 0x39, 0x1d, 0xbd, 0x75, 0xcc, 0xd6, 0x36, 0xe9, 0xbe, 0xc0, 0xb2, 0x28, 0x58, 0x9f, 406 0xb0, 0x5e, 0x43, 0x9c, 0xc3, 0xd4, 0xbd, 0x42, 0x6a, 0x3a, 0x1e, 0xac, 0x4f, 0x38, 0x67, 0x47, 407 0x97, 0xc6, 0x18, 0xc6, 0xdf, 0x7e, 0xa7, 0x89, 0xce, 0x77, 0x9a, 0x6d, 0x53, 0xb6, 0xb5, 0x38, 408 0x97, 0xf6, 0x50, 0x9a, 0xc2, 0x90, 0x2e, 0x97, 0x49, 0x52, 0x6a, 0x22, 0x71, 0xe1, 0xd3, 0x3a, 409 0x74, 0x7c, 0xd5, 0xac, 0x8f, 0x5b, 0x6b, 0x9e, 0x34, 0xef, 0x51, 0x28, 0x3d, 0xc0, 0x0b, 0xe8, 410 0x2d, 0x8b, 0x82, 0x17, 0x26, 0x94, 0xee, 0x18, 0x7f, 0x81, 0x51, 0xb3, 0x00, 0xee, 0x45, 0xa4, 411 0x77, 0x26, 0x4f, 0x88, 0xcb, 0x7a, 0xb2, 0x86, 0x2e, 0x2e, 0x57, 0xb9, 0x21, 0x2e, 0xed, 0x4b, 412 0x0f, 0x1e, 0xab, 0x9f, 0xea, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x84, 0xb5, 0xf8, 0x77, 413 0x03, 0x00, 0x00, 414 }