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.

401 lines
14 KiB

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