You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

261 lines
8.6 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: block.proto
  3. /*
  4. Package proto3 is a generated protocol buffer package.
  5. It is generated from these files:
  6. block.proto
  7. It has these top-level messages:
  8. PartSetHeader
  9. BlockID
  10. Header
  11. Timestamp
  12. */
  13. package proto3
  14. import proto "github.com/golang/protobuf/proto"
  15. import fmt "fmt"
  16. import math "math"
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  26. type PartSetHeader struct {
  27. Total int32 `protobuf:"zigzag32,1,opt,name=Total" json:"Total,omitempty"`
  28. Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"`
  29. }
  30. func (m *PartSetHeader) Reset() { *m = PartSetHeader{} }
  31. func (m *PartSetHeader) String() string { return proto.CompactTextString(m) }
  32. func (*PartSetHeader) ProtoMessage() {}
  33. func (*PartSetHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  34. func (m *PartSetHeader) GetTotal() int32 {
  35. if m != nil {
  36. return m.Total
  37. }
  38. return 0
  39. }
  40. func (m *PartSetHeader) GetHash() []byte {
  41. if m != nil {
  42. return m.Hash
  43. }
  44. return nil
  45. }
  46. type BlockID struct {
  47. Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
  48. PartsHeader *PartSetHeader `protobuf:"bytes,2,opt,name=PartsHeader" json:"PartsHeader,omitempty"`
  49. }
  50. func (m *BlockID) Reset() { *m = BlockID{} }
  51. func (m *BlockID) String() string { return proto.CompactTextString(m) }
  52. func (*BlockID) ProtoMessage() {}
  53. func (*BlockID) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  54. func (m *BlockID) GetHash() []byte {
  55. if m != nil {
  56. return m.Hash
  57. }
  58. return nil
  59. }
  60. func (m *BlockID) GetPartsHeader() *PartSetHeader {
  61. if m != nil {
  62. return m.PartsHeader
  63. }
  64. return nil
  65. }
  66. type Header struct {
  67. // basic block info
  68. ChainID string `protobuf:"bytes,1,opt,name=ChainID" json:"ChainID,omitempty"`
  69. Height int64 `protobuf:"zigzag64,2,opt,name=Height" json:"Height,omitempty"`
  70. Time *Timestamp `protobuf:"bytes,3,opt,name=Time" json:"Time,omitempty"`
  71. NumTxs int64 `protobuf:"zigzag64,4,opt,name=NumTxs" json:"NumTxs,omitempty"`
  72. // prev block info
  73. LastBlockID *BlockID `protobuf:"bytes,5,opt,name=LastBlockID" json:"LastBlockID,omitempty"`
  74. TotalTxs int64 `protobuf:"zigzag64,6,opt,name=TotalTxs" json:"TotalTxs,omitempty"`
  75. // hashes of block data
  76. LastCommitHash []byte `protobuf:"bytes,7,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"`
  77. DataHash []byte `protobuf:"bytes,8,opt,name=DataHash,proto3" json:"DataHash,omitempty"`
  78. // hashes from the app output from the prev block
  79. ValidatorsHash []byte `protobuf:"bytes,9,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"`
  80. ConsensusHash []byte `protobuf:"bytes,10,opt,name=ConsensusHash,proto3" json:"ConsensusHash,omitempty"`
  81. AppHash []byte `protobuf:"bytes,11,opt,name=AppHash,proto3" json:"AppHash,omitempty"`
  82. LastResultsHash []byte `protobuf:"bytes,12,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"`
  83. // consensus info
  84. EvidenceHash []byte `protobuf:"bytes,13,opt,name=EvidenceHash,proto3" json:"EvidenceHash,omitempty"`
  85. }
  86. func (m *Header) Reset() { *m = Header{} }
  87. func (m *Header) String() string { return proto.CompactTextString(m) }
  88. func (*Header) ProtoMessage() {}
  89. func (*Header) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  90. func (m *Header) GetChainID() string {
  91. if m != nil {
  92. return m.ChainID
  93. }
  94. return ""
  95. }
  96. func (m *Header) GetHeight() int64 {
  97. if m != nil {
  98. return m.Height
  99. }
  100. return 0
  101. }
  102. func (m *Header) GetTime() *Timestamp {
  103. if m != nil {
  104. return m.Time
  105. }
  106. return nil
  107. }
  108. func (m *Header) GetNumTxs() int64 {
  109. if m != nil {
  110. return m.NumTxs
  111. }
  112. return 0
  113. }
  114. func (m *Header) GetLastBlockID() *BlockID {
  115. if m != nil {
  116. return m.LastBlockID
  117. }
  118. return nil
  119. }
  120. func (m *Header) GetTotalTxs() int64 {
  121. if m != nil {
  122. return m.TotalTxs
  123. }
  124. return 0
  125. }
  126. func (m *Header) GetLastCommitHash() []byte {
  127. if m != nil {
  128. return m.LastCommitHash
  129. }
  130. return nil
  131. }
  132. func (m *Header) GetDataHash() []byte {
  133. if m != nil {
  134. return m.DataHash
  135. }
  136. return nil
  137. }
  138. func (m *Header) GetValidatorsHash() []byte {
  139. if m != nil {
  140. return m.ValidatorsHash
  141. }
  142. return nil
  143. }
  144. func (m *Header) GetConsensusHash() []byte {
  145. if m != nil {
  146. return m.ConsensusHash
  147. }
  148. return nil
  149. }
  150. func (m *Header) GetAppHash() []byte {
  151. if m != nil {
  152. return m.AppHash
  153. }
  154. return nil
  155. }
  156. func (m *Header) GetLastResultsHash() []byte {
  157. if m != nil {
  158. return m.LastResultsHash
  159. }
  160. return nil
  161. }
  162. func (m *Header) GetEvidenceHash() []byte {
  163. if m != nil {
  164. return m.EvidenceHash
  165. }
  166. return nil
  167. }
  168. // Timestamp wraps how amino encodes time. Note that this is different from the protobuf well-known type
  169. // protobuf/timestamp.proto in the sense that there seconds and nanos are varint encoded. See:
  170. // https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135
  171. // Also nanos do not get skipped if they are zero in amino.
  172. type Timestamp struct {
  173. Seconds int64 `protobuf:"fixed64,1,opt,name=seconds" json:"seconds,omitempty"`
  174. Nanos int32 `protobuf:"fixed32,2,opt,name=nanos" json:"nanos,omitempty"`
  175. }
  176. func (m *Timestamp) Reset() { *m = Timestamp{} }
  177. func (m *Timestamp) String() string { return proto.CompactTextString(m) }
  178. func (*Timestamp) ProtoMessage() {}
  179. func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  180. func (m *Timestamp) GetSeconds() int64 {
  181. if m != nil {
  182. return m.Seconds
  183. }
  184. return 0
  185. }
  186. func (m *Timestamp) GetNanos() int32 {
  187. if m != nil {
  188. return m.Nanos
  189. }
  190. return 0
  191. }
  192. func init() {
  193. proto.RegisterType((*PartSetHeader)(nil), "proto3.PartSetHeader")
  194. proto.RegisterType((*BlockID)(nil), "proto3.BlockID")
  195. proto.RegisterType((*Header)(nil), "proto3.Header")
  196. proto.RegisterType((*Timestamp)(nil), "proto3.Timestamp")
  197. }
  198. func init() { proto.RegisterFile("block.proto", fileDescriptor0) }
  199. var fileDescriptor0 = []byte{
  200. // 372 bytes of a gzipped FileDescriptorProto
  201. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x4f, 0x6b, 0xe3, 0x30,
  202. 0x10, 0xc5, 0xf1, 0xe6, 0xff, 0x38, 0xd9, 0x6c, 0x86, 0xdd, 0xc5, 0xf4, 0x14, 0x4c, 0x5b, 0x72,
  203. 0x0a, 0xb4, 0x39, 0x94, 0xd2, 0x53, 0x9b, 0x14, 0x12, 0x28, 0xa5, 0xa8, 0x21, 0x77, 0x25, 0x16,
  204. 0x8d, 0xa9, 0x2d, 0x19, 0x4b, 0x29, 0xfd, 0x7c, 0xfd, 0x64, 0x45, 0x23, 0xdb, 0x8d, 0x73, 0x4a,
  205. 0xde, 0x9b, 0x37, 0xbf, 0x91, 0x47, 0x02, 0x7f, 0x9b, 0xa8, 0xdd, 0xfb, 0x34, 0xcb, 0x95, 0x51,
  206. 0xd8, 0xa6, 0x9f, 0x59, 0x78, 0x0b, 0x83, 0x17, 0x9e, 0x9b, 0x57, 0x61, 0x96, 0x82, 0x47, 0x22,
  207. 0xc7, 0xbf, 0xd0, 0x5a, 0x2b, 0xc3, 0x93, 0xc0, 0x1b, 0x7b, 0x93, 0x11, 0x73, 0x02, 0x11, 0x9a,
  208. 0x4b, 0xae, 0xf7, 0xc1, 0xaf, 0xb1, 0x37, 0xe9, 0x33, 0xfa, 0x1f, 0x6e, 0xa0, 0xf3, 0x60, 0x89,
  209. 0xab, 0x45, 0x55, 0xf6, 0x7e, 0xca, 0x78, 0x03, 0xbe, 0x25, 0x6b, 0xc7, 0xa5, 0x4e, 0xff, 0xfa,
  210. 0x9f, 0x1b, 0x3f, 0x9b, 0xd6, 0x86, 0xb2, 0xe3, 0x64, 0xf8, 0xd5, 0x80, 0x76, 0x71, 0x98, 0x00,
  211. 0x3a, 0xf3, 0x3d, 0x8f, 0xe5, 0x6a, 0x41, 0xe8, 0x1e, 0x2b, 0x25, 0xfe, 0xb7, 0x99, 0xf8, 0x6d,
  212. 0x6f, 0x08, 0x8c, 0xac, 0x50, 0x78, 0x01, 0xcd, 0x75, 0x9c, 0x8a, 0xa0, 0x41, 0xe3, 0x46, 0xe5,
  213. 0x38, 0xeb, 0x69, 0xc3, 0xd3, 0x8c, 0x51, 0xd9, 0xb6, 0x3f, 0x1f, 0xd2, 0xf5, 0xa7, 0x0e, 0x9a,
  214. 0xae, 0xdd, 0x29, 0xbc, 0x02, 0xff, 0x89, 0x6b, 0x53, 0x7c, 0x57, 0xd0, 0x22, 0xca, 0xb0, 0xa4,
  215. 0x14, 0x36, 0x3b, 0xce, 0xe0, 0x19, 0x74, 0x69, 0x47, 0x16, 0xd6, 0x26, 0x58, 0xa5, 0xf1, 0x12,
  216. 0x7e, 0xdb, 0xe8, 0x5c, 0xa5, 0x69, 0x6c, 0x68, 0x43, 0x1d, 0xda, 0xd0, 0x89, 0x6b, 0x19, 0x0b,
  217. 0x6e, 0x38, 0x25, 0xba, 0x94, 0xa8, 0xb4, 0x65, 0x6c, 0x78, 0x12, 0x47, 0xdc, 0xa8, 0x5c, 0x53,
  218. 0xa2, 0xe7, 0x18, 0x75, 0x17, 0xcf, 0x61, 0x30, 0x57, 0x52, 0x0b, 0xa9, 0x0f, 0x2e, 0x06, 0x14,
  219. 0xab, 0x9b, 0x76, 0xa3, 0xf7, 0x59, 0x46, 0x75, 0x9f, 0xea, 0xa5, 0xc4, 0x09, 0x0c, 0xed, 0xa9,
  220. 0x98, 0xd0, 0x87, 0xc4, 0x38, 0x42, 0x9f, 0x12, 0xa7, 0x36, 0x86, 0xd0, 0x7f, 0xfc, 0x88, 0x23,
  221. 0x21, 0x77, 0x82, 0x62, 0x03, 0x8a, 0xd5, 0xbc, 0xf0, 0x0e, 0x7a, 0xd5, 0xce, 0xed, 0x50, 0x2d,
  222. 0x76, 0x4a, 0x46, 0x9a, 0xae, 0xf1, 0x0f, 0x2b, 0xa5, 0x7d, 0x6d, 0x92, 0x4b, 0xa5, 0xe9, 0x16,
  223. 0x87, 0xcc, 0x89, 0x6d, 0xf1, 0x38, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x74, 0x2f, 0xbd,
  224. 0xb2, 0x02, 0x00, 0x00,
  225. }