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.

416 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. NumTxs int64 `protobuf:"varint,5,opt,name=NumTxs,proto3" json:"NumTxs,omitempty"`
  107. TotalTxs int64 `protobuf:"varint,6,opt,name=TotalTxs,proto3" json:"TotalTxs,omitempty"`
  108. // prev block info
  109. LastBlockID *BlockID `protobuf:"bytes,7,opt,name=LastBlockID,proto3" json:"LastBlockID,omitempty"`
  110. // hashes of block data
  111. LastCommitHash []byte `protobuf:"bytes,8,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"`
  112. DataHash []byte `protobuf:"bytes,9,opt,name=DataHash,proto3" json:"DataHash,omitempty"`
  113. // hashes from the app output from the prev block
  114. ValidatorsHash []byte `protobuf:"bytes,10,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"`
  115. NextValidatorsHash []byte `protobuf:"bytes,11,opt,name=NextValidatorsHash,proto3" json:"NextValidatorsHash,omitempty"`
  116. ConsensusHash []byte `protobuf:"bytes,12,opt,name=ConsensusHash,proto3" json:"ConsensusHash,omitempty"`
  117. AppHash []byte `protobuf:"bytes,13,opt,name=AppHash,proto3" json:"AppHash,omitempty"`
  118. LastResultsHash []byte `protobuf:"bytes,14,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"`
  119. // consensus info
  120. EvidenceHash []byte `protobuf:"bytes,15,opt,name=EvidenceHash,proto3" json:"EvidenceHash,omitempty"`
  121. ProposerAddress []byte `protobuf:"bytes,16,opt,name=ProposerAddress,proto3" json:"ProposerAddress,omitempty"`
  122. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  123. XXX_unrecognized []byte `json:"-"`
  124. XXX_sizecache int32 `json:"-"`
  125. }
  126. func (m *Header) Reset() { *m = Header{} }
  127. func (m *Header) String() string { return proto.CompactTextString(m) }
  128. func (*Header) ProtoMessage() {}
  129. func (*Header) Descriptor() ([]byte, []int) {
  130. return fileDescriptor_760f4d5ceb2a11f0, []int{2}
  131. }
  132. func (m *Header) XXX_Unmarshal(b []byte) error {
  133. return xxx_messageInfo_Header.Unmarshal(m, b)
  134. }
  135. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  136. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  137. }
  138. func (m *Header) XXX_Merge(src proto.Message) {
  139. xxx_messageInfo_Header.Merge(m, src)
  140. }
  141. func (m *Header) XXX_Size() int {
  142. return xxx_messageInfo_Header.Size(m)
  143. }
  144. func (m *Header) XXX_DiscardUnknown() {
  145. xxx_messageInfo_Header.DiscardUnknown(m)
  146. }
  147. var xxx_messageInfo_Header proto.InternalMessageInfo
  148. func (m *Header) GetVersion() *Version {
  149. if m != nil {
  150. return m.Version
  151. }
  152. return nil
  153. }
  154. func (m *Header) GetChainID() string {
  155. if m != nil {
  156. return m.ChainID
  157. }
  158. return ""
  159. }
  160. func (m *Header) GetHeight() int64 {
  161. if m != nil {
  162. return m.Height
  163. }
  164. return 0
  165. }
  166. func (m *Header) GetTime() *Timestamp {
  167. if m != nil {
  168. return m.Time
  169. }
  170. return nil
  171. }
  172. func (m *Header) GetNumTxs() int64 {
  173. if m != nil {
  174. return m.NumTxs
  175. }
  176. return 0
  177. }
  178. func (m *Header) GetTotalTxs() int64 {
  179. if m != nil {
  180. return m.TotalTxs
  181. }
  182. return 0
  183. }
  184. func (m *Header) GetLastBlockID() *BlockID {
  185. if m != nil {
  186. return m.LastBlockID
  187. }
  188. return nil
  189. }
  190. func (m *Header) GetLastCommitHash() []byte {
  191. if m != nil {
  192. return m.LastCommitHash
  193. }
  194. return nil
  195. }
  196. func (m *Header) GetDataHash() []byte {
  197. if m != nil {
  198. return m.DataHash
  199. }
  200. return nil
  201. }
  202. func (m *Header) GetValidatorsHash() []byte {
  203. if m != nil {
  204. return m.ValidatorsHash
  205. }
  206. return nil
  207. }
  208. func (m *Header) GetNextValidatorsHash() []byte {
  209. if m != nil {
  210. return m.NextValidatorsHash
  211. }
  212. return nil
  213. }
  214. func (m *Header) GetConsensusHash() []byte {
  215. if m != nil {
  216. return m.ConsensusHash
  217. }
  218. return nil
  219. }
  220. func (m *Header) GetAppHash() []byte {
  221. if m != nil {
  222. return m.AppHash
  223. }
  224. return nil
  225. }
  226. func (m *Header) GetLastResultsHash() []byte {
  227. if m != nil {
  228. return m.LastResultsHash
  229. }
  230. return nil
  231. }
  232. func (m *Header) GetEvidenceHash() []byte {
  233. if m != nil {
  234. return m.EvidenceHash
  235. }
  236. return nil
  237. }
  238. func (m *Header) GetProposerAddress() []byte {
  239. if m != nil {
  240. return m.ProposerAddress
  241. }
  242. return nil
  243. }
  244. type Version struct {
  245. Block uint64 `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"`
  246. App uint64 `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"`
  247. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  248. XXX_unrecognized []byte `json:"-"`
  249. XXX_sizecache int32 `json:"-"`
  250. }
  251. func (m *Version) Reset() { *m = Version{} }
  252. func (m *Version) String() string { return proto.CompactTextString(m) }
  253. func (*Version) ProtoMessage() {}
  254. func (*Version) Descriptor() ([]byte, []int) {
  255. return fileDescriptor_760f4d5ceb2a11f0, []int{3}
  256. }
  257. func (m *Version) XXX_Unmarshal(b []byte) error {
  258. return xxx_messageInfo_Version.Unmarshal(m, b)
  259. }
  260. func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  261. return xxx_messageInfo_Version.Marshal(b, m, deterministic)
  262. }
  263. func (m *Version) XXX_Merge(src proto.Message) {
  264. xxx_messageInfo_Version.Merge(m, src)
  265. }
  266. func (m *Version) XXX_Size() int {
  267. return xxx_messageInfo_Version.Size(m)
  268. }
  269. func (m *Version) XXX_DiscardUnknown() {
  270. xxx_messageInfo_Version.DiscardUnknown(m)
  271. }
  272. var xxx_messageInfo_Version proto.InternalMessageInfo
  273. func (m *Version) GetBlock() uint64 {
  274. if m != nil {
  275. return m.Block
  276. }
  277. return 0
  278. }
  279. func (m *Version) GetApp() uint64 {
  280. if m != nil {
  281. return m.App
  282. }
  283. return 0
  284. }
  285. // Timestamp wraps how amino encodes time.
  286. // This is the protobuf well-known type protobuf/timestamp.proto
  287. // See:
  288. // https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135
  289. // NOTE/XXX: nanos do not get skipped if they are zero in amino.
  290. type Timestamp struct {
  291. Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
  292. Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
  293. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  294. XXX_unrecognized []byte `json:"-"`
  295. XXX_sizecache int32 `json:"-"`
  296. }
  297. func (m *Timestamp) Reset() { *m = Timestamp{} }
  298. func (m *Timestamp) String() string { return proto.CompactTextString(m) }
  299. func (*Timestamp) ProtoMessage() {}
  300. func (*Timestamp) Descriptor() ([]byte, []int) {
  301. return fileDescriptor_760f4d5ceb2a11f0, []int{4}
  302. }
  303. func (m *Timestamp) XXX_Unmarshal(b []byte) error {
  304. return xxx_messageInfo_Timestamp.Unmarshal(m, b)
  305. }
  306. func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  307. return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic)
  308. }
  309. func (m *Timestamp) XXX_Merge(src proto.Message) {
  310. xxx_messageInfo_Timestamp.Merge(m, src)
  311. }
  312. func (m *Timestamp) XXX_Size() int {
  313. return xxx_messageInfo_Timestamp.Size(m)
  314. }
  315. func (m *Timestamp) XXX_DiscardUnknown() {
  316. xxx_messageInfo_Timestamp.DiscardUnknown(m)
  317. }
  318. var xxx_messageInfo_Timestamp proto.InternalMessageInfo
  319. func (m *Timestamp) GetSeconds() int64 {
  320. if m != nil {
  321. return m.Seconds
  322. }
  323. return 0
  324. }
  325. func (m *Timestamp) GetNanos() int32 {
  326. if m != nil {
  327. return m.Nanos
  328. }
  329. return 0
  330. }
  331. func init() {
  332. proto.RegisterType((*PartSetHeader)(nil), "proto3.PartSetHeader")
  333. proto.RegisterType((*BlockID)(nil), "proto3.BlockID")
  334. proto.RegisterType((*Header)(nil), "proto3.Header")
  335. proto.RegisterType((*Version)(nil), "proto3.Version")
  336. proto.RegisterType((*Timestamp)(nil), "proto3.Timestamp")
  337. }
  338. func init() { proto.RegisterFile("types/proto3/block.proto", fileDescriptor_760f4d5ceb2a11f0) }
  339. var fileDescriptor_760f4d5ceb2a11f0 = []byte{
  340. // 451 bytes of a gzipped FileDescriptorProto
  341. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x5f, 0x6f, 0xd3, 0x30,
  342. 0x10, 0x57, 0x68, 0xda, 0xae, 0x97, 0x76, 0x1d, 0x27, 0x40, 0x16, 0x4f, 0x55, 0x04, 0xa8, 0xbc,
  343. 0x74, 0xda, 0xf6, 0x80, 0x10, 0x4f, 0xa5, 0x45, 0xda, 0x24, 0x34, 0x4d, 0xa6, 0xea, 0xbb, 0xd7,
  344. 0x58, 0x34, 0xa2, 0x89, 0xa3, 0x9c, 0x8b, 0xc6, 0x27, 0xe4, 0x6b, 0x21, 0x9f, 0x93, 0xd0, 0x44,
  345. 0x7b, 0xf3, 0xef, 0xcf, 0xfd, 0xce, 0xbe, 0x5c, 0x40, 0xd8, 0x3f, 0x85, 0xa6, 0xcb, 0xa2, 0x34,
  346. 0xd6, 0xdc, 0x5c, 0x3e, 0x1e, 0xcc, 0xee, 0xd7, 0x82, 0x01, 0x0e, 0x3c, 0x17, 0x7f, 0x86, 0xc9,
  347. 0x83, 0x2a, 0xed, 0x0f, 0x6d, 0x6f, 0xb5, 0x4a, 0x74, 0x89, 0xaf, 0xa0, 0xbf, 0x31, 0x56, 0x1d,
  348. 0x44, 0x30, 0x0b, 0xe6, 0x7d, 0xe9, 0x01, 0x22, 0x84, 0xb7, 0x8a, 0xf6, 0xe2, 0xc5, 0x2c, 0x98,
  349. 0x8f, 0x25, 0x9f, 0xe3, 0x2d, 0x0c, 0xbf, 0xba, 0xc4, 0xbb, 0x75, 0x23, 0x07, 0xff, 0x65, 0xfc,
  350. 0x04, 0x91, 0x4b, 0x26, 0x9f, 0xcb, 0x95, 0xd1, 0xf5, 0x6b, 0xdf, 0xfe, 0x66, 0xd1, 0x6a, 0x2a,
  351. 0x4f, 0x9d, 0xf1, 0xdf, 0x10, 0x06, 0xd5, 0x65, 0x3e, 0xc2, 0x70, 0xab, 0x4b, 0x4a, 0x4d, 0xce,
  352. 0xd1, 0xd1, 0xf5, 0xb4, 0xae, 0xaf, 0x68, 0x59, 0xeb, 0x28, 0x60, 0xb8, 0xda, 0xab, 0x34, 0xbf,
  353. 0x5b, 0x73, 0xab, 0x91, 0xac, 0x21, 0xbe, 0x71, 0x71, 0xe9, 0xcf, 0xbd, 0x15, 0xbd, 0x59, 0x30,
  354. 0xef, 0xc9, 0x0a, 0xe1, 0x7b, 0x08, 0x37, 0x69, 0xa6, 0x45, 0xc8, 0xc9, 0x2f, 0xeb, 0x64, 0xc7,
  355. 0x91, 0x55, 0x59, 0x21, 0x59, 0x76, 0xe5, 0xf7, 0xc7, 0x6c, 0xf3, 0x44, 0xa2, 0xef, 0xcb, 0x3d,
  356. 0xc2, 0xb7, 0x70, 0xc6, 0xb3, 0x71, 0xca, 0x80, 0x95, 0x06, 0xe3, 0x15, 0x44, 0xdf, 0x15, 0xd9,
  357. 0x6a, 0x3c, 0x62, 0xd8, 0xbe, 0x7b, 0x45, 0xcb, 0x53, 0x0f, 0x7e, 0x80, 0x73, 0x07, 0x57, 0x26,
  358. 0xcb, 0x52, 0xcb, 0xc3, 0x3c, 0xe3, 0x61, 0x76, 0x58, 0xd7, 0x76, 0xad, 0xac, 0x62, 0xc7, 0x88,
  359. 0x1d, 0x0d, 0x76, 0x19, 0x5b, 0x75, 0x48, 0x13, 0x65, 0x4d, 0x49, 0xec, 0x00, 0x9f, 0xd1, 0x66,
  360. 0x71, 0x01, 0x78, 0xaf, 0x9f, 0x6c, 0xc7, 0x1b, 0xb1, 0xf7, 0x19, 0x05, 0xdf, 0xc1, 0x64, 0x65,
  361. 0x72, 0xd2, 0x39, 0x1d, 0xbd, 0x75, 0xcc, 0xd6, 0x36, 0xe9, 0xbe, 0xc0, 0xb2, 0x28, 0x58, 0x9f,
  362. 0xb0, 0x5e, 0x43, 0x9c, 0xc3, 0xd4, 0xbd, 0x42, 0x6a, 0x3a, 0x1e, 0xac, 0x4f, 0x38, 0x67, 0x47,
  363. 0x97, 0xc6, 0x18, 0xc6, 0xdf, 0x7e, 0xa7, 0x89, 0xce, 0x77, 0x9a, 0x6d, 0x53, 0xb6, 0xb5, 0x38,
  364. 0x97, 0xf6, 0x50, 0x9a, 0xc2, 0x90, 0x2e, 0x97, 0x49, 0x52, 0x6a, 0x22, 0x71, 0xe1, 0xd3, 0x3a,
  365. 0x74, 0x7c, 0xd5, 0xac, 0x8f, 0x5b, 0x6b, 0x9e, 0x34, 0xef, 0x51, 0x28, 0x3d, 0xc0, 0x0b, 0xe8,
  366. 0x2d, 0x8b, 0x82, 0x17, 0x26, 0x94, 0xee, 0x18, 0x7f, 0x81, 0x51, 0xb3, 0x00, 0xee, 0x45, 0xa4,
  367. 0x77, 0x26, 0x4f, 0x88, 0xcb, 0x7a, 0xb2, 0x86, 0x2e, 0x2e, 0x57, 0xb9, 0x21, 0x2e, 0xed, 0x4b,
  368. 0x0f, 0x1e, 0xab, 0x9f, 0xea, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x84, 0xb5, 0xf8, 0x77,
  369. 0x03, 0x00, 0x00,
  370. }